joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413e58
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
mov eax, 0x4d7dd4
call fcn.004b4ac0
xor edx, edx
mov dword [ebp - 0x44], edx
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x44c]
mov edx, dword [eax]
call dword [edx + 0xc4]
cmp al, 1
jne 0x413f3e
push 0
push connect
push 3
push 0
push 0
push connect
mov eax, dword [ebp - 0x30]
add eax, 0x41039
call fcn.00410e44
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
cmp edx, 0xffffffff
jne 0x413ecd
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x41401c
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
cmp eax, 0x10000
jl 0x413eff
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x41401c
push 0
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x44]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x44]
mov byte [eax + edx], 0
mov edx, dword [ebp - 0x30]
add edx, 0x31039
mov eax, dword [ebp - 0x30]
call fcn.00413e04
mov dword [ebp - 0x44], eax
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
jmp 0x41400f
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x44c]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
jne 0x41400f
mov word [ebp - 0x1c], 8
lea eax, [ebp - 4]
call fcn.00401e38
mov edx, eax
inc dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x3c8]
call fcn.0048c75c
lea eax, [ebp - 4]
call fcn.00412f68
cmp eax, 0x10000
setge dl
and edx, 1
push edx
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004c22fc
pop ecx
test cl, cl
je 0x413faf
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x41401c
mov word [ebp - 0x1c], 0x14
lea eax, [ebp - 8]
call fcn.00401e38
mov edx, eax
inc dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x3c8]
call fcn.0048c75c
lea eax, [ebp - 8]
call fcn.00410e44
push eax
mov edx, dword [ebp - 0x30]
add edx, 0x31039
push edx
call fcn.004b47e8
add esp, 8
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004c22fc
mov edx, dword [ebp - 0x30]
add edx, 0x31039
mov eax, dword [ebp - 0x30]
call fcn.00413e04
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x41ef30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
push 0
push connect
push 3
push 0
push 0
push connect
mov eax, dword [ebp + 0xc]
push dword [eax]
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, 0xffffffff
jne 0x41ef6a
mov eax, 4
jmp 0x41f086
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
inc ecx
push ecx
call fcn.004b404c
pop ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x41efa0
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
mov eax, 4
jmp 0x41f086
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 4]
call sub.KERNEL32.DLL_ReadFile
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov byte [ecx + eax], 0
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
push dword [edx + 4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
shl eax, 2
add eax, 0x4db475
push eax
push str.DOWNLOAD__s__s___d_
lea edx, [ebp - 0x418]
push edx
call fcn.004b70bc
add esp, 0x14
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [ebp - 0x18], ecx
push dword [ebp + 8]
call fcn.00419724
pop ecx
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x41f015
mov dword [ebp - 0x18], 1
jmp 0x41f06c
push dword [ebp - 0x10]
lea edx, [ebp - 0x418]
push edx
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00419878
add esp, 0x10
test al, al
jne 0x41f03a
mov dword [ebp - 0x18], 2
jmp 0x41f06c
push 3
push 3
push 1
call fcn.004193e8
add esp, 0xc
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00419878
add esp, 0x10
test al, al
jne 0x41f067
mov dword [ebp - 0x18], 2
call fcn.004194bc
push dword [ebp - 0x14]
call fcn.004b405c
pop ecx
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00419854
add esp, 8
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x420888
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push esi
push edi
mov esi, 0x4dcf10
lea edi, [ebp - 0x1c]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 1
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4208bd
xor eax, eax
jmp 0x42097a
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x420960
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e5
jne 0x420959
push 0xffffffffffffffff
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_WaitForSingleObject
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
sub eax, 0xffffffff
je 0x42094a
dec eax
je 0x42090b
dec eax
je 0x42094a
sub eax, 0x101
je 0x42094a
jmp 0x42094a
push 0
call sub.KERNEL32.DLL_SetLastError
push 0
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetOverlappedResult
test eax, eax
jne 0x420939
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e3
jne 0x420939
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
cmp edx, ecx
je 0x42096f
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x42096f
push dword [ebp + 8]
call sub.KERNEL32.DLL_CancelIo
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x42096f
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x42096f
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
cmp eax, edx
je 0x42096f
xor ecx, ecx
mov dword [ebp - 4], ecx
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420980
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push esi
push edi
mov esi, 0x4dcf24
lea edi, [ebp - 0x24]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
test edx, edx
jne 0x4209ba
xor eax, eax
jmp 0x420aa8
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 8]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
setne dl
and edx, 1
mov byte [ebp - 9], dl
mov cl, byte [ebp - 9]
test cl, cl
jne 0x420a39
push dword [0x4dcf0c]
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_WaitForSingleObject
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, 0xffffffff
je 0x420a24
dec eax
je 0x420a07
sub eax, 0x102
je 0x420a24
jmp 0x420a24
push 1
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetOverlappedResult
test eax, eax
jne 0x420a39
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x420a39
mov dl, byte [ebp + 0xc]
cmp dl, 1
jne 0x420a34
push dword [ebp + 8]
call sub.KERNEL32.DLL_CancelIo
xor ecx, ecx
mov dword [ebp - 8], ecx
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp edx, ecx
jae 0x420a82
mov eax, dword [ebp - 4]
mov dl, byte [ebp + eax - 0x64]
mov ecx, dword [0x4f6014]
mov byte [ecx + 0x4e6014], dl
inc dword [0x4f6014]
mov eax, dword [0x4f6014]
cmp eax, 0x10000
jl 0x420a75
xor edx, edx
mov dword [0x4f6014], edx
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp ecx, eax
jb 0x420a48
mov edx, dword [0x4f601c]
mov ecx, dword [ebp - 8]
add edx, ecx
mov dword [0x4f601c], edx
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 8]
test eax, eax
jne 0x420aa6
xor eax, eax
jmp 0x420aa8
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push esi
push edi
mov esi, 0x4dcf40
lea edi, [ebp - 0x24]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 1
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x420ec5
xor eax, eax
jmp 0x420f77
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 0x24]
push ecx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x420f5e
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e5
jne 0x420f5a
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x10]
push edx
push 1
call sub.KERNEL32.DLL_WaitForMultipleObjects
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, 0xffffffff
je 0x420f56
dec ecx
je 0x420f1b
dec ecx
je 0x420f6c
sub ecx, 0x101
je 0x420f56
jmp 0x420f56
push 0
call sub.KERNEL32.DLL_SetLastError
push 0
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x24]
push edx
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetOverlappedResult
test eax, eax
jne 0x420f48
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e3
jne 0x420f48
xor eax, eax
jmp 0x420f77
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
cmp edx, ecx
je 0x420f6c
xor eax, eax
jmp 0x420f77
xor eax, eax
jmp 0x420f77
xor eax, eax
jmp 0x420f77
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
cmp edx, ecx
je 0x420f6c
xor eax, eax
jmp 0x420f77
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push esi
push edi
mov esi, 0x4dcf54
lea edi, [ebp - 0x28]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 8], eax
push 0
push 0
push 1
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
test edx, edx
jne 0x420fba
xor eax, eax
jmp 0x42109f
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 8]
push ecx
push 1
lea eax, [ebp - 0x11]
push eax
push dword [ebp + 8]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
setne dl
and edx, 1
mov byte [ebp - 9], dl
mov cl, byte [ebp - 9]
test cl, cl
jne 0x421031
push dword [0x4dcf3c]
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_WaitForSingleObject
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, 0xffffffff
je 0x421024
dec eax
je 0x421007
sub eax, 0x102
je 0x421024
jmp 0x421024
push 0
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x28]
push ecx
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetOverlappedResult
test eax, eax
jne 0x421031
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x421031
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 8], edx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
cmp eax, edx
jae 0x42107b
mov ecx, dword [ebp - 4]
mov al, byte [ebp + ecx - 0x11]
mov edx, dword [0x506020]
mov byte [edx + 0x4f6020], al
inc dword [0x506020]
mov ecx, dword [0x506020]
cmp ecx, 0x10000
jl 0x42106e
xor eax, eax
mov dword [0x506020], eax
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp edx, ecx
jb 0x421040
mov eax, dword [0x506028]
mov edx, dword [ebp - 8]
add eax, edx
mov dword [0x506028], eax
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x42109d
xor eax, eax
jmp 0x42109f
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x424de4
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0044ecd0
mov eax, dword [ebp - 8]
call fcn.0044ecd0
xor eax, eax
push ebp
push 0x424e79
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [esi], 2
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00424e88
mov eax, dword [ebp - 0xc]
call fcn.0044ece0
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [esi + 4], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00424f60
push eax
call sub.WSOCK32.DLL_htons
mov word [esi + 2], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424e80
lea eax, [ebp - 0xc]
call fcn.0044e830
lea eax, [ebp - 8]
call fcn.0044e830
lea eax, [ebp - 4]
call fcn.0044e830
ret

