joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c08c08d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x5c08c0d7
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x5c08c07e
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x5c08c08d
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x5c491d30
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x5c08c0de
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.5c072f54
cmp eax, dword [ebp + 0xc]
pop eax
je 0x5c08c17d
add edi, 4
add eax, 2
dec ecx
jne 0x5c08c0c3
call 0x5c08c12a
loope 0x5c08c120
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x5c08c17a
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x5c08c18b
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x5c08c13e
cmp eax, ecx
ja 0x5c08c13e
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x5c08c1c8
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x5c08c1be
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.5c073433
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4d0add
Capabilities:
Encode data using xor

Disassembly:
insb byte es:[edi], dx
push edi
invalid
les ebp, [edx]
mov bh, 0x3d
xchg ecx, eax
outsb dx, byte [esi]
mov dl, 0xca
sub al, 0x53
xchg edx, eax
std
out dx, al
cmp eax, 0xb2f26e91
retf 0x532c
push ebp
jnp 0x4d0a9c
lcall 0x791, 0x12c2fbe
jge 0x4d0a91
out 0x3b, eax
jmp 0x4d0a55
retf 0x1c15
jns 0x4d0ab2
loop 0x4d0a8e
adc ch, ah
sbb eax, 0x4566d261
mov edx, ss
pop ebp
adc al, 0xc7
or byte [ebp - 0x54e1215c], bl
mov ecx, 0xb56c5d5b
ficomp dword [ebx + 0x68]
or ah, byte [ebx + 0x57]
inc esp
pushal
imul edi, dword [esp + ebx*4], 0xd16c0116
call 0x19027131
out dx, al
mov dword [0x1f8ba910], eax
mov ebx, 0xcb34b6bf
inc eax
or ebx, edi
insb byte es:[edi], dx
push 0xffffffffffffffab
xor eax, 0x80400417
pop ebx
in eax, dx
jae 0x4d0b7f
insd dword es:[edi], dx
pop es
loope 0x4d0b9d
dec esi
push ebx
popfd
mov eax, 0x2a92bb30
or eax, 0xd4ce2ebb
jbe 0x4d0bab
pop esi
sbb eax, 0xaecd342
mov dl, 0x8d
jmp 0x4d0b85
mov bl, 0x42
out dx, al
cmp al, 0xa2
push ebx
lahf
test al, 0xdc
jbe 0x4d0bcd
fdiv qword [esi + 0x71]
int1
xor al, 0x6e
and eax, 0x8a123f25
cwde
jecxz 0x4d0b26
xor esp, dword [edi + ebx*2 - 0x7e6be6d7]
adc eax, 0x541c365b
invalid
in eax, dx
mov dh, 0x33
out dx, eax
pushfd
cmpsb byte [esi], byte es:[edi]
pushfd
jp 0x4d0be7
int 0x71
push 0xa7d1392d
fisttp word [esi]
pushfd
mov al, 0x89
invalid
pop ebp
or ecx, dword [edi]
fsincos
jmp 0x4d0bee
imul ebx, dword [ebp + 0x6e], 0x3c
add al, 0xd3
xchg ebx, eax
inc edx
clc
js 0x4d0b59
sbb al, ah
jnp 0x4d0b51
ja 0x4d0b70
pop ds
cli
pop esi
or eax, 0x30457570
mov ebp, 0xcc2b87b4
add al, 0xc4
xor al, 0xca
xor eax, 0x17e65d8
jo 0x4d0b59
cmp eax, 0x5ed61f6e
dec ebx
jl 0x4d0b98
push eax
cmp dl, 0xc1
insd dword es:[edi], dx
lodsb al, byte [esi]
push ss
cwde
inc ebx
push edx
sub dword [ebp - 0x57], esp
jle 0x4d0c13
sub dword [edx + 3], esi
cmp al, 0xbd
mov edx, 0xba9f983f
mov ah, byte [edi + 0x71]
cmpsd dword [esi], dword es:[edi]
add edi, dword [edi*4 - 0x6067c046]
lahf
mov edx, 0xa771678a
push ds
sti
aas
outsd dx, dword [esi]
inc ebp
pop ecx
insd dword es:[edi], dx
inc eax
mov ebp, 0x949b3c1b
add ah, byte [esp + eax*8]
stc
fcomp dword [ebx - 0x6a9642e3]
stosb byte es:[edi], al
xor eax, 0x2a2b797e
jle 0x4d0c8e
sub ebp, dword [edx]
mov esp, 0x6c2ae9cd
mov ebx, 0xa0fc4ce7
mov ch, 0xa6
mov dword [edx - 0x7a], esi
xchg esi, eax
pop esp
sub dword [ebp + 0xe], ecx
dec eax
sahf
jno 0x4d0bf4
cmp esi, dword [edx + 0x4c3c26fa]
das
pop ds
push cs
mov dh, 0x92
mov ah, 0x40
mov cl, 0x1e
cld
loope 0x4d0c42
insd dword es:[edi], dx
mov dword [0xfd379e4d], eax
fisttp dword [ebx]
xchg byte [esp + ebp], ch
mov ah, 0xf3
xor dword [esi + 0x3d7dc91c], edi
daa
pop edx
push ebx
cmp al, 0xe2
pushfd
into
and cl, byte [ebx]
ret 0xaf64
add dword [eax - 0x75], ebp
retf

