joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409f00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a8e98
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
je 0x409f47
mov ecx, dword [esi + 0x28]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x409f4d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x24]
mov edx, dword [esp + 0x34]
push 0
push esi
mov byte [ecx], 0
push edx
lea ecx, [esp + 0x18]
call fcn.00409c60
mov eax, dword [esp + 0x38]
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.004083f0
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.00409740
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 8
Function at 0x40e600
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a91bb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
xor ebx, ebx
mov dword [edi + 4], ebx
lea esi, [edi + 8]
mov dword [edi], vtable.CBkSkinImgFrame.0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xff00ff
mov dword [esi + 4], ebx
mov dword [esi], vtable.CBkImageSkin.0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov eax, dword [0x500de4]
mov edx, dword [eax + 0xc]
mov ecx, 0x500de4
mov byte [esp + 0x20], 2
call edx
add eax, 0x10
mov dword [esi + 0x20], eax
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], 0xffffffff
mov dword [edi + 0x38], 0x2f
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x410af0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0x10]
movzx ecx, word [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x410b11
pop esi
pop ebx
ret
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x410b3d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x410b3d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x410b43
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
mov ebp, dword [esp + 0x1c]
lea esi, [edi + 1]
push esi
mov ecx, ebp
call fcn.004054a0
test eax, eax
je 0x410b66
mov edx, dword [esp + 0x18]
push edi
push edx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push esi
mov ecx, ebp
call fcn.0040b900
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4125e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4abc08
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
xor ebp, ebp
cmp dword [eax - 0xc], ebp
je 0x41272c
mov edx, dword [0x500de4]
mov eax, dword [edx + 0xc]
mov ecx, 0x500de4
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov eax, dword [esi]
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_d._s
push ecx
mov dword [esp + 0x30], ebp
call fcn.00405e90
mov edx, dword [esp + 0x24]
add esp, 0x14
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x412704
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4126fd
push ebp
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x30]
push edi
lea ecx, [edi + 0xa]
push ecx
mov ecx, ebp
call fcn.004054a0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov dword [esp + 0x24], eax
je 0x4126e3
cmp dword [esp + 0x2c], edi
jne 0x4126e3
push edi
mov ecx, ebp
call fcn.0040b900
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.00404930
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 0xc
mov eax, dword [ebp]
cmp dword [eax - 8], 0
jl 0x412743
mov dword [eax - 0xc], 0
mov edx, dword [ebp]
mov ebp, dword [esp + 0x24]
mov byte [edx], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41272c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 0xc
push 0x80070057
call fcn.004011d0
int3

Function at 0x414660
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
mov esi, dword [esp + 0x220]
xor eax, eax
push 0x20e
push eax
mov dword [esp + 0xc], eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.004079b0
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0048e5b2
add esp, 0x218
ret 4
Function at 0x414c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a9709
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [0x500de4]
mov edx, dword [eax + 0xc]
mov ecx, 0x500de4
mov dword [esp + 0x38], esi
call edx
mov ecx, dword [esp + 0x40]
add eax, 0x10
mov dword [ecx], eax
mov edx, dword [esp + 0x44]
mov dword [esp + 0x38], esi
mov esi, 1
push edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x18], esi
call fcn.004079b0
lea eax, [esp + 0x44]
mov dword [esp + 0x38], esi
push eax
lea ecx, [esp + 0x2c]
lea esi, [edi + 0x10]
push ecx
mov ecx, esi
call fcn.004121a0
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414cc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
mov ecx, dword [esi + 4]
mov dword [esp + 0x24], ecx
je 0x414cd7
cmp ebp, esi
je 0x414ce1
mov esi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call esi
jmp 0x414ce7
mov esi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x24]
je 0x414dc2
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.00414660
push str.fonts_
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x44], 2
call fcn.00405d30
add esp, 0xc
mov edi, eax
test ebp, ebp
mov byte [esp + 0x38], 3
jne 0x414d25
call esi
cmp ebx, dword [ebp + 4]
jne 0x414d2c
call esi
add ebx, 0x10
push ebx
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00405c60
add esp, 0xc
mov esi, dword [esp + 0x40]
push eax
mov ecx, esi
mov byte [esp + 0x3c], 4
call fcn.00405e10
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x38], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414d74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x38], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414d99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414dbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x414dc6
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
Function at 0x416890
Capabilities:
Create thread

