joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f2850
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.004048bc
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.0040fb94
mov eax, ebx
call fcn.00409e04
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4f2923
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.0040fb94
mov eax, pe_nt_image_headers32
call fcn.00409e04
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4f2906
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x4f2950
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetTempFileNameA
call fcn.0040fb94
mov eax, dword [ebp - 0xc]
call fcn.0040b1d4
mov ecx, eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.004049a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f290d
mov eax, dword [ebp - 8]
call fcn.00402f3c
ret

Function at 0x4f39e4
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 0x4f3b2c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4f3b44
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.004f5154
mov eax, dword [ebp - 4]
call fcn.004f4b50
xor edx, edx
push ebp
push 0x4f3b0f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x4f3aae
test si, si
jne 0x4f3a54
mov eax, dword [ebp - 8]
call fcn.0040b1d4
mov esi, eax
cmp esi, 0xffff
jbe 0x4f3a54
call fcn.00403920
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 0x4f3aae
cmp eax, 0xffffffff
jle 0x4f3a83
sub ebx, eax
jmp 0x4f3a92
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004f5088
test ebx, ebx
je 0x4f3aae
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x4f3aae
mov eax, dword [ebp - 4]
cmp byte [eax + 0x100ad], 0
je 0x4f3a57
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x4f3af9
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov ecx, 0x4f3b5c
mov dl, 1
mov eax, dword [0x4f2b9c]
call fcn.0040e378
call fcn.00404208
mov eax, dword [ebp - 4]
cmp word [eax + 0x100fa], 0
je 0x4f3af9
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 0x4f3b16
mov eax, dword [ebp - 4]
call fcn.004f4bb4
ret
Function at 0x4f3fc8
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.00404d18
xor eax, eax
push ebp
push 0x4f418d
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4f41a4
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.004f5154
push 0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x412f0c]
call fcn.004177ec
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4f411d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x4f40e1
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 0x4f405d
call fcn.00403920
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 0x4f40e1
cmp eax, 0xffffffff
jle 0x4f40b2
sub ebx, eax
mov edx, dword [ebp - 4]
add dword [edx + 0x10084], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x100ca], 0
je 0x4f40a8
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.004f4b50
jmp 0x4f40c1
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004f5088
mov eax, dword [0x57f120]
mov eax, dword [eax]
call fcn.00464dc8
test ebx, ebx
je 0x4f40e1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x4f404a
mov eax, dword [ebp - 0xc]
call fcn.00417444
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.00417488
cmp ebx, eax
je 0x4f4107
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x4f4023
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4124
mov eax, dword [ebp - 0xc]
call fcn.00403a14
ret
Function at 0x4f41cc
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 0x4f434d
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4f4364
mov dl, 8
mov eax, ebx
call fcn.004f5154
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00417468
cmp byte [ebx + 0x10088], 0
jne 0x4f42f9
xor eax, eax
mov dword [ebx + 0x10084], eax
mov eax, dword [ebp - 4]
call fcn.00417488
mov dword [ebx + 0x100b4], eax
mov eax, dword [ebp - 4]
call fcn.00417488
push eax
mov eax, dword [ebp - 4]
call fcn.00417444
pop edx
xchg edx, eax
sub eax, edx
cmp eax, 0x10000
jle 0x4f4248
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 0x4f426f
call fcn.00403920
lea eax, [ebx + eax + 0x24]
push eax
movzx eax, word [ebx + 0x10100]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x4f4337
test eax, eax
jle 0x4f42af
sub esi, eax
add dword [ebx + 0x10084], eax
cmp word [ebx + 0x100ca], 0
je 0x4f42bd
mov edx, ebx
mov eax, dword [ebx + 0x100cc]
call dword [ebx + 0x100c8]
jmp 0x4f42bd
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.004f5088
mov eax, dword [0x57f120]
mov eax, dword [eax]
call fcn.00464dc8
test esi, esi
je 0x4f42d6
cmp byte [ebx + 0x10088], 0
je 0x4f425b
mov eax, dword [ebp - 4]
call fcn.00417488
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00417444
cmp esi, eax
je 0x4f42f9
cmp byte [ebx + 0x10088], 0
je 0x4f4227
cmp byte [ebx + 0x10088], 0
je 0x4f4337
mov byte [ebx + 0x10088], 0
mov ecx, 0x4f4378
mov dl, 1
mov eax, dword [0x4f2b9c]
call fcn.0040e378
call fcn.00404208
cmp word [ebx + 0x100fa], 0
je 0x4f4337
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 0x4f4354
lea eax, [ebp - 0xc]
call fcn.004048bc
ret
Function at 0x4f4be8
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 0x4f4cf1
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4f4d08
mov dl, 8
mov eax, ebx
call fcn.004f5154
test byte [ebx + 0x20], 0x10
setne al
xor al, 1
and al, byte [0x591f1c]
je 0x4f4cdb
xor eax, eax
push ebp
push 0x4f4cbb
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 0x4f4c51
call fcn.00403920
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 0x4f4c96
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.004f5088
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 0x4f4cdb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4cf8
lea eax, [ebp - 8]
call fcn.004048bc
ret

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

Disassembly:
push ebx
push esi
mov ebx, eax
mov ecx, 0x4f5070
mov dl, 4
mov eax, ebx
call fcn.004f5154
mov byte [ebx + 0x10108], 0
mov ax, word [ebx + 0x10100]
cmp ax, 0xffff
je 0x4f5062
movzx eax, ax
push eax
call sub.wsock32.dll_closesocket
test byte [ebx + 0x20], 8
jne 0x4f5021
cmp word [ebx + 0x1004a], 0
je 0x4f5021
mov edx, ebx
mov eax, dword [ebx + 0x1004c]
call dword [ebx + 0x10048]
cmp byte [ebx + 0x10089], 0
jne 0x4f5062
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x4f5044
call fcn.00403920
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 0x4f51fc
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 0x4f52c0
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 0x4f524d
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
call fcn.004f4f80
jmp 0x4f52c0
test eax, eax
jne 0x4f52c0
mov byte [ebp - 5], 1
xor eax, eax
push ebp
push 0x4f5289
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10108], 0
je 0x4f527f
mov eax, dword [ebp - 4]
call fcn.004f52cc
mov eax, dword [ebp - 4]
call fcn.004f4fd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f5293
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10028]
call fcn.004f2050
mov eax, dword [ebp - 4]
cmp word [eax + 0x1004a], 0
je 0x4f52c0
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 0x4f52cc
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4f52d3
mov eax, dword [esp + 0x10000]
mov ebx, eax
mov ecx, 0x4f5320
mov dl, 8
mov eax, ebx
call fcn.004f5154
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 0x4fba64
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 0x4fbc33
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.0040b23c
mov dl, 1
mov eax, dword [0x4fb5b4]
call fcn.004039b8
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.00404b14
lea ecx, [ebp - 0x22c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x274]
mov edx, dword [esi + 0x1c]
call fcn.004fbd3c
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 0x228]
mov ecx, 0xff
call fcn.00404b40
lea edx, [ebp - 0x228]
mov eax, dword [ebx]
add eax, 0x28
mov cl, 0xc
call fcn.004034a4
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.004fbe10
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x228]
mov ecx, 0xff
call fcn.00404b40
lea edx, [ebp - 0x228]
mov eax, dword [ebx]
add eax, 0x35
mov cl, 0xc
call fcn.004034a4
lea eax, [ebp - 0x238]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00404b14
mov eax, dword [ebp - 0x238]
lea edx, [ebp - 0x234]
call fcn.0040ae5c
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.00403a14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fbc3a
lea eax, [ebp - 0x238]
mov edx, 4
call fcn.004048e0
ret
Function at 0x50a8e0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov esi, edx
mov edi, eax
mov eax, dword [edi + 0xe8]
mov dword [edi + 0xbc8], eax
mov eax, dword [edi + 0xec]
mov dword [edi + 0xbcc], eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, dword [edi + 0xbc8]
call fcn.004dd084
push 0
lea eax, [esp + 4]
push eax
push 7
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [esp]
xor edx, edx
add eax, dword [edi + 0xbc8]
adc edx, dword [edi + 0xbcc]
mov dword [edi + 0xbc8], eax
mov dword [edi + 0xbcc], edx
push 0
lea eax, [esp + 4]
push eax
push 0xd
lea eax, [edi + 0xbd8]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [esp]
xor edx, edx
add eax, dword [edi + 0xbc8]
adc edx, dword [edi + 0xbcc]
mov dword [edi + 0xbc8], eax
mov dword [edi + 0xbcc], edx
cmp dword [esp], 0xd
je 0x50a99c
xor ebx, ebx
push 0x50a9b8
push 0x6294
xor ecx, ecx
mov edx, dword [edi + 0xa84]
mov eax, edi
mov esi, dword [eax]
call dword [esi + 0x6c]
jmp 0x50a9a7
mov edx, esi
mov eax, edi
call fcn.0050a9bc
mov ebx, eax
mov eax, ebx
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x50b180
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub al, 1
jb 0x50b194
je 0x50b1ab
dec al
je 0x50b1c2
jmp 0x50b21a
push 0
push 0
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call dword [0x5924a8]
mov ebx, eax
jmp 0x50b21f
push 0
push 0
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call dword [0x5924a8]
mov ebx, eax
jmp 0x50b21f
push 0x80
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xa38]
call fcn.00404d28
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
je 0x50b1f3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xa38]
call fcn.0040ab28
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xa38]
call fcn.00404d28
push eax
push 0
push 2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call dword [0x5924a8]
mov ebx, eax
jmp 0x50b21f
mov ebx, 0xc
test ebx, ebx
je 0x50b24f
push 0x50b260
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, ebx
call fcn.0050a364
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax + 0xb98]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
xor ecx, ecx
mov esi, dword [eax]
call dword [esi + 0x6c]
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x50e024
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 0x50e251
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 0x50e238
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.00404b64
test eax, eax
jne 0x50e083
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.00404b64
test eax, eax
jne 0x50e083
mov eax, dword [ebp - 4]
call fcn.0050e324
jmp 0x50e238
mov eax, dword [ebp - 4]
cmp dword [eax + 0x94], 0
jne 0x50e0c3
lea eax, [ebp - 0x106]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
call fcn.0040b2c4
push 0x3ec
lea eax, [ebp - 0x106]
push eax
mov eax, dword [0x5924c4]
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 0x50e103
lea eax, [ebp - 0x106]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
call fcn.0040b2c4
push 0x3ec
lea eax, [ebp - 0x106]
push eax
mov eax, dword [0x5924c4]
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.0050e390
mov byte [ebp - 6], al
cmp byte [ebp - 6], 0
jne 0x50e1d9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.00404b64
test eax, eax
jne 0x50e14f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb0]
call fcn.00404b64
test eax, eax
je 0x50e1d9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb0]
call fcn.00404b64
test eax, eax
je 0x50e177
lea eax, [ebp - 0x106]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xb0]
call fcn.0040b2c4
jmp 0x50e1a9
mov eax, dword [ebp - 4]
push dword [eax + 0x24]
push 0x50e268
mov eax, dword [ebp - 4]
push dword [eax + 0x28]
lea eax, [ebp - 0x10c]
mov edx, 3
call fcn.00404c24
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 0x106]
call fcn.0040b2c4
push 7
lea eax, [ebp - 0x106]
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x20
jb 0x50e1d9
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.0050e390
mov byte [ebp - 6], al
cmp byte [ebp - 6], 0
jne 0x50e1e9
mov eax, dword [ebp - 4]
call fcn.0050e324
jmp 0x50e238
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x50e203
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x9c], eax
jmp 0x50e210
mov eax, dword [ebp - 4]
mov dword [eax + 0x9c], 1
mov eax, dword [ebp - 4]
call fcn.0050e428
test al, al
je 0x50e238
mov eax, dword [ebp - 4]
mov bx, 0xffef
call fcn.00403c18
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0050e52c
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e258
lea eax, [ebp - 0x10c]
call fcn.004048bc
ret
Function at 0x5124d0
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push ebx
push esi
mov ebx, eax
xor eax, eax
mov dword [0x5926d4], eax
xor eax, eax
mov dword [0x5926d8], eax
push pe_nt_image_headers32
push 0x5924d4
mov eax, dword [0x57f120]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
push pe_nt_image_headers32
push 0x5925d4
mov eax, dword [0x57f120]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_GetClassNameA
push 0
push 0x512448
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 8]
cmp word [eax + 0x1ea], 0
je 0x512545
mov esi, eax
mov ecx, dword [0x5926d4]
mov edx, ebx
mov eax, dword [esi + 0x1ec]
call dword [esi + 0x1e8]
xor eax, eax
mov al, byte [ebx + 4]
cmp eax, dword [0x5926d4]
jge 0x5125e4
mov eax, dword [ebx + 8]
cmp word [eax + 0xd2], 0
je 0x512579
mov esi, eax
mov ecx, dword [0x5926d4]
mov edx, ebx
mov eax, dword [esi + 0xd4]
call dword [esi + 0xd0]
mov al, byte [ebx + 5]
cmp al, 1
je 0x512584
test al, al
jne 0x5125c8
mov eax, dword [0x5926d8]
push eax
call sub.user32.dll_GetLastActivePopup
mov dword [0x5926dc], eax
mov eax, dword [0x5926d8]
push eax
call sub.user32.dll_BringWindowToTop
mov eax, dword [0x5926dc]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x5125bd
push 9
mov eax, dword [0x5926dc]
push eax
call sub.user32.dll_ShowWindow
jmp 0x5125c8
mov eax, dword [0x5926dc]
push eax
call sub.user32.dll_SetForegroundWindow
cmp byte [ebx + 5], 2
je 0x5125dd
cmp byte [ebx + 5], 0
jne 0x5125e4
cmp dword [0x5926dc], 0
je 0x5125e4
xor eax, eax
call fcn.004047f8
pop esi
pop ebx
ret

