joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467134
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4f29cc]
cmp byte [eax + 0xc], 0
je 0x4672a1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46729a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f7ca8], 0
jne 0x467188
push 0x4672a8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4672b0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f7ca8], eax
cmp dword [0x4f0ac4], 0
jne 0x467283
push 0x4672c0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4f0ac4], eax
cmp dword [0x4f0ac4], 0
je 0x467283
push 0x4672cc
mov eax, dword [0x4f0ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f7cac], eax
push 0x4672dc
mov eax, dword [0x4f0ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f7cb0], eax
push 0x4672f0
mov eax, dword [0x4f0ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f7cb4], eax
push 0x467308
mov eax, dword [0x4f0ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f7cb8], eax
push 0x467320
mov eax, dword [0x4f0ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f7cbc], eax
push 0x467334
mov eax, dword [0x4f0ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f7cc0], eax
push 0x46734c
mov eax, dword [0x4f0ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f7cc4], eax
push 0x467364
mov eax, dword [0x4f0ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f7cc8], eax
push 0x467380
mov eax, dword [0x4f0ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f7ccc], eax
push 0x46738c
mov eax, dword [0x4f0ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f7cd0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4672a1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x46ce9c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp + 1], cl
mov byte [esp], dl
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
mov eax, dword [0x4f7ce0]
cmp esi, dword [eax + 0x30]
jne 0x46cec3
or edi, 0x8000000
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x46cef2
mov eax, dword [0x4f7ce0]
cmp esi, dword [eax + 0x30]
jne 0x46ceee
mov eax, dword [0x4f7ce0]
cmp byte [eax + 0x5b], 0
jne 0x46cef2
xor eax, eax
jmp 0x46cef4
mov al, 1
mov byte [esp + 2], al
movzx eax, byte [esp + 2]
or al, bl
je 0x46cf09
push 0
push esi
call sub.user32.dll_ShowWindow
cmp byte [esp], 0
je 0x46cf20
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x46cf2f
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp + 1]
and al, byte [esp + 2]
jne 0x46cf3e
test bl, bl
je 0x46cf54
test bl, bl
je 0x46cf4c
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x46cf54
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x46d1f8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x46d21e
mov eax, esp
push eax
push 0x46d1c0
call sub.user32.dll_EnumWindows
jmp 0x46d231
mov eax, esp
push eax
push 0x46d1a0
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x46d2bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x46d310]
test si, 4
je 0x46d2d1
or bl, 1
test si, 8
je 0x46d2db
or bl, 4
test si, 1
je 0x46d2e5
or bl, 8
test si, 2
je 0x46d2ef
or bl, 0x10
test si, 0x10
je 0x46d2f9
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46d308
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46d314
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x46d350]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46d32e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46d33d
or bl, 4
test esi, 0x20000000
je 0x46d348
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x47521c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x47522e
add esp, 0xfffffff0
call fcn.00404104
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00427620
mov eax, dword [0x4f22d4]
mov dword [eax + 4], ebx
mov dword [eax], 0x4755c0
mov eax, dword [0x4f22e4]
mov dword [eax + 4], ebx
mov dword [eax], 0x4755cc
mov eax, ebx
call fcn.004755d8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b7f4]
call fcn.00403d70
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b7f4]
call fcn.00403d70
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b7f4]
call fcn.00403d70
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b7f4]
call fcn.00403d70
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b7f4]
call fcn.00403d70
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x470c88
push eax
push 0
push 0
mov eax, dword [0x4f2590]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42c998]
call fcn.0042e1ec
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42c998]
call fcn.0042e1ec
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42c998]
call fcn.0042e1ec
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00475a08
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4758d8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4758d8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4758d8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47536b
call fcn.0040415c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4756bc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x475867
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x475848
mov dl, 1
mov eax, dword [0x41be60]
call fcn.00403d70
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404cc0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x475837
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00467490
test al, al
je 0x47582a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x475878
lea eax, [ebp - 0x254]
call fcn.0040aac0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47582a
xor eax, eax
push ebp
push 0x475823
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4758b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x47580c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f30
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x47580c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47582a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x47572d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00420a4c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47586e
lea eax, [ebp - 0x260]
call fcn.00404cc0
ret

Function at 0x4761e0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4f7ce0]
cmp byte [eax + 0xad], 0
jne 0x476251
cmp dword [0x4f7cfc], 0
jne 0x476212
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x47619c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4f7cfc], eax
cmp dword [0x4f7cf8], 0
jne 0x47622d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4f7cf8], eax
cmp dword [0x4f7d00], 0
jne 0x476251
push esp
push 0
push 0
push 0x476140
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4f7d00], eax
pop edx
ret
Function at 0x476424
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x47643b
add esp, 0xfffffff0
call fcn.00404104
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00427620
mov eax, dword [0x4f2564]
cmp word [eax + 2], 0
jne 0x476463
mov eax, dword [0x4f2564]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047803c
mov eax, dword [0x4f26e4]
cmp word [eax + 2], 0
jne 0x47647d
mov eax, dword [0x4f26e4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00478248
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b7f4]
call fcn.00403d70
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b7f4]
call fcn.00403d70
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41b7f4]
call fcn.00403d70
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x42d4a8]
call fcn.0043504c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x476634
mov eax, dword [0x4f238c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00435420
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x47890c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4f238c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040f050
test eax, eax
je 0x476584
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a408
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040f084
test eax, eax
je 0x476598
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404f30
mov byte [ebx + 0xd4], 0
push ebx
push 0x477b4c
call fcn.0042879c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4f2140]
cmp byte [eax], 0
jne 0x4765e9
mov eax, ebx
call fcn.00476778
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00478ae4
mov eax, ebx
call fcn.00479648
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x476629
call fcn.0040415c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4769f8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x476a97
cmp dword [ebx + 0x94], 0
jne 0x476a91
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x476980
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x476a91
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x476a57
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x476a91
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041e18c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x476a66
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x476cb0
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4f7ce0]
cmp dword [eax + 0x30], 0
je 0x476e0d
test bl, bl
jne 0x476d5e
cmp dword [esi + 0x9c], 0
jne 0x476d53
mov eax, esi
call fcn.004794c4
push eax
push 0x476bdc
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x476d24
mov eax, dword [0x4f7ce0]
call fcn.00479ba4
test al, al
je 0x476d24
mov eax, dword [0x4f7d04]
call fcn.004061dc
mov edi, eax
cmp edi, 0
jl 0x476d24
push 0
mov eax, dword [0x4f7d04]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x476d0e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x476d53
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041e18c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x476d33
inc dword [esi + 0x9c]
jmp 0x476e0d
cmp dword [esi + 0x9c], 0
jle 0x476e0d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x476e0d
cmp dword [esi + 0x44], 0
je 0x476db9
mov eax, dword [0x4f7ce0]
call fcn.00479ba4
test al, al
je 0x476db9
mov eax, dword [0x4f7d04]
call fcn.004061dc
mov edi, eax
cmp edi, 0
jl 0x476db9
push 5
mov eax, dword [0x4f7d04]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x476da3
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x476de8
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041e18c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x476dc8
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x4f7d04
mov ecx, 1
mov edx, dword [0x476bbc]
call fcn.00406390
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4778a0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x47790a
mov eax, ebx
call fcn.00479ba4
test al, al
jne 0x47790a
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404db0
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x4778f7
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x477917
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d14
jmp 0x477917
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d14
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x478cc8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x478d36
mov eax, esi
call fcn.004620c8
test al, al
je 0x478d36
mov eax, dword [ebx + 0x84]
call fcn.00461d18
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x478d36
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x478d2a
push 0
mov eax, dword [ebx + 0x84]
call fcn.00461d18
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00459ca0
jmp 0x478d36
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00478b04
pop esi
pop ebx
ret
Function at 0x49e05c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x49e0e5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4f7d6c
push 0x202
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x49e0cf
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040d880
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, 0x49e0fc
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4f27c4]
mov dl, 1
mov eax, dword [0x49d048]
call fcn.0040e1b0
call fcn.00404654
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e0ec
lea eax, [ebp - 0x1c]
call fcn.00404cc0
ret

Function at 0x49e6dc
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x49e738]
cmp al, byte [ebx + 0x28]
je 0x49e700
mov esi, 0x401
mov eax, ebx
call fcn.0049e834
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x49e738]
cmp al, byte [ebx + 0x28]
jne 0x49e730
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x49e7c4
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0049e6dc
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403f9c
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, eax
mov ecx, 0x49e82c
mov eax, ebx
call fcn.0049dfa0
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x49e81e
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403f9c
pop esi
pop ebx
ret

Function at 0x49e850
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0049e55c
xor eax, eax
push ebp
push 0x49e8cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x49e886
call fcn.00404700
jmp 0x49e8d2
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x49e8b5
movzx eax, word [ebp - 0x1a]
push eax
call sub.wsock32.dll_ntohs
movzx eax, ax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e8d2
mov eax, dword [ebp - 4]
call fcn.0049e568
ret
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x49ea30
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00405150
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403634
test ebx, ebx
je 0x49ea7f
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [esp + 4], cl
movzx ecx, byte [edx + 1]
mov byte [esp + 5], cl
movzx ecx, byte [edx + 2]
mov byte [esp + 6], cl
movzx eax, 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

Function at 0x49eb5c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x49eb8d
mov ecx, dword [0x4f299c]
mov dl, 1
mov eax, dword [0x49d048]
call fcn.0040e174
call fcn.00404654
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x49ebba
mov ecx, dword [0x4f254c]
mov dl, 1
mov eax, dword [0x49d048]
call fcn.0040e174
call fcn.00404654
xor eax, eax
push ebp
push 0x49ec3b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403f9c
cmp byte [ebp + 8], 0
je 0x49ec15
mov eax, dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0049eac4
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0049e73c
jmp 0x49ec31
mov eax, dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0049e294
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49ec58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49ec64
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x49ec95
mov ecx, dword [0x4f2618]
mov dl, 1
mov eax, dword [0x49d048]
call fcn.0040e174
call fcn.00404654
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x49ecc2
mov ecx, dword [0x4f254c]
mov dl, 1
mov eax, dword [0x49d048]
call fcn.0040e174
call fcn.00404654
xor eax, eax
push ebp
push 0x49ed3e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403f9c
cmp byte [ebp + 8], 0
je 0x49ed1a
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0049eac4
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0049e7c4
jmp 0x49ed34
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0049e294
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49ed5b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc