joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011040
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1001105b
push 0
push 0
push 0x10010ff0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
add esp, 0xc
mov eax, 1
pop ebp
ret 0xc
Function at 0x403e57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp byte [edi], 0x25
jne 0x403ed4
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403093
lea eax, [ebp + eax - 0x105]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x25
jne 0x403ebc
and byte [eax], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push eax
push 0x4016ec
call esi
pop edi
pop esi
leave
ret 0x18

Function at 0x4041d7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40422c
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404223
cmp dword [ebp + 8], esi
jne 0x404223
cmp dword [ebp - 4], esi
jne 0x404223
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

Function at 0x4024e4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402513
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00402964
jmp 0x402531
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402478
mov edi, eax
test ebx, ebx
je 0x402531
cmp dword [esi], 0
je 0x402531
dec ebx
jmp 0x40251a
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4032b4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
call fcn.004027f0
call fcn.00403014
xor eax, eax
push ebp
push 0x403432
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push 0x403448
call sub.kernel32.dll_CreateFileA_1
mov dword [0x40549c], eax
xor eax, eax
push ebp
push 0x403359
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [0x40549c]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
mov eax, ebx
call fcn.004023b8
mov dword [0x405498], eax
push 0
push 0x4054a0
push ebx
mov eax, dword [0x405498]
push eax
mov eax, dword [0x40549c]
push eax
call sub.kernel32.dll_ReadFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403360
mov eax, dword [0x40549c]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d004]
jne 0x401010
repz ret
jmp fcn.00401562

Function at 0x409246
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405eb4
and dword [ebp - 4], 0
cmp dword [0x42fac0], 0
mov ebx, eax
jne 0x4092f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4093a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4093a8
push eax
call fcn.00405e42
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42fac0], eax
call esi
push eax
call fcn.00405e42
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42fac4], eax
call esi
push eax
call fcn.00405e42
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42fac8], eax
call esi
push eax
call fcn.00405e42
pop ecx
mov dword [0x42fad0], eax
test eax, eax
je 0x4092f7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405e42
pop ecx
mov dword [0x42facc], eax
mov eax, dword [0x42facc]
cmp eax, ebx
je 0x40934f
cmp dword [0x42fad0], ebx
je 0x40934f
push eax
call fcn.00405ebd
push dword [0x42fad0]
mov esi, eax
call fcn.00405ebd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40934f
test edi, edi
je 0x40934f
call esi
test eax, eax
je 0x409346
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409346
test byte [ebp - 0xc], 1
jne 0x40934f
or dword [ebp + 0x10], 0x200000
jmp 0x409388
mov eax, dword [0x42fac4]
cmp eax, ebx
je 0x409388
push eax
call fcn.00405ebd
pop ecx
test eax, eax
je 0x409388
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409388
mov eax, dword [0x42fac8]
cmp eax, ebx
je 0x409388
push eax
call fcn.00405ebd
pop ecx
test eax, eax
je 0x409388
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42fac0]
call fcn.00405ebd
pop ecx
test eax, eax
je 0x4093a8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4093aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b8e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebp
xor ebp, ebp
push esi
cmp ebx, 0x19f
jne 0x40b8f6
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor esi, esi
cmp ebx, ebp
jle 0x40b931
lea esp, [esp]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebp
call fcn.0040b8d0
add esp, 4
mov eax, dword [esp + 0xc]
add eax, 0x64
mov dword [esp + 8], eax
sub dword [esp + 8], 0x64
mov cl, byte [esp + 8]
xor byte [esi + edi], cl
inc esi
cmp esi, ebx
jl 0x40b900
pop esi
pop ebp
cmp ebx, 0x2d
jne 0x40b94c
mov dword [0x2ae8508], 0xa62e7790
mov dword [0x2ae850c], 0xffffffff
add esp, 8
ret
Function at 0x416f9c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x416fa2
ret

