joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2c111f1
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
test eax, eax
je 0x2c1120a
xor eax, eax
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x2c11279
push ebx
push 0x2c1e9b8
call dword [sym.imp.Kernel32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x2c11278
push esi
push 0x2c1eab4
push ebx
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x2c11277
call fcn.02c10ffe
cmp eax, 0xffffffff
je 0x2c11277
push eax
push 1
push 1
call esi
mov esi, eax
test esi, esi
jne 0x2c11262
push 0x2c1ead4
push ebx
call dword [sym.imp.Kernel32.dll_GetProcAddress]
test eax, eax
je 0x2c11277
push esi
call eax
push 0x2c1eaa0
push ebx
call dword [sym.imp.Kernel32.dll_GetProcAddress]
test eax, eax
je 0x2c11277
push 0
push esi
call eax
pop esi
pop ebx
leave
ret

Function at 0x2c12b7a
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ebp
mov ebp, esp
push ebx
push ebx
push ecx
push 0x2c12bb6
push dword fs:[0]
mov dword fs:[0], esp
mov ebx, 0
mov eax, 1
invalid

Function at 0x2c12c03
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
and dword [ebp - 0xc], 0
push 0x2c1e9b8
call dword [sym.imp.Kernel32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x2c12c24
jmp 0x2c12c99
push 0x2c1ead4
push dword [ebp - 4]
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x2c12c3d
jmp 0x2c12c99
push ebx
push ecx
push edx
push 0x2c12c81
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
pop dword fs:[0]
add esp, 4
cmp ebx, 0x564d5868
sete byte [ebp - 0xc]
pop edx
pop ecx
pop ebx
jmp 0x2c12c8e
cmp dword [ebp - 0xc], 1
jne 0x2c12c99
push 0
call dword [ebp - 8]
pop ebx
leave
ret

Function at 0x2c13040
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x2c1305d
shr eax, 1
xor eax, 0xedb88320
jmp 0x2c1305f
shr eax, 1
dec edx
test edx, edx
jg 0x2c13050
mov dword [ebp + ecx*4 - 0x400], eax
inc ecx
cmp ecx, 0x100
jl 0x2c1304b
or eax, 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x2c1309f
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
dec dword [ebp + 0xc]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [ebp + edx*4 - 0x400]
inc ecx
cmp dword [ebp + 0xc], 0
jne 0x2c13080
not eax
leave
ret
Function at 0x2c13277
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push esi
push edi
push 0x2c1e9b8
call dword [sym.imp.Kernel32.dll_LoadLibraryA]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x2c133df
push 0x2c1ea48
push esi
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x2c133df
push ebx
push 0x2c1f180
push esi
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
je 0x2c133de
push 0x2c1f174
push esi
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x2c133de
push 0x2c1f168
push esi
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x2c133de
push 0x2c1eb0c
push esi
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x2c133de
push 0x2c1ead4
push esi
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x2c133de
push 0x2c1f15c
push esi
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x2c133de
push 0x2c1f150
push esi
call dword [sym.imp.Kernel32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x2c133de
call fcn.02c12ff1
push 0x104
lea ecx, [ebp - 0x124]
push ecx
push eax
call dword [ebp - 4]
test eax, eax
je 0x2c133de
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
lea eax, [ebp - 0x124]
push eax
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x2c133de
push edi
push ebx
call dword [ebp - 0x18]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x2c133de
push eax
push edi
call dword [ebp - 0x1c]
mov esi, eax
cmp esi, edi
je 0x2c133de
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
push esi
push ebx
call dword [ebp - 0xc]
push ebx
call dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [ebp - 4]
add eax, esi
mov ebx, dword [eax]
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
push esi
mov dword [esi + eax], edi
call fcn.02c13040
pop ecx
pop ecx
push esi
cmp eax, ebx
jne 0x2c133d7
call dword [ebp - 8]
jmp 0x2c133de
call dword [ebp - 8]
push edi
call dword [ebp - 0x14]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x401141
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
call fcn.00401000
push 0x40c
xor ebx, ebx
mov dword [ebp - 0x464], 0x22
lea eax, [ebp - 0x460]
push ebx
push eax
call fcn.00401d80
add esp, 0xc
lea eax, [ebp - 0x462]
mov esi, 0x207
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401233
cmp eax, esi
jae 0x401233
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x462]
push eax
call esi
lea eax, [ebp - 0x462]
push eax
call esi
push str.GoogleUpdate.exe
lea eax, [ebp - 0x462]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x401233
push str.___broker
push 0x208
lea eax, [ebp - 0x464]
push eax
call fcn.00401047
test eax, eax
js 0x401238
push edi
push 0x40
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], 0x44
push ebx
push eax
call fcn.00401d80
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x464]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x401233
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
jmp 0x401238
call fcn.0040102c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407458
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x407467
pop dword [ebp - 0x38]
mov eax, 0x407467
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x385d7bd7
sub dword [ebp - 0x48], 0xea0b368c
mov dword [ebp - 0x44], 0x8da2d85d
sub dword [ebp - 0x44], 0x5b6f8c18
mov dword [ebp - 0x40], 0x3083c907
add dword [ebp - 0x40], 0x1bc87b27
mov dword [ebp - 0x3c], 0xcdddc8d
add dword [ebp - 0x3c], 0xf3222373
lea eax, [ebp - 0x48]
push eax
mov eax, 0x91969275
add eax, 0x6ea9ee03
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x75943908
add dword [ebp - 0x48], 0xfede304e
mov dword [ebp - 0x44], 0x296d8665
sub dword [ebp - 0x44], 0xe80124f0
mov dword [ebp - 0x40], 0xfc89591b
add dword [ebp - 0x40], 0x66e61351
mov dword [ebp - 0x3c], 0x18a0faa1
sub dword [ebp - 0x3c], 0x18a0faa1
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xab541d56
add eax, 0x54ec6326
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x36bc4
push 0
call eax
mov ecx, 0xd0b71adf
sub ecx, 0xd0b6d456
mov ebx, eax
mov esi, 0x121531a3
add esi, 0xee30505d
add esi, dword [ebp - 0x38]
mov edi, 0x71463f77
sub edi, 0xdf0912e
sub dword [ebp - 0x10], esi
mov edx, dword [esi]
sub dword [ebp - 0x28], 0xd4998890
add edx, edi
xor dword [ebp - 0x34], 0xa2158688
mov dword [ebx], edx
add dword [ebp - 0x30], 0xdfd8875c
add ebx, 0x6b6f23ac
sub ebx, 0x6b6f23a8
add esi, 0xb1bbac26
sub esi, 0xb1bbac22
loop 0x407584
add eax, 0x199537f6
sub eax, 0x19942aff
mov ebx, eax
add eax, 0x153ad8a2
add eax, 0xeac52763
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x40eb68
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ec3d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40ec58
push ebx
push 0x40ec68
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40ebe8
mov al, 0x6a
call fcn.0040e788
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040eb3c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40ebf1
call fcn.0040eb3c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ec44
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40ed58
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ee23
jmp 0x40ee17
cmp dword [esi + 0x10], 0x1000
jne 0x40ee03
test byte [esi + 0x15], 1
jne 0x40ee03
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40edb4
cmp ebp, 2
je 0x40edb4
cmp ebp, 0x10
je 0x40edb4
cmp ebp, 0x20
jne 0x40edd0
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40edd0
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ede1
mov eax, dword [esi]
add eax, ebx
call fcn.0040ed50
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40edd4
cmp byte [esp + 4], 0
je 0x40ee03
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ee23
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ed89
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43ca36
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x43ca36
lcall 0x5de5, 0x8b10c483
jmp loc.03115024
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ed0
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2e5e33b8
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x17e8543b
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x40197d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov dword [0x4040d0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401990
push esp
mov dword [ebp - 0x24], 0x4016f4
mov eax, dword [0x4040d0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.solienty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040d0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.absent
push str.solienty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040d8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a2f
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a10
pop ebp
ret 0x10

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40d710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40d71f
pop dword [ebp - 0xc]
mov eax, 0x851492e4
add eax, 0x7b2c443b
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x944df093
add dword [ebp - 0x1c], 0xba0454b8
mov dword [ebp - 0x18], 0xd7561d05
sub dword [ebp - 0x18], 0xa522d0c0
mov dword [ebp - 0x14], 0xffd06a5c
sub dword [ebp - 0x14], 0xb384262e
mov dword [ebp - 0x10], 0xb0def85c
add dword [ebp - 0x10], 0x4f2107a4
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x19fbf828
add eax, 0xe6463950
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xbfd73a11
sub dword [ebp - 0x1c], 0x4b64d0bb
mov dword [ebp - 0x18], 0x8d74a1cd
add dword [ebp - 0x18], 0xb3f7bfa8
mov dword [ebp - 0x14], 0x3ed64cf5
sub dword [ebp - 0x14], 0xdb66e089
mov dword [ebp - 0x10], 0xd95c74c0
add dword [ebp - 0x10], 0x26a38b40
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x15d9ce80
sub eax, 0x15979d04
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x39e26
push 0
call eax
mov ecx, 0xe753bfb
add ecx, 0xf18afe2b
mov edi, eax
mov ebx, 0x32d4ff09
sub ebx, 0x32754909
add ebx, dword [ebp - 0xc]
mov edx, 0x5691b5d2
sub edx, 0x466f5d88
mov dword [ebp - 8], 0x46006523
mov esi, dword [ebx]
add dword [ebp - 4], 0x4898acb
add esi, edx
xor dword [ebp - 4], ebx
mov dword [edi], esi
add edi, 0xd89c90a
add edi, 0xf27636fa
add ebx, 4
loop 0x40d841
add eax, 0xddbdf35c
add eax, 0x2242e80f
mov ebx, eax
add eax, 0x8b658224
sub eax, 0x8b65821f
mov ecx, 0xabdd63a9
sub ecx, 0xab9d63a9
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x402050
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x6101c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x3ff
lea eax, [ebp - 0x407]
mov byte [ebp - 0x408], 0
push 0
push eax
mov esi, edx
mov ebx, ecx
call fcn.00582f70
add esp, 8
mov dword [ebp - 0x410], 0
mov edx, esi
mov dword [ebp - 0x40c], 0
lea ecx, [ebp - 0x410]
call fcn.00401f80
add esp, 4
test eax, eax
jne 0x4020fe
push dword [ebp - 0x410]
lea eax, [ebp - 0x408]
push ebx
push str._s___s
push eax
call fcn.0057f196
add esp, 0x10
lea eax, [ebp - 0x408]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4020e0
xor esi, esi
jmp 0x4020e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x410]
push 0x6114b0
call dword [0x6114b4]
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0057f187
mov esp, ebp
pop ebp
ret
Function at 0x40d120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004564f6

Function at 0x40e3f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40e405
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40e444
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40e440
lea ebx, [ebx]
cmp esi, edx
jae 0x40e444
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x40e430
cmp esi, edx
jb 0x40e449
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40ec50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], esi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
lea edi, [esi + 0xd]
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, dword [esi]
sub eax, 5
mov dword [esi + 0xe], eax
lea eax, [ebp + 0xc]
push eax
push 0x40
push 5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp + 8]
push eax
push 5
lea eax, [esi + 8]
push eax
push dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp + 0x10]
push eax
push 5
push edi
mov edi, dword [ebp - 4]
push dword [edi]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push dword [ebp + 0xc]
push 5
push dword [edi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40ece0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
push 0x40
push 5
push dword [edi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 5
lea eax, [edi + 0xd]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push dword [ebp - 4]
push 5
push dword [edi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40f0e0
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x6101c0]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
push ebx
push esi
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0xffffffff
push eax
mov esi, ecx
mov dword [ebp - 0x124], 4
push 0x8004667e
push esi
movdqu xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x11c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40f1b7
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 3
push eax
push 0
lea eax, [ebp - 0x118]
mov dword [ebp - 0x128], 0
push eax
push 0
lea eax, [esi + 1]
mov dword [ebp - 0x114], esi
push eax
mov dword [ebp - 0x118], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x40f1b3
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x120]
push eax
push 0x1007
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp dword [ebp - 0x120], 0
sete bl
jmp 0x40f1b9
xor bl, bl
jmp 0x40f1b9
mov bl, 1
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0057f187
mov esp, ebp
pop ebp
ret
Function at 0x4140b0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ad23
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x6101c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jge 0x4140f3
or esi, 0xffffffff
jmp 0x414113
push 0x5e4534
push eax
call fcn.005805e1
mov esi, eax
add esp, 8
mov eax, dword [ebp + 8]
test esi, esi
jne 0x41410f
or esi, 0xffffffff
jmp 0x414113
sub esi, eax
sar esi, 1
mov eax, dword [eax - 0xc]
lea ecx, [ebp + 8]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x1ac]
push eax
call fcn.00415d90
push 0xa
push 0
push dword [eax]
call fcn.005805b1
mov ebx, dword [ebp - 0x1ac]
or edi, 0xffffffff
add ebx, 0xfffffff0
mov dword [ebp - 0x1b0], eax
add esp, 0xc
mov ecx, edi
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41415f
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp + 8]
call fcn.00415e10
lea eax, [ebp - 0x1a0]
mov byte [ebp - 4], 1
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, dword [ebp - 0x1a8]
test eax, eax
jne 0x414263
mov eax, dword [ebp - 0x1a0]
cmp al, 1
jne 0x41425d
shr eax, 8
cmp al, 1
jne 0x41425d
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push esi
lea ecx, [ebp - 0x1a4]
mov ebx, eax
call fcn.00416040
push dword [ebp - 0x1a4]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp - 0x1b0]
mov dword [ebp - 0x1bc], eax
mov eax, 2
mov word [ebp - 0x1c0], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1be], ax
sub esp, 0x10
movdqu xmm0, xmmword [ebp - 0x1c0]
mov eax, esp
mov ecx, ebx
movdqu xmmword [eax], xmm0
call fcn.0040f0e0
add esp, 0x10
test al, al
jne 0x41422d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor bl, bl
jmp 0x41423c
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov bl, 1
mov edx, dword [ebp - 0x1a4]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414265
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x414265
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor bl, bl
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414282
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4142a3
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057f187
mov esp, ebp
pop ebp
ret 4