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

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
mov ebp, edx
push edi
mov eax, dword [esi]
test eax, 0x40000000
je 0x42545f
pop edi
mov dword [esi + 0x20], 0x14
xor eax, eax
pop esi
pop ebp
pop ecx
ret
test al, al
jns 0x4254aa
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
mov edi, dword [esi + 0x68]
cmp eax, dword [esi + 0x6c]
ja 0x4254ca
jb 0x425477
cmp ecx, edi
jae 0x4254ca
mov eax, dword [esp + 0x14]
sub edi, ecx
mov dword [esp + 0xc], edi
push ebx
mov ebx, edi
cmp edi, eax
jbe 0x425490
mov edi, eax
mov ebx, eax
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x64]
push ebx
add eax, ecx
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x70], ebx
adc dword [esi + 0x74], 0
pop ebx
jmp 0x4254d5
push 0
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
push ebp
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4254d1
mov dword [esi + 0x20], 7
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
mov edi, dword [esp + 0xc]
add dword [esi + 0x58], edi
mov edx, ebp
mov ecx, dword [esi + 0x60]
adc dword [esi + 0x5c], 0
push edi
call fcn.00424f40
add esp, 4
mov dword [esi + 0x60], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x4277b0
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
mov dword [ebp - 4], eax
push esi
mov esi, edx
push edi
test eax, eax
je 0x427908
cmp dword [eax + 0x18], 0
jne 0x427908
cmp dword [eax + 0x3c], 0
je 0x427908
cmp dword [eax + 0x1c], 0
je 0x427908
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4277f0
sub eax, edx
inc eax
lea ecx, [eax + 8]
cmp eax, ecx
sbb eax, eax
test ecx, eax
je 0x427884
mov ecx, ebx
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427810
sub ecx, edx
lea eax, [ecx + 1]
lea ecx, [eax + 8]
cmp eax, ecx
sbb edx, edx
and edx, ecx
mov ecx, ebx
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427830
sub ecx, edi
lea eax, [ecx + 1]
lea ecx, [eax + 8]
cmp edx, 0x400
ja 0x427863
cmp eax, ecx
sbb eax, eax
and eax, ecx
call fcn.004c1c90
mov edi, esp
test edi, edi
je 0x427886
mov dword [edi], 0xcccc
add edi, 8
jmp 0x427886
cmp eax, ecx
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x427886
mov dword [edi], 0xdddd
add edi, 8
jmp 0x427886
xor edi, edi
mov edx, edi
mov ecx, ebx
sub edx, ebx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x427890
mov ecx, ebx
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4278a1
mov eax, dword [ebp - 4]
push 0
push 0
push 0
push dword [eax + 0x3c]
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
sub ebx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x4278d6
test edi, edi
je 0x4278fc
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x4278fc
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, esi
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428690
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
shl ecx, 0x1f
sar ecx, 0x1f
test ecx, ecx
lea edi, [eax - 5]
cmove edi, eax
xor ebx, ebx
test ecx, ecx
lea eax, [esp + 0x10]
push eax
setne bl
push 0x40
lea ebx, [ebx*2 + 5]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4286db
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x4286f6
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x4286fc
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x428ac0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4dc368], ecx
mov eax, 1
nop dword [eax + eax]
mov ecx, dword [eax*4 + 0x4dc364]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul ecx, edx, 0x6c078965
add ecx, eax
mov dword [eax*4 + 0x4dc368], ecx
inc eax
cmp eax, 0x270
jl 0x428ad0
mov dword [0x4d8aec], 1
mov dword [0x4dc364], 1
ret

Function at 0x428b10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4dc364], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x4dc368
jne 0x428b2f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.00428ac0
mov eax, dword [0x4dc368]
mov ebx, 0xe3
mov dword [0x4d8aec], 0x270
mov dword [0x4dcd28], 0x4dc368
nop dword [eax]
mov edi, dword [esi + 4]
mov ecx, edi
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub ebx, 1
jne 0x428b50
mov ebp, 0x18c
nop word [eax + eax]
mov ebx, dword [esi + 4]
lea esi, [esi + 4]
mov ecx, ebx
mov eax, ebx
xor ecx, edi
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
mov edi, ebx
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x390]
mov dword [esi - 4], ecx
sub ebp, 1
jne 0x428b90
mov eax, dword [0x4dc368]
mov ecx, ebx
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, ebx
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
pop ebp
pop ebx
ret

Function at 0x428c00
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4d8aec], 1
jne 0x428c0e
call fcn.00428b10
mov eax, dword [0x4dcd28]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4dcd28], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x428c50
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4d8aec], 1
jne 0x428c5e
call fcn.00428b10
mov eax, dword [0x4dcd28]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4dcd28], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4d0b80]
mulsd xmm0, qword [0x4d0a00]
ret

Function at 0x429360
Capabilities:
Write clipboard data

Disassembly:
cmp byte [ecx + 0x17], 0
jne 0x429369
mov ecx, dword [ecx + 0xc]
cmp byte [ecx + 0x17], 2
jne 0x42938a
cmp dword [0x4dba88], 0
je 0x42938a
mov dword [esp + 4], 1
mov ecx, 0x4dba7c
jmp fcn.00406200
mov al, byte [ecx + 0x15]
and al, 0x86
cmp byte [esp + 4], 0
mov byte [ecx + 0x15], al
je 0x42939e
or al, 1
mov byte [ecx + 0x15], al
mov eax, 1
ret 4
Function at 0x42d440
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x4d70f0]
push ebx
push ebp
add eax, 4
imul eax, eax, 0xe8
push esi
push edi
push eax
push dword [0x4d985c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 8
mov dword [0x4d985c], eax
test eax, eax
jne 0x42d470
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [0x4d70f4]
mov edi, eax
push 0x4047c0
push 0x4ef6d80
push 0xe
push dword [0x4d9978]
mov ecx, 0x3a
mov dword [0x4d70f4], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
call edi
cmp dword [0x4dbde8], 0
jne 0x42d4b1
mov ebp, 1
jmp 0x42d5b4
mov eax, dword [0x4d70f4]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [eax + 0xcc], 0
call esi
cmp byte [0x4d9855], 0
mov ecx, dword [0x4d70f4]
mov dword [ecx + 0xbc], eax
mov dword [ecx + 0xc0], 0x64
jne 0x42d4fe
push 0x404690
push 0x64
push 0xb
push dword [0x4d9978]
call edi
test eax, eax
setne byte [0x4d9855]
mov byte [0x4dc0c9], 1
call esi
inc dword [0x4d9960]
mov ecx, dword [0x4d8a7c]
mov dword [0x4dc0ec], eax
mov dword [0x4dc0e8], eax
cmp ecx, dword [0x4d8a80]
jne 0x42d530
call fcn.00406580
mov ecx, dword [0x4d8a7c]
cmp ecx, dword [0x4d8a78]
jb 0x42d545
mov eax, dword [0x4dbe24]
mov dword [ecx], eax
mov ecx, dword [0x4d8a7c]
add ecx, 0xc
mov dword [0x4d8a7c], ecx
push 0
push 0
mov dword [ecx], 0
mov dword [ecx + 4], str.Auto_execute
mov dword [ecx + 8], 0
mov ecx, dword [0x4dbde8]
push 1
call fcn.00442d30
sub dword [0x4d8a7c], 0xc
mov ebp, eax
dec dword [0x4d9960]
cmp byte [0x4d9855], 0
je 0x42d5ad
push 0xb
push dword [0x4d9978]
call dword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x4d9855]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [0x4d9855], cl
mov byte [0x4dc0c9], 0
mov ebx, dword [0x4d70f4]
mov eax, dword [ebx + 0xe4]
test eax, eax
je 0x42d60a
cmp dword [eax + 8], 6
jne 0x42d5d8
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx + 0xe4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x42d5ef
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebx + 0xe4]
add esp, 4
push 0x10
push eax
call fcn.004c0c55
mov dword [ebx + 0xe4], 0
add esp, 8
mov ebx, dword [0x4d70f4]
mov ecx, ebx
call fcn.004048d0
push 1
push 0
mov byte [ebx + 0xcc], 1
mov ecx, 0x3a
mov esi, ebx
mov edi, 0x4d9860
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4d995c]
push 0xffffffffffffffff
push 0x4c3cb0
mov word [ebx + 0xcc], 0x101
mov dword [ebx + 0xc0], 0
mov byte [ebx + 0xce], 0
mov dword [ebx + 0x2c], connect
call fcn.004b04f0
cmp word [0x4da464], 0
mov esi, 1
jne 0x42d6a7
cmp dword [0x4da44c], 0
jne 0x42d6a7
cmp dword [0x4d9998], 0
jne 0x42d6a7
cmp dword [0x4d9994], 0
jne 0x42d6a7
cmp byte [0x4d9989], 0
jne 0x42d6a7
test ebp, ebp
mov ecx, 6
push 0
cmove ecx, esi
push ecx
mov ecx, 0x4dba98
call fcn.0042d940
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x42d840
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x328
cmp dword [0x4d99e4], 0
push esi
push edi
mov esi, ecx
jne 0x42d8d6
push 0x104
lea eax, [esp + 0x12c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0xc], 1
mov edi, eax
jne 0x42d8f0
mov edx, dword [edi]
lea ecx, [esp + 0x128]
nop word [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x42d8c6
test ax, ax
je 0x42d8c2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x42d8c6
add ecx, 4
add edx, 4
test ax, ax
jne 0x42d8a0
xor eax, eax
jmp 0x42d8cb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42d8f0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push dword [0x4d99ac]
push str._restart
jmp 0x42d925
push dword [esi + 0x618]
lea eax, [esp + 0x14]
push str._restart___s_
push 0x114
push eax
call fcn.004abdd0
add esp, 0x10
lea eax, [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push dword [0x4d99ac]
push eax
push dword [esi + 0x624]
mov ecx, 0x4dba98
call fcn.0044e810
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43c4c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
push edi
push dword [esp + 0x11c]
push dword [esp + 0x11c]
push 0x4cc3c4
push 0x105
push eax
call fcn.004abdd0
add esp, 0x14
mov edi, eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [esp + 0x114]
cmp eax, 0xffffffff
je 0x43c53f
test al, 0x10
je 0x43c53f
lea eax, [edi + 0x102]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x43c53f
lea ecx, [edi + 1]
push ecx
lea ecx, [esp + 0xc]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esi + 4], edi
pop edi
pop esi
add esp, 0x108
ret 0xc
pop edi
mov dword [esi], 0x4c3c29
pop esi
add esp, 0x108
ret 0xc
Function at 0x44d070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xcc
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], 0
mov dword [esp + 4], eax
mov edx, ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x2c], str.What
mov dword [esp + 8], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xac]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x44], 0
push esi
mov esi, 8
test eax, eax
jne 0x44d110
movzx ecx, byte [edx]
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*2 + 0x4d75a0]
movzx ecx, word [edx + 2]
mov dword [esp + 0x40], eax
mov eax, dword [0x4da484]
mov dword [esp + 0x58], 0
mov dword [esp + 0x50], 0x4cd084
mov dword [esp + 0x68], 0
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], str.Line
mov dword [esp + 0x88], 1
mov dword [esp + 0x84], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x90], str.Message
mov dword [esp + 0xa8], 0
test eax, eax
je 0x44d1d8
cmp byte [eax], 0
je 0x44d1d8
mov esi, 0xa
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb0], str.Extra
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc0], eax
mov edx, esi
lea ecx, [esp + 8]
call fcn.0049a770
pop esi
add esp, 0xcc
ret 0xc
Function at 0x44e030
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2004
call fcn.004c1c60
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x44e13a
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x44e070
mov esi, dword [edi + 0x38c]
test esi, esi
jne 0x44e070
mov ecx, dword [edi + 0x14c]
movzx eax, word [edi + 0x150]
jmp 0x44e078
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
push dword [ebp + 0xc]
movzx eax, ax
push eax
mov eax, dword [0x4da484]
push dword [eax + ecx*4]
lea eax, [esp + 0x1c]
push str._s___d__:___Warning:__s_n
push 0x2000
push eax
call fcn.004abdd0
lea ecx, [esp + 0x28]
add esp, 0x18
add ecx, eax
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0x44e0c5
push eax
lea eax, [esp + 0x2014]
push str._____Specifically:__s_n
sub eax, ecx
push eax
push ecx
call fcn.004abdd0
add esp, 0x10
lea eax, [esp + 0x10]
cmp ebx, 3
jne 0x44e0e6
push 0x4cafcc
push 0
push eax
mov ecx, edi
call fcn.0044d450
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
mov ecx, 0x4d8a78
call fcn.0040b1f0
test al, al
jne 0x44e100
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp ebx, 2
jne 0x44e13a
test esi, esi
jne 0x44e12a
mov esi, dword [edi + 0x38c]
test esi, esi
jne 0x44e12a
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0044da60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, esi
push 1
push eax
call fcn.0044d670
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x44e5f0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x1ec
push ebx
mov ebx, dword [esp + 0x1f4]
push ebp
push esi
push edi
mov ebp, ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x44e620
push 0x64
lea ecx, [esp + 0x94]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x44e628
mov byte [esp + 0x90], 0
mov esi, dword [0x4dc088]
mov byte [esp + 0x10], 0
test esi, esi
je 0x44e6f4
nop dword [eax + eax]
cmp byte [esi + 0x11], 0
je 0x44e6a2
mov eax, dword [0x4fd89c]
mov edx, dword [esi]
test al, 1
jne 0x44e667
push 0
or eax, 1
mov ecx, 0x4fd8a0
push 0
mov dword [0x4fd89c], eax
call fcn.0042ba30
mov eax, dword [0x4dbe28]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x44e679
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x44e68d
cmp ecx, dword [0x4fd8a0]
jne 0x44e688
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x44e68d
mov eax, str.Object
push eax
push 0x4cd48c
lea eax, [esp + 0x18]
push 0x7d
push eax
call fcn.004abe20
add esp, 0x10
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x44e640
cmp byte [esp + 0x10], 0
je 0x44e6f4
lea ecx, [esp + 0x10]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44e6b7
sub ecx, edx
cmp ecx, 0x7b
jbe 0x44e6e8
mov esi, 0x7f
lea edi, [esp + 0x10]
sub esi, ecx
add edi, ecx
push esi
push 0x4c9e10
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x44e6f4
cmp byte [esp + ecx + 0xf], 0x20
jne 0x44e6f4
mov byte [esp + ecx + 0xf], 0
mov eax, dword [0x4d985c]
cmp byte [eax + 0xd8], 0
je 0x44e712
cmp byte [0x4dc0c9], 0
jne 0x44e712
mov esi, 1
jmp 0x44e714
xor esi, esi
mov eax, dword [0x4d9960]
cmp eax, 1
jle 0x44e723
lea edi, [eax - 1]
jmp 0x44e725
xor edi, edi
mov cl, 1
call fcn.0041d100
lea edx, [esp + 0xf8]
mov cl, al
call fcn.0041d4a0
mov ecx, dword [0x4d9960]
mov edx, 0x4c3c29
push eax
push dword [0x4d997c]
mov eax, dword [0x4d994c]
push ecx
sub eax, esi
cmp ecx, 1
push eax
mov eax, str.__preempted:_they_will_resume_when_the_current_thread_finishes_
mov ecx, 0x4c9270
cmovle eax, edx
cmp dword [0x4d9994], 0
push eax
push edi
lea eax, [esp + 0x28]
mov edx, 0x4c926c
push eax
push dword [0x4dc090]
mov eax, ecx
push dword [0x4dc094]
cmovne eax, edx
cmp dword [0x4d9998], 0
push eax
cmovne ecx, edx
lea eax, [esp + 0xb8]
push ecx
push eax
push str.Window:__s_r_nKeybd_hook:__s_r_nMouse_hook:__s_r_nEnabled_Timers:__u_of__u___s__r_nInterrupted_threads:__d_s_r_nPaused_threads:__d_of__d___d_layers__r_nModifiers__GetKeyState___now____s_r_n
push 0xfffe
push ebx
call fcn.004abdd0
add ebx, eax
mov edx, ebp
add esp, 0x3c
sub edx, ebx
add edx, 0xfffe
mov ecx, ebx
call fcn.00413220
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44e7c8
sub ecx, edx
mov eax, str._r_nPress__F5__to_refresh.
add ebx, ecx
cmp dword [0x4d9990], 0
mov ecx, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
cmove eax, ecx
sub ebp, ebx
push eax
add ebp, 0xfffe
push ebp
push ebx
call fcn.004abdd0
add esp, 0xc
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ec
ret 8
Function at 0x455170
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
push dword [esp + 0x20]
mov esi, ecx
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.004642e0
mov edi, eax
test edi, edi
je 0x455264
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.004b21c0
mov ebx, eax
test ebx, ebx
je 0x455264
push 0
push edi
mov byte [esp + 0x28], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
test esi, esi
je 0x4551e6
cmp esi, dword [0x4dba60]
je 0x4551e6
mov ecx, edi
call fcn.004b2670
test al, al
jne 0x4551e6
push 1
push esi
push dword [0x4dba60]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x20]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x455243
mov ecx, dword [0x4d995c]
push 1
push 0
push 0xffffffffffffffff
push 0x4c3cb0
call fcn.004b04f0
mov eax, dword [0x4d70f4]
cmp dword [eax + 0x58], 0xffffffff
jle 0x455243
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4dba60], eax
je 0x455230
mov eax, dword [0x4d70f4]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x455243
mov ecx, dword [0x4d70f4]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.00401870
cmp byte [esp + 0x20], 0
je 0x455259
push 0
push esi
push dword [0x4dba60]
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
mov eax, 1
pop ebx
ret 0x14
mov eax, dword [0x4d70f4]
test byte [eax + 0xe0], 1
jne 0x45528e
mov ecx, dword [0x4d995c]
push 1
push 0
push 0xffffffffffffffff
push 0x4c40b0
call fcn.004b04f0
pop edi
pop esi
pop ebx
ret 0x14
push 0x4c3c29
push 0
push 0x4c40b0
mov ecx, esi
call fcn.0044d1f0
pop edi
pop esi
pop ebx
ret 0x14
Function at 0x457050
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x4db120]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.004642e0
mov ebx, eax
test ebx, ebx
je 0x457080
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea edi, [eax + 1]
jmp 0x457085
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.004b04f0
cmp eax, 1
je 0x4570a3
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
mov ecx, esi
test ebx, ebx
je 0x457128
push edi
push 0
push 1
call fcn.00401640
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x4570c8
mov edi, dword [esi + 0xc]
jmp 0x4570ca
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4570e2
test byte [edi + 0x15], 8
je 0x4570dd
mov ecx, edi
call fcn.004014a0
add edi, 0xc
jmp 0x4570e7
mov edi, 0x4dd524
mov dword [edi], ebx
cmp byte [esi + 0x17], 0
jne 0x4570f4
mov edi, dword [esi + 0xc]
jmp 0x4570f6
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x45710e
test byte [edi + 0x15], 8
je 0x457109
mov ecx, edi
call fcn.004014a0
add edi, 0xc
jmp 0x457113
mov edi, 0x4dd524
cmp dword [edi], 0
jne 0x457164
push 0
push 1
mov ecx, esi
call fcn.00401640
mov byte [eax], 0
jmp 0x457164
push 0
push 1
call fcn.00401640
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x45713f
mov edi, dword [esi + 0xc]
jmp 0x457141
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x457159
test byte [edi + 0x15], 8
je 0x457154
mov ecx, edi
call fcn.004014a0
add edi, 0xc
jmp 0x45715e
mov edi, 0x4dd524
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x45716d
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x45718e
cmp dword [0x4dba88], 0
je 0x45718e
push 1
mov ecx, 0x4dba7c
call fcn.00406200
pop edi
pop esi
pop ebx
ret 0x10
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x457220
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8e68
call fcn.004c1c60
push esi
mov esi, ecx
lea ecx, [esp + 4]
push edi
call fcn.0044f390
push dword [ebp + 0x14]
xor eax, eax
mov byte [esp + 0xc39], 1
push dword [ebp + 0x10]
cmp edx, 6
push dword [ebp + 0xc]
cmove eax, esi
push dword [ebp + 8]
mov dword [esp + 0xc68], eax
push dword [0x4d70f4]
call fcn.004b2840
test eax, eax
je 0x45727f
lea eax, [esp + 8]
push eax
push 0x4b1b70
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [esi + 0x17], 0
mov edi, dword [esp + 0xc38]
jne 0x45728f
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x4572a8
and cl, 0x3d
mov byte [esi + 0x15], cl
mov ecx, dword [esi]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov cl, byte [esi + 0x15]
mov eax, edi
and cl, 0x9b
cdq
or cl, 0x18
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esi + 0x15], cl
jge 0x4572d1
mov ecx, esi
call fcn.004014a0
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x4d9984], 0
je 0x4572e1
mov ecx, esi
call fcn.004014a0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret