joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424701
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42479e
push ebx
push esi
call fcn.004246ca
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004233fb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42474b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42479d
push edi
push eax
call fcn.0041f496
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42476b
call fcn.0041e380
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42479c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004233fb
add esp, 0x20
test eax, eax
jne 0x42478a
push edi
call fcn.0041e380
jmp 0x424792
push ebx
call fcn.0041e380
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x426f24
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041d27e
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x426f93
cmp esi, dword [ebp - 4]
je 0x426f8e
cmp dword [ebp + 0xc], 0
je 0x426f8e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x426f6b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00426a76
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x426f95
xor eax, eax
inc eax
jmp 0x426f95
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x426ffa
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x437080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041d27e
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041d27e
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x427071
cmp word [ecx], dx
je 0x427071
mov eax, dword [0x430ae4]
push edi
dec eax
push eax
push 0x4309d0
call fcn.00426f99
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4270e4
cmp word [eax], dx
je 0x4270e4
mov eax, dword [edi]
test eax, eax
je 0x427095
cmp word [eax], dx
je 0x427095
lea eax, [ebp - 0x10]
push eax
call fcn.0042697c
jmp 0x42709e
lea eax, [ebp - 0x10]
push eax
call fcn.00426a17
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x42710e
mov eax, dword [0x4309cc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4306c0
call fcn.00426f99
add esp, 0xc
test al, al
je 0x42710e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4270d9
cmp word [eax], di
je 0x4270d9
lea eax, [ebp - 0x10]
push eax
call fcn.0042697c
pop ecx
jmp 0x427110
lea eax, [ebp - 0x10]
push eax
call fcn.00426a17
jmp 0x4270d6
mov eax, dword [edi]
test eax, eax
je 0x4270fb
cmp word [eax], dx
je 0x4270fb
lea eax, [ebp - 0x10]
push eax
call fcn.00426931
pop ecx
jmp 0x42710e
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4271d9
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00426e1e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4271d9
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4271d9
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4271d9
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x427166
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041fbdd
test ebx, ebx
je 0x4271d4
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041fbdd
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4271d9
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4271d9
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00429ae6
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4271db
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412437
leave
ret
Function at 0x42a225
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0042a1a1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42a394
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42a394
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42a349
jg 0x42a281
test eax, eax
je 0x42a33f
push 1
push 0x1000
call fcn.0041fe5f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42a2a4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42a336
push 0x8000
push ebx
call fcn.0041a799
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42a2cd
jg 0x42a2c8
cmp ecx, 0x1000
jb 0x42a2cd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041e164
add esp, 0x10
cmp eax, 0xffffffff
je 0x42a312
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42a2c8
jl 0x42a2f9
test ecx, ecx
jne 0x42a2ba
push dword [ebp - 0xc]
push ebx
call fcn.0041a799
push esi
call fcn.0041e380
add esp, 0xc
xor ebx, ebx
jmp 0x42a3a2
cmp byte [edi + 0x24], 0
je 0x42a329
cmp dword [edi + 0x20], 5
jne 0x42a329
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42a334
mov ebx, dword [edi + 0x18]
jmp 0x42a336
xor ebx, ebx
push esi
call fcn.0041e380
pop ecx
jmp 0x42a3a2
test ecx, ecx
jg 0x42a30b
jl 0x42a349
test eax, eax
jae 0x42a30b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004212a8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42a369
cmp byte [edi + 0x1c], 0
je 0x42a30b
jmp 0x42a39a
push ebx
call fcn.00424ef5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42a30b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42a3a2
cmp byte [edi + 0x1c], 0
je 0x42a39f
mov ebx, dword [edi + 0x18]
jmp 0x42a3a2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004212a8
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42b690
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b6bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b6bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x412402
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41242e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4124cb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4124f5
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412470
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x4124fa
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4124f5
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push str.Printers
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 0x104
mov edi, 0x10003030
push edi
push dword [0x10003020]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [0x10003036], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002040]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x1000118a
push 1
push ebx
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x10003036], ax
movzx ecx, word [eax + str.desktop.ini]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x100011b5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edi
mov dword [0x10003018], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
push ebx
cmp eax, 0xffffffff
jne 0x10001208
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10003024
push esi
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40117a
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
jne 0x4011b8
mov eax, dword fs:[0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 0x30
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
call eax
sub esp, 0xc
jmp 0x4011ef
mov eax, dword fs:[0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 0x30
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapReAlloc]
call eax
sub esp, 0x10
leave
ret

Function at 0x401665
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [esp], str.WINEDEBUG
mov eax, dword [sym.imp.ucrtbase.dll_getenv]
call eax
mov dword [ebp - 4], eax
mov dword [0x402024], 0
cmp dword [ebp - 4], 0
je 0x401697
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sym._parse_options
nop
leave
ret

Function at 0x4016fb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_strlen]
call eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40171e
mov eax, 0
jmp 0x40178b
mov eax, dword [ebp - 4]
lea edx, [eax - 1]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
cmp al, 0xa
je 0x401743
mov eax, dword fs:[0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 0x24
mov eax, dword [eax]
jmp 0x401748
mov eax, 0
mov dword [ebp - 0xc], 0x406018
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
xchg dword [edx], eax
mov dword [ebp - 0x14], eax
mov dword [esp], 2
mov eax, dword [sym.imp.ucrtbase.dll___acrt_iob_func]
call eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_fwrite]
call eax
leave
ret
Function at 0x40178d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xf4
lea eax, [ebp - 0xe0]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx edx, al
mov eax, dword [ebp + 8]
mov ecx, eax
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
jne 0x4017c8
mov eax, 0xffffffff
jmp 0x40197a
mov eax, dword fs:[0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 0x24
mov eax, dword [eax]
mov edx, eax
mov eax, dword [0x406018]
cmp edx, eax
jne 0x4017ee
mov eax, 0
jmp 0x40197a
movzx eax, byte [0x402010]
movzx eax, al
and eax, 8
test eax, eax
je 0x401867
mov dword [esp], 0x402010
call sym.___wine_dbg_get_channel_flags
movzx eax, al
and eax, 8
test eax, eax
je 0x401867
mov eax, dword [sym.imp.kernel32.dll_GetTickCount]
call eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
mov edx, 0x10624dd3
mov eax, ebx
mul edx
mov ecx, edx
shr ecx, 6
imul eax, ecx, 0x3e8
sub ebx, eax
mov ecx, ebx
mov eax, dword [ebp - 0xc]
mov edx, 0x10624dd3
mul edx
mov eax, edx
shr eax, 6
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], str._3u._03u:
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sym._sprintf
add dword [ebp - 8], eax
movzx eax, byte [section..data]
movzx eax, al
and eax, 8
test eax, eax
je 0x4018b9
mov dword [esp], section..data
call sym.___wine_dbg_get_channel_flags
movzx eax, al
and eax, 8
test eax, eax
je 0x4018b9
mov eax, dword fs:[0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 0x20
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str._04x:
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sym._sprintf
add dword [ebp - 8], eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, 0x24
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str._04x:
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sym._sprintf
add dword [ebp - 8], eax
cmp dword [ebp + 0x10], 0
je 0x40193a
cmp dword [ebp + 8], 3
ja 0x40193a
mov eax, dword [ebp + 0xc]
lea ebx, [eax + 1]
mov eax, dword [ebp + 8]
mov eax, dword [eax*4 + 0x404030]
lea edx, [ebp - 0xe0]
mov ecx, dword [ebp - 8]
sub ecx, edx
mov edx, ecx
mov ecx, 0xc8
sub ecx, edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s:_s:_s
mov dword [esp + 4], ecx
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sym._snprintf
mov dword [esp], 2
mov eax, dword [sym.imp.ucrtbase.dll___acrt_iob_func]
call eax
mov ebx, eax
lea eax, [ebp - 0xe0]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_strlen]
call eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
lea eax, [ebp - 0xe0]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_fwrite]
call eax
add esp, 0xf4
pop ebx
pop ebp
ret
Function at 0x401b3c
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov eax, dword [eax]
mov dword [ebp - 4], eax
call sym.___p___wargv
mov eax, dword [eax]
mov dword [ebp - 8], eax
call sym.__get_initial_wide_environment
mov dword [ebp - 0xc], eax
call sym._get_nt_header
movzx eax, word [eax + 0x5c]
cmp ax, 2
jne 0x401b85
mov eax, 2
jmp 0x401b8a
mov eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sym._wmain
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._exit
nop
nop
nop

Function at 0x401bbc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x60
mov eax, dword [sym.imp.kernel32.dll_GetCommandLineW]
call eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
jmp 0x401c44
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, 9
je 0x401bf5
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, 0x20
jne 0x401bfb
cmp dword [ebp - 0x10], 0
je 0x401c55
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, 0x5c
jne 0x401c0d
add dword [ebp - 0xc], 1
jmp 0x401c40
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, 0x22
jne 0x401c39
mov eax, dword [ebp - 0xc]
and eax, 1
test eax, eax
jne 0x401c30
cmp dword [ebp - 0x10], 0
sete al
movzx eax, al
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x401c40
mov dword [ebp - 0xc], 0
add dword [ebp - 8], 2
mov eax, dword [ebp - 8]
movzx eax, word [eax]
test ax, ax
jne 0x401bdd
jmp 0x401c55
add dword [ebp - 8], 2
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, 9
je 0x401c51
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, 0x20
je 0x401c51
lea eax, [ebp - 0x54]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_GetStartupInfoW]
call eax
sub esp, 4
mov eax, dword [ebp - 0x28]
and eax, 1
test eax, eax
jne 0x401c8d
mov word [ebp - 0x24], 1
movzx eax, word [ebp - 0x24]
movzx ebx, ax
mov dword [esp], 0
mov eax, dword [sym.imp.kernel32.dll_GetModuleHandleW]
call eax
sub esp, 4
mov dword [esp + 0xc], ebx
mov edx, dword [ebp - 8]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x401149
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
inc ebx
push ebx
mov esi, eax
push 6
push esi
call fcn.0040a457
push edi
push ebx
lea eax, [esi + 6]
push 4
push eax
call fcn.0040a457
push edi
push ebx
lea eax, [esi + 0xa]
push 8
push eax
call fcn.0040a457
push edi
push ebx
lea eax, [esi + 0x12]
push 8
push eax
call fcn.0040a457
add esp, 0x40
push edi
push ebx
lea eax, [esi + 0x1a]
push 8
push eax
call fcn.0040a457
push edi
push ebx
lea eax, [esi + 0x22]
push 2
push eax
call fcn.0040a457
push edi
push ebx
push 8
add esi, 0x24
push esi
call fcn.0040a457
add esp, 0x30
pop esi
pop ebx
ret

