joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426818
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4e08e4
cmp dword [edi], 0
jne 0x426894
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4e08e0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4d754c
mov ecx, 2
call fcn.00402e98
mov edx, 0x4267f0
lea eax, [esi + 5]
call fcn.00426810
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00426810
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 0x426869
mov dword [0x4e08e0], 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 0x429c80
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404d20
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004051fc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x429cc5
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404e10
jmp 0x429cde
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405388
push ebx
mov eax, dword [esi]
call fcn.004051fc
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x429f08
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
mov eax, pe_nt_image_headers32
push eax
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00404f90
add esp, 0x100
pop ebx
ret
Function at 0x429fbc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x810], ebx
mov dword [ebp - 0x80c], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004051ec
xor eax, eax
push ebp
push 0x42a0b8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, ebx
call fcn.00404d74
lea edx, [ebp - 0x80c]
mov eax, dword [ebp - 4]
call fcn.0040c140
cmp dword [ebp - 0x80c], 0
jne 0x42a040
lea eax, [ebp - 0x810]
call fcn.00429f9c
push dword [ebp - 0x810]
push 0x42a0d0
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004050bc
lea eax, [ebp - 4]
xor ecx, ecx
xor edx, edx
call fcn.0042ad84
test al, al
je 0x42a092
mov eax, dword [ebp - 4]
call fcn.004051fc
push eax
push 0x800
lea eax, [ebp - 0x808]
push eax
mov eax, ebx
call fcn.004051fc
push eax
mov eax, dword [ebp - 8]
call fcn.004051fc
push eax
mov eax, edi
call fcn.004051fc
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x808]
mov eax, esi
call fcn.00404e10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a0bf
lea eax, [ebp - 0x810]
mov edx, 2
call fcn.00404d44
lea eax, [ebp - 4]
call fcn.00404d20
ret

Function at 0x42a830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004051ec
mov eax, dword [ebp - 8]
call fcn.004051ec
xor eax, eax
push ebp
push 0x42a934
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404d20
cmp dword [ebp - 4], 0
je 0x42a888
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x42a888
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040529c
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.004051fc
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42a919
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004051fc
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x42a909
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00405388
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.004051fc
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
push ebx
mov eax, dword [ebx]
call fcn.00404ffc
mov ecx, eax
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.0040525c
jmp 0x42a910
mov eax, ebx
call fcn.00404d20
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a93b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d44
ret
Function at 0x42abac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004051fc
push eax
call 0x407678
cmp eax, 0xffffffff
je 0x42abc5
test al, 0x10
jne 0x42abc9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x42b598
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004051ec
xor eax, eax
push ebp
push 0x42b682
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404ffc
dec eax
jle 0x42b601
mov edx, dword [ebp - 4]
mov eax, 0x42b698
call fcn.00405340
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404ffc
dec eax
cmp ebx, eax
jne 0x42b601
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ffc
mov ecx, eax
sub ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040525c
mov eax, dword [ebp - 4]
call fcn.00404ffc
mov ebx, eax
test ebx, ebx
jle 0x42b638
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
call fcn.00405254
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov cl, byte [ecx + edi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 8]
dec ebx
jne 0x42b616
mov eax, dword [ebp - 4]
call fcn.00404ffc
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
mov ecx, 4
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 8], 0
jle 0x42b66c
lea eax, [ebp - 4]
call fcn.00405254
mov edx, eax
mov ecx, dword [ebp - 8]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b689
lea eax, [ebp - 4]
call fcn.00404d20
ret

Function at 0x42bc28
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edx, [ebp - 4]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405388
cmp dword [ebp - 4], 0
jle 0x42bc65
mov eax, ebx
call fcn.00405254
mov edx, eax
mov ecx, dword [ebp - 4]
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx]
call fcn.00404ffc
mov esi, eax
test esi, esi
jle 0x42bc99
mov dword [ebp - 4], 1
mov eax, ebx
call fcn.00405254
mov edx, dword [ebp - 4]
mov ecx, dword [ebx]
mov edi, dword [ebp - 4]
mov cl, byte [ecx + edi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 4]
dec esi
jne 0x42bc79
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x42d574
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 4]
mov dword [edi], 0x10
push edi
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, esi
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404f90
mov eax, dword [esi]
call fcn.00404ffc
mov ebx, eax
test ebx, ebx
jbe 0x42d5e6
mov dword [edi], 1
mov eax, dword [esi]
mov edx, dword [edi]
mov al, byte [eax + edx - 1]
and eax, 0xff
bt dword [0x4d7ea4], eax
jae 0x42d5e1
mov eax, esi
call fcn.00405254
mov edx, dword [edi]
mov byte [eax + edx - 1], 0x5f
inc dword [edi]
dec ebx
jne 0x42d5bd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4300dc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
push 0x40
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x43012d
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x43012d
cmp dword [eax + 0x3c], 0
je 0x43012d
mov eax, dword [eax + 0x3c]
add eax, ebx
mov dword [ebp - 4], eax
push 0xf8
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x430128
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x43012d
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ebp
ret

Function at 0x4324f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, ecx
shl edx, 2
add edx, eax
mov dword [esp], edx
mov eax, dword [esp]
call fcn.00406334
test eax, eax
je 0x43254e
lea eax, [esp + 4]
push eax
push 0x40
push 4
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esp]
mov dword [eax], ebx
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 8]
push eax
push 4
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualProtect
push 4
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop ecx
pop edx
pop ebx
ret

Function at 0x43270c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
push esp
push 0x40
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
mov edx, ebx
mov eax, edi
mov ecx, esi
call fcn.00402e98
push esp
mov eax, dword [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x432dcc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov dword [esp], edx
mov ebp, eax
lea edi, [esp + 0x14]
mov eax, dword [0x4e090c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x432e18
inc ebx
xor esi, esi
mov edx, esi
mov eax, dword [0x4e090c]
call fcn.0041ed80
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax]
jne 0x432e14
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
jmp 0x432efe
inc esi
dec ebx
jne 0x432dec
mov dword [esp + 8], ebp
mov eax, dword [esp + 8]
mov dword [esp + 0xc], eax
xor ebx, ebx
mov edx, edi
mov eax, dword [esp + 0xc]
call fcn.00432904
test al, al
jne 0x432e38
mov byte [edi], 1
xor eax, eax
mov al, byte [edi]
add ebx, eax
xor eax, eax
mov al, byte [edi]
add dword [esp + 0xc], eax
cmp ebx, 5
jb 0x432e26
mov edx, ebx
mov eax, dword [esp + 8]
call fcn.00432b24
mov edi, eax
add edi, 5
mov eax, edi
call fcn.00402b48
mov esi, eax
mov eax, 0x14
call fcn.00402b48
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [eax], ebp
mov eax, dword [esp + 0x18]
mov dword [eax + 4], esi
mov eax, dword [esp + 0x18]
mov dword [eax + 8], edi
mov eax, dword [esp + 0x18]
mov dword [eax + 0x10], ebx
mov eax, ebx
call fcn.00402b48
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [eax + 0xc], ebp
mov edx, ebp
mov eax, dword [esp + 8]
mov ecx, ebx
call fcn.00402e98
mov edx, dword [esp + 0x18]
mov eax, dword [0x4e090c]
call fcn.0041ec24
lea eax, [esp + 0x10]
push eax
push 0x40
push edi
push esi
call sub.kernel32.dll_VirtualProtect
mov edx, esi
mov eax, dword [esp + 8]
mov ecx, ebx
call fcn.00402e98
mov ecx, ebx
mov edx, dword [esp + 8]
mov eax, esi
call fcn.00432bf0
mov edx, dword [esp + 8]
add edx, ebx
lea eax, [ebx + esi]
call fcn.0043274c
mov edx, dword [esp]
mov eax, dword [esp + 8]
call fcn.0043274c
mov dword [esp + 4], esi
mov eax, dword [esp + 4]
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43318c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
mov edx, 0x40
mov eax, ebx
call fcn.0042a224
test al, al
je 0x4331e0
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x4331e0
cmp dword [eax + 0x3c], 0
je 0x4331e0
mov eax, dword [eax + 0x3c]
add eax, ebx
mov dword [ebp - 4], eax
mov edx, 0xf8
mov eax, dword [ebp - 4]
call fcn.0042a224
test al, al
je 0x4331db
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x4331e0
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ebp
ret
Function at 0x433828
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x4338ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4338c8]
mov dword [ebp - 7], eax
mov ax, word [0x4338cc]
mov word [ebp - 3], ax
mov al, byte [0x4338ce]
mov byte [ebp - 1], al
push 6
lea eax, [ebp - 7]
push eax
push 0x1004
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x2c]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404f90
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040ba24
push 2
lea edx, [ebp - 0x27]
push edx
push eax
call sub.gdi32.dll_TranslateCharsetInfo
mov ebx, dword [ebp - 0x27]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4338c1
lea eax, [ebp - 0x2c]
call fcn.00404d20
ret

Function at 0x433a54
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
mov al, 1
cmp byte [0x4d80b0], 0
jne 0x433a7c
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
sete al
mov byte [0x4d80b0], 1
add esp, 0x190
ret

Function at 0x433a98
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, edx
mov eax, ebx
call fcn.004051fc
push eax
call sub.wsock32.dll_gethostbyname
mov dword [esp + 4], eax
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 4
call fcn.00403614
cmp dword [esp + 4], 0
je 0x433aea
mov eax, dword [esp + 4]
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 8], cl
mov cl, byte [edx + 1]
mov byte [esp + 9], cl
mov cl, byte [edx + 2]
mov byte [esp + 0xa], cl
mov al, byte [edx + 3]
mov byte [esp + 0xb], al
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop ebx
ret
Function at 0x433d5c
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x433ece
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x24], 0
jne 0x433eb3
call fcn.00433a54
push 0
mov eax, dword [ebx + 0x1c]
push eax
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x28], esi
inc esi
jne 0x433dcb
push 0
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x10]
call fcn.0040f6b0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x433ee4
mov eax, ebx
call fcn.00433afc
mov word [ebx + 4], 2
mov edx, dword [ebx + 0x14]
mov eax, ebx
call fcn.00433a98
mov dword [ebx + 8], eax
mov ax, word [ebx + 0x18]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 6], ax
push 0
push 0
push 0
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_WSAAsyncSelect
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x8004667e
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_ioctlsocket
push 0x10
lea eax, [ebx + 4]
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_connect
test eax, eax
je 0x433e4d
push 0
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x14]
call fcn.0040f6b0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x433f04
mov eax, ebx
call fcn.00433afc
cmp dword [ebx + 0x28], 0xffffffff
setne al
mov byte [ebx + 0x24], al
lea eax, [ebp - 0x18]
push eax
xor eax, eax
mov al, byte [ebx + 8]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
xor eax, eax
mov al, byte [ebx + 9]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov al, byte [ebx + 0xa]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
xor eax, eax
mov al, byte [ebx + 0xb]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
movzx eax, word [ebx + 0x18]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x40]
mov ecx, 4
mov eax, 0x433f24
call fcn.0040d0c4
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x2c]
call fcn.00404d74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433ed5
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404d44
ret
Function at 0x433f48
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x433fdd
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
cmp byte [ebx + 0x24], 0
je 0x433fc7
push 0
mov eax, dword [ebp - 4]
push eax
push edx
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_send
mov esi, eax
cmp esi, 0xffffffff
jne 0x433fc7
call sub.wsock32.dll_WSAGetLastError
mov edi, eax
cmp edi, 0x2733
je 0x433fc7
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 4]
test edi, edi
je 0x433fc7
push 0
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.0040f6b0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x433ff8
mov eax, ebx
call fcn.00433afc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433fe4
lea eax, [ebp - 0x10]
call fcn.00404d20
ret

Function at 0x4340c8
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43417f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, 0xffffffff
jne 0x43410e
cmp byte [ebx + 0x24], 0
je 0x43410e
lea eax, [ebp - 4]
push eax
push 0x4004667f
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x434169
cmp byte [ebx + 0x24], 0
je 0x434169
push 0
push esi
push edi
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x434169
call sub.wsock32.dll_WSAGetLastError
mov esi, eax
cmp esi, 0x2733
je 0x434169
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 4]
test esi, esi
je 0x434169
push 0
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0040f6b0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x434198
mov eax, ebx
call fcn.00433afc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434186
lea eax, [ebp - 0x10]
call fcn.00404d20
ret
Function at 0x4341b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x434278
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404d20
or ecx, 0xffffffff
xor edx, edx
mov eax, esi
call fcn.004340c8
mov ebx, eax
test ebx, ebx
jbe 0x43425a
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00405388
mov eax, dword [ebp - 8]
call fcn.00404ffc
mov ecx, eax
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004340c8
mov edx, eax
lea eax, [ebp - 8]
call fcn.00405388
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405004
mov eax, dword [ebp - 4]
lea eax, [esi + 0x2c]
mov edx, dword [ebp - 8]
call fcn.00405004
call sub.kernel32.dll_GetTickCount
mov edi, eax
or ecx, 0xffffffff
xor edx, edx
mov eax, esi
call fcn.004340c8
mov ebx, eax
push 1
call sub.kernel32.dll_Sleep
test ebx, ebx
ja 0x43425a
call sub.kernel32.dll_GetTickCount
sub eax, edi
cmp eax, 0x3e8
jbe 0x434233
test ebx, ebx
jne 0x4341d9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43427f
lea eax, [ebp - 8]
call fcn.00404d20
ret

Function at 0x434288
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov edi, eax
mov edx, ebx
mov eax, esi
call fcn.004341b0
cmp dword [ebx], 0
jne 0x4342ab
push 1
call sub.kernel32.dll_Sleep
cmp dword [ebx], 0
jne 0x4342bc
call sub.kernel32.dll_GetTickCount
sub eax, edi
cmp eax, dword [esi + 0x20]
jb 0x434296
pop edi
pop esi
pop ebx
ret

Function at 0x43563c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
mov ebx, dword [eax]
mov esi, ebx
xor esi, ecx
and esi, 0xff
shr ebx, 8
mov esi, dword [edx + esi*4]
xor esi, ebx
mov dword [eax], esi
and esi, 0xff
add dword [eax + 4], esi
imul ebx, dword [eax + 4], 0x8088405
inc ebx
mov dword [eax + 4], ebx
shr ebx, 0x18
mov esi, dword [eax + 8]
xor ebx, esi
and ebx, 0xff
shr esi, 8
mov edx, dword [edx + ebx*4]
xor edx, esi
mov dword [eax + 8], edx
mov eax, ecx
pop esi
pop ebx
ret
Function at 0x4356c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
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 + 0xc]
mov esi, dword [ebp + 0x10]
cmp dword [ebp - 0xc], 0xc
jge 0x4356e5
xor eax, eax
jmp 0x435816
inc dword [0x4d80dc]
mov edx, dword [0x4d80dc]
cmp edx, 1
jne 0x43570a
push 0
call fcn.004351b8
pop ecx
xor eax, 0xbb40e64e
push eax
call fcn.004351d0
pop ecx
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00435688
xor ebx, ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], eax
call fcn.004351c4
sar eax, 7
and eax, 0xff
mov dword [ebp - 0x14], eax
mov edx, edi
mov eax, esi
call fcn.0043561c
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
mov edx, edi
mov eax, esi
call fcn.0043563c
mov dl, byte [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
xor dl, byte [ebp - 0x14]
mov byte [ecx], dl
inc ebx
inc dword [ebp - 0x24]
cmp ebx, 0xa
jl 0x43571e
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00435688
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x20]
mov edx, eax
xor ebx, ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov edx, edi
mov eax, esi
call fcn.0043561c
mov dword [ebp - 0x10], eax
mov eax, esi
mov ecx, dword [ebp - 0x28]
mov edx, edi
movzx ecx, byte [ecx]
call fcn.0043563c
mov al, byte [ebp - 0x10]
mov edx, dword [ebp - 0x28]
xor al, byte [edx]
mov ecx, dword [ebp - 0x2c]
mov byte [ecx], al
inc ebx
inc dword [ebp - 0x2c]
inc dword [ebp - 0x28]
cmp ebx, 0xa
jl 0x435776
mov edx, edi
mov eax, esi
call fcn.0043561c
mov dword [ebp - 0x10], eax
mov eax, esi
mov ecx, dword [ebp + 8]
mov edx, edi
shr ecx, 0x10
and ecx, 0xff
call fcn.0043563c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
shr eax, 0x10
mov cl, byte [ebp - 0x10]
and al, 0xff
xor cl, al
mov eax, esi
mov byte [edx + ebx], cl
mov edx, edi
inc ebx
call fcn.0043561c
mov dword [ebp - 0x10], eax
mov eax, esi
mov ecx, dword [ebp + 8]
mov edx, edi
shr ecx, 0x18
and ecx, 0xff
call fcn.0043563c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
shr eax, 0x18
mov cl, byte [ebp - 0x10]
and al, 0xff
xor cl, al
mov byte [edx + ebx], cl
inc ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc