joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a4f0
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 0x42a53b
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 0x42a556
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x42a55c
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 0x42a8e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4fe938], ecx
mov eax, 1
nop dword [eax + eax]
mov ecx, dword [eax*4 + 0x4fe934]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul ecx, edx, 0x6c078965
add ecx, eax
mov dword [eax*4 + 0x4fe938], ecx
inc eax
cmp eax, 0x270
jl 0x42a8f0
mov dword [0x4fab5c], 1
mov dword [0x4fe934], 1
ret

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

Disassembly:
cmp dword [0x4fe934], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x4fe938
jne 0x42a94f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.0042a8e0
mov eax, dword [0x4fe938]
mov ebx, 0xe3
mov dword [0x4fab5c], 0x270
mov dword [0x4ff2f8], 0x4fe938
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 0x42a970
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 0x42a9b0
mov eax, dword [0x4fe938]
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 0x42aa20
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4fab5c], 1
jne 0x42aa2e
call fcn.0042a930
mov eax, dword [0x4ff2f8]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4ff2f8], 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 0x42aa70
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4fab5c], 1
jne 0x42aa7e
call fcn.0042a930
mov eax, dword [0x4ff2f8]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4ff2f8], 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 + 0x4f32c0]
mulsd xmm0, qword [0x4f3100]
ret

Function at 0x42b2d0
Capabilities:
Write clipboard data

Disassembly:
cmp byte [ecx + 0x17], 0
jne 0x42b2d9
mov ecx, dword [ecx + 0xc]
cmp byte [ecx + 0x17], 2
jne 0x42b2f2
cmp dword [0x4fe6e4], 0
je 0x42b2f2
mov ecx, 0x4fe6d8
jmp fcn.00406bd0
mov al, byte [ecx + 0x15]
and al, 0x86
cmp byte [esp + 4], 0
mov byte [ecx + 0x15], al
je 0x42b306
or al, 1
mov byte [ecx + 0x15], al
mov eax, 1
ret 4
Function at 0x42edb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x4f90f0]
push ebx
push ebp
add eax, 4
imul eax, eax, 0x108
push esi
push edi
push eax
push dword [0x4fb8ac]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 8
mov dword [0x4fb8ac], eax
test eax, eax
jne 0x42ede0
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [0x4f90f4]
mov edi, eax
push 0x405370
push 0x4ef6d80
push 0xe
push dword [0x4fb9e8]
mov ecx, 0x42
mov dword [0x4f90f4], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
call edi
cmp dword [0x4fe188], 0
jne 0x42ee21
mov ebp, 1
jmp 0x42ef24
mov eax, dword [0x4f90f4]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [eax + 0xec], 0
call esi
cmp byte [0x4fb8a5], 0
mov ecx, dword [0x4f90f4]
mov dword [ecx + 0xdc], eax
mov dword [ecx + 0xe0], 0x64
jne 0x42ee6e
push 0x405240
push 0x64
push 0xb
push dword [0x4fb9e8]
call edi
test eax, eax
setne byte [0x4fb8a5]
mov byte [0x4fe671], 1
call esi
inc dword [0x4fb9d0]
mov ecx, dword [0x4faaec]
mov dword [0x4fe694], eax
mov dword [0x4fe690], eax
cmp ecx, dword [0x4faaf0]
jne 0x42eea0
call fcn.00406f70
mov ecx, dword [0x4faaec]
cmp ecx, dword [0x4faae8]
jb 0x42eeb5
mov eax, dword [0x4fe1c4]
mov dword [ecx], eax
mov ecx, dword [0x4faaec]
add ecx, 0xc
mov dword [0x4faaec], ecx
push 0
push 0
mov dword [ecx], 0
mov dword [ecx + 4], str.Auto_execute
mov dword [ecx + 8], 0
mov ecx, dword [0x4fe188]
push 1
call fcn.004445a0
sub dword [0x4faaec], 0xc
mov ebp, eax
dec dword [0x4fb9d0]
cmp byte [0x4fb8a5], 0
je 0x42ef1d
push 0xb
push dword [0x4fb9e8]
call dword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x4fb8a5]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [0x4fb8a5], cl
mov byte [0x4fe671], 0
mov ebx, dword [0x4f90f4]
mov eax, dword [ebx + 0x104]
test eax, eax
je 0x42ef79
cmp dword [eax + 8], 6
jne 0x42ef42
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx + 0x104]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x42ef59
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0x10
push dword [ebx + 0x104]
call fcn.004ccae4
mov dword [ebx + 0x104], 0
add esp, 8
mov ebx, dword [0x4f90f4]
mov ecx, ebx
call fcn.00405480
push 1
push 0
mov byte [ebx + 0xec], 1
mov ecx, 0x42
mov esi, ebx
mov edi, 0x4fb8b0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4fb9cc]
push 0xffffffffffffffff
push 0x4cfd08
mov word [ebx + 0xec], 0x101
mov dword [ebx + 0xe0], 0
mov byte [ebx + 0xee], 0
mov dword [ebx + 0x2c], closesocket
call fcn.004b5b70
cmp word [0x4fc55c], 0
mov esi, 1
jne 0x42f016
cmp dword [0x4fc544], 0
jne 0x42f016
cmp dword [0x4fba08], 0
jne 0x42f016
cmp dword [0x4fba04], 0
jne 0x42f016
cmp byte [0x4fb9f9], 0
jne 0x42f016
test ebp, ebp
mov ecx, 6
push 0
cmove ecx, esi
push ecx
mov ecx, 0x4fdb78
call fcn.0042f2d0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x42f1d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10230
call fcn.004cdac0
cmp dword [0x4fba54], 0
push esi
push edi
mov esi, ecx
jne 0x42f25e
push 0x104
lea eax, [esp + 0x14]
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 0x42f278
mov edx, dword [edi]
lea ecx, [esp + 0x10]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x42f24e
test ax, ax
je 0x42f24a
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x42f24e
add ecx, 4
add edx, 4
test ax, ax
jne 0x42f228
xor eax, eax
jmp 0x42f253
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42f278
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 [0x4fba1c]
push str._restart
jmp 0x42f2b3
push dword [esi + 0xae0]
lea eax, [esp + 0x21c]
push str._restart___s_
push 0x8010
push eax
call fcn.004b1470
add esp, 0x10
lea eax, [esp + 0x218]
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push dword [0x4fba1c]
push eax
push dword [esi + 0xaec]
mov ecx, 0x4fdb78
call fcn.0044fb00
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4302b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ce245
push eax
mov dword fs:[0], esp
sub esp, 0x50
cmp dword [0x4fba54], 0
push esi
push edi
mov esi, ecx
je 0x43032d
lea ecx, [ebp - 0x5c]
call fcn.0042d840
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x5c]
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.0042fdd0
mov edi, eax
cmp edi, 3
jne 0x430311
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
call fcn.00430410
mov edi, eax
lea ecx, [ebp - 0x5c]
call fcn.0042d8d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x50]
call fcn.00405610
mov dword [ebp - 0x50], vtable.TextFile.0
mov dword [ebp - 0x1c], 0xffffffff
push 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x50]
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.0042fdd0
mov edi, eax
cmp edi, 3
jne 0x430374
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.00430410
mov edi, eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x50], vtable.TextFile.0
test ecx, ecx
je 0x4303a9
cmp dword [ebp - 0x24], 0
jne 0x4303a9
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push ecx
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov word [ebp - 0x28], ax
cmp ecx, 0xffffffff
je 0x4303d4
mov eax, dword [ebp - 0x4c]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x4303cd
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x50], vtable.TextStream.0
test eax, eax
je 0x4303fb
push 0x2000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x436f80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov eax, 0x20
mov word [esp + 0xc], ax
mov ebx, ebp
mov ax, word [0x4fa348]
mov dword [esp + 8], ecx
mov word [esp + 0xe], ax
mov dword [esp + 0x10], 0x90028
mov dword [esp + 0x14], 0x3e003c
mov dword [esp + 0x18], 0x3d003a
mov dword [esp + 0x1c], 0x2d002b
mov dword [esp + 0x20], 0x2f002a
mov dword [esp + 0x24], 0x7e0021
mov dword [esp + 0x28], 0x7c0026
mov dword [esp + 0x2c], 0x5b005e
mov dword [esp + 0x30], 0x3f002e
mov dword [esp + 0x34], 0x7b
push esi
push edi
test ebp, ebp
je 0x437045
movzx eax, word [ebp]
test ax, ax
je 0x437045
mov esi, eax
nop word [eax + eax]
lea eax, [esp + 0x14]
mov edx, 0x20
nop dword [eax]
cmp si, dx
je 0x4370b5
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x437020
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x437010
mov ecx, ebp
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437050
sub ecx, edx
lea edi, [ebp - 2]
sar ecx, 1
lea edi, [edi + ecx*2]
cmp edi, ebp
jbe 0x437084
nop dword [eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x43707d
cmp eax, 9
jne 0x437084
sub edi, 2
cmp edi, ebp
ja 0x437070
mov ebx, edi
sub ebx, ebp
sar ebx, 1
inc ebx
cmp ebx, 0xfd
jbe 0x4370c3
cmp byte [esp + 0x4c], 0
je 0x4370a9
mov ecx, dword [esp + 0x10]
push ebp
push str.This_line_does_not_contain_a_recognized_action.
call fcn.0044ec90
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
test ebx, ebx
je 0x437045
cmp ebx, ebp
lea edi, [ebx - 2]
cmovbe edi, ebx
jmp 0x437065
mov esi, dword [esp + 0x44]
push ebx
push ebp
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov word [esi + ebx*2], ax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
Function at 0x43dbe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10004
call fcn.004cdac0
push esi
push edi
push dword [esp + 0x10018]
lea eax, [esp + 0xc]
push dword [esp + 0x10018]
push 0x4eb5d4
push 0x8001
push eax
call fcn.004b1470
add esp, 0x14
mov edi, eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [esp + 0x10010]
cmp eax, 0xffffffff
je 0x43dc69
test al, 0x10
je 0x43dc69
lea eax, [edi*4 + 0x408]
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 0x43dc69
lea ecx, [edi*2 + 2]
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, 0x10004
ret 0xc
pop edi
mov dword [esi], 0x4cfc40
pop esi
add esp, 0x10004
ret 0xc
Function at 0x44e260
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 0x44e300
movzx ecx, byte [edx]
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*2 + 0x4f95a0]
movzx ecx, word [edx + 2]
mov dword [esp + 0x40], eax
mov eax, dword [0x4fc57c]
mov dword [esp + 0x58], 0
mov dword [esp + 0x50], 0x4ecdf4
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 0x44e3c9
cmp word [eax], 0
je 0x44e3c9
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.0049d590
pop esi
add esp, 0xcc
ret 0xc
Function at 0x44e640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ce30d
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [0x4fab28]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
je 0x44e680
push str.stdout
push esi
mov ecx, 0x4faae8
call fcn.0040c020
mov eax, dword [0x4fab28]
cmp eax, 2
je 0x44e7d1
lea ecx, [ebp - 0x48]
call fcn.00405610
mov dword [ebp - 0x48], vtable.TextFile.0
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
push dword [edi + 0xafc]
push 2
push dword [ebp + 0x10]
call fcn.004ae700
push dword [ebp + 0xc]
lea ecx, [ebp - 0x48]
push esi
call fcn.004aee00
mov edx, dword [ebp - 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
test edx, edx
je 0x44e70b
cmp dword [ebp - 0x1c], 0
jne 0x44e70b
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0x10]
cmp eax, fcn.004af240
jne 0x44e6fd
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call edi
jmp 0x44e706
push edx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
call eax
xor edx, edx
mov dword [ebp - 0x40], edx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 8]
cmp eax, method.TextFile.virtual_8
jne 0x44e749
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xffffffff
je 0x44e754
mov eax, dword [ebp - 0x44]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x44e741
push ecx
call esi
mov edx, dword [ebp - 0x40]
or ecx, 0xffffffff
mov dword [ebp - 0x14], ecx
jmp 0x44e754
lea ecx, [ebp - 0x48]
call eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x48], vtable.TextFile.0
test edx, edx
je 0x44e783
cmp dword [ebp - 0x1c], 0
jne 0x44e783
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push dword [ebp - 0x18]
push ecx
call edi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x40], 0
xor eax, eax
mov word [ebp - 0x20], ax
cmp ecx, 0xffffffff
je 0x44e7a7
mov eax, dword [ebp - 0x44]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x44e7a0
push ecx
call esi
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], vtable.TextStream.0
test eax, eax
je 0x44e7d1
push 0x2000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44f300
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4004
call fcn.004cdac0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x44f411
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x44f340
mov esi, dword [edi + 0x64c]
test esi, esi
jne 0x44f340
mov ecx, dword [edi + 0x24c]
movzx eax, word [edi + 0x250]
jmp 0x44f348
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
push dword [ebp + 0xc]
movzx eax, ax
push eax
mov eax, dword [0x4fc57c]
push dword [eax + ecx*4]
lea eax, [esp + 0x1c]
push str._s___d__:___Warning:__s_n
push 0x2000
push eax
call fcn.004b1470
mov edx, eax
add esp, 0x18
mov eax, dword [ebp + 0x10]
add edx, edx
cmp word [eax], 0
je 0x44f39c
push eax
mov ecx, edx
mov eax, 0x2000
sar ecx, 1
sub eax, ecx
push str._____Specifically:__s_n
push eax
lea eax, [esp + 0x1c]
add eax, edx
push eax
call fcn.004b1470
add esp, 0x10
lea eax, [esp + 0x10]
cmp ebx, 3
jne 0x44f3bd
push 0x4e8fac
push 0
push eax
mov ecx, edi
call fcn.0044e640
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
mov ecx, 0x4faae8
call fcn.0040c140
test al, al
jne 0x44f3d7
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebx, 2
jne 0x44f411
test esi, esi
jne 0x44f401
mov esi, dword [edi + 0x64c]
test esi, esi
jne 0x44f401
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0044ec90
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.0044e880
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x455a00
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0x18]
mov edi, ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004645c0
mov esi, eax
test esi, esi
je 0x455b59
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.004b7940
mov ebx, eax
test ebx, ebx
je 0x455b59
push 0
push esi
mov byte [esp + 0x1b], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
test edi, edi
je 0x455ad6
cmp edi, dword [0x4fd2ec]
je 0x455ad6
mov eax, dword [0x5000fc]
test al, 1
jne 0x455a8c
push str.IsHungAppWindow
or eax, 1
push str.user32
mov dword [0x5000fc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x500100], eax
jmp 0x455a91
mov eax, dword [0x500100]
test eax, eax
je 0x455a9a
push esi
call eax
jmp 0x455ab8
lea eax, [esp + 0x14]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
jne 0x455adc
push 1
push edi
push dword [0x4fd2ec]
call esi
test eax, eax
setne byte [esp + 0x13]
jmp 0x455adc
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x455b39
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfd08
call fcn.004b5b70
mov eax, dword [0x4f90f4]
cmp dword [eax + 0x58], 0xffffffff
jle 0x455b39
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4fd2ec], eax
je 0x455b26
mov eax, dword [0x4f90f4]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x455b39
mov ecx, dword [0x4f90f4]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.004018f0
cmp byte [esp + 0x13], 0
je 0x455b4b
push 0
push edi
push dword [0x4fd2ec]
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x455b86
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b5b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x4cfc40
push 0
push 0x4e613c
mov ecx, edi
call fcn.0044e3e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x45b210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x241c
call fcn.004cdac0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov byte [esp + 0x17], dl
push edi
push dword [0x4fe668]
lea ebp, [esp + 0x430]
push str.__s_s
mov eax, ebp
push 0x800
push eax
call fcn.004b1470
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x45b27f
lea eax, [esp + 0x42a]
push eax
call ebx
cmp eax, 0xffffffff
je 0x45b27f
mov dword [esp + esi*2 + 0x428], 0x22
mov esi, dword [0x4fe668]
jmp 0x45b346
xor esi, esi
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.004b29c0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x45b2c8
test esi, esi
jne 0x45b2c8
mov esi, 0x100
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.004b29c0
mov edx, eax
add esp, 0x10
test edx, edx
je 0x45b2a0
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [esp + ecx + 0x18]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x21e], ax
test ax, ax
jne 0x45b2d0
test edx, edx
je 0x45b3ee
push edi
lea eax, [esp + 0x224]
push eax
push str.__s_s
lea eax, [esp + 0x434]
push 0x800
push eax
call fcn.004b1470
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x45b3ee
lea eax, [esp + 0x42a]
push eax
call ebx
cmp eax, 0xffffffff
je 0x45b3ee
mov dword [esp + esi*2 + 0x428], 0x22
lea esi, [esp + 0x220]
cmp byte [esp + 0x17], 0
je 0x45b3bf
push str.AutoHotkey.exe
push esi
push str.__s_s
lea eax, [esp + 0x1434]
push 0x800
push eax
call fcn.004b1470
mov ebx, eax
add esp, 0x14
lea ecx, [ebx + 1]
cmp ecx, 0x800
jg 0x45b3a8
lea eax, [esp + 0x142a]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45b3a8
mov dword [esp + ebx*2 + 0x1428], 0x22
lea ebp, [esp + 0x1428]
lea eax, [esp + 0x428]
jmp 0x45b3c4
cmp esi, dword [0x4fe668]
jne 0x45b3bf
mov ebp, dword [0x4fe664]
lea eax, [esp + 0x428]
jmp 0x45b3c4
mov eax, 0x4cfc40
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push ebp
mov ecx, 0x4fdb78
call fcn.0044fb00
test eax, eax
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x241c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x241c
ret