Disassembly:
sub esp, 0x18
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.kdump.dll
mov dword [0x50100c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
cmp eax, ebx
je 0x4168e9
push str.KxEOpenDumpMonitorEx2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4168e9
push ebx
push ebx
push eax
push 0x40a9c0
push ebx
push ebx
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
push 0xa
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, ebx
je 0x4168e9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x14], bl
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdiplusStartup
push 0xea60
mov byte [esp + 0xc], 1
call fcn.004166e0
push 0xea61
call fcn.004167b0
mov edx, dword [esp + 0x38]
add esp, 8
push edx
mov ecx, 0x4e0208
call fcn.0042dcc0
cmp byte [esp + 8], bl
mov esi, eax
je 0x41694e
mov eax, dword [esp + 0x1c]
push eax
call sub.gdiplus.dll_GdiplusShutdown
mov eax, esi
pop esi
pop ebx
add esp, 0x18
ret 0x10

Function at 0x416e90
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x416eb0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x416ec6
push 0x80004005
call fcn.004011d0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x416ef0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x416f08
push 0x80004005
call fcn.004011d0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x416f15
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x4175e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push edi
push 0x11c
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x11c
call edi
test eax, eax
jne 0x41763b
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x114
call edi
test eax, eax
je 0x4176ec
mov eax, dword [esp + 0x18]
mov ecx, 1
sub eax, ecx
je 0x4176d9
sub eax, ecx
je 0x417657
xor esi, esi
jmp 0x4176ec
mov eax, dword [esp + 0xc]
cmp eax, 6
jne 0x417693
mov eax, dword [esp + 0x10]
cmp eax, ecx
jne 0x41767b
xor eax, eax
cmp byte [esp + 0x122], cl
setne al
add eax, 8
mov esi, eax
jmp 0x4176ec
test eax, eax
jne 0x4176c6
xor edx, edx
cmp byte [esp + 0x122], cl
setne dl
lea edx, [edx + edx + 7]
mov esi, edx
jmp 0x4176ec
cmp eax, 5
jne 0x4176ba
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x4176a6
lea esi, [eax + 3]
jmp 0x4176ec
cmp eax, ecx
jne 0x4176b1
mov esi, 6
jmp 0x4176ec
test eax, eax
jne 0x4176ec
lea esi, [eax + 3]
jmp 0x4176ec
cmp eax, 4
ja 0x4176ec
mov esi, 4
jmp 0x4176ec
cmp eax, 2
jne 0x4176ec
cmp byte [esp + 0x122], cl
jne 0x4176ec
lea esi, [eax + 8]
jmp 0x4176ec
mov eax, dword [esp + 0x14]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb esi, esi
add esi, 2
mov ecx, dword [esp + 0x124]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0048e5b2
add esp, 0x120
ret
Function at 0x417970
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x4179de
test ecx, ecx
je 0x4179d0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x4179ec
test ecx, ecx
je 0x417a91
push ecx
jmp 0x417a8b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x417a5e
jmp 0x417a20
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.00417970
mov edi, eax
test edi, edi
jne 0x417aad
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x417a20
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x417a75
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x417a91
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0048e5b2
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x417abc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x417a93
Function at 0x41a2a0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ecx, 0x4e038c
call fcn.0041a230
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, eax
test esi, esi
je 0x41a2cb
push esi
call ebx
test eax, eax
je 0x41a2cb
push 0
push esi
call edi
mov ecx, 0x4e0374
call fcn.0041a230
mov esi, eax
test esi, esi
je 0x41a2e7
push esi
call ebx
test eax, eax
je 0x41a2e7
push 0
push esi
call edi
mov ecx, 0x4e03a4
call fcn.0041a230
mov esi, eax
test esi, esi
je 0x41a303
push esi
call ebx
test eax, eax
je 0x41a303
push 0
push esi
call edi
mov ecx, 0x4e03bc
call fcn.0041a230
mov esi, eax
test esi, esi
je 0x41a31f
push esi
call ebx
test eax, eax
je 0x41a31f
push 0
push esi
call edi
pop edi
pop esi
pop ebx
ret
Function at 0x41c640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4a9ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4dffd0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x418]
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
call dword [0x4e0000]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x41c6cd
call fcn.00416c20
mov esi, eax
jmp 0x41c7b5
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41c6e9
call fcn.00416c20
jmp 0x41c7ac
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x41c702
call fcn.00416c20
jmp 0x41c7ac
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x14], esi
jae 0x41c738
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x41c726
lea ecx, [ebp]
call fcn.00422d10
lea ecx, [ebp - 0x1c]
call fcn.004177c0
mov eax, 0x8007000e
jmp 0x41c7d2
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004189b0
mov dword [ebp - 4], 1
jmp 0x41c761
mov ebx, dword [ebp]
test ebx, ebx
jne 0x41c76f
mov esi, 0x8007000e
jmp 0x41c7ae
call dword [0x4e0000]
mov ecx, dword [ebp - 0x20]
push esi
push ebx
push esi
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x41c790
call fcn.00416c20
jmp 0x41c7ac
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041be20
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x41c7d0
lea ecx, [ebp]
call fcn.00422d10
jmp 0x41c7d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0048e5b2
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x422020
Capabilities:
Connect socket

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
cmp byte [esi + 0x44], 0
je 0x422035
mov al, 1
pop esi
add esp, 0x2c
ret 8
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
push ebx
mov bl, 1
jne 0x42204a
pop ebx
xor al, al
pop esi
add esp, 0x2c
ret 8
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push 0
push 0
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x4220b4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4220af
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4220b2
push 0x2c
push eax
lea edx, [esp + 0x10]
push edx
call sub.MSVCR80.dll_memset
mov ecx, dword [esi + 0x40]
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0
push ecx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4220b4
mov dword [esi + 0x48], eax
xor bl, bl
mov byte [esi + 0x44], bl
mov al, bl
pop ebx
pop esi
add esp, 0x2c
ret 8

Function at 0x4220d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
test eax, eax
je 0x4220fc
mov dword [esi + 0x48], 0x2749
pop esi
xor al, al
pop ebx
add esp, 0x14
ret 0xc
mov edx, dword [esi + 8]
push 0
push edx
call ebx
cmp eax, 0x102
jne 0x42211c
mov dword [esi + 0x48], 0x2734
pop esi
xor al, al
pop ebx
add esp, 0x14
ret 0xc
push ebp
push edi
mov edi, dword [esp + 0x30]
lea ebp, [esi + 0x28]
push ebp
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 0x40]
push 0
push edi
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x42216f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x4221b7
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 8]
push ecx
push edx
call ebx
test eax, eax
jne 0x4221ba
mov edx, dword [esi + 0x40]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
push 0
push edi
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x4221b1
push ebp
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0x14
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0x14
ret 0xc
Function at 0x4221d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push ecx
call edi
test eax, eax
je 0x4221fc
pop edi
mov dword [esi + 0x48], 0x2749
xor al, al
pop esi
add esp, 0x20
ret 8
mov edx, dword [esi + 4]
push ebx
xor ebx, ebx
push ebx
push edx
call edi
cmp eax, 0x80
jne 0x42221f
pop ebx
pop edi
mov dword [esi + 0x48], 0x2734
xor al, al
pop esi
add esp, 0x20
ret 8
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ecx, dword [edi]
push ebp
mov dword [esp + 0x18], eax
xor eax, eax
lea ebp, [esi + 0x10]
push ebp
mov dword [esp + 0x18], ecx
mov dword [edi], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esi + 0x40]
lea eax, [esp + 0x18]
push eax
push edi
push 1
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x422294
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x4222e0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4222e3
mov ecx, dword [esi + 0x40]
lea edx, [esp + 0x10]
push edx
push ebx
push edi
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x24], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x4222da
push ebp
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
mov al, bl
pop ebx
pop edi
pop esi
add esp, 0x20
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
mov al, bl
pop ebx
pop edi
pop esi
add esp, 0x20
ret 8

Function at 0x4223b0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0xa0
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push 0x9a
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x9b
lea ecx, [esp + 8]
push ecx
xor esi, esi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x422420
lea edx, [esp + 4]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x422420
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0048e5b2
add esp, 0xa0
ret
mov ecx, dword [esp + 0xa0]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0048e5b2
add esp, 0xa0
ret