joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f4b0
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0046f3d4
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040379c
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x46f514
call fcn.0046eca4
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x46f506
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040379c
pop esi
pop ebx
ret

Function at 0x46f5e0
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404834
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402f84
test ebx, ebx
je 0x46f62b
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x46f739
mov ecx, dword [0x54a28c]
mov dl, 1
mov eax, dword [0x46e0c0]
call fcn.0040c858
call fcn.00403d2c
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x46f766
mov ecx, dword [0x549e6c]
mov dl, 1
mov eax, dword [0x46e0c0]
call fcn.0040c858
call fcn.00403d2c
xor eax, eax
push ebp
push 0x46f7e7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.0040379c
cmp byte [ebp + 8], 0
je 0x46f7c1
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0046f670
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0046f430
jmp 0x46f7dd
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0046ef90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46f804
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46f9e8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0046f258
xor eax, eax
push ebp
push 0x46fb59
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x46fb43
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x46fa33
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x46fa3d
call fcn.00403dd8
jmp 0x46fb60
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041b40c
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x46fb38
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x46faeb
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x46fad8
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040379c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0046f9a0
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x46fb6c]
cmp dl, byte [eax + 0x28]
je 0x46fb3f
call fcn.0040c77c
jmp 0x46fb3f
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041b42c
jmp 0x46fb3f
cmp ecx, ebx
jge 0x46fb07
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041b42c
jmp 0x46fa3d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041b40c
cmp edx, dword [esp + 4]
jne 0x46fb27
cmp eax, dword [esp]
pop edx
pop eax
jne 0x46fa3d
push ebp
call fcn.0046f9a0
pop ecx
jmp 0x46fb3f
push ebp
call fcn.0046f9a0
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fb60
mov eax, dword [ebp - 4]
call fcn.0046f264
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46fb70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46fc92
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0046f258
xor eax, eax
push ebp
push 0x46fc75
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x46fbc0
call fcn.00403dd8
jmp 0x46fc7c
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x46fc5f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x46fc5f
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040379c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x46fc5f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bf70
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x46fcac
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x54a0ec]
mov dl, 1
mov eax, dword [0x46e0c0]
call fcn.0040c894
call fcn.00403d2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fc7c
mov eax, dword [ebp - 4]
call fcn.0046f264
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fc99
lea eax, [ebp - 0x28]
call fcn.00404374
ret
Function at 0x46fcf8
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46fe42
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0046f258
xor eax, eax
push ebp
push 0x46fe25
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x46fd5d
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x46fd5d
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x46fe0f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x46fd70
call fcn.00403dd8
jmp 0x46fe2c
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x46fe0f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x46fe0f
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040379c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x46fe0f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bf70
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x46fe5c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x54a0ec]
mov dl, 1
mov eax, dword [0x46e0c0]
call fcn.0040c894
call fcn.00403d2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fe2c
mov eax, dword [ebp - 4]
call fcn.0046f264
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fe49
lea eax, [ebp - 0x28]
call fcn.00404374
ret

Function at 0x4721c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4721f8]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4721d6
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4721e5
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4721f4
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x473690
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x549fcc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4736b6
push 0
mov eax, dword [0x549fcc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x481494
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 0x48149c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x48168e
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4816a4
mov eax, esi
call fcn.0047f320
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004043c8
lea ecx, [ebp - 0x10]
mov edx, 0x4816b8
mov eax, esi
call fcn.0047f320
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004043c8
lea ecx, [ebp - 0x14]
mov edx, 0x4816d0
mov eax, esi
call fcn.0047f320
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004043c8
lea ecx, [ebp - 0x18]
mov edx, 0x4816ec
mov eax, esi
call fcn.0047f320
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004043c8
lea ecx, [ebp - 0x1c]
mov edx, 0x481708
mov eax, esi
call fcn.0047f320
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004043c8
lea ecx, [ebp - 0x24]
mov edx, 0x481720
mov eax, esi
call fcn.0047f320
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004088dc
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408e54
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x481738
mov eax, esi
call fcn.0047f320
mov eax, dword [ebp - 0x28]
call fcn.00478df8
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x481748
mov eax, esi
call fcn.0047f320
mov eax, dword [ebp - 0x2c]
call fcn.00478df8
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x481760
mov eax, esi
call fcn.0047f320
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408e54
inc eax
je 0x481631
lea ecx, [ebp - 0x34]
mov edx, 0x481760
mov eax, esi
call fcn.0047f320
mov eax, dword [ebp - 0x34]
call fcn.00408e18
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.0040a5c8
fstp qword [ebp - 0x3c]
wait
call fcn.0040a958
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x48164c
lea ecx, [ebp - 0x40]
mov edx, 0x481760
mov eax, esi
call fcn.0047f320
mov eax, dword [ebp - 0x40]
call fcn.00478df8
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x481770
mov eax, esi
call fcn.0047f320
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004043c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481695
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404398
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404398
ret
Function at 0x488420
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 0x48847a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00488410
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00477a64
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00477664
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 0x488481
lea eax, [ebp - 4]
call fcn.00404374
ret

Function at 0x48ee68
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x48ee96
mov eax, ebx
call fcn.0048f91c
cmp dword [ebx + 0x40], 0
je 0x48ee8f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x48ef07
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x48eef9
cmp dword [ebx + 8], 0
je 0x48eeb8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x48eeca
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x48eef9
cmp dword [ebx + 8], 0
je 0x48eeab
cmp eax, 3
je 0x48eedd
dec eax
jne 0x48eeab
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x48eeab
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x48eeab
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x48ef25
cmp dword [ebx + 0x14], 0xcc
je 0x48ef25
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0048ef30
pop ebx
ret
Function at 0x4ad7f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4ad869
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x545ea0]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x4ad853
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.004ad7e8
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4ad5f0]
call fcn.004ad890
mov dword [0x545f04], eax
mov eax, dword [ebp - 4]
call fcn.004ad798
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad870
lea eax, [ebp - 8]
call fcn.00405e74
ret

