joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100052c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1001eea0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x10028ccc]
push ebp
push esi
push edi
mov dword [esp + 0xc], eax
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
push 1
push ebp
lea ecx, [esp + 0x38]
push 1
push ecx
push esi
mov dword [esp + 0x34], 0
call fcn.10003af0
add esp, 0x14
test eax, eax
je 0x1000546a
push 1
push ebp
lea edx, [esp + 0x34]
push 2
push edx
push esi
call fcn.10003af0
add esp, 0x14
test eax, eax
je 0x1000546a
mov al, byte [esp + 0x30]
test al, 3
jne 0x10005442
test al, 4
je 0x100053a9
mov eax, dword [esp + 0x2c]
and eax, 0xffff
lea edi, [eax + eax + 2]
mov eax, dword [ebp]
cmp eax, edi
jae 0x1000538a
mov edx, dword [esi]
push 1
push eax
mov ecx, esi
sub edi, eax
call dword [edx + 0x28]
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push 4
push ecx
mov ecx, esi
call dword [eax + 0x34]
cmp eax, 4
jne 0x1000546a
cmp word [esp + 0x10], 0x3c
jne 0x1000546a
mov edx, dword [esp + 0x12]
and edx, 0xffff
mov dword [ebp], edx
mov eax, dword [esi]
push 1
push edi
mov ecx, esi
call dword [eax + 0x28]
mov eax, dword [ebp]
cmp eax, edi
jb 0x1000546a
sub eax, edi
mov dword [ebp], eax
jmp 0x10005442
test al, 8
jne 0x10005442
test al, 0x10
je 0x10005442
mov esi, dword [esp + 0x28]
cmp dword [esi + 0xc], 1
jl 0x1000546a
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.1001599c
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call fcn.1001665c
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 0
call fcn.10016567
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push 0x10027e88
push eax
call fcn.1001682c
push 0x10027e80
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x2c], 2
call fcn.100167b8
push eax
mov ecx, esi
mov byte [esp + 0x24], 3
call fcn.100158f4
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 2
call fcn.10016567
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.10016567
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.10016567
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.10016567
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x442000
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x52ddbc], eax
push 2
mov eax, dword [0x52ddbc]
push eax
call fcn.00485e10
add esp, 8
mov dword [0x52dc80], 0
mov ecx, dword [ebp + 8]
mov dword [0x52dc94], ecx
mov edx, dword [ebp + 0xc]
mov dword [0x52dc98], edx
mov eax, dword [ebp + 0x10]
mov dword [0x52dc9c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x52dc88], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x52dc8c], eax
call fcn.0045f390
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4420a1
call fcn.0045d680
push eax
push 0x515f08
call fcn.004acf9b
add esp, 8
call fcn.0045d6a0
push eax
call fcn.004acf10
add esp, 4
test eax, eax
je 0x4420a1
call fcn.0045d6a0
push eax
push 0x515f08
call fcn.004acf9b
add esp, 8
mov eax, dword [0x52dc10]
mov esp, ebp
pop ebp
ret
Function at 0x448650
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x513f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.004453c0
add esp, 4
movzx edx, al
test edx, edx
je 0x4486e1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea ecx, [ebp - 0x2d8]
push ecx
call fcn.004ae190
add esp, 0xc
mov dword [ebp - 0x2d8], 0x10001
lea edx, [ebp - 0x2d8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4486df
mov edx, dword [ebp - 0x220]
cmp edx, dword [ebp + 0xc]
jne 0x4486df
jmp 0x4486e1
jmp 0x448663
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad663
mov esp, ebp
pop ebp
ret
Function at 0x45e9c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xf8
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x78]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0
jmp 0x45ea2c
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x18]
jae 0x45ea73
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004b24b8
add esp, 8
test eax, eax
jne 0x45ea71
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x45ea75
jmp 0x45ea23
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x483800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x483860
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x483857
mov edx, dword [0x52e320]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x48384b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x483830
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x483859
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x485930
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2538
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x513f40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movsx eax, byte [0x52e988]
test eax, eax
jne 0x485970
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
jne 0x485970
call fcn.00485780
movzx edx, byte [0x52e981]
test edx, edx
jne 0x485a33
movzx eax, byte [0x52e980]
test eax, eax
jne 0x485a33
cmp dword [0x52ea8c], 0
je 0x4859d4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [0x52ea8c]
push edx
call fcn.004905a0
add esp, 8
mov dword [ebp - 0x78], eax
push 0
mov eax, dword [ebp - 0x78]
push eax
push 0x186
mov ecx, dword [0x52ea8c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x52ea8c]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x485a33
movzx eax, byte [ebp + 0x10]
test eax, eax
jne 0x485a33
push 0x52e988
lea ecx, [ebp - 0x74]
call fcn.0048bf20
mov dword [ebp - 4], 0
push 0x10001
lea ecx, [ebp - 0x74]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00490390
add esp, 0x10
xor ecx, ecx
cmp eax, 2
sete cl
mov byte [ebp - 0x79], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00445260
movzx edx, byte [ebp - 0x79]
test edx, edx
je 0x485a33
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ad663
mov esp, ebp
pop ebp
ret
Function at 0x48d110
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f32a7
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x513f40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.0048c000
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.0048c000
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.0048c000
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.0048ca10
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.0048ca10
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.0048ca10
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x30]
mov word [edx + 0x30], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x32]
mov word [edx + 0x32], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x48d3f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3397
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x513f40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.0048bf20
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.0048bf20
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.0048bf20
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.0048ca30
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.0048ca30
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.0048ca30
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x30]
mov word [edx + 0x30], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x32]
mov word [edx + 0x32], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x48f260
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3b6d
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x513f40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x7c], 0x8000
mov dword [ebp - 0x78], 0x517648
mov byte [ebp - 0xa9], 0
lea eax, [ebp - 0xa9]
push eax
push 0x8000
lea ecx, [ebp - 0xa8]
call fcn.0045fda0
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x74]
call fcn.0048dda0
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xb8]
call fcn.0048c730
push eax
push 0x8000
push 0
lea ecx, [ebp - 0xa8]
call fcn.0045fe80
push eax
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.0048c730
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0048c730
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.00445260
push 0
lea ecx, [ebp - 0xa8]
call fcn.0045fe80
push eax
lea ecx, [ebp - 0x98]
call fcn.00455830
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x78]
push ecx
lea edx, [ebp - 0x98]
push edx
call fcn.00494f80
add esp, 8
movzx eax, al
test eax, eax
je 0x48f3a8
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.0048ca50
mov edx, dword [ebp - 0xb0]
or edx, 1
mov dword [ebp - 0xb0], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.00455940
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.0045fe20
mov eax, dword [ebp + 8]
jmp 0x48f407
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp + 8]
call fcn.00492a00
mov ecx, dword [ebp - 0xb0]
or ecx, 1
mov dword [ebp - 0xb0], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.00455940
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.0045fe20
mov eax, dword [ebp + 8]
jmp 0x48f407
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ad663
mov esp, ebp
pop ebp
ret
Function at 0x48faf0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3d41
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x513f40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.0048c730
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x48fba6
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x21]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
push ecx
lea ecx, [ebp - 0x20]
call fcn.0045fda0
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
push 0
lea ecx, [ebp - 0x20]
call fcn.0045fe80
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0048c730
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
lea ecx, [ebp - 0x20]
call fcn.0045fe80
push eax
mov ecx, dword [ebp + 8]
call fcn.00455830
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0045fe20
mov eax, dword [ebp + 8]
jmp 0x48fbc5
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00456340
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x490010
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3e41
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x513f40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x4900b8
mov byte [ebp - 0x21], 0
lea ecx, [ebp - 0x21]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
lea ecx, [ebp - 0x20]
call fcn.0045fda0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x20]
call fcn.0045fe80
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
lea ecx, [ebp - 0x20]
call fcn.0045fe80
push eax
mov ecx, dword [ebp + 8]
call fcn.00455830
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0045fe20
mov eax, dword [ebp + 8]
jmp 0x4900d3
mov ecx, dword [ebp + 8]
call fcn.004557c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x490b30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f40d1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x513f40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
push 0
push 0
push 0xe
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x21], 0
lea ecx, [ebp - 0x21]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
lea ecx, [ebp - 0x20]
call fcn.0045fda0
mov dword [ebp - 4], 1
push 0
lea ecx, [ebp - 0x20]
call fcn.0045fe80
push eax
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0xd
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
lea ecx, [ebp - 0x20]
call fcn.0045fe80
push eax
mov ecx, dword [ebp + 8]
call fcn.00455830
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0045fe20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4a1c10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f5fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x513f40]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], 0
push 0x517c8c
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
mov dword [esi], 0x517d70
call fcn.00458b10
mov byte [esp + 0x38], 1
call fcn.004a0dbe
lea ecx, [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov byte [esp + 0x38], 0
call fcn.00458be0
mov dword [esi], 0x517d94
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x4a6c30
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4f68db
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x513f40]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513f40]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x29c]
mov ecx, dword [esp + 0x2a8]
mov ebx, dword [esp + 0x2a0]
mov esi, dword [esp + 0x2ac]
mov ebp, dword [esp + 0x2b0]
push 0xffffffffffffffff
xor edi, edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2a8]
push edi
mov dword [esp + 0x20], ecx
xor edx, edx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], edi
mov word [esp + 0x28], dx
call fcn.00456800
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x294], edi
cmp eax, edi
je 0x4a6d14
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov edx, ecx
cmp edi, 8
jae 0x4a6ce1
lea edx, [esp + 0x1c]
cmp word [edx + eax*2 - 2], 0x5c
je 0x4a6d0d
mov edx, ecx
cmp edi, 8
jae 0x4a6cf4
lea edx, [esp + 0x1c]
cmp word [edx + eax*2 - 2], 0x2f
je 0x4a6d0d
cmp edi, 8
jae 0x4a6d05
lea ecx, [esp + 0x1c]
cmp word [ecx + eax*2 - 2], 0x3a
jne 0x4a6d14
mov edx, 0x517e64
jmp 0x4a6d19
mov edx, 0x517e5c
mov eax, edx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a6d20
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00462e30
mov eax, dword [esp + 0x1c]
mov edi, 8
cmp dword [esp + 0x30], edi
jae 0x4a6d4d
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4a6dab
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], 0
call edi
cmp eax, 2
je 0x4a6d80
call edi
cmp eax, 0x12
je 0x4a6d80
call edi
mov esi, eax
jmp 0x4a6d82
xor esi, esi
call fcn.004ac100
cmp dword [esp + 0x30], 8
mov edi, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
jb 0x4a6da4
mov edx, dword [esp + 0x1c]
push edx
call fcn.004ad0fd
add esp, 4
mov eax, edi
jmp 0x4a6e31
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a6db2
mov ecx, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00462ef0
mov eax, dword [esp + 0x38]
test eax, 0x400
je 0x4a6dea
mov dword [esi], 0
mov dword [ebp], 0
jmp 0x4a6e0a
test al, 0x10
je 0x4a6dfd
mov dword [esi], 3
mov dword [ebp], 3
jmp 0x4a6e0a
mov dword [esi], 2
mov dword [ebp], 2
mov esi, dword [esp + 0x14]
mov dword [esi], 0
call fcn.004ac100
mov dword [esi + 4], eax
cmp dword [esp + 0x30], edi
jb 0x4a6e2f
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004ad0fd
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.004ad663
add esp, 0x284
ret