Function at 0x539925
Capabilities:
Encode data using xor

Disassembly:
push ss
adc esp, dword [esi]
mov ebx, 0x6374b673
xor bl, byte [ebp + 0x37063ae5]
pop ebx
sbb ah, byte [edx - 0x49cda0a6]
aaa
invalid
Function at 0x401d0f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ebp + 0xc]
sub edi, dword [esi + 0x18]
sub eax, dword [esi + 0x14]
mov edx, dword [esi]
push 1
xor ebx, ebx
push edi
push eax
mov ecx, esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [edx + 0x74]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x100]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x401e48
push eax
call fcn.004271e0
mov ebx, eax
test ebx, ebx
pop ecx
je 0x401e15
mov eax, dword [ebx + 0x10]
push 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x401d89
lea eax, [ebx + 0x14]
push eax
call fcn.0041d73b
movzx eax, word [ebp + 0xc]
movzx edi, di
shl edi, 0x10
or edi, eax
push edi
push dword [ebp + 8]
mov ecx, ebx
push 0x202
call fcn.0042746e
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0x100], eax
jne 0x401ddf
mov ecx, dword [ebx + 0x40]
xor eax, eax
cmp ecx, eax
je 0x401dd1
cmp word [ecx], ax
je 0x401dd1
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x401e15
cmp dword [ebx + 0x10], eax
je 0x401e15
mov dword [ebp - 4], 1
jmp 0x401e15
mov eax, dword [ebx]
push 1
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x401dfe
lea eax, [ebx + 0x14]
push eax
call fcn.0041d73b
push edi
push dword [ebp + 8]
mov ecx, ebx
push 0x2a3
call fcn.0042746e
mov dword [ebp - 8], 1
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov dword [esi + 0x100], ecx
je 0x401e26
push 0x67
jmp 0x401e41
cmp dword [ebp - 8], ecx
je 0x401e48
cmp dword [ebp - 0xc], ecx
je 0x401e48
mov edx, dword [ebp - 0x14]
lea eax, [esi + 0xfc]
cmp edx, dword [eax]
jne 0x401e3f
mov dword [eax], ecx
push 0x6a
mov edi, ebx
call fcn.0040193c
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x403a4e
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4bab51
call fcn.004b89d0
sub esp, 0x10
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.004279af
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push str.__02d__02d__02d__03d__n
lea ecx, [ebp + 8]
call fcn.0040c1e6
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040dae8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4051c6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.00486640
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x40521f
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x4052cd
mov eax, dword [ebp - 0x94]
dec eax
je 0x4052b9
dec eax
jne 0x4052cd
cmp dword [ebp - 0xa0], 6
jne 0x40526a
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x405252
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x405266
cmp dword [ebp - 0x9c], edi
jne 0x4052a6
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x4052cd
cmp dword [ebp - 0xa0], 5
jne 0x405299
cmp dword [ebp - 0x9c], 2
jne 0x405280
push 5
jmp 0x4052b6
cmp dword [ebp - 0x9c], 1
jne 0x40528d
push 6
jmp 0x4052b6
cmp dword [ebp - 0x9c], edi
jne 0x4052cd
push 3
jmp 0x4052b6
cmp dword [ebp - 0xa0], 4
ja 0x4052cd
push 4
jmp 0x4052b6
cmp dword [ebp - 0x9c], 2
jne 0x4052cd
cmp byte [ebp + 0x76], al
jne 0x4052cd
push 0xa
pop edi
jmp 0x4052cd
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x407333
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
inc edi
cmp dword [ebp + 0xc], 0x4e
jne 0x407368
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x407368
mov ecx, esi
mov dword [esi + 0x3c8], edi
call fcn.004072a1
mov dword [ebx], eax
cmp dword [esi + 0x3c8], 0
je 0x407368
mov eax, edi
jmp 0x4073af
push 0
push ebx
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047e830
test eax, eax
jne 0x407364
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x4073b4
push 5
push dword [esi + 4]
lea eax, [esi + 0x3c8]
mov dword [ebp + 0xc], eax
mov dword [eax], edi
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [ebx], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x407364
xor eax, eax
pop edi
pop ebp
ret 0x10
cmp eax, 0x403
jne 0x4073ee
mov eax, dword [esi + 0x3cc]
mov dword [esi + 0x28], eax
xor eax, eax
push eax
push eax
push eax
mov dword [esi + 0x3c8], edi
mov dword [esi + 0x3b8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
and dword [ebx], 0
cmp dword [esi + 0x3c8], 0
jmp 0x4073ab
cmp eax, 0x465
jne 0x40741b
lea ecx, [esi + 0x2c]
mov dword [esi + 0x3c8], edi
call fcn.00408094
mov dword [esi + 0x440], eax
mov eax, dword [esi + 0x30]
push 5
lea ecx, [esi + 0x404]
call fcn.0047ed98
jmp 0x4073e2
cmp eax, 0x110
jne 0x4073ad
lea eax, [esi + 0x3c8]
push ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp + 0xc], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, esi
call fcn.00406cfd
mov dword [ebx], eax
jmp 0x4073a5
Function at 0x407c6c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [ebp + 0xc], 0x4e
push edi
mov edi, eax
jne 0x407ca4
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x407ca4
mov ecx, edi
mov dword [edi + 0x3c4], esi
call fcn.00407be2
mov dword [ebx], eax
cmp dword [edi + 0x3c4], 0
je 0x407ca4
mov eax, esi
jmp 0x407ceb
push 0
push ebx
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047e830
test eax, eax
jne 0x407ca0
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x407cf1
push 5
push dword [edi + 4]
lea eax, [edi + 0x3c4]
mov dword [ebp + 0xc], eax
mov dword [eax], esi
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [ebx], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x407ca0
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x10
cmp eax, 0x403
jne 0x407d2b
mov eax, dword [edi + 0x3cc]
mov dword [edi + 0x28], eax
xor eax, eax
push eax
push eax
push eax
mov dword [edi + 0x3c4], esi
mov dword [edi + 0x3b8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
and dword [ebx], 0
cmp dword [edi + 0x3c4], 0
jmp 0x407ce7
cmp eax, 0x465
jne 0x407d58
lea ecx, [edi + 0x2c]
mov dword [edi + 0x3c4], esi
call fcn.00408094
mov dword [edi + 0x42c], eax
mov eax, dword [edi + 0x30]
push 5
lea ecx, [edi + 0x3fc]
call fcn.0043aaec
jmp 0x407d1f
cmp eax, 0x110
jne 0x407ce9
lea eax, [edi + 0x3c4]
push ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], esi
mov dword [ebp + 0xc], eax
mov eax, esp
mov dword [eax], ecx
call fcn.004076f8
mov dword [ebx], eax
jmp 0x407ce1
Function at 0x4085b0
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp ebp, esi
push edi
mov ebx, eax
mov dword [esp + 0x18], esi
jne 0x4085e7
mov eax, dword [0x4ee2fc]
cmp eax, esi
je 0x4085d5
mov ebp, dword [eax + 4]
jmp 0x4085d7
xor ebp, ebp
cmp ebp, esi
jne 0x4085e7
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, eax
cmp ebp, esi
je 0x40860c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
je 0x40860c
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40860c
push esi
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x18], 1
push ecx
mov eax, esp
mov dword [ebx + 0x3b8], esi
push ebp
mov dword [eax], esi
call fcn.0040946d
mov ecx, eax
cmp ecx, esi
mov dword [esp + 0x14], ecx
jne 0x408637
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x408726
mov eax, dword [0x4ee2fc]
cmp eax, esi
mov dword [esp + 0x1c], esi
je 0x40864e
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov dword [eax + 4], ecx
mov eax, ebp
call fcn.00409629
cmp dword [ebx + 0x3ac], esi
je 0x4086c5
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp edi, dword [esp + 0x24]
je 0x4086a9
push 1
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, dword [esp + 0x24]
je 0x4086c5
push esi
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, ebx
call fcn.0042b49d
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 4]
mov dword [ebx + 0x3b8], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x18], esi
je 0x40870a
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebp, esi
je 0x40870a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x40870a
push ebp
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x4ee2fc]
cmp eax, esi
je 0x40871a
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x4087b6
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp ebp, esi
push edi
mov ebx, eax
mov dword [esp + 0x18], esi
jne 0x4087ed
mov eax, dword [0x4ee2fc]
cmp eax, esi
je 0x4087db
mov ebp, dword [eax + 4]
jmp 0x4087dd
xor ebp, ebp
cmp ebp, esi
jne 0x4087ed
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, eax
cmp ebp, esi
je 0x408812
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
je 0x408812
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x408812
push esi
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x18], 1
push ecx
mov eax, esp
mov dword [ebx + 0x3b8], esi
push ebp
mov dword [eax], esi
call fcn.00409741
mov ecx, eax
cmp ecx, esi
mov dword [esp + 0x14], ecx
jne 0x40883d
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x40892c
mov eax, dword [0x4ee2fc]
cmp eax, esi
mov dword [esp + 0x1c], esi
je 0x408854
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov dword [eax + 4], ecx
mov eax, ebp
call fcn.00409629
cmp dword [ebx + 0x3ac], esi
je 0x4088cb
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp edi, dword [esp + 0x24]
je 0x4088af
push 1
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, dword [esp + 0x24]
je 0x4088cb
push esi
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, ebx
call fcn.0042b49d
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 4]
mov dword [ebx + 0x3b8], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x18], esi
je 0x408910
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebp, esi
je 0x408910
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x408910
push ebp
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x4ee2fc]
cmp eax, esi
je 0x408920
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x40a41f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x28]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x40a46b
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x110]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x40a46b
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x1f8]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
cmp dword [esi + 0x2fc], 0
je 0x40a4e3
lea ebx, [esi + 0x30c]
cmp dword [ebx], 0
je 0x40a488
call dword [sym.imp.USER32.dll_ReleaseCapture]
and dword [ebx], 0
cmp dword [esi + 0x2fc], edi
jne 0x40a4dc
push edi
call fcn.004271e0
mov edi, eax
movzx eax, word [ebp + 0x10]
pop ecx
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x205
call fcn.0042746e
mov eax, dword [esi + 4]
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xd
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0x10]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x2fc], 0
pop edi
pop ebx
leave
ret 0xc
Function at 0x40a7a9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x30c]
cmp dword [edi], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
je 0x40a7da
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov ebx, dword [ebp + 0x10]
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], eax
jne 0x40a81e
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x110]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], eax
jne 0x40a81e
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x1f8]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x2f8]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x40a972
push eax
call fcn.004271e0
mov edi, eax
test edi, edi
pop ecx
je 0x40a8f1
mov eax, dword [edi + 0x10]
push 2
mov dword [ebp - 8], eax
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x40a865
push 1
push edi
push esi
call fcn.0040c065
movzx eax, word [ebp + 0xc]
movzx ebx, bx
shl ebx, 0x10
or ebx, eax
push ebx
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.0042746e
mov eax, dword [ebp - 4]
cmp dword [esi + 0x2f8], eax
jne 0x40a8bb
mov ecx, dword [edi + 0x40]
xor eax, eax
cmp ecx, eax
je 0x40a8ad
cmp word [ecx], ax
je 0x40a8ad
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40a8f1
cmp dword [edi + 0x10], eax
je 0x40a8f1
mov dword [ebp - 0xc], 1
jmp 0x40a8f1
mov eax, dword [edi]
push 1
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x40a8da
push 1
push edi
push esi
call fcn.0040c065
push ebx
push dword [ebp + 8]
mov ecx, edi
push 0x2a3
call fcn.0042746e
mov dword [ebp - 0x10], 1
xor eax, eax
cmp dword [ebp - 0xc], eax
mov dword [esi + 0x2f8], eax
je 0x40a933
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x20], 1
call dword [eax + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x24]
push 0x4e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40a972
cmp dword [ebp - 0x10], eax
je 0x40a972
mov ecx, dword [ebp - 8]
cmp ecx, eax
je 0x40a972
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x28]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
add esi, 0x2f4
cmp eax, dword [esi]
jne 0x40a972
and dword [esi], 0
pop edi
pop esi
pop ebx
leave
ret 0xc