Function at 0x4b0c34
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b0cee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404a80
mov eax, dword [0x54a2a8]
cmp dword [eax], 2
jne 0x4b0ca3
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404cc8
mov eax, dword [ebx]
call fcn.00404bec
push eax
mov eax, dword [ebx]
call fcn.00404bdc
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404bec
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404cc8
jmp 0x4b0cd5
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.004097cc
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404bcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0cf5
lea eax, [ebp - 0x3f0]
call fcn.00404374
ret
Function at 0x4c1014
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov esi, edx
mov ebx, eax
mov ebp, 0x54c2e0
test esi, esi
jne 0x4c102e
xor eax, eax
jmp 0x4c1130
cmp dword [ebp], 0
jne 0x4c1039
call fcn.004c0fa4
xor ebx, 0xffffffff
cmp edi, 8
jb 0x4c1109
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
sub edi, 8
cmp edi, 8
jae 0x4c1045
test edi, edi
jbe 0x4c112b
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
dec edi
test edi, edi
ja 0x4c110d
mov eax, ebx
xor eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4e1f18
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, ebx
call fcn.004e1f04
test eax, eax
jne 0x4e1f39
mov eax, esi
call fcn.00404374
jmp 0x4e1fca
mov eax, ebx
call fcn.004e2060
test al, al
je 0x4e1f7f
push 0
push 0
push 0xe
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_SendMessageA
mov edi, eax
mov eax, esi
mov ecx, edi
xor edx, edx
call fcn.00404464
test edi, edi
je 0x4e1f76
mov eax, dword [esi]
push eax
inc edi
push edi
push 0xd
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_SendMessageA
jmp 0x4e1fca
mov eax, esi
call fcn.00404374
jmp 0x4e1fca
mov ebp, dword [ebx + 0x70]
test ebp, ebp
je 0x4e1fc3
mov eax, dword [ebp + 0x208]
call fcn.004199b0
test eax, eax
jle 0x4e1fb1
mov eax, dword [ebx + 0x70]
mov eax, dword [eax + 0x208]
mov edx, edi
call fcn.0043b75c
mov edx, dword [eax + 0xc]
mov eax, esi
call fcn.004043c8
jmp 0x4e1fca
mov eax, esi
mov edx, dword [ebx + 0x70]
mov edx, dword [edx + 0x210]
call fcn.004043c8
jmp 0x4e1fca
mov eax, esi
call fcn.00404374
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x511034
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, eax
mov ebx, dword [ebp + 8]
add ebx, 0xffffffc4
mov esi, dword [ebp + 8]
add esi, 0xffffffbc
xor eax, eax
push ebp
push 0x5111e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.004282e8
mov eax, dword [eax + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0x70]
mov edx, dword [edx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x48]
call fcn.0045f1fc
call fcn.004e604c
mov edx, dword [ebp + 8]
mov dword [edx - 0x4c], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x4c], 0
je 0x5110b8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
mov eax, dword [eax + 0x68]
call fcn.00423044
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.004282e8
mov eax, dword [eax + 0xc]
pop edx
call fcn.0042304c
mov eax, dword [ebp + 8]
mov dword [eax - 0x50], ebx
lea edx, [ebp - 4]
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00422f2c
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x1c]
call fcn.00409678
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x50]
push eax
push 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.004282e8
call fcn.00423e58
push eax
call sub.gdi32.dll_GetObjectA
mov dword [ebx + 8], edi
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00422fa0
mov dword [ebx], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00422fdc
test al, 8
setne al
mov byte [ebx + 0x16], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00422fdc
test al, 2
setne al
mov byte [ebx + 0x14], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00422fdc
test al, 4
setne al
mov byte [ebx + 0x15], al
mov dword [ebx + 0x10], 0x190
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00423044
mov byte [ebx + 0x17], al
xor eax, eax
mov dword [ebx + 4], eax
mov byte [ebx + 0x18], 0
mov byte [ebx + 0x19], 0
mov eax, dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x1b], 0
mov byte [ebx + 0x1a], 0
push ebx
call sub.gdi32.dll_CreateFontIndirectA
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.004282e8
mov eax, dword [eax + 0xc]
pop edx
call fcn.00422ed8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.004282e8
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
imul edx, dword [edx - 0x54], 0x23
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0x94]
mov edx, dword [ecx + edx*4 + 0xc]
call fcn.00422d1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5111ee
lea eax, [ebp - 4]
call fcn.00404374
ret