Function at 0x424e88
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov esi, ecx
mov ebx, edx
mov eax, esi
call fcn.0044e830
test ebx, ebx
je 0x424f29
mov al, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x424ec4
mov eax, ebx
call fcn.0044ece0
push eax
call sub.WSOCK32.DLL_inet_addr
inc eax
je 0x424f35
mov eax, esi
mov edx, ebx
call fcn.0044e884
jmp 0x424f35
mov eax, ebx
call fcn.0044ece0
push eax
call sub.WSOCK32.DLL_gethostbyname
test eax, eax
je 0x424f35
mov ebx, eax
push esi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
xor eax, eax
mov al, byte [edi]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
xor eax, eax
mov al, byte [edi + 1]
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], 0
xor eax, eax
mov al, byte [edi + 2]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], 0
xor eax, eax
mov al, byte [edi + 3]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], 0
lea edx, [esp + 4]
mov ecx, 3
mov eax, 0x424f44
call fcn.0043daec
jmp 0x424f35
mov eax, esi
mov edx, 0x424f58
call fcn.0044e884
add esp, 0x20
pop edi
pop esi
pop ebx
ret
Function at 0x42ba1c
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 0x42baa5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x516700
push 0x101
call sub.WSOCK32.DLL_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x42ba8f
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0043fd78
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, 0x42babc
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4e4f80]
mov dl, 1
mov eax, dword [0x42b254]
call fcn.004406c8
call fcn.0044e490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42baac
lea eax, [ebp - 0x1c]
call fcn.0044e830
ret
Function at 0x42c14c
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0042c070
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0044dee0
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.WSOCK32.DLL_connect
mov edx, 0x42c1b0
call fcn.0042b964
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x42c1a2
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.0044dee0
pop esi
pop ebx
ret

Function at 0x42c1d4
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.0044ece0
push eax
call sub.WSOCK32.DLL_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.0044d5a0
test ebx, ebx
je 0x42c21f
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, 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 0x42c264
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov word [ebx], 2
test edi, edi
je 0x42c28c
mov edx, edi
mov eax, esi
call fcn.0042c1d4
mov dword [ebx + 4], eax
jmp 0x42c2c9
cmp dword [ebp - 4], 0
je 0x42c2a5
mov eax, dword [ebp - 4]
call fcn.0044ece0
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 4], eax
jmp 0x42c2c9
cmp byte [ebp + 0xc], 0
jne 0x42c2b2
xor eax, eax
mov dword [ebx + 4], eax
jmp 0x42c2c9
mov ecx, dword [0x4e4f88]
mov dl, 1
mov eax, dword [0x42b254]
call fcn.0044068c
call fcn.0044e490
cmp dword [ebp + 0x14], 0
je 0x42c2e5
mov edx, dword [ebp + 0x14]
mov eax, esi
call fcn.0042c230
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
jmp 0x42c2f3
mov ax, word [ebp + 0x10]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10
Function at 0x42c2fc
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 0x42c32d
mov ecx, dword [0x4e4f90]
mov dl, 1
mov eax, dword [0x42b254]
call fcn.0044068c
call fcn.0044e490
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 0x42c35a
mov ecx, dword [0x4e4f8c]
mov dl, 1
mov eax, dword [0x42b254]
call fcn.0044068c
call fcn.0044e490
xor eax, eax
push ebp
push 0x42c3d6
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.0044dee0
cmp byte [ebp + 8], 0
je 0x42c3b2
mov eax, dword [ebp + 0x10]
push eax
mov ax, 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.0042c264
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.0042c14c
jmp 0x42c3cc
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0042bc50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42c3f3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42c5b8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042bf0c
xor eax, eax
push ebp
push 0x42c72a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x42c714
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x42c603
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x42c60d
call fcn.0044e53c
jmp 0x42c731
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00433674
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 8]
mov ebx, eax
test ebx, ebx
jle 0x42c709
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.WSOCK32.DLL_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x42c6bb
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x42c6a8
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0044dee0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0042c570
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x42c73c]
cmp dl, byte [eax + 0x28]
je 0x42c710
call fcn.00440574
jmp 0x42c710
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00433694
jmp 0x42c710
cmp ecx, ebx
jge 0x42c6d7
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00433694
jmp 0x42c60d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00433674
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004336a8
cmp edx, dword [esp + 4]
jne 0x42c6f8
cmp eax, dword [esp]
pop edx
pop eax
jne 0x42c60d
push ebp
call fcn.0042c570
pop ecx
jmp 0x42c710
push ebp
call fcn.0042c570
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c731
mov eax, dword [ebp - 4]
call fcn.0042bf18
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42cdd4
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ecx, edx
mov ebx, eax
mov eax, ecx
mov esi, 0x3e8
cdq
idiv esi
mov dword [esp], eax
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.00429c6c
lea edx, [esp + 8]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
call fcn.00429c5c
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.WSOCK32.DLL_select
test eax, eax
setg al
add esp, 0x10c
pop esi
pop ebx
ret
Function at 0x43a048
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5168d8
cmp dword [edi], 0
jne 0x43a0c4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x5168d4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4e00ec
mov ecx, 2
call fcn.0044d064
mov edx, 0x43a020
lea eax, [esi + 5]
call fcn.0043a040
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043a040
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x43a099
mov dword [0x5168d4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43fdc4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x43fdfd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0044e920
jmp 0x43fe06
mov eax, ebx
mov edx, esi
call fcn.0044e884
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43fe10
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x43fe31
mov al, byte [esp]
jmp 0x43fe33
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x441368
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4413cc
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0044ea98
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.0043cfbc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4413d3
lea eax, [ebp - 0xc]
call fcn.0044e830
ret