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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x50e7f8]
cmp byte [eax + 0xc], 0
je 0x45fcd5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45fcce
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x513c9c], 0
jne 0x45fbbc
push 0x45fcdc
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x45fce4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x513c9c], eax
cmp dword [0x505934], 0
jne 0x45fcb7
push 0x45fcf4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x505934], eax
cmp dword [0x505934], 0
je 0x45fcb7
push 0x45fd00
mov eax, dword [0x505934]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x513ca0], eax
push 0x45fd10
mov eax, dword [0x505934]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x513ca4], eax
push 0x45fd24
mov eax, dword [0x505934]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x513ca8], eax
push 0x45fd3c
mov eax, dword [0x505934]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x513cac], eax
push 0x45fd54
mov eax, dword [0x505934]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x513cb0], eax
push 0x45fd68
mov eax, dword [0x505934]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x513cb4], eax
push 0x45fd80
mov eax, dword [0x505934]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x513cb8], eax
push 0x45fd98
mov eax, dword [0x505934]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x513cbc], eax
push 0x45fdb4
mov eax, dword [0x505934]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x513cc0], eax
push 0x45fdc0
mov eax, dword [0x505934]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x513cc4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fcd5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4660d8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
test bl, bl
je 0x4660f9
test edi, 0x40000
je 0x466113
test bl, bl
jne 0x466194
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x466194
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x466146
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x46615b
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x46616a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x46617b
cmp byte [esp + 2], 0
je 0x466194
cmp byte [esp + 2], 0
je 0x46618c
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x466194
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x466438
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 0x46645e
mov eax, esp
push eax
push 0x466400
call sub.user32.dll_EnumWindows
jmp 0x466471
mov eax, esp
push eax
push 0x4663e0
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 0x4664fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x466550]
test si, 4
je 0x466511
or bl, 1
test si, 8
je 0x46651b
or bl, 4
test si, 1
je 0x466525
or bl, 8
test si, 2
je 0x46652f
or bl, 0x10
test si, 0x10
je 0x466539
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x466548
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x466554
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x466590]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46656e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46657d
or bl, 4
test esi, 0x20000000
je 0x466588
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4665e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00466594
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret
Function at 0x46e638
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46e64a
add esp, 0xfffffff0
call fcn.00404888
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004227cc
mov eax, dword [0x50e164]
mov dword [eax + 4], ebx
mov dword [eax], 0x46e9dc
mov eax, dword [0x50e174]
mov dword [eax + 4], ebx
mov dword [eax], 0x46e9e8
mov eax, ebx
call fcn.0046e9f4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4189c8]
call fcn.00404534
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4189c8]
call fcn.00404534
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4189c8]
call fcn.00404534
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4189c8]
call fcn.00404534
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4189c8]
call fcn.00404534
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, 0x469e80
push eax
push 0
push 0
mov eax, dword [0x50e420]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x427f4c]
call fcn.00429840
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x427f4c]
call fcn.00429840
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x427f4c]
call fcn.00429840
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046eefc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46ed84
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46ed84
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46ed84
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46e787
call fcn.004048e0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46eb68
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 0x46ed13
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46ecf4
mov dl, 1
mov eax, dword [0x419034]
call fcn.00404534
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00405488
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46ece3
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.0045fec4
test al, al
je 0x46ecd6
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, 0x46ed24
lea eax, [ebp - 0x254]
call fcn.0040bad0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46ecd6
xor eax, eax
push ebp
push 0x46eccf
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 0x46ed5c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46ecb8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004056f8
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 0x46ecb8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004056f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ecd6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46ebd9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041dde0
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 0x46ed1a
lea eax, [ebp - 0x260]
call fcn.00405488
ret

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

Disassembly:
push ecx
mov eax, dword [0x513ce0]
cmp byte [eax + 0xad], 0
jne 0x46f745
cmp dword [0x513cfc], 0
jne 0x46f706
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46f690
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x513cfc], eax
cmp dword [0x513cf8], 0
jne 0x46f721
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x513cf8], eax
cmp dword [0x513d00], 0
jne 0x46f745
push esp
push 0
push 0
push 0x46f634
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x513d00], eax
pop edx
ret
Function at 0x46f974
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46f98b
add esp, 0xfffffff0
call fcn.00404888
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004227cc
mov eax, dword [0x50e3f4]
cmp word [eax + 2], 0
jne 0x46f9b3
mov eax, dword [0x50e3f4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004716d4
mov eax, dword [0x50e54c]
cmp word [eax + 2], 0
jne 0x46f9cd
mov eax, dword [0x50e54c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004718e0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4189c8]
call fcn.00404534
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4189c8]
call fcn.00404534
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4189c8]
call fcn.00404534
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 [0x428afc]
call fcn.004310bc
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x46fb84
mov eax, dword [0x50e23c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00431490
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x471fa4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x50e23c]
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.0040fa98
test eax, eax
je 0x46fad4
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040b0d8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040facc
test eax, eax
je 0x46fae8
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.004056f8
mov byte [ebx + 0xd4], 0
push ebx
push 0x471148
call fcn.00423948
mov dword [ebx + 0xc8], eax
mov eax, dword [0x50dfd8]
cmp byte [eax], 0
jne 0x46fb39
mov eax, ebx
call fcn.0046fcc8
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.004721b8
mov eax, ebx
call fcn.00472d1c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46fb79
call fcn.004048e0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ff48
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x46ffe7
cmp dword [ebx + 0x94], 0
jne 0x46ffe1
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46fed0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46ffe1
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 0x46ffa7
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46ffe1
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.0041b1c4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46ffb6
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x513ce0]
cmp dword [eax + 0x30], 0
je 0x47035d
test bl, bl
jne 0x4702ae
cmp dword [esi + 0x9c], 0
jne 0x4702a3
mov eax, esi
call fcn.00472b98
push eax
push 0x47012c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x470274
mov eax, dword [0x513ce0]
call fcn.00473278
test al, al
je 0x470274
mov eax, dword [0x513d04]
call fcn.0040676c
mov edi, eax
cmp edi, 0
jl 0x470274
push 0
mov eax, dword [0x513d04]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x47025e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4702a3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041b1c4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x470283
inc dword [esi + 0x9c]
jmp 0x47035d
cmp dword [esi + 0x9c], 0
jle 0x47035d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x47035d
cmp dword [esi + 0x44], 0
je 0x470309
mov eax, dword [0x513ce0]
call fcn.00473278
test al, al
je 0x470309
mov eax, dword [0x513d04]
call fcn.0040676c
mov edi, eax
cmp edi, 0
jl 0x470309
push 5
mov eax, dword [0x513d04]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4702f3
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x470338
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041b1c4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x470318
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x513d04
mov ecx, 1
mov edx, dword [0x47010c]
call fcn.00406920
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x470e44
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 0x470eae
mov eax, ebx
call fcn.00473278
test al, al
jne 0x470eae
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.00405578
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x470e9b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x470ebb
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004054dc
jmp 0x470ebb
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004054dc
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x47239c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47240a
mov eax, esi
call fcn.0045aab0
test al, al
je 0x47240a
mov eax, dword [ebx + 0x84]
call fcn.0045a710
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47240a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4723fe
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045a710
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004524a0
jmp 0x47240a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004721d8
pop esi
pop ebx
ret

Function at 0x47445c
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 0x4744e5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x513d14
push 0x202
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4744cf
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040e20c
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, 0x4744fc
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x50e620]
mov dl, 1
mov eax, dword [0x473448]
call fcn.0040eb48
call fcn.00404dd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4744ec
lea eax, [ebp - 0x1c]
call fcn.00405488
ret

Function at 0x474acc
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x474b2c]
cmp al, byte [ebx + 0x28]
je 0x474af3
mov esi, 0x401
mov eax, ebx
call fcn.00474c30
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 [0x474b2c]
cmp al, byte [ebx + 0x28]
jne 0x474b26
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x474bbc
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00474acc
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00404760
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, 0x474c28
mov eax, ebx
call fcn.004743a0
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x474c19
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.00404760
pop esi
pop ebx
pop ebp
ret

Function at 0x474c50
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov eax, ebx
call fcn.00405918
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, 4
call fcn.00403bd0
test ebx, ebx
je 0x474c9d
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [ebp - 8], cl
movzx ecx, byte [edx + 1]
mov byte [ebp - 7], cl
movzx ecx, byte [edx + 2]
mov byte [ebp - 6], cl
movzx eax, byte [edx + 3]
mov byte [ebp - 5], al
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x474d7c
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 0x474dad
mov ecx, dword [0x50e7c4]
mov dl, 1
mov eax, dword [0x473448]
call fcn.0040eb0c
call fcn.00404dd8
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 0x474dda
mov ecx, dword [0x50e3e0]
mov dl, 1
mov eax, dword [0x473448]
call fcn.0040eb0c
call fcn.00404dd8
xor eax, eax
push ebp
push 0x474e5b
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.00404760
cmp byte [ebp + 8], 0
je 0x474e35
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.00474ce4
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.00474b30
jmp 0x474e51
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.0047469c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x474e78
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x474e84
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 0x474eb5
mov ecx, dword [0x50e498]
mov dl, 1
mov eax, dword [0x473448]
call fcn.0040eb0c
call fcn.00404dd8
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 0x474ee2
mov ecx, dword [0x50e3e0]
mov dl, 1
mov eax, dword [0x473448]
call fcn.0040eb0c
call fcn.00404dd8
xor eax, eax
push ebp
push 0x474f5e
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.00404760
cmp byte [ebp + 8], 0
je 0x474f3a
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.00474ce4
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.00474bbc
jmp 0x474f54
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.0047469c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x474f7b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc