joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408e3c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408fa3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040718c
cmp si, word [0x4787dc]
jb 0x408ed6
cmp si, word [0x4789dc]
ja 0x408ed6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408ed6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4787dc]
jae 0x408eb0
mov edi, ebx
dec edi
jmp 0x408ed1
cmp si, word [ebx*8 + 0x4787dc]
jbe 0x408ec0
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408ed1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4787e0]
call fcn.00408d4c
jmp 0x408ed6
cmp edi, dword [ebp - 0xc]
jae 0x408e9a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408f85
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408f85
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407374
push dword [ebp - 0x164]
push 0x408fc0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407374
push dword [ebp - 0x168]
push 0x408fd0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407374
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0040772c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408faa
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407184
ret
Function at 0x40915c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409261
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x480b54
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x480b6c]
jne 0x4091a8
mov eax, esi
mov edx, 0x480b70
mov ecx, 0x55
call fcn.00407374
push 0x480b54
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40924b
push 0x480b54
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.0040718c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409219
cmp byte [0x480b50], 0
je 0x4091de
mov edx, esi
mov eax, ebx
call fcn.0040903c
jmp 0x409219
mov edx, esi
mov eax, ebx
call fcn.00408e3c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409219
cmp dword [esi], 0
je 0x409202
mov eax, esi
mov edx, 0x40927c
call fcn.00407588
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408e3c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407588
push 0x480b54
call sub.kernel32.dll_EnterCriticalSection
mov word [0x480b6c], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407218
push eax
push 0x480b70
call sub.kernel32.dll_lstrcpynW
push 0x480b54
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409268
lea eax, [ebp - 4]
call fcn.0040717c
ret
Function at 0x4094a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407174
xor eax, eax
push ebp
push 0x409685
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4094e0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4094fa
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407218
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40966f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409694
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409589
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409694
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409589
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4096c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409589
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4096fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40966f
xor eax, eax
push ebp
push 0x409668
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004092a4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4095f8
mov eax, dword [ebp - 0x10]
call fcn.00404244
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407338
jmp 0x409643
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40973c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409643
mov eax, dword [ebp - 0x10]
call fcn.00404244
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40973c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407338
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40966f
cmp dword [ebp - 8], 0
je 0x40965e
mov eax, dword [ebp - 8]
call fcn.00404260
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40968c
lea eax, [ebp - 4]
call fcn.0040717c
ret
Function at 0x409950
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00407174
mov eax, dword [ebp - 0x21c]
call fcn.00407174
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409aef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.0040718c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00407218
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x4099f0
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409a02
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4099ed
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409abb
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409a2b
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.004094a0
cmp dword [ebp - 0x220], 0
je 0x409a63
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409844
pop ecx
mov ebx, eax
jmp 0x409abb
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0040915c
mov eax, dword [ebp - 0x224]
call fcn.00409844
pop ecx
mov ebx, eax
test bl, bl
jne 0x409aae
cmp byte [0x480b50], 0
jne 0x409aae
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0040915c
mov eax, dword [ebp - 0x228]
call fcn.00409844
pop ecx
mov ebx, eax
test bl, bl
jne 0x409abb
push ebp
call fcn.004098f4
pop ecx
mov ebx, eax
test bl, bl
je 0x409ad1
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407374
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409af6
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407184
ret

Function at 0x40a238
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x40ba54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x480c48
push 0xa
push 0x40bae8
mov eax, dword [0x480c38]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40ba78
call fcn.004168c8
push ebx
mov eax, dword [0x480c38]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40ba8f
call fcn.004168c8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40baa1
call fcn.004168c8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x480c4c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x480c50], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x480c54], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x480c58], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x480c5c], ecx
add edx, dword [eax + 0x14]
mov dword [0x480c60], edx
pop esi
pop ebx
ret

Function at 0x40f484
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40f52d
test eax, edx
je 0x40f530
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40f4ad
push edx
mov edx, eax
mov eax, esp
call fcn.00407390
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40f4c3
push eax
lea eax, [esp + 8]
call fcn.00407390
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40f4d2
movzx eax, word [eax]
sub eax, ecx
jmp 0x40f4f9
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40f513
add ecx, 4
js 0x40f4ea
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40f510
push eax
mov eax, ecx
mov edx, 2
call fcn.0040649c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40f4f7
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40f4f9
xor eax, eax
ret
test eax, eax
je 0x40f540
test edx, edx
jne 0x40f494
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x410814
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00407218
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x410832
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x410853
cmp ebx, 3
je 0x410853
cmp ebx, 0x7b
je 0x410853
mov eax, esi
call fcn.004107d4
test al, al
jne 0x410857
invalid

Function at 0x41085c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407218
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x410875
test al, 0x10
jne 0x410879
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x413ea4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x413edd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004072c8
jmp 0x413ee6
mov eax, ebx
mov edx, esi
call fcn.0040718c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413ef0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x413f12
movzx eax, word [esp]
jmp 0x413f14
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4146a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4147c9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004144b4
mov esi, eax
mov eax, dword [0x47d58c]
cmp byte [eax], 0
je 0x414771
mov eax, dword [0x47d410]
call fcn.00404970
call fcn.0040438c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41467c]
call fcn.00408774
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4147e4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x4147ad
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x47d3dc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x480c38]
call fcn.0040892c
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4147d0
lea eax, [ebp - 4]
mov edx, dword [0x41467c]
call fcn.00408874
ret
Function at 0x416770
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406848
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar
mov edi, eax
cmp edi, 0x104
jbe 0x41671a
mov eax, edi
add eax, eax
call fcn.00404244
mov esi, eax
jmp 0x41671c
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x416755
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41673f
mov eax, esp
cmp esi, eax
je 0x416762
mov eax, esi
call fcn.00404260
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41679c
cmp bl, 0
je 0x416798
cmp bl, 0x41
jl 0x416793
cmp bl, 0x5a
jg 0x416793
or bl, 0x20
xor al, bl
inc esi
jmp 0x416777
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4166dc

Function at 0x438558
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4385f6
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x4385ba
cmp byte [ebx + 0x10], 0
jne 0x4385ba
cmp byte [ebx + 0x3c], 0
jne 0x4385ba
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4385db
lea edx, [ebp - 4]
mov eax, dword [0x47d554]
call fcn.0040a1c4
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4299f4]
call fcn.004147e8
call fcn.00405c90
jmp 0x4385db
lea edx, [ebp - 8]
mov eax, dword [0x47d554]
call fcn.0040a1c4
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4299f4]
call fcn.004147e8
call fcn.00405c90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4385fd
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407184
ret

Function at 0x438e74
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x438ec2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004384dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x438edb
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x438ee4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004384dc
dec esi
jne 0x438f06
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x43c90c
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
cmp byte [ebx + 0x34], 0
jne 0x43c98c
movzx eax, word [ebx + 0x42]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [eax*4 + 0x4790b4]
push eax
movzx eax, byte [ebx + 0x40]
mov eax, dword [eax*4 + 0x479054]
push eax
call sub.wsock32.dll_socket
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov esi, eax
mov dword [ebx + 0x44], esi
inc esi
setne al
mov byte [ebx + 0x34], al
test al, al
je 0x43c98c
cmp byte [ebx + 0x35], 1
jne 0x43c977
mov dword [esp], 1
push esp
push 0x8004667e
mov eax, dword [ebx + 0x44]
push eax
call sub.wsock32.dll_ioctlsocket
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
xor eax, eax
mov dword [ebx + 0x38], eax
xor eax, eax
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov si, 0xfff0
call fcn.0040545c
pop edx
pop esi
pop ebx
ret

Function at 0x43c9e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
push edi
push esi
mov eax, dword [ebx + 0x44]
push eax
call sub.wsock32.dll_recv
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
pop edi
pop esi
pop ebx
ret
Function at 0x43cba8
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
je 0x43cd2a
cmp dword [ebp - 8], 0
je 0x43cbf9
lea ebx, [ebp - 0x120]
lea eax, [ebp - 0x120]
call fcn.0043a5f8
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.0043a5e8
jmp 0x43cbfb
xor ebx, ebx
cmp dword [ebp - 0xc], 0
je 0x43cc25
lea esi, [ebp - 0x224]
lea eax, [ebp - 0x224]
call fcn.0043a5f8
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.0043a5e8
jmp 0x43cc27
xor esi, esi
cmp dword [ebp + 0xc], 0
je 0x43cc54
lea eax, [ebp - 0x328]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x328]
call fcn.0043a5f8
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.0043a5e8
jmp 0x43cc59
xor eax, eax
mov dword [ebp - 0x10], eax
test edi, edi
jl 0x43cc85
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x43cc8a
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x43ccca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
inc eax
push eax
call sub.wsock32.dll_select
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
setg al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43ccd6
cmp dword [ebp - 8], 0
je 0x43ccf2
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.0043a5d0
mov edx, dword [ebp - 8]
mov byte [edx], al
cmp dword [ebp - 0xc], 0
je 0x43cd0e
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.0043a5d0
mov edx, dword [ebp - 0xc]
mov byte [edx], al
cmp dword [ebp + 0xc], 0
je 0x43cd2a
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.0043a5d0
mov edx, dword [ebp + 0xc]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea ecx, [ebp - 4]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x38]
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
mov eax, dword [ebx + 0x44]
push eax
call sub.wsock32.dll_send
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
cmp eax, 0xffffffff
je 0x43cd75
add dword [ebx + 0x3c], eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x43d1ac
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x43d28f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00406478
test ebx, ebx
je 0x43d26d
movzx eax, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x43d203
mov eax, ebx
call fcn.00406be8
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x43d279
mov eax, esi
mov edx, ebx
call fcn.004064cc
jmp 0x43d279
mov eax, ebx
call fcn.00406be8
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x43d279
mov ebx, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
movzx eax, byte [edi]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
movzx eax, byte [edi + 1]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
movzx eax, byte [edi + 2]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
movzx eax, byte [edi + 3]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x24]
mov ecx, 3
mov eax, 0x43d2ac
call fcn.00410eb4
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, 0
call fcn.004073b8
jmp 0x43d279
mov eax, esi
mov edx, 0x43d2d0
call fcn.004064cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d296
lea eax, [ebp - 4]
call fcn.0040717c
ret

Function at 0x43d400
Capabilities:
Get hostname

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00406478
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jne 0x43d43f
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
push 0
call fcn.004067e0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x43f7cc
Capabilities:
Initialize winsock library

Disassembly:
push 0x483124
push 2
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x43f7f2
mov ecx, 0x43f800
mov dl, 1
mov eax, dword [0x43a9ec]
call fcn.004147e8
call fcn.00405c90
ret