joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463114
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4632bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4632a0
mov dl, 1
mov eax, dword [0x41c060]
call fcn.0040392c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047a8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46328f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00450ad4
test al, al
je 0x463282
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4632d0
lea eax, [ebp - 0x254]
call fcn.0040a420
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x463282
xor eax, eax
push ebp
push 0x46327b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x463308
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x463264
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a18
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x463264
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463282
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x463185
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0042132c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4632c6
lea eax, [ebp - 0x260]
call fcn.004047a8
ret

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

Disassembly:
push ecx
mov eax, dword [0x552be4]
cmp byte [eax + 0xa5], 0
jne 0x463cc1
cmp dword [0x552bfc], 0
jne 0x463c82
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x463c0c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x552bfc], eax
cmp dword [0x552bf8], 0
jne 0x463c9d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x552bf8], eax
cmp dword [0x552c00], 0
jne 0x463cc1
push esp
push 0
push 0
push 0x463bb0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x552c00], eax
pop edx
ret
Function at 0x464354
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x552be4]
cmp dword [eax + 0x30], 0
je 0x4643fe
cmp dword [ebx + 0x94], 0
jne 0x4643f8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4642e4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4643f8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4643be
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4643f8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041e318
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4643cd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x464f5c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x464f91
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404898
jmp 0x464f9e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004047fc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4660d8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x466119
mov eax, esi
call fcn.0044c0bc
test al, al
je 0x466119
mov eax, dword [ebx + 0x84]
call fcn.0044bdb8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x466119
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044bdb8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x481a94
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0045c530
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret
Function at 0x4b911c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4b9182
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404a18
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004032d4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4b916c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9189
lea eax, [ebp - 0x10]
call fcn.004047a8
ret

Function at 0x4c19fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4c1b53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x598790
call fcn.004b792c
mov ebx, dword [0x5518e4]
mov ebx, dword [ebx]
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call ebx
call fcn.0040b488
fstp qword [ebp - 0x10]
wait
lea edx, [ebp - 8]
lea eax, [ebp - 0x10]
mov ecx, 8
call fcn.00402dcc
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4c198c]
call fcn.004c234c
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4c1afd
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
push dword [ebp - 4]
push dword [ebp - 8]
lea edx, [ebp - 0x2c]
mov eax, 0x10
call fcn.00409728
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
call fcn.004c282c
mov eax, dword [ebp - 0x20]
xor dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x14]
call fcn.004c1e88
mov eax, dword [ebp - 0x28]
xor dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
xor dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004c1e88
push 0
call sub.kernel32.dll_Sleep
dec ebx
jne 0x4c1a82
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1b04
mov eax, dword [ebp - 0x14]
call fcn.0040395c
ret
Function at 0x4c219c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, eax
mov ebp, esp
mov eax, dword [edi + 4]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 4]
call fcn.00404a68
mov ecx, eax
xor ebx, ebx
xor esi, esi
xor eax, eax
mov dword [ebp], eax
lea eax, [ebx]
cdq
idiv ecx
mov eax, dword [esp + 0xc]
mov al, byte [eax + edx]
mov byte [ebp], al
lea eax, [ebx + 1]
cdq
idiv ecx
mov eax, dword [esp + 0xc]
mov al, byte [eax + edx]
mov byte [ebp + 1], al
lea eax, [ebx + 2]
cdq
idiv ecx
mov eax, dword [esp + 0xc]
mov al, byte [eax + edx]
mov byte [ebp + 2], al
lea eax, [ebx + 3]
cdq
idiv ecx
mov eax, dword [esp + 0xc]
mov al, byte [eax + edx]
mov byte [ebp + 3], al
mov eax, dword [ebp]
xor dword [edi + esi*4 + 8], eax
add ebx, 4
inc esi
cmp esi, 0x12
jne 0x4c21bc
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
xor esi, esi
lea ecx, [esp + 8]
lea edx, [esp + 4]
mov eax, edi
call fcn.004c1e88
mov eax, dword [esp + 4]
mov dword [edi + esi*4 + 8], eax
mov eax, dword [esp + 8]
mov dword [edi + esi*4 + 0xc], eax
add esi, 2
cmp esi, 0x12
jl 0x4c221e
xor esi, esi
xor ebx, ebx
lea ecx, [esp + 8]
lea edx, [esp + 4]
mov eax, edi
call fcn.004c1e88
mov ebp, esi
shl ebp, 7
lea eax, [edi + ebp*8]
mov edx, dword [esp + 4]
mov dword [eax + ebx*4 + 0x50], edx
lea eax, [edi + ebp*8]
mov edx, dword [esp + 8]
mov dword [eax + ebx*4 + 0x54], edx
add ebx, 2
cmp ebx, 0x100
jl 0x4c2249
inc esi
cmp esi, 4
jne 0x4c2247
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4c228c
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebx
mov ebx, eax
lea edx, [ebx + 8]
mov eax, 0x52fb54
mov ecx, 0x48
call fcn.00402dcc
lea edx, [ebx + 0x50]
mov eax, 0x52fb9c
mov ecx, 0x1000
call fcn.00402dcc
pop ebx
ret

Function at 0x4c22b8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffef4
mov dword [esp], ecx
mov ebp, edx
mov edi, eax
xor esi, esi
lea ebx, [esp + 0xc]
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
lea ecx, [esp + 8]
lea edx, [esp + 4]
mov eax, edi
call fcn.004c1e88
mov eax, dword [esp + 4]
mov dword [ebx], eax
mov eax, dword [esp + 8]
xor eax, dword [esp]
mov dword [ebx + 4], eax
inc esi
add ebx, 8
cmp esi, 0x20
jne 0x4c22cf
lea edx, [esp + 0xc]
mov eax, dword [edi + 0x1050]
call fcn.004c2b98
xor eax, eax
mov dword [edi + 0x1054], eax
xor eax, eax
mov dword [edi + 0x1058], eax
mov eax, dword [edi + 0x1050]
call fcn.004c2924
mov dword [edi + 0x105c], eax
mov eax, dword [edi + 0x1050]
call fcn.004c2924
mov dword [edi + 0x1060], eax
add esp, 0x10c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c2390
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ebx, eax
mov eax, dword [esp + 4]
and eax, 7
test eax, eax
je 0x4c23bf
mov ecx, 0x395
mov edx, 0x4c24d0
mov eax, 0x4c2528
call fcn.00404704
cmp byte [ebx + 0x1064], 0
je 0x4c23dc
mov ecx, 0x396
mov edx, 0x4c24d0
mov eax, 0x4c2528
call fcn.00404704
mov eax, dword [ebx + 0x1054]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x1058]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x1065]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x1069]
mov dword [esp + 0x14], eax
xor edi, edi
cmp edi, dword [esp + 4]
jae 0x4c2497
mov esi, dword [esp]
add esi, edi
mov ebp, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x1050]
call fcn.004c2924
xor eax, ebp
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x1050]
call fcn.004c2924
xor eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
mov eax, ebx
call fcn.004c1b74
mov eax, dword [esp + 0x10]
xor dword [esp + 8], eax
mov eax, dword [esp + 0x14]
xor dword [esp + 0xc], eax
mov eax, dword [esp + 8]
xor dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc]
xor dword [esp + 0x20], eax
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
mov dword [esi], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
add edi, 8
cmp edi, dword [esp + 4]
jb 0x4c2410
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x1065], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x1069], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x1054], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x1058], eax
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c25bc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ebx, eax
mov eax, dword [esp + 4]
and eax, 7
test eax, eax
je 0x4c25eb
mov ecx, 0x3d9
mov edx, 0x4c26dc
mov eax, 0x4c2734
call fcn.00404704
cmp byte [ebx + 0x1064], 0
je 0x4c2608
mov ecx, 0x3da
mov edx, 0x4c26dc
mov eax, 0x4c2734
call fcn.00404704
mov eax, dword [ebx + 0x1054]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1058]
mov dword [esp + 0x18], eax
mov edi, dword [ebx + 0x1065]
mov ebp, dword [ebx + 0x1069]
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
cmp eax, dword [esp + 4]
jae 0x4c26a9
mov esi, dword [esp]
add esi, dword [esp + 8]
mov eax, dword [esi]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
xor dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
xor dword [esp + 0x18], eax
xor dword [esp + 0xc], edi
xor dword [esp + 0x10], ebp
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
mov eax, ebx
call fcn.004c1e88
mov eax, dword [ebx + 0x1050]
call fcn.004c2924
mov edi, eax
xor edi, dword [esp + 0xc]
mov eax, dword [ebx + 0x1050]
call fcn.004c2924
mov ebp, eax
xor ebp, dword [esp + 0x10]
mov dword [esi], edi
mov dword [esi + 4], ebp
add dword [esp + 8], 8
mov eax, dword [esp + 8]
cmp eax, dword [esp + 4]
jb 0x4c2638
mov dword [ebx + 0x1065], edi
mov dword [ebx + 0x1069], ebp
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x1054], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x1058], eax
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4c4024
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004b3460
xor eax, eax
push ebp
push 0x4c40f8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3d], 0
je 0x4c4068
mov edx, 0x4c320c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0xc]
mov ebx, eax
xor eax, eax
push ebp
push 0x4c40ba
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x10], 0
jle 0x4c40a4
mov eax, ebx
call fcn.004baf80
mov dword [ebp - 0xc], eax
mov edx, dword [ebx + 0x10]
dec edx
mov eax, ebx
call fcn.004bb094
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c40c1
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x10]
ret
Function at 0x4c413c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.004bb480
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0xc]
mov ebx, eax
xor edx, edx
push ebp
push 0x4c41e7
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, esi
mov eax, ebx
call fcn.004bb13c
mov eax, dword [ebx + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 0
je 0x4c41d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 4]
xor edx, edx
push ebp
push 0x4c41ca
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x10]
sub dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c41d1
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 8]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c41ee
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x10]
ret

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

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov al, byte [ebx + 0x3c]
sub al, 1
je 0x4cb655
mov ecx, 0x314
mov edx, 0x4cb6d0
mov eax, 0x4cb730
call fcn.00404704
mov byte [ebx + 0x3c], 2
mov dword [esp], 0x20
mov eax, dword [ebx + 0x44]
mov dword [esp + 4], eax
xor eax, eax
mov dword [ebx + 0x68], eax
push 0
mov eax, dword [ebx + 0xc]
push eax
lea eax, [ebx + 0x68]
push eax
lea eax, [ebx + 0x64]
push eax
push 1
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x18]
push eax
call sub.ws2_32.dll_WSARecv
test eax, eax
je 0x4cb6ad
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x4cb6c4
call sub.kernel32.dll_GetLastError_1
mov ecx, eax
mov edx, dword [ebx + 0x64]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x2c]
jmp 0x4cb6c4
cmp dword [ebx + 0xc], 0
jne 0x4cb6c4
call sub.kernel32.dll_GetLastError_1
mov ecx, eax
mov edx, dword [ebx + 0x64]
mov eax, ebx
call fcn.004c3ea8
pop ecx
pop edx
pop ebx
ret
Function at 0x4cb74c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov al, byte [ebx + 0x3c]
add al, 0xfe
sub al, 2
jb 0x4cb76f
mov ecx, 0x326
mov edx, 0x4cb804
mov eax, 0x4cb864
call fcn.00404704
cmp dword [ebx + 0x54], 0
ja 0x4cb789
mov ecx, 0x327
mov edx, 0x4cb804
mov eax, 0x4cb884
call fcn.00404704
mov byte [ebx + 0x3c], 3
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp + 4], eax
xor eax, eax
mov dword [ebx + 0x68], eax
push 0
mov eax, dword [ebx + 0xc]
push eax
lea eax, [ebx + 0x68]
push eax
lea eax, [ebx + 0x64]
push eax
push 1
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x18]
push eax
call sub.ws2_32.dll_WSARecv
test eax, eax
je 0x4cb7e0
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x4cb7f7
call sub.kernel32.dll_GetLastError_1
mov ecx, eax
mov edx, dword [ebx + 0x64]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x2c]
jmp 0x4cb7f7
cmp dword [ebx + 0xc], 0
jne 0x4cb7f7
call sub.kernel32.dll_GetLastError_1
mov ecx, eax
mov edx, dword [ebx + 0x64]
mov eax, ebx
call fcn.004c3ea8
pop ecx
pop edx
pop ebx
ret

Function at 0x4cbab8
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
mov eax, ebx
call fcn.00404c68
push eax
call sub.ws2_32.dll_gethostbyname
mov dword [esp + 4], eax
mov ebx, dword [0x5518e4]
mov ebx, dword [ebx]
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 4
call ebx
cmp dword [esp + 4], 0
je 0x4cbb0f
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 0x4cefa0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
add esp, 0xffffffdc
mov ebx, eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
xor eax, eax
mov dword [esp + 0xc], eax
jmp 0x4cf17b
cmp dword [ebx + 8], 0
je 0x4cf13f
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
call fcn.004c7490
test al, al
je 0x4cf13f
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_ResetEvent
push 0
mov eax, dword [ebx + 8]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.ws2_32.dll_WSARecv
mov esi, eax
test esi, esi
je 0x4cf15f
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
jne 0x4cf15f
mov byte [esp + 0x20], 0
cmp dword [esp + 0x1c], 0
je 0x4cf0a5
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push eax
push 0
mov eax, dword [ebx + 8]
add eax, 0x10
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
sub eax, 1
jb 0x4cf112
je 0x4cf063
sub eax, 0x101
je 0x4cf063
jmp 0x4cf099
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x10]
mov edx, ebx
mov eax, dword [esp + 0x14]
call dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
call fcn.004c7490
xor al, 1
mov byte [esp + 0x20], al
cmp byte [esp + 0x20], 0
jne 0x4cf112
jmp 0x4cf02e
xor edx, edx
mov al, byte [ebx + 0x14]
call fcn.004b9018
jmp 0x4cf02e
mov eax, dword [esp + 0x18]
push eax
push 0
mov eax, dword [ebx + 8]
add eax, 0x10
push eax
push 1
call sub.kernel32.dll_WaitForMultipleObjects
sub eax, 1
jb 0x4cf112
je 0x4cf0ca
sub eax, 0x101
je 0x4cf0ca
jmp 0x4cf103
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x10]
mov edx, ebx
mov eax, dword [esp + 0x14]
call dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
call fcn.004c7490
xor al, 1
mov byte [esp + 0x20], al
cmp byte [esp + 0x20], 0
jne 0x4cf112
jmp 0x4cf02e
xor edx, edx
mov al, byte [ebx + 0x14]
call fcn.004b9018
jmp 0x4cf02e
lea eax, [esp + 0xc]
push eax
cmp byte [esp + 0x24], 1
cmc
sbb eax, eax
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.ws2_32.dll_WSAGetOverlappedResult
test eax, eax
je 0x4cf13a
xor esi, esi
jmp 0x4cf15f
or esi, 0xffffffff
jmp 0x4cf15f
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.ws2_32.dll_WSARecv
mov esi, eax
test esi, esi
je 0x4cf16d
xor edx, edx
mov al, byte [ebx + 0x14]
call fcn.004b9018
mov eax, dword [esp]
sub dword [esp + 4], eax
mov eax, dword [esp]
add dword [esp + 8], eax
cmp dword [esp + 4], 0
ja 0x4cefba
add esp, 0x24
pop esi
pop ebx
ret
Function at 0x4d0d78
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
and edx, edx
je 0x4d0d96
and ecx, ecx
jle 0x4d0d96
push ebx
xor al, byte [edx]
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
shr ebx, 0x18
mov byte [edx], bl
inc edx
dec ecx
jne 0x4d0d81
pop ebx
ret

Function at 0x4d1004
Capabilities:
Encode data using xor

Disassembly:
and edx, edx
je 0x4d1027
and ecx, ecx
jle 0x4d1027
push ebx
push edi
xor ebx, ebx
lea edi, cs:[0x4d102d]
mov bl, al
shr eax, 8
xor bl, byte [edx]
xor eax, dword [edi + ebx*4]
inc edx
dec ecx
jne 0x4d1017
pop edi
pop ebx
ret