Function at 0x1001e34
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x10011e0
call fcn.01002c88
mov edi, 0x94
mov eax, edi
call fcn.01002df0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x10010a8]
mov ecx, dword [esi + 0x10]
mov dword [0x10062b8], ecx
mov eax, dword [esi + 4]
mov dword [0x10062c4], eax
mov edx, dword [esi + 8]
mov dword [0x10062c8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x10062bc], esi
cmp ecx, 2
je 0x1001e94
or esi, 0x8000
mov dword [0x10062bc], esi
shl eax, 8
add eax, edx
mov dword [0x10062c0], eax
cmp word [0x1000000], 0x5a4d
jne 0x1001ed0
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1001ed0
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1001ee9
cmp ecx, 0x20b
je 0x1001ed6
and dword [ebp - 0x1c], 0
jmp 0x1001efd
cmp dword [eax + 0x84], 0xe
jbe 0x1001ed0
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1001ef7
cmp dword [eax + 0x74], 0xe
jbe 0x1001ed0
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.01002c2a
pop ecx
test eax, eax
jne 0x1001f2a
cmp dword [0x10062a8], 1
jne 0x1001f17
call fcn.01002406
push 0x1c
call fcn.01002219
push 0xff
call fcn.01002078
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.01002a5a
test eax, eax
jge 0x1001f3f
push 0x1b
call fcn.01001e05
pop ecx
call dword [0x10010ac]
mov dword [0x1006854], eax
call fcn.0100292d
mov dword [0x10062a0], eax
call fcn.01002884
test eax, eax
jge 0x1001f65
push 8
call fcn.01001e05
pop ecx
call fcn.0100262a
test eax, eax
jge 0x1001f76
push 9
call fcn.01001e05
pop ecx
call fcn.010020d2
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1001f89
push eax
call fcn.01001e05
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [fcn.010010b0]
call fcn.010025bc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1001fab
movzx eax, word [ebp - 0x40]
jmp 0x1001fae
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01001c3d
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1001fcf
push esi
call fcn.010021b2
call fcn.010021ea
jmp 0x1002001
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.01002cc3
ret
Function at 0x40f197
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419794]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a16b
mov dword [ebp - 0x14], eax
cmp dword [0x813ffc], esi
jne 0x40f28a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40f217
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f36a
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40f36a
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f36a
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x813ffc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x814000], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x814004], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x81400c], eax
test eax, eax
je 0x40f287
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x814008], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f2af
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f2a2
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40f2c4
push 4
pop eax
jmp 0x40f36c
cmp dword [ebp - 0x14], esi
je 0x40f2c4
push dword [0x813ffc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40f2a9
mov eax, dword [0x814008]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40f322
cmp dword [0x81400c], edi
je 0x40f322
push eax
call ebx
push dword [0x81400c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40f322
test eax, eax
je 0x40f322
call ecx
test eax, eax
je 0x40f317
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40f317
test byte [ebp - 8], 1
jne 0x40f322
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40f352
mov eax, dword [0x814000]
cmp eax, edi
je 0x40f34f
push eax
call ebx
test eax, eax
je 0x40f34f
call eax
mov esi, eax
test esi, esi
je 0x40f34f
mov eax, dword [0x814004]
cmp eax, edi
je 0x40f34f
push eax
call ebx
test eax, eax
je 0x40f34f
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x813ffc]
call ebx
test eax, eax
je 0x40f36a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40f36c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040482b
mov esp, ebp
pop ebp
ret
Function at 0x40d29e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407ccb
mov dword [ebp - 0x14], eax
cmp dword [0x813fd8], esi
jne 0x40d391
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d471
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d471
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d471
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x813fd8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x813fdc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x813fe0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813fe8], eax
test eax, eax
je 0x40d38e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813fe4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3b6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3a9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push 4
pop eax
jmp 0x40d473
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push dword [0x813fd8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3b0
mov eax, dword [0x813fe4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d429
cmp dword [0x813fe8], edi
je 0x40d429
push eax
call ebx
push dword [0x813fe8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d429
test eax, eax
je 0x40d429
call ecx
test eax, eax
je 0x40d41e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d41e
test byte [ebp - 8], 1
jne 0x40d429
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d459
mov eax, dword [0x813fdc]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
call eax
mov esi, eax
test esi, esi
je 0x40d456
mov eax, dword [0x813fe0]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x813fd8]
call ebx
test eax, eax
je 0x40d471
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d473
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004043de
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x455294]
shl eax, 2
mov dword [0x455298], eax
push edi
push ecx
xor eax, eax
mov edi, 0x4601a4
mov ecx, 0x465978
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push edx
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov edx, eax
call fcn.00448ff8
pop edx
push 0
call fcn.0044a078
pop ecx
push 0x45525c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x45529c], eax
push 0
jmp fcn.0044f608

Function at 0x401df8
Capabilities:
Find taskbar
Hide graphical window
Hide the windows taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0x4555c4
call sub.USER32.dll_FindWindowA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401e1b
push 0
push dword [ebp - 4]
call sub.USER32.dll_ShowWindow
pop ecx
pop ebp
ret

Function at 0x401e20
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push str.Shell_TrayWnd
call sub.USER32.dll_FindWindowA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401e43
push 9
push dword [ebp - 4]
call sub.USER32.dll_ShowWindow
pop ecx
pop ebp
ret

Function at 0x402194
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.KERNEL32.dll_GlobalMemoryStatus
mov edx, dword [ebp - 0x18]
mov dword [0x45555c], edx
mov ecx, dword [ebp - 0x14]
mov dword [0x455564], ecx
cmp dword [0x455560], 0
je 0x4021d0
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x455560]
jae 0x4021d9
mov edx, dword [ebp - 0x14]
mov dword [0x455560], edx
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [0x455568]
jbe 0x4021ec
mov eax, dword [ebp - 0x14]
mov dword [0x455568], eax
cmp dword [0x455554], 0xffffffff
je 0x402200
mov edx, dword [ebp - 0x1c]
cmp edx, dword [0x455554]
jge 0x402209
mov ecx, dword [ebp - 0x1c]
mov dword [0x455554], ecx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [0x455558]
jbe 0x40221d
mov edx, dword [ebp - 0x1c]
mov dword [0x455558], edx
mov esp, ebp
pop ebp
ret
Function at 0x40d2c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov byte [ebp - 1], 0
push str.NVDPACKFILE
mov eax, dword [ebp + 8]
add eax, 0x2c
push eax
mov edx, dword [0x45fee0]
push dword [edx]
call sub.KERNEL32.dll_FindResourceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40d3dd
push dword [ebp - 8]
mov ecx, dword [0x45fee0]
push dword [ecx]
call sub.KERNEL32.dll_SizeofResource
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], eax
push dword [ebp - 8]
mov eax, dword [0x45fee0]
push dword [eax]
call sub.KERNEL32.dll_LoadResource
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x40d3dd
mov edx, dword [ebp + 8]
push dword [edx]
call sub.KERNEL32.dll_LockResource
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
push dword [ebp + 8]
call fcn.0040d250
pop ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 0x2000
push 0x455feb
mov edx, dword [ebp + 8]
push dword [edx + 0x20]
call fcn.00402338
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0
je 0x40d3dd
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x1000
push 0x455ff9
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
inc eax
push eax
call fcn.00402338
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1c], 0
je 0x40d3dd
push str.LoadResources
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
call fcn.00402338
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc], 0
je 0x40d3dd
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
push 0
mov edx, dword [ebp + 8]
push dword [edx + 0xc]
call fcn.004490e4
add esp, 0xc
mov byte [ebp - 1], 1
cmp byte [ebp - 1], 0
jne 0x40d3ee
push str.Error_Loading_Packed_Resources
call fcn.00401f0c
pop ecx
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40e2a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 1], 0
push str.NVDCASTFILE
push dword [ebp + 0xc]
mov eax, dword [0x45fee0]
push dword [eax]
call sub.KERNEL32.dll_FindResourceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40e2fa
push dword [ebp - 8]
mov edx, dword [0x45fee0]
push dword [edx]
call sub.KERNEL32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40e2fa
push dword [ebp - 0xc]
call sub.KERNEL32.dll_LockResource
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], eax
push dword [ebp + 8]
call fcn.0040e250
pop ecx
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x40e424
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 1], 0
push str.NVDPARMFILE
push dword [ebp + 0xc]
mov eax, dword [0x45fee0]
push dword [eax]
call sub.KERNEL32.dll_FindResourceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40e47e
push dword [ebp - 8]
mov edx, dword [0x45fee0]
push dword [edx]
call sub.KERNEL32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40e47e
push dword [ebp - 0xc]
call sub.KERNEL32.dll_LockResource
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x34], eax
push dword [ebp + 8]
call fcn.0040e3d4
pop ecx
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x4100e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
lea eax, [ebp - 8]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.dll_RegOpenKeyExA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41013c
mov dword [ebp - 0xc], 0x104
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x110]
push ecx
push 0
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegQueryValueA
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0x10]
call sub.KERNEL32.dll_lstrcpyA
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x410144
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 5
push dword [ebp - 8]
push 0
push 0
push dword [ebp + 8]
push str.open
push 0
call sub.SHELL32.dll_ShellExecuteA
cmp eax, 0x20
jg 0x410263
lea edx, [ebp - 0x214]
push edx
push str..htm
push 0x80000000
call fcn.004100e4
add esp, 0xc
test eax, eax
jne 0x41026a
push str._shellopencommand
lea ecx, [ebp - 0x214]
push ecx
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp - 0x214]
push eax
lea edx, [ebp - 0x214]
push edx
push 0x80000000
call fcn.004100e4
add esp, 0xc
test eax, eax
jne 0x41026a
push str.__1_
lea ecx, [ebp - 0x214]
push ecx
call fcn.004493a5
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x410228
push 0x457dde
lea eax, [ebp - 0x214]
push eax
call fcn.004493a5
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x410220
lea edx, [ebp - 0x214]
push edx
call sub.KERNEL32.dll_lstrlenA
lea ecx, [ebp - 0x215]
add eax, ecx
mov dword [ebp - 0xc], eax
jmp 0x41022e
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
jmp 0x41022e
mov edx, dword [ebp - 0xc]
mov byte [edx], 0
push 0x457de1
push dword [ebp - 0xc]
call sub.KERNEL32.dll_lstrcatA
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.KERNEL32.dll_lstrcatA
push dword [ebp - 8]
lea ecx, [ebp - 0x214]
push ecx
call sub.KERNEL32.dll_WinExec
cmp eax, 0x1f
jbe 0x41026a
mov dword [ebp - 4], 1
jmp 0x41026a
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
setne al
and eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4222c8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x422363
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x461840
push 0x101
call sub.WSOCK32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x422348
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00442888
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x422378
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
lea edx, [ebp - 0x20]
mov eax, dword [0x45ffcc]
call fcn.004486ec
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x421b94]
call fcn.0044344c
call fcn.004471f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42236a
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004476f8
ret

Function at 0x422730
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00447b14
push eax
call sub.WSOCK32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00446950
test ebx, ebx
je 0x42277b
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret