joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2518
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4a2520
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4a2712
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4a2728
mov eax, esi
call fcn.004a03a4
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404adc
lea ecx, [ebp - 0x10]
mov edx, 0x4a273c
mov eax, esi
call fcn.004a03a4
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404adc
lea ecx, [ebp - 0x14]
mov edx, 0x4a2754
mov eax, esi
call fcn.004a03a4
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404adc
lea ecx, [ebp - 0x18]
mov edx, 0x4a2770
mov eax, esi
call fcn.004a03a4
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404adc
lea ecx, [ebp - 0x1c]
mov edx, 0x4a278c
mov eax, esi
call fcn.004a03a4
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404adc
lea ecx, [ebp - 0x24]
mov edx, 0x4a27a4
mov eax, esi
call fcn.004a03a4
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00409844
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409f80
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4a27bc
mov eax, esi
call fcn.004a03a4
mov eax, dword [ebp - 0x28]
call fcn.00499bb4
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4a27cc
mov eax, esi
call fcn.004a03a4
mov eax, dword [ebp - 0x2c]
call fcn.00499bb4
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4a27e4
mov eax, esi
call fcn.004a03a4
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409f80
inc eax
je 0x4a26b5
lea ecx, [ebp - 0x34]
mov edx, 0x4a27e4
mov eax, esi
call fcn.004a03a4
mov eax, dword [ebp - 0x34]
call fcn.00409f44
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040be40
fstp qword [ebp - 0x3c]
wait
call fcn.0040c2b4
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4a26d0
lea ecx, [ebp - 0x40]
mov edx, 0x4a27e4
mov eax, esi
call fcn.004a03a4
mov eax, dword [ebp - 0x40]
call fcn.00499bb4
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4a27f4
mov eax, esi
call fcn.004a03a4
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404adc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2719
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404aac
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404aac
ret
Function at 0x4a94a4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4a94fe
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004a9494
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0049852c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0049812c
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9505
lea eax, [ebp - 4]
call fcn.00404a88
ret

Function at 0x4ad1b8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41bd7c]
call fcn.00405724
xor eax, eax
push ebp
push 0x4ad2fc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x636c34], 0
jne 0x4ad20b
mov ecx, dword [0x6437d4]
mov dl, 1
mov eax, dword [0x40880c]
call fcn.0040e248
call fcn.00404404
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403364
mov eax, ebx
call fcn.0040534c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4ad30c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406af4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0040535c
test eax, eax
jle 0x4ad2a3
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4ad29c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404d20
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404d08
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00409760
test eax, eax
jne 0x4ad29c
mov ebx, 0x15
jmp 0x4ad2a8
mov ebx, 0x10
jmp 0x4ad2a8
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x636c34]
call fcn.004ad110
mov eax, dword [ebp - 8]
call fcn.004ad110
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406b0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad303
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404aac
lea eax, [ebp - 0x10]
mov edx, dword [0x41bd7c]
call fcn.004057f4
ret
Function at 0x4b8270
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b83e1
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b83bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00404c70
lea eax, [ebp - 0x118]
mov edx, 0x4b83f8
call fcn.00404d60
mov eax, dword [ebp - 0x118]
call fcn.00404f58
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4b832e
lea eax, [ebp - 0x111]
call fcn.0040a92c
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404b78
jmp 0x4b8335
mov eax, esi
call fcn.00404a88
cmp bl, 0x61
jae 0x4b8356
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040f05c
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404adc
jmp 0x4b8370
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040efd0
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404adc
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4b8404
call fcn.0040b030
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404adc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b83c3
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4bd9f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bdc54
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4bda57
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004bd4bc
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040eb90
cmp al, 1
jne 0x4bda57
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004bd7d4
test al, al
je 0x4bdbe3
cmp dword [ebp - 8], 0
jge 0x4bda75
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004bd4bc
mov eax, dword [ebp - 0x210]
call fcn.00404d58
cmp ebx, eax
jge 0x4bdabf
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004bd4bc
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x644404]
and eax, 0xff
bt dword [edx], eax
jae 0x4bdabf
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4bdad3
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004bd9d0
cmp ebx, dword [ebp - 8]
je 0x4bdbd5
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4bdaff
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d70
and eax, 0x7f
movzx eax, word [eax*2 + 0x636d50]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4bdbc2
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d70
and eax, 0x7f
movzx eax, word [eax*2 + 0x636d50]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00478fec
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d70
and eax, 0x7f
movzx eax, word [eax*2 + 0x636d50]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00478fec
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdbc9
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4bdc36
cmp dword [ebp - 8], 0
jge 0x4bdbee
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004bd4bc
mov eax, dword [ebp - 0x218]
call fcn.00404d58
cmp eax, dword [ebp - 8]
jg 0x4bdc28
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004bd4bc
mov eax, dword [ebp - 0x21c]
call fcn.00404d58
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004bd9d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdc5b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404aac
ret
Function at 0x4f2cb8
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
test dl, dl
je 0x4f2cd1
add esp, 0xfffffff0
call fcn.00403ed8
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4f2d46
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00420380
xor edx, edx
mov eax, esi
call fcn.004f2e70
xor edx, edx
mov eax, esi
call fcn.004f2e94
xor eax, eax
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 0x28], eax
xor eax, eax
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0x10]
call fcn.0041a0f8
lea edx, [ebp - 0x10]
lea eax, [esi + 0x18]
call fcn.00412154
mov byte [esi + 0x39], 0
mov byte [esi + 0x30], 1
lea eax, [esi + 0x10]
call fcn.00404a88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2d4d
lea eax, [ebp - 0x10]
call fcn.00411e40
ret
Function at 0x53d360
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
and edx, edx
je 0x53d37e
and ecx, ecx
jle 0x53d37e
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 0x53d369
pop ebx
ret

Function at 0x53f6a8
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, dword [ebp + 8]
add ebx, 0xffffffdc
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
push ebp
call fcn.0053f630
pop ecx
jmp 0x53f7df
mov eax, ebx
mov edx, dword [ebx + edx*4 - 0x1c]
shr edx, 8
and edx, 0xff
mov dl, byte [edx + 0x638b04]
xor dl, byte [eax]
mov ecx, dword [ebp - 0xc]
xor dl, byte [ecx + 0x63d96c]
mov byte [eax], dl
inc eax
mov edx, dword [esi]
mov edx, dword [edx + 0x40]
mov edx, dword [ebx + edx*4 - 0x1c]
shr edx, 0x10
and edx, 0xff
mov dl, byte [edx + 0x638b04]
xor byte [eax], dl
inc eax
mov edx, dword [esi]
mov edx, dword [edx + 0x40]
mov edx, dword [ebx + edx*4 - 0x1c]
shr edx, 0x18
mov dl, byte [edx + 0x638b04]
xor byte [eax], dl
inc eax
mov edx, dword [esi]
mov edx, dword [edx + 0x40]
mov edx, dword [ebx + edx*4 - 0x1c]
and edx, 0xff
mov dl, byte [edx + 0x638b04]
xor byte [eax], dl
inc dword [ebp - 0xc]
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
cmp eax, 0xe
jne 0x53f7c2
mov edx, 3
mov eax, ebx
mov ecx, dword [eax]
xor dword [eax + 4], ecx
add eax, 4
dec edx
jne 0x53f755
lea eax, [ebx + 0x10]
mov edx, dword [ebx + 0xc]
and edx, 0xff
mov dl, byte [edx + 0x638b04]
xor byte [eax], dl
inc eax
mov edx, dword [ebx + 0xc]
shr edx, 8
and edx, 0xff
mov dl, byte [edx + 0x638b04]
xor byte [eax], dl
inc eax
mov edx, dword [ebx + 0xc]
shr edx, 0x10
and edx, 0xff
mov dl, byte [edx + 0x638b04]
xor byte [eax], dl
inc eax
mov edx, dword [ebx + 0xc]
shr edx, 0x18
mov dl, byte [edx + 0x638b04]
xor byte [eax], dl
mov edx, 3
lea eax, [ebx + 0x10]
mov ecx, dword [eax]
xor dword [eax + 4], ecx
add eax, 4
dec edx
jne 0x53f7b5
jmp 0x53f7d8
mov edx, eax
sub edx, 7
test edx, edx
jle 0x53f7d8
mov eax, ebx
mov ecx, dword [eax]
xor dword [eax + 4], ecx
add eax, 4
dec edx
jne 0x53f7cd
push ebp
call fcn.0053f630
pop ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
cmp edx, dword [ebp - 4]
jge 0x53f6d7
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53f7f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x30]
mov ebx, eax
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov esi, dword [edx + 0x34]
shr esi, 1
push ebx
push esi
push esi
mov edx, dword [ebp + 8]
mov edx, eax
xor ecx, ecx
mov eax, dword [0x4fdb68]
call fcn.004ff500
test esi, esi
jns 0x53f82b
add esi, 3
sar esi, 2
add esi, 4
mov eax, esi
shl eax, 2
add ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov esi, dword [eax + 0x40]
shl esi, 2
sub esi, 5
test esi, esi
jl 0x53f8b7
inc esi
mov edi, dword [ebx]
mov eax, edi
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x63ad04]
mov edx, 8
call fcn.0053d2fc
and edi, 0xff
xor eax, dword [edi*4 + 0x63ad04]
push eax
mov eax, dword [ebx]
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x63ad04]
mov edx, 0x10
call fcn.0053d2fc
pop edx
xor edx, eax
push edx
mov eax, dword [ebx]
shr eax, 0x18
mov eax, dword [eax*4 + 0x63ad04]
mov edx, 0x18
call fcn.0053d2fc
pop edx
xor edx, eax
mov dword [ebx], edx
add ebx, 4
dec esi
jne 0x53f84c
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x53fca0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov dword [ebp - 4], edx
lea eax, [ebp - 0x100]
xor ecx, ecx
mov edx, 0x80
call fcn.00403364
mov dword [ebp - 8], 0x38
mov eax, 0x63b104
lea edx, [ebp - 0x48]
mov bl, byte [eax]
mov ecx, ebx
and cl, 7
mov esi, 0x80
shr esi, cl
xor ecx, ecx
mov cl, bl
shr ecx, 3
add ecx, dword [ebp + 0x14]
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x53fcf7
mov byte [edx], 1
jmp 0x53fcfa
mov byte [edx], 0
inc edx
inc eax
dec dword [ebp - 8]
jne 0x53fccf
xor eax, eax
mov dword [ebp - 8], eax
mov esi, 0x63d98c
cmp byte [ebp + 8], 0
je 0x53fd20
mov eax, 0xf
sub eax, dword [ebp - 8]
add eax, eax
mov dword [ebp - 0xc], eax
jmp 0x53fd28
mov eax, dword [ebp - 8]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x10], eax
xor eax, eax
lea edx, [ebp - 0x80]
xor ecx, ecx
mov cl, byte [esi]
add ecx, eax
cmp ecx, 0x1c
jae 0x53fd47
mov cl, byte [ebp + ecx - 0x48]
mov byte [edx], cl
jmp 0x53fd4d
mov cl, byte [ebp + ecx - 0x64]
mov byte [edx], cl
inc eax
inc edx
cmp eax, 0x1c
jne 0x53fd34
mov eax, 0x1c
lea edx, [ebp - 0x64]
xor ecx, ecx
mov cl, byte [esi]
add ecx, eax
cmp ecx, 0x38
jae 0x53fd6f
mov cl, byte [ebp + ecx - 0x48]
mov byte [edx], cl
jmp 0x53fd75
mov cl, byte [ebp + ecx - 0x64]
mov byte [edx], cl
inc eax
inc edx
cmp eax, 0x38
jne 0x53fd5c
mov ecx, 0x1000000
mov eax, 0x18
mov edx, 0x63b13c
shr ecx, 1
xor ebx, ebx
mov bl, byte [edx]
cmp byte [ebp + ebx - 0x80], 0
je 0x53fda2
mov ebx, dword [ebp - 0xc]
or dword [ebp + ebx*4 - 0x100], ecx
xor ebx, ebx
mov bl, byte [edx + 0x18]
cmp byte [ebp + ebx - 0x80], 0
je 0x53fdb8
mov ebx, dword [ebp - 0x10]
or dword [ebp + ebx*4 - 0x100], ecx
inc edx
dec eax
jne 0x53fd8b
inc dword [ebp - 8]
inc esi
cmp dword [ebp - 8], 0x10
jne 0x53fd0b
mov eax, dword [ebp + 0xc]
shl eax, 2
add dword [ebp + 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x100]
mov ecx, eax
and ecx, 0xfc0000
shl ecx, 6
and eax, 0xfc0
shl eax, 0xa
or ecx, eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + eax*4 - 0x100]
mov eax, edx
and eax, 0xfc0000
shr eax, 0xa
or ecx, eax
and edx, 0xfc0
shr edx, 6
or ecx, edx
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
add dword [ebp + 0x10], 4
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x100]
mov ecx, eax
and ecx, 0x3f000
shl ecx, 0xc
and eax, 0x3f
shl eax, 0x10
or ecx, eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + eax*4 - 0x100]
mov eax, edx
and eax, 0x3f000
shr eax, 4
or ecx, eax
and edx, 0x3f
or ecx, edx
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
add dword [ebp + 0x10], 4
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x10
jne 0x53fdd8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x54a4e8
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov esi, edx
lea edi, [esp]
push ecx
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop ecx
mov ebx, ecx
mov edi, eax
push edi
call sub.wsock32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
jne 0x54a51f
push edi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x54a51f
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, 0xffffffff
jne 0x54a531
call sub.wsock32.dll_WSAGetLastError
mov ebp, eax
xor eax, eax
mov dword [ebx], eax
jmp 0x54a595
xor ebp, ebp
mov edx, 0x20
mov eax, dword [0x4fd70c]
call fcn.004fdd44
mov dword [ebx], eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x20
call fcn.00403364
mov eax, dword [ebx]
mov edx, dword [esp + 8]
mov dword [eax + 8], edx
mov eax, dword [ebx]
mov edx, dword [esp + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebx]
mov dword [eax + 4], 2
mov eax, dword [ebx]
mov edx, 0x10
mov dword [eax + 0x10], edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
mov eax, dword [0x4fd70c]
call fcn.004fdd44
mov edi, eax
mov eax, dword [ebx]
mov dword [eax + 0x18], edi
mov word [edi], 2
mov dword [edi + 4], esi
mov eax, ebp
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x54a7c4
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x54a811
test esi, esi
jle 0x54a811
push 0
push 0x3e8
mov eax, esi
cdq
call fcn.00405cf8
mov dword [esp], eax
mov dword [esp + 4], edx
push 8
lea eax, [esp + 4]
push eax
push 0x1005
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
test eax, eax
sete al
neg al
sbb eax, eax
call fcn.0040f9a0
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x54a818
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x54a861
push 0
push 0x3e8
mov eax, esi
cdq
call fcn.00405cf8
mov dword [esp], eax
mov dword [esp + 4], edx
push 8
lea eax, [esp + 4]
push eax
push 0x1006
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
test eax, eax
sete al
neg al
sbb eax, eax
call fcn.0040f9a0
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x54a938
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef4
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [esp + 8]
call fcn.0054a1e4
lea edx, [esp + 8]
mov eax, ebx
call fcn.0054a1d4
test esi, esi
jge 0x54a963
xor esi, esi
jmp 0x54a986
mov eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [esp], eax
mov eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
mov esi, esp
push esi
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [ebx + 1]
push eax
call sub.wsock32.dll_select
test eax, eax
jge 0x54a9a8
call fcn.0054a720
mov dword [edi], eax
xor eax, eax
jmp 0x54a9b7
xor eax, eax
mov dword [edi], eax
lea edx, [esp + 8]
mov eax, ebx
call fcn.0054a1bc
add esp, 0x10c
pop edi
pop esi
pop ebx
ret
Function at 0x54b3c8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x20], edx
xor eax, eax
push ebp
push 0x54b49d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x54b47f
call fcn.0054a720
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [eax + 8], ebx
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x20]
mov eax, dword [ebp + 8]
mov eax, ebx
call fcn.0040d954
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov esi, dword [eax + 8]
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0
lea edx, [ebp - 0x1c]
mov ecx, 2
mov eax, 0x54b4b4
call fcn.0040b030
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 4
call fcn.00404adc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54b4a4
lea eax, [ebp - 0x20]
call fcn.00404a88
lea eax, [ebp - 4]
call fcn.00404a88
ret
Function at 0x54cd18
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x54bb60]
call fcn.0054be3c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x54ce26
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi + 0x1c]
push eax
call sub.kernel32.dll_InterlockedIncrement_1
mov dword [ebx], eax
call fcn.0054c9c8
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
add eax, 0x10
mov edx, dword [ebx + 0x28]
call fcn.00405208
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov eax, dword [ebx]
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [ebx + 0xc]
call fcn.00405208
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
mov edx, dword [ebx + 0x14]
call fcn.00405208
mov eax, dword [ebx + 0x18]
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 4]
add eax, 0x44
mov edx, dword [ebx + 0x1c]
call fcn.00405208
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 4]
add eax, 0x4c
mov edx, dword [ebx + 0x24]
call fcn.00405208
mov eax, dword [ebp - 4]
add eax, 0x50
mov edx, dword [ebx + 0x2c]
call fcn.00405208
mov eax, dword [ebp - 4]
add eax, 0x54
mov edx, dword [ebx + 0x30]
mov ecx, dword [0x54bb28]
call fcn.00406478
mov eax, dword [ebp - 4]
add eax, 0x58
mov edx, dword [ebx + 0x40]
mov ecx, dword [0x407308]
call fcn.00406478
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0054cf18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54ce3d
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret