joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46eb06
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.00465691
test eax, eax
jne 0x46ecf6
mov edi, dword [edi + 4]
push ebx
mov ecx, esi
call fcn.00414e90
test byte [esi + 0x7c], 0x20
mov dword [ebp - 0x10], eax
mov ebx, 0x201
jne 0x46eb4a
cmp edi, ebx
je 0x46eb4a
cmp edi, 0x202
jne 0x46eca3
cmp edi, 0x200
jb 0x46eb5a
cmp edi, 0x209
jbe 0x46eb72
cmp edi, 0xa0
jb 0x46eca3
cmp edi, 0xa9
ja 0x46eca3
call fcn.0047279d
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x30
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0041a100
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp - 0x18]
mov dword [ebp - 0x48], 0x28
call dword [eax + 0x6c]
cmp dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], eax
je 0x46ebd0
push dword [ebp - 0x24]
call fcn.00418a5c
pop ecx
cmp edi, ebx
jne 0x46ebe3
test byte [ebp - 0x41], 0x80
je 0x46ebe3
mov dword [ebp - 8], 1
jmp 0x46ec01
and dword [ebp - 8], 0
cmp edi, ebx
je 0x46ec01
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x46ec01
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x78]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x46ec6d
cmp dword [ebp - 8], 0
jne 0x46ec6d
cmp edi, 0x202
jne 0x46ec2d
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xc8
push 0xe001
jmp 0x46ec55
test byte [esi + 0x78], 8
jne 0x46ec5e
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x46ec5e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx + 0x78]
je 0x46ec9a
push 0x12c
push 0xe000
mov ecx, esi
call fcn.0046e1b7
jmp 0x46ec9a
push dword [ebp - 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x160]
jmp 0x46ec9a
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x46ec80
cmp dword [ebp - 8], 0
je 0x46ec9a
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x78], eax
mov ecx, esi
call fcn.00467611
test eax, eax
pop ebx
je 0x46ecb5
cmp dword [eax + 0x64], 0
jne 0x46ecfb
cmp dword [ebp - 0x10], 0
je 0x46ecdd
mov edi, dword [ebp - 0x10]
push dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
test eax, eax
jne 0x46ecf6
mov ecx, edi
call fcn.004675d2
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x46ecbb
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46ecfb
push dword [ebp + 8]
mov ecx, esi
call fcn.004660ad
jmp 0x46ecfd
xor eax, eax
inc eax
jmp 0x46ecfd
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x46f0f6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x48bcd8]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x46f146
push dword [ebp + 8]
call fcn.0047382f
mov esi, eax
test esi, esi
je 0x46f16e
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x46f16e
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x47804c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.0041a0a4
leave
ret 0xc

Function at 0x471ac3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x48bcd8]
xor eax, dword [ebp + 4]
cmp dword [ebp + 0xc], 0x800
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x471b20
push 0x479d64
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0041a0a4
leave
ret
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x471aef
jmp 0x471b13
Function at 0x471b46
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x48bcd8]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x471beb
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0xc], ecx
call esi
push dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x471ced
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x471c9b
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push reloc.WSOCK32.dll_accept
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x471cee
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x471c90
cmp dword [ebp - 0x14], 1
jne 0x471c90
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push 0x479d74
push eax
call fcn.00419e24
add esp, 0xc
cmp eax, 1
jne 0x471c90
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x471cee
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x471cee
lea ecx, [ebp - 8]
push ecx
push 0x471b34
push 1
push 0x10
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 8], bx
je 0x471cee
movzx eax, word [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x471d14
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.00471ac3
cmp eax, ebx
pop ecx
pop ecx
jne 0x471d16
inc edi
cmp edi, esi
jl 0x471cfd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0041a0a4
leave
ret 4
Function at 0x471d28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x48b8b4
je 0x471de4
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x471dcc
mov esi, dword [ebx + 4]
jmp 0x471dc6
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x471db6
cmp dword [ebp - 0xc], 4
jne 0x471db6
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x471dae
or dword [eax + 0x9c], ecx
jmp 0x471db6
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x471d7a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x471d5d
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x4721b5
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x475558
call fcn.0041a160
sub esp, 0x110
mov eax, dword [0x48bcd8]
xor eax, dword [ebp + 4]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x472270
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, 0xff
jmp 0x472239
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00410b90
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call fcn.004721b5
mov ecx, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
setne byte [ebp - 0x11]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.0040aed0
cmp byte [ebp - 0x11], 0
jne 0x47224e
push ebx
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x18]
call edi
mov esi, eax
test esi, esi
je 0x4721fd
cmp esi, 0x103
pop edi
pop ebx
je 0x472260
cmp esi, 0x3f2
jne 0x472270
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
mov eax, esi
pop esi
call fcn.0041a0a4
leave
ret 8
Function at 0x472dcb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.00472777
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x472e0b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x472e0b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x472e0f
xor eax, eax
jmp 0x472e8c
movzx eax, word [esi + 6]
push ebx
shl eax, 2
push edi
push eax
call fcn.00469657
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x472e3d
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x472e2c
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00472a09
push edi
mov ebx, eax
call fcn.00469682
test ebx, ebx
pop ecx
je 0x472e7f
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00472c51
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00472cd8
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x4731ba
Capabilities:
Get thread local storage value

Disassembly:
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4731d7
mov ecx, dword [esp + 4]
cmp ecx, dword [eax + 8]
jge 0x4731d7
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ecx*4]
jmp 0x4731d9
xor eax, eax
ret 4

Function at 0x4732be
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4732f2
call fcn.0046383a
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x47335a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x473388
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x473423
cmp dword [esp + 0x14], ebx
je 0x473423
jmp 0x4733c5
push 0x10
call fcn.0047307f
cmp eax, ebx
je 0x47339e
mov ecx, eax
call fcn.004732b5
mov esi, eax
jmp 0x4733a0
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
push ebx
mov dword [edi + 0x14], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4733dc
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4733ec
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x4733f8
call fcn.0046383a
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0xc]
sub ecx, eax
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax*4]
push ebx
push eax
call fcn.0041a100
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8

Function at 0x4734e9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x473517
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x473535
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00473453
jmp 0x473535
mov eax, dword [esi + 0x14]
test eax, eax
je 0x473535
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00473453
test edi, edi
mov eax, edi
jne 0x47351f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x49df84]
test ecx, ecx
je 0x4735e8
jmp 0x4734e8
ret 8
Function at 0x473e11
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x48bcd8]
xor eax, dword [ebp + 4]
push esi
mov dword [ebp - 4], eax
mov esi, ecx
call dword [0x48b100]
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.0041a100
add esp, 0xc
cmp dword [ebp + 0xc], 0
mov word [ebp - 0x14], 2
jne 0x473e7c
push 0
call dword [sym.imp.WSOCK32.dll_htonl]
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00418549
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.0041a0a4
leave
ret 8
push dword [ebp + 0xc]
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x473e4f
push 0x2726
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
xor eax, eax
jmp 0x473e6c

Function at 0x473e99
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x48bcd8]
xor eax, dword [ebp + 4]
push esi
mov dword [ebp - 4], eax
mov esi, ecx
call dword [0x48b100]
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.0041a100
add esp, 0xc
push dword [ebp + 8]
mov word [ebp - 0x14], 2
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x473ef1
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x473f1b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
call dword [sym.imp.WSOCK32.dll_htons]
push 0x10
lea ecx, [ebp - 0x14]
mov word [ebp - 0x12], ax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x34]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.0041a0a4
leave
ret 8
push 0x2726
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
xor eax, eax
jmp 0x473f0b
Function at 0x4740cd
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
jne 0x4740ea
cmp dword [ebp + 0xc], edi
je 0x4741d0
push 1
push ebx
call fcn.00473d0f
test eax, eax
jne 0x4741d0
push esi
push edi
push ebx
call fcn.00473d0f
mov esi, eax
cmp esi, edi
jne 0x474127
push edi
push 0xffffffffffffffff
call fcn.00473d0f
push edi
mov esi, eax
push 0xffffffffffffffff
mov dword [esi + 4], ebx
call fcn.00473ff1
push edi
push esi
push dword [esi + 4]
call fcn.00473f2a
movzx eax, word [ebp + 0xc]
mov ebx, dword [ebp + 0xc]
shr ebx, 0x10
dec eax
je 0x474180
dec eax
je 0x474176
dec eax
dec eax
je 0x47416c
sub eax, 4
je 0x474162
sub eax, 8
je 0x474158
sub eax, 0x10
jne 0x4741cf
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x30]
jmp 0x4741cf
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x2c]
jmp 0x4741cf
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x28]
jmp 0x4741cf
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x24]
jmp 0x4741cf
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x20]
jmp 0x4741cf
mov eax, dword [esi + 4]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10c], 1
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x4741bd
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
cmp dword [ebp + 0xc], 1
je 0x4741c7
cmp ebx, edi
je 0x4741cf
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x1c]
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x100014a0
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
push esi
push 1
xor edi, edi
lea eax, [esp + 0xc]
push 2
push eax
mov dword [esp + 0x14], edi
mov word [0x1002b4dc], di
mov word [0x1002b4d8], di
call fcn.1000e456
mov eax, dword [esp + 0x14]
add esp, 0x10
cmp ax, 0xffff
jne 0x100014f8
push 1
push 0xffffffffffffffff
push esi
call fcn.1000ddaa
push esi
push 1
lea ecx, [esp + 0x18]
push 2
push ecx
call fcn.1000e456
mov eax, dword [esp + 0x20]
add esp, 0x1c
cmp ax, 0xffff
je 0x100014d2
cmp ax, 0x4949
je 0x10001528
cmp ax, 0x4d4d
je 0x10001533
cmp ax, 0xffd8
je 0x10001522
movzx dx, ah
mov dh, al
movzx eax, dx
cmp ax, 0xffd8
jne 0x10001569
mov word [0x1002b4d8], 1
xor ax, ax
pop edi
pop ecx
ret
mov word [0x1002b4dc], 1
jmp 0x1000153a
mov word [0x1002b4dc], di
push esi
push 1
lea eax, [esp + 0xc]
push 2
push eax
call fcn.1000e456
mov eax, dword [esp + 0x14]
add esp, 0x10
cmp ax, 0x2a00
je 0x10001595
movzx cx, ah
mov ch, al
movzx eax, cx
cmp ax, 0x2a00
mov dword [esp + 4], eax
je 0x10001570
or ax, 0xffff
pop edi
pop ecx
ret
xor edx, edx
cmp word [0x1002b4dc], di
push edi
setne dl
push edi
push esi
mov word [0x1002b4d8], dx
call fcn.1000ddaa
add esp, 0xc
mov ax, 1
pop edi
pop ecx
ret
xor eax, eax
cmp word [0x1002b4dc], di
push edi
sete al
push edi
push esi
mov word [0x1002b4d8], ax
call fcn.1000ddaa
add esp, 0xc
mov ax, 1
pop edi
pop ecx
ret

Function at 0x10001650
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, edi
call fcn.100028b0
cmp word [esi], 0xffff
jne 0x100016d6
push 1
push 0xffffffffffffffff
push edi
call fcn.1000ddaa
push edi
push 1
lea eax, [esp + 0x18]
push 2
push eax
mov dword [esp + 0x20], 0
call fcn.1000e456
mov ax, word [0x1002b4d8]
add esp, 0x1c
cmp ax, 1
jne 0x100016ab
cmp word [0x1002b4dc], 0
jne 0x100016c9
mov eax, dword [esp + 4]
movzx cx, ah
mov ch, al
movzx eax, cx
jmp 0x100016cd
test ax, ax
jne 0x100016c9
cmp word [0x1002b4dc], 1
jne 0x100016c9
mov eax, dword [esp + 4]
movzx dx, ah
mov dh, al
movzx eax, dx
jmp 0x100016cd
mov eax, dword [esp + 4]
cmp ax, 0xffff
mov word [esi], ax
je 0x10001662
movzx eax, word [esi]
cmp ax, 0xffe0
pop esi
jb 0x100016eb
cmp ax, 0xffef
ja 0x100016eb
xor ax, ax
pop ecx
ret
or ax, 0xffff
pop ecx
ret

Function at 0x100019e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push eax
push 1
lea ecx, [esp + 8]
push 2
push ecx
mov dword [esp + 0x10], 0
call fcn.1000e456
mov ax, word [0x1002b4d8]
add esp, 0x10
cmp ax, 1
jne 0x10001a1f
cmp word [0x1002b4dc], 0
jne 0x10001a3c
mov eax, dword [esp]
movzx dx, ah
mov dh, al
movzx eax, dx
pop ecx
ret
test ax, ax
jne 0x10001a3c
cmp word [0x1002b4dc], 1
jne 0x10001a3c
mov eax, dword [esp]
movzx cx, ah
mov ch, al
movzx eax, cx
pop ecx
ret
mov ax, word [esp]
pop ecx
ret