Function at 0x512db0
Capabilities:
Hide graphical window

Disassembly:
cmp byte [eax + 0x118], 0
jne 0x512dbf
test byte [eax + 0x20], 0x10
je 0x512dfc
push 5
mov eax, dword [0x57f120]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x57f120]
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 [0x57f120]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_SetWindowLongA
ret
push 0
mov eax, dword [0x57f120]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x57f120]
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 [0x57f120]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_SetWindowLongA
ret
Function at 0x5292a8
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 0x5292dd
add word [ebp - 6], 0x2000
jae 0x5292dd
call fcn.00403928
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5292f6
add word [ebp - 6], 0x4000
jae 0x5292f6
call fcn.00403928
mov eax, dword [ebp - 0x10]
test byte [eax + 0xb], 0x20
je 0x52930c
add word [ebp - 6], 0x8000
jae 0x52930c
call fcn.00403928
mov byte [ebp - 0x12], 0
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.005290d0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x529374
lea edx, [ebp - 4]
mov eax, dword [0x57f2b0]
mov eax, dword [eax]
call fcn.0042b93c
xor eax, eax
push ebp
push 0x52936d
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
lea eax, [ebp - 4]
xor edx, edx
call fcn.00529138
pop ecx
mov byte [ebp - 0x12], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529374
mov eax, dword [0x57f2b0]
mov eax, dword [eax]
call fcn.0042b920
ret
cmp byte [ebp - 0x12], 2
je 0x52930c
cmp dword [ebp - 4], 0
setne byte [ebp - 0x11]
mov al, byte [ebp - 0x11]
mov esp, ebp
pop ebp
ret