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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, eax
lea esi, [ebp - 0xc]
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4c]
cmp eax, 0x1388
jae 0x4de779
mov edx, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4de77f
mov dword [esi], 0x1388
xor eax, eax
push ebp
push 0x4de872
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
inc eax
call fcn.00402f14
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4de861
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004d8fe4
push 0
push esi
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
cmp dword [esi], 0
jne 0x4de7d8
call fcn.0040429c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4de87c
xor ebx, ebx
jmp 0x4de847
lea eax, [ebx + 2]
cmp eax, dword [esi]
jae 0x4de837
test ebx, ebx
je 0x4de7f5
test ebx, ebx
jle 0x4de846
mov eax, dword [ebp - 8]
cmp byte [eax + ebx - 1], 0xa
jne 0x4de846
mov edx, 0x4de888
mov eax, dword [ebp - 8]
add eax, ebx
mov ecx, 6
call fcn.0040b2fc
test eax, eax
jne 0x4de846
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x50], 0x1b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [eax + 0x30], 1
mov byte [ebp - 1], 1
call fcn.0040429c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4de87c
call fcn.0040429c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4de87c
inc ebx
cmp ebx, dword [esi]
jb 0x4de7dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de868
mov eax, dword [ebp - 8]
call fcn.00402f2c
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ebdfc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4ebea6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [ebx + 4], eax
mov dl, 1
mov eax, dword [0x412f94]
call fcn.004039ac
mov esi, eax
mov dword [ebx + 0xc], esi
mov edx, dword [ebx + 8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov esi, dword [ebx + 0xc]
mov eax, esi
call fcn.00417438
mov edx, eax
mov eax, esi
call fcn.00417418
lea eax, [ebp - 4]
mov edx, 0x4ebebc
call fcn.0040492c
mov eax, dword [ebp - 4]
call fcn.00404d00
mov edx, eax
mov ecx, 1
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
call dword [esi + 8]
xor eax, eax
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 0x1c], eax
mov byte [ebx + 0x34], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ebead
lea eax, [ebp - 4]
call fcn.00404894
ret

Function at 0x4ebf40
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x24], eax
fild qword [ebp - 0x28]
fmul qword [ebp + 8]
call fcn.00403414
push eax
push 0
push 0x400
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
fild qword [ebp - 0x30]
fmul qword [ebp + 8]
call fcn.00403414
call fcn.00407c25
pop edx
xchg edx, eax
sub eax, edx
cmp eax, 0x10000
jge 0x4ebf9f
mov eax, 0x10000
mov esp, ebp
pop ebp
ret 8

Function at 0x4ebfa8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404894
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
push 0
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
mov eax, ebx
call fcn.0040fb44
mov eax, ebx
call fcn.00409f28
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4ec07b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
call fcn.0040fb44
mov eax, pe_nt_image_headers32
call fcn.00409f28
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4ec05e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x4ec0a8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetTempFileNameA
call fcn.0040fb44
mov eax, dword [ebp - 0xc]
call fcn.0040b184
mov ecx, eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.0040497c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec065
mov eax, dword [ebp - 8]
call fcn.00402f2c
ret
Function at 0x4ed13c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ed284
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4ed29c
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.004ee8ac
mov eax, dword [ebp - 4]
call fcn.004ee2a8
xor edx, edx
push ebp
push 0x4ed267
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x4ed206
test si, si
jne 0x4ed1ac
mov eax, dword [ebp - 8]
call fcn.0040b184
mov esi, eax
cmp esi, 0xffff
jbe 0x4ed1ac
call fcn.00403914
movzx ebx, si
push 0
push ebx
movzx eax, si
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10100]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x4ed206
cmp eax, 0xffffffff
jle 0x4ed1db
sub ebx, eax
jmp 0x4ed1ea
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004ee7e0
test ebx, ebx
je 0x4ed206
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x4ed206
mov eax, dword [ebp - 4]
cmp byte [eax + 0x100ad], 0
je 0x4ed1af
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x4ed251
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov ecx, 0x4ed2b4
mov dl, 1
mov eax, dword [0x4ec2f4]
call fcn.0040e328
call fcn.004041fc
mov eax, dword [ebp - 4]
cmp word [eax + 0x100fa], 0
je 0x4ed251
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x100fc]
call dword [ebx + 0x100f8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed26e
mov eax, dword [ebp - 4]
call fcn.004ee30c
ret
Function at 0x4ed720
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404cf0
xor eax, eax
push ebp
push 0x4ed8e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4ed8fc
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.004ee8ac
push 0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x412ebc]
call fcn.0041779c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4ed875
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x4ed839
mov eax, dword [ebp - 4]
lea edx, [eax + 0x24]
mov ecx, 0x10000
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 4]
mov esi, eax
mov ebx, esi
push 0
push ebx
mov eax, esi
sub eax, ebx
cmp eax, 0x10000
jbe 0x4ed7b5
call fcn.00403914
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 0x24]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10100]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x4ed839
cmp eax, 0xffffffff
jle 0x4ed80a
sub ebx, eax
mov edx, dword [ebp - 4]
add dword [edx + 0x10084], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x100ca], 0
je 0x4ed800
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x100cc]
call dword [edi + 0x100c8]
mov eax, dword [ebp - 4]
call fcn.004ee2a8
jmp 0x4ed819
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004ee7e0
mov eax, dword [0x578828]
mov eax, dword [eax]
call fcn.004644ac
test ebx, ebx
je 0x4ed839
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x4ed7a2
mov eax, dword [ebp - 0xc]
call fcn.004173f4
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.00417438
cmp ebx, eax
je 0x4ed85f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x4ed77b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed87c
mov eax, dword [ebp - 0xc]
call fcn.00403a08
ret
Function at 0x4ed924
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4edaa5
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4edabc
mov dl, 8
mov eax, ebx
call fcn.004ee8ac
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00417418
cmp byte [ebx + 0x10088], 0
jne 0x4eda51
xor eax, eax
mov dword [ebx + 0x10084], eax
mov eax, dword [ebp - 4]
call fcn.00417438
mov dword [ebx + 0x100b4], eax
mov eax, dword [ebp - 4]
call fcn.00417438
push eax
mov eax, dword [ebp - 4]
call fcn.004173f4
pop edx
xchg edx, eax
sub eax, edx
cmp eax, 0x10000
jle 0x4ed9a0
mov eax, 0x10000
lea edx, [ebx + 0x24]
mov ecx, eax
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 4]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
push 0
push esi
mov eax, dword [ebp - 8]
sub eax, esi
cmp eax, 0x10000
jbe 0x4ed9c7
call fcn.00403914
lea eax, [ebx + eax + 0x24]
push eax
movzx eax, word [ebx + 0x10100]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x4eda8f
test eax, eax
jle 0x4eda07
sub esi, eax
add dword [ebx + 0x10084], eax
cmp word [ebx + 0x100ca], 0
je 0x4eda15
mov edx, ebx
mov eax, dword [ebx + 0x100cc]
call dword [ebx + 0x100c8]
jmp 0x4eda15
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.004ee7e0
mov eax, dword [0x578828]
mov eax, dword [eax]
call fcn.004644ac
test esi, esi
je 0x4eda2e
cmp byte [ebx + 0x10088], 0
je 0x4ed9b3
mov eax, dword [ebp - 4]
call fcn.00417438
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004173f4
cmp esi, eax
je 0x4eda51
cmp byte [ebx + 0x10088], 0
je 0x4ed97f
cmp byte [ebx + 0x10088], 0
je 0x4eda8f
mov byte [ebx + 0x10088], 0
mov ecx, 0x4edad0
mov dl, 1
mov eax, dword [0x4ec2f4]
call fcn.0040e328
call fcn.004041fc
cmp word [ebx + 0x100fa], 0
je 0x4eda8f
mov edx, ebx
mov eax, dword [ebx + 0x100fc]
call dword [ebx + 0x100f8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4edaac
lea eax, [ebp - 0xc]
call fcn.00404894
ret
Function at 0x4ee340
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ee449
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4ee460
mov dl, 8
mov eax, ebx
call fcn.004ee8ac
test byte [ebx + 0x20], 0x10
setne al
xor al, 1
and al, byte [0x589be4]
je 0x4ee433
xor eax, eax
push ebp
push 0x4ee413
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x4ee3a9
call fcn.00403914
mov word [ebx + 0x10100], si
mov word [ebp - 4], 0
mov word [ebp - 2], 0
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xff7f
movzx eax, si
push eax
call sub.wsock32.dll_setsockopt
cmp word [ebx + 0x10100], 0xffff
jne 0x4ee3ee
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.004ee7e0
push 0x3f
push 0x465
mov eax, dword [ebx + 0x10104]
push eax
movzx eax, word [ebx + 0x10100]
push eax
call sub.wsock32.dll_WSAAsyncSelect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ee433
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ee450
lea eax, [ebp - 8]
call fcn.00404894
ret

Function at 0x4ee72c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov ecx, 0x4ee7c8
mov dl, 4
mov eax, ebx
call fcn.004ee8ac
mov byte [ebx + 0x10108], 0
mov ax, word [ebx + 0x10100]
cmp ax, 0xffff
je 0x4ee7ba
movzx eax, ax
push eax
call sub.wsock32.dll_closesocket
test byte [ebx + 0x20], 8
jne 0x4ee779
cmp word [ebx + 0x1004a], 0
je 0x4ee779
mov edx, ebx
mov eax, dword [ebx + 0x1004c]
call dword [ebx + 0x10048]
cmp byte [ebx + 0x10089], 0
jne 0x4ee7ba
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x4ee79c
call fcn.00403914
mov word [ebx + 0x10100], si
push 0x3d
push 0x465
mov eax, dword [ebx + 0x10104]
push eax
movzx eax, si
push eax
call sub.wsock32.dll_WSAAsyncSelect
pop esi
pop ebx
ret
Function at 0x4ee954
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100a8]
cmp dword [eax + 4], 0
setg byte [ebp - 5]
cmp byte [ebp - 5], 0
jne 0x4eea18
push 2
push 1
lea eax, [ebp - 6]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10100]
push eax
call sub.wsock32.dll_recv
test eax, eax
jle 0x4ee9a5
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
call fcn.004ee6d8
jmp 0x4eea18
test eax, eax
jne 0x4eea18
mov byte [ebp - 5], 1
xor eax, eax
push ebp
push 0x4ee9e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10108], 0
je 0x4ee9d7
mov eax, dword [ebp - 4]
call fcn.004eea24
mov eax, dword [ebp - 4]
call fcn.004ee72c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ee9eb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10028]
call fcn.004eb7a8
mov eax, dword [ebp - 4]
cmp word [eax + 0x1004a], 0
je 0x4eea18
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1004c]
call dword [ebx + 0x10048]
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

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

Disassembly:
push ebx
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4eea2b
mov eax, dword [esp + 0x10000]
mov ebx, eax
mov ecx, 0x4eea78
mov dl, 8
mov eax, ebx
call fcn.004ee8ac
push 0
push 0x10000
lea eax, [esp + 8]
push eax
movzx eax, word [ebx + 0x10100]
push eax
call sub.wsock32.dll_recv
add esp, 0x10004
pop ebx
ret
Function at 0x4f51bc
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x22c], edx
mov esi, eax
lea edi, [ebp - 0x128]
mov ecx, 0x4a
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 8]
add ebx, 0xfffffd90
lea esi, [ebp - 0x128]
xor eax, eax
push ebp
push 0x4f538b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov word [eax - 0x26a], 0
lea edx, [esi + 0x24]
mov eax, dword [ebp + 8]
add eax, 0xfffffefb
call fcn.0040b1ec
mov dl, 1
mov eax, dword [0x4f4d0c]
call fcn.004039ac
mov dword [ebx], eax
mov eax, dword [ebx]
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov eax, dword [ebx]
mov edx, dword [esi + 8]
mov dword [eax + 8], edx
mov eax, dword [ebx]
mov edx, dword [esi + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebx]
mov edx, dword [esi + 0x10]
mov dword [eax + 0x10], edx
mov eax, dword [ebx]
mov edx, dword [esi + 0x14]
mov dword [eax + 0x14], edx
mov eax, dword [ebx]
mov edx, dword [esi + 0x18]
mov dword [eax + 0x18], edx
mov eax, dword [ebx]
mov edx, dword [esi + 0x1c]
mov dword [eax + 0x1c], edx
mov eax, dword [ebx]
mov edx, dword [esi + 0x20]
mov dword [eax + 0x20], edx
mov eax, dword [ebx]
add eax, 0x24
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00404aec
lea ecx, [ebp - 0x22c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x274]
mov edx, dword [esi + 0x1c]
call fcn.004f5494
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 0x228]
mov ecx, 0xff
call fcn.00404b18
lea edx, [ebp - 0x228]
mov eax, dword [ebx]
add eax, 0x28
mov cl, 0xc
call fcn.00403498
push 0x2000
push 0x160
mov eax, dword [ebp + 8]
add eax, 0xfffffd98
push eax
push 0
lea eax, [esi + 0x24]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edx, eax
lea ecx, [ebp - 0x230]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x274]
call fcn.004f5568
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x228]
mov ecx, 0xff
call fcn.00404b18
lea edx, [ebp - 0x228]
mov eax, dword [ebx]
add eax, 0x35
mov cl, 0xc
call fcn.00403498
lea eax, [ebp - 0x238]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00404aec
mov eax, dword [ebp - 0x238]
lea edx, [ebp - 0x234]
call fcn.0040aec8
mov edx, dword [ebp - 0x234]
mov ecx, dword [ebx]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x274]
mov eax, dword [eax + 0x24]
mov esi, dword [eax]
call dword [esi + 0x38]
xor eax, eax
mov dword [ebx], eax
mov eax, dword [ebx]
call fcn.00403a08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5392
lea eax, [ebp - 0x238]
mov edx, 4
call fcn.004048b8
ret
Function at 0x5059d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x505bfd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2c], 0
jne 0x505be4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.00404b3c
test eax, eax
jne 0x505a2f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.00404b3c
test eax, eax
jne 0x505a2f
mov eax, dword [ebp - 4]
call fcn.00505cd0
jmp 0x505be4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x94], 0
jne 0x505a6f
lea eax, [ebp - 0x106]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
call fcn.0040b274
push 0x3ec
lea eax, [ebp - 0x106]
push eax
mov eax, dword [0x58a168]
mov eax, dword [eax + 0x38]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov edx, dword [ebp - 4]
mov dword [edx + 0x94], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x98], 0
jne 0x505aaf
lea eax, [ebp - 0x106]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
call fcn.0040b274
push 0x3ec
lea eax, [ebp - 0x106]
push eax
mov eax, dword [0x58a168]
mov eax, dword [eax + 0x38]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov edx, dword [ebp - 4]
mov dword [edx + 0x98], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x98]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x94]
mov eax, dword [ebp - 4]
call fcn.00505d3c
mov byte [ebp - 6], al
cmp byte [ebp - 6], 0
jne 0x505b85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.00404b3c
test eax, eax
jne 0x505afb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb0]
call fcn.00404b3c
test eax, eax
je 0x505b85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb0]
call fcn.00404b3c
test eax, eax
je 0x505b23
lea eax, [ebp - 0x106]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xb0]
call fcn.0040b274
jmp 0x505b55
mov eax, dword [ebp - 4]
push dword [eax + 0x24]
push 0x505c14
mov eax, dword [ebp - 4]
push dword [eax + 0x28]
lea eax, [ebp - 0x10c]
mov edx, 3
call fcn.00404bfc
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 0x106]
call fcn.0040b274
push 7
lea eax, [ebp - 0x106]
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x20
jb 0x505b85
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x98]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x94]
mov eax, dword [ebp - 4]
call fcn.00505d3c
mov byte [ebp - 6], al
cmp byte [ebp - 6], 0
jne 0x505b95
mov eax, dword [ebp - 4]
call fcn.00505cd0
jmp 0x505be4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x505baf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x9c], eax
jmp 0x505bbc
mov eax, dword [ebp - 4]
mov dword [eax + 0x9c], 1
mov eax, dword [ebp - 4]
call fcn.00505dd4
test al, al
je 0x505be4
mov eax, dword [ebp - 4]
mov bx, 0xffef
call fcn.00403c0c
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00505ed8
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505c04
lea eax, [ebp - 0x10c]
call fcn.00404894
ret
Function at 0x509e7c
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push ebx
push esi
mov ebx, eax
xor eax, eax
mov dword [0x58a378], eax
xor eax, eax
mov dword [0x58a37c], eax
push pe_nt_image_headers32
push 0x58a178
mov eax, dword [0x578828]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
push pe_nt_image_headers32
push 0x58a278
mov eax, dword [0x578828]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_GetClassNameA
push 0
push 0x509df4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 8]
cmp word [eax + 0x1ea], 0
je 0x509ef1
mov esi, eax
mov ecx, dword [0x58a378]
mov edx, ebx
mov eax, dword [esi + 0x1ec]
call dword [esi + 0x1e8]
xor eax, eax
mov al, byte [ebx + 4]
cmp eax, dword [0x58a378]
jge 0x509f90
mov eax, dword [ebx + 8]
cmp word [eax + 0xd2], 0
je 0x509f25
mov esi, eax
mov ecx, dword [0x58a378]
mov edx, ebx
mov eax, dword [esi + 0xd4]
call dword [esi + 0xd0]
mov al, byte [ebx + 5]
cmp al, 1
je 0x509f30
test al, al
jne 0x509f74
mov eax, dword [0x58a37c]
push eax
call sub.user32.dll_GetLastActivePopup
mov dword [0x58a380], eax
mov eax, dword [0x58a37c]
push eax
call sub.user32.dll_BringWindowToTop
mov eax, dword [0x58a380]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x509f69
push 9
mov eax, dword [0x58a380]
push eax
call sub.user32.dll_ShowWindow
jmp 0x509f74
mov eax, dword [0x58a380]
push eax
call sub.user32.dll_SetForegroundWindow
cmp byte [ebx + 5], 2
je 0x509f89
cmp byte [ebx + 5], 0
jne 0x509f90
cmp dword [0x58a380], 0
je 0x509f90
xor eax, eax
call fcn.004047d0
pop esi
pop ebx
ret

Function at 0x50a75c
Capabilities:
Hide graphical window

Disassembly:
cmp byte [eax + 0x118], 0
jne 0x50a76b
test byte [eax + 0x20], 0x10
je 0x50a7a8
push 5
mov eax, dword [0x578828]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x578828]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x40000
push eax
push 0xffffffffffffffec
mov eax, dword [0x578828]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_SetWindowLongA
ret
push 0
mov eax, dword [0x578828]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x578828]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x578828]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_SetWindowLongA
ret
Function at 0x520c54
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov ax, word [eax + 4]
and eax, 0xff
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x520c89
add word [ebp - 6], 0x2000
jae 0x520c89
call fcn.0040391c
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x520ca2
add word [ebp - 6], 0x4000
jae 0x520ca2
call fcn.0040391c
mov eax, dword [ebp - 0x10]
test byte [eax + 0xb], 0x20
je 0x520cb8
add word [ebp - 6], 0x8000
jae 0x520cb8
call fcn.0040391c
mov byte [ebp - 0x12], 0
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.00520a7c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x520d20
lea edx, [ebp - 4]
mov eax, dword [0x5789b4]
mov eax, dword [eax]
call fcn.0042ba40
xor eax, eax
push ebp
push 0x520d19
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
lea eax, [ebp - 4]
xor edx, edx
call fcn.00520ae4
pop ecx
mov byte [ebp - 0x12], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520d20
mov eax, dword [0x5789b4]
mov eax, dword [eax]
call fcn.0042ba24
ret
cmp byte [ebp - 0x12], 2
je 0x520cb8
cmp dword [ebp - 4], 0
setne byte [ebp - 0x11]
mov al, byte [ebp - 0x11]
mov esp, ebp
pop ebp
ret