Function at 0x401a41
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x41f174]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x41c
push ebx
call fcn.0040c88f
push ebx
mov esi, eax
push 0
push esi
call fcn.0040a500
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
add esp, 0x10
push esi
push 0xffffffffffffffeb
push edi
mov dword [esi], edi
call ebx
push dword [section..data]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0x10
mov dword [esi + 0x40c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [esi + 0x418], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [esi + 0x414], eax
lea eax, [ebp - 0x40]
push eax
push 0x3c
push 0x1f
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [esi + 0x410], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x404], eax
push 0x400
lea eax, [esi + 4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x401884
push 0xfffffffffffffffc
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x408], eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a063
leave
ret
Function at 0x402f72
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push 8
push dword [esp + 0x10]
lea eax, [ebx + 0x10]
push eax
call fcn.0040c2c0
mov esi, dword [esp + 0x1c]
lea eax, [ebx + 8]
call fcn.00401b95
lea edi, [ebx + 0x18]
push ebx
mov eax, esi
call fcn.00402595
lea edi, [ebx + 0x10]
mov eax, edi
call fcn.00401b95
mov eax, dword [esp + 0x20]
lea esi, [ebx + 8]
push esi
call fcn.00402595
add esp, 0x14
xor eax, eax
mov cl, byte [ebx + eax + 0x18]
xor byte [eax + ebx], cl
mov cl, byte [ebx + eax + 0x10]
xor byte [esi + eax], cl
inc eax
cmp eax, 8
jl 0x402fb6
pop edi
pop esi
ret

Function at 0x4033ca
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x28], ebx
je 0x4033e4
or eax, 0xffffffff
jmp 0x403498
push edi
mov edi, 0x200
cmp dword [esi + 0x14], edi
je 0x4033f4
cmp dword [esi + 0x10], ebx
jne 0x40346f
mov ecx, dword [esi + 0x10]
push 0xa
xor edx, edx
pop ebx
mov eax, ecx
div ebx
xor ebx, ebx
test edx, edx
jne 0x40343b
mov eax, dword [esi + 0x18]
push dword [esi + 0x164]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
shl ecx, 9
push ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
call dword [esi + 0x160]
add esp, 0xc
cmp eax, ebx
je 0x40343b
mov dword [esi + 0x28], eax
jmp 0x403485
push edi
push ebx
push dword [esi + 0x24]
call fcn.0040a500
push dword [esi]
push edi
push 1
push dword [esi + 0x24]
call fcn.0040a457
push dword [esi + 0x20]
push dword [esi + 0x24]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.00405d1f
add esp, 0x30
inc dword [esi + 0x10]
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
dec eax
shl eax, 9
add eax, ecx
cmp eax, dword [esi + 0x18]
jne 0x40348a
cmp ebx, dword [esi + 0x1c]
jne 0x40348a
or eax, 0xffffffff
jmp 0x403497
mov eax, dword [esi + 0x20]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x14], ecx
movzx eax, al
pop edi
pop esi
pop ebx
leave
ret