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

Disassembly:
sub esp, 0x218
mov eax, dword [0x47bfd4]
xor eax, esp
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x220], eax
mov eax, dword [esp + 0x228]
push ecx
push eax
mov dword [esp + 0x14], eax
call fcn.0042b5d0
mov ebp, dword [sym.imp.MSVCR71.dll_fread]
add esp, 8
mov esi, 0x200
lea ecx, [ecx]
lea edx, [esp + 0x10]
push edx
call fcn.0042b430
add esp, 4
cmp esi, edi
jbe 0x4427d3
mov esi, edi
push ebx
push esi
push 1
push eax
call ebp
mov edx, dword [esp + 0x20]
add edx, eax
add esp, 0x10
sub edi, eax
mov dword [esp + 0x10], edx
je 0x4427ef
cmp eax, esi
je 0x4427c0
lea eax, [esp + 0x10]
push eax
call fcn.0042b510
add esp, 4
test edi, edi
pop edi
pop esi
pop ebp
je 0x44282c
mov ecx, dword [esp]
push 0xffffffffffffffff
push ecx
call fcn.0042a180
add esp, 8
test eax, eax
ja 0x44282c
xor eax, eax
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004525c5
add esp, 0x218
ret
mov ecx, dword [esp + 0x214]
xor ecx, esp
mov eax, 1
call fcn.004525c5
add esp, 0x218
ret

Function at 0x442b10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push esi
push edi
mov ebx, eax
call fcn.00429c80
add esp, 4
dec eax
mov esi, 1
je 0x442b73
mov dword [esp + 0xc], eax
push ebx
push edi
call fcn.00429e90
add esp, 8
cmp eax, 3
jne 0x442b95
test esi, esi
je 0x442b65
push ebx
push edi
call fcn.0042a050
fstp qword [esp]
mov eax, dword [ebp + 8]
push str._.14g
push eax
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 0x10
test eax, eax
jg 0x442bc5
xor esi, esi
mov eax, dword [esp + 0xc]
inc ebx
dec eax
mov dword [esp + 0xc], eax
jne 0x442b32
call dword [sym.imp.MSVCR71.dll__errno]
test esi, esi
mov ebx, dword [eax]
je 0x442bcc
push 1
push edi
call fcn.0042a500
add esp, 8
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
push ebx
push edi
call fcn.0042bb60
add esp, 0xc
test esi, esi
je 0x442b65
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 8]
push edx
push ecx
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fwrite]
mov ecx, dword [esp + 0x18]
add esp, 0x10
cmp eax, ecx
jne 0x442b65
mov esi, 1
jmp 0x442b67
push edi
call fcn.0042a2e0
push ebx
call dword [sym.imp.MSVCR71.dll_strerror]
push eax
push 0x46a688
push edi
call fcn.0042a430
push ebx
push edi
call fcn.0042a320
add esp, 0x1c
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x445de0
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push str.LUA_PATH
push 0xffffd8ee
push esi
call fcn.0042a5b0
push 0
push 0xffffffffffffffff
push esi
call fcn.0042a100
push 0xfffffffffffffffe
push esi
mov edi, eax
call fcn.00429c90
add esp, 0x20
test edi, edi
je 0x445e16
mov eax, edi
pop edi
pop esi
ret
push str.LUA_PATH
call dword [sym.imp.MSVCR71.dll_getenv]
add esp, 4
test eax, eax
jne 0x445e2d
mov eax, str.._.lua__lua_.lua__lua_init.lua___.lua___init.lua
pop edi
pop esi
ret
Function at 0x454395
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4543b2
call fcn.00457015
mov dword [eax], 0x16
xor eax, eax
jmp 0x45441c
push esi
push 0x8c
push 1
call fcn.0045b101
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x454407
push esi
call fcn.00457880
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4543e5
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x454300
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x45441b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00453e4d
test ebx, ebx
pop ecx
je 0x454419
push ebx
call fcn.00457027
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4547f3
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x46fda0
call fcn.00456654
mov edi, 0x94
mov eax, edi
call fcn.00453e10
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x47e544], ecx
mov eax, dword [esi + 4]
mov dword [0x47e550], eax
mov edx, dword [esi + 8]
mov dword [0x47e554], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x47e548], esi
cmp ecx, 2
je 0x454853
or esi, 0x8000
mov dword [0x47e548], esi
shl eax, 8
add eax, edx
mov dword [0x47e54c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x45488e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45488e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4548a6
cmp eax, 0x20b
je 0x454893
mov dword [ebp - 0x1c], esi
jmp 0x4548ba
cmp dword [ecx + 0x84], 0xe
jbe 0x45488e
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4548b4
cmp dword [ecx + 0x74], 0xe
jbe 0x45488e
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0045a3b2
pop ecx
test eax, eax
jne 0x4548ce
push 0x1c
call fcn.004547cf
pop ecx
call fcn.00457a7a
test eax, eax
jne 0x4548df
push 0x10
call fcn.004547cf
pop ecx
call fcn.0045c3a7
mov dword [ebp - 4], esi
call fcn.0045c1a9
test eax, eax
jge 0x4548f8
push 0x1b
call fcn.004547aa
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x47fc50], eax
call fcn.0045c087
mov dword [0x47e3b4], eax
call fcn.0045bfe5
test eax, eax
jge 0x45491e
push 8
call fcn.004547aa
pop ecx
call fcn.0045bdb2
test eax, eax
jge 0x45492f
push 9
call fcn.004547aa
pop ecx
push 1
call fcn.00458c81
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x454945
push eax
call fcn.004547aa
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0045bd55
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x454966
movzx eax, word [ebp - 0x40]
jmp 0x454969
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401ff0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x454987
push edi
call fcn.00458dae
call fcn.00458dd0
jmp 0x4549b9
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0045668f
ret
Function at 0x458ceb
Capabilities:
Terminate process

Disassembly:
push 8
push 0x470890
call fcn.00456654
push 8
call fcn.00455af7
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x47e584], esi
jne 0x458d1f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x47e580], esi
mov al, byte [ebp + 0x10]
mov byte [0x47e57c], al
cmp dword [ebp + 0xc], edi
jne 0x458d69
cmp dword [0x47fa0c], edi
je 0x458d59
mov eax, dword [0x47fa08]
sub eax, 4
mov dword [0x47fa08], eax
cmp eax, dword [0x47fa0c]
jb 0x458d59
mov eax, dword [eax]
cmp eax, edi
je 0x458d3a
call eax
jmp 0x458d3a
push 0x47a074
mov eax, 0x47a06c
call fcn.00458c69
pop ecx
push 0x47a080
mov eax, 0x47a078
call fcn.00458c69
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x458d9a
cmp dword [ebp + 0x10], edi
jne 0x458da8
mov dword [0x47e584], esi
push dword [ebp + 8]
call fcn.00458c27
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x458da7
push 8
call fcn.00455a42
pop ecx
ret
call fcn.0045668f
ret

Function at 0x45983e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00453e10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4598d9
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x47e544]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4598d9
cmp eax, 1
je 0x4598fa
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4598d9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4598a6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4598d5
xor eax, eax
inc eax
jmp 0x459919
cmp edi, eax
jae 0x4598dd
xor eax, eax
jmp 0x459919
cmp eax, esi
jae 0x4598e4
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x47e544]
jmp 0x4598fd
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45b1d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x45b206
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x45b20d
cmp ebx, dword [eax + 4]
jae 0x45b20d
xor eax, eax
jmp 0x45b3fd
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x45b21e
xor eax, eax
inc eax
jmp 0x45b3fc
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x45b234
cmp ecx, edx
jae 0x45b379
cmp dword [eax + 4], 0
je 0x45b23d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x45b225
cmp dword [ebp + 8], 0
je 0x45b25f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x45b379
cmp eax, esi
jae 0x45b379
mov eax, dword [0x47e678]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x45b284
cmp dword [esi*4 + 0x47e680], edi
je 0x45b37d
inc esi
cmp esi, eax
jl 0x45b272
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x45b3f9
cmp dword [ebp - 8], 0x1000000
jne 0x45b3f9
test byte [ebp - 0xc], 0xcc
je 0x45b302
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x45b3f9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x45b3f9
cmp word [eax + 0x18], 0x10b
jne 0x45b3f9
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x45b3f9
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x45b302
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x45b302
test byte [ecx + 0x27], 0x80
jne 0x45b379
push 1
push 0x47e6c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x45b216
mov ecx, dword [0x47e678]
test ecx, ecx
mov edx, ecx
jle 0x45b336
lea eax, [ecx*4 + 0x47e67c]
cmp dword [eax], edi
je 0x45b336
dec edx
sub eax, 4
test edx, edx
jg 0x45b32a
test edx, edx
jne 0x45b367
push 0xf
pop ebx
cmp ecx, ebx
jg 0x45b343
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x45b35b
lea eax, [edx*4 + 0x47e680]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x45b349
cmp ecx, 0x10
jge 0x45b367
inc ecx
mov dword [0x47e678], ecx
push 0
push 0x47e6c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x45b216
xor eax, eax
jmp 0x45b3fc
test esi, esi
jle 0x45b216
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x47e6c0
call ebx
test eax, eax
jne 0x45b216
cmp dword [esi*4 + 0x47e680], edi
je 0x45b3d3
mov eax, dword [0x47e678]
lea esi, [eax - 1]
test esi, esi
jl 0x45b3c1
cmp dword [esi*4 + 0x47e680], edi
je 0x45b3bd
dec esi
jns 0x45b3b1
test esi, esi
jge 0x45b3d1
cmp eax, 0x10
jge 0x45b3cc
inc eax
mov dword [0x47e678], eax
lea esi, [eax - 1]
jmp 0x45b3d3
je 0x45b3eb
xor ecx, ecx
test esi, esi
jl 0x45b3eb
lea eax, [ecx*4 + 0x47e680]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x45b3d9
push 0
push 0x47e6c0
call ebx
jmp 0x45b216
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45b6b3
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x47bfd4]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x45b6ef
xor eax, eax
jmp 0x45b859
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x47e8c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x45b72d
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.004618fe
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x45b7c7
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x45b82a
jmp 0x45b751
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x45b78c
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x45b77d
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x45b75d
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45b7eb
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x45b7f4
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x45b74f
jmp 0x45b7f4
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45b7eb
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x45b7f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x45b854
cmp dword [ebp - 0x68], eax
je 0x45b827
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x45b81c
call fcn.00457015
mov dword [eax], 9
call fcn.0045701e
mov dword [eax], esi
jmp 0x45b84f
push dword [ebp - 0x68]
call fcn.00457027
pop ecx
jmp 0x45b84f
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x45b83c
cmp byte [edi], 0x1a
jne 0x45b83c
xor eax, eax
jmp 0x45b857
call fcn.00457015
mov dword [eax], 0x1c
call fcn.0045701e
and dword [eax], 0
or eax, 0xffffffff
jmp 0x45b857
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.004525c5
add ebp, 0x3a4
leave
ret
Function at 0x45bba4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x47bfd4]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x47cb10]
je 0x45bbdb
inc eax
cmp eax, 0x13
jb 0x45bbcc
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x47cb10]
jne 0x45bcfe
mov eax, dword [0x47e3bc]
cmp eax, 1
je 0x45bcd9
cmp eax, edx
jne 0x45bc0b
cmp dword [0x47c124], 1
je 0x45bcd9
cmp ecx, 0xfc
je 0x45bcfe
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45bc41
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00459080
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00454ef0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45bc75
mov eax, edi
push eax
call fcn.00454ef0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x46a0b0
push edi
call fcn.0045f9e0
add esp, 0x10
push edi
call fcn.00454ef0
push dword [esi + 0x47cb14]
mov ebx, eax
call fcn.00454ef0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00453e10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00459080
push edi
push ebx
call fcn.00459090
push 0x470578
push ebx
call fcn.00459090
push dword [esi + 0x47cb14]
push ebx
call fcn.00459090
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00460687
add esp, 0x2c
jmp 0x45bcfe
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x47cb14]
push dword [esi]
call fcn.00454ef0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004525c5
add ebp, 0x90
leave
ret
Function at 0x460687
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x47e868], ebx
push esi
push edi
jne 0x460707
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x460742
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x47e868], eax
je 0x460742
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x47e86c], eax
call esi
cmp dword [0x47e544], 2
mov dword [0x47e870], eax
jne 0x460707
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x47e878], eax
je 0x460707
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x47e874], eax
mov eax, dword [0x47e874]
test eax, eax
je 0x46074c
call eax
test eax, eax
je 0x460733
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x47e878]
test eax, eax
je 0x460733
test byte [ebp - 8], 1
jne 0x46074c
cmp dword [0x47e550], 4
jb 0x460746
or byte [ebp + 0x12], 0x20
jmp 0x46076b
xor eax, eax
jmp 0x46077b
or byte [ebp + 0x12], 4
jmp 0x46076b
mov eax, dword [0x47e86c]
test eax, eax
je 0x46076b
call eax
mov ebx, eax
test ebx, ebx
je 0x46076b
mov eax, dword [0x47e870]
test eax, eax
je 0x46076b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x47e868]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x462262
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x475708
call fcn.00456654
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x47e880], edi
jne 0x4622a6
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x462291
mov dword [0x47e880], ebx
jmp 0x4622a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4622a6
mov dword [0x47e880], 2
mov eax, dword [0x47e880]
cmp eax, ebx
jne 0x4622c6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x462389
cmp eax, 2
je 0x4622cf
cmp eax, edi
jne 0x4622f7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4622e2
mov eax, dword [0x47e7ec]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x4622fe
xor eax, eax
jmp 0x462389
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00453e10
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x462331
cmp esi, edi
jne 0x462347
push dword [ebp - 0x20]
call fcn.0045429c
pop ecx
mov esi, eax
cmp esi, edi
je 0x4622f7
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x46237a
cmp dword [ebp + 0x14], edi
jne 0x462364
push edi
push edi
jmp 0x46236a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x462386
push esi
call fcn.00453e4d
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0045668f
ret
Function at 0x462392
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x475718
call fcn.00456654
xor esi, esi
cmp dword [0x47e884], esi
jne 0x4623d6
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4623c1
mov dword [0x47e884], edi
jmp 0x4623d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4623d6
mov dword [0x47e884], 2
mov eax, dword [0x47e884]
cmp eax, 2
je 0x4624b7
cmp eax, esi
je 0x4624b7
cmp eax, 1
jne 0x46241b
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x462404
mov eax, dword [0x47e7ec]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x462422
xor eax, eax
jmp 0x4624c9
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00453e10
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x462458
cmp edi, esi
jne 0x462473
lea eax, [ebx + ebx]
push eax
call fcn.0045429c
pop ecx
mov edi, eax
cmp edi, esi
je 0x46241b
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4624a6
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x462490
push esi
push esi
jmp 0x462496
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4624b2
push edi
call fcn.00453e4d
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4624c9
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0045668f
ret
Function at 0x4630c6
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00453e10
mov eax, dword [0x47bfd4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00460780
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4631fb
push 2
push esi
push dword [ebp + 8]
call fcn.00460780
add esp, 0xc
cmp eax, ebx
je 0x4631fb
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x46319b
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0045e940
push 0x8000
push dword [ebp + 8]
call fcn.004642bf
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x463151
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0045b6b3
add esp, 0xc
cmp eax, 0xffffffff
je 0x463171
sub edi, eax
test edi, edi
jg 0x463149
jmp 0x463189
call fcn.0045701e
cmp dword [eax], 5
jne 0x463186
call fcn.00457015
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004642bf
pop ecx
pop ecx
jmp 0x4631e3
jge 0x4631e3
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00460780
push dword [ebp + 8]
call fcn.004615c3
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4631e3
call fcn.00457015
mov dword [eax], 0xd
call fcn.0045701e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00460780
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4631fd
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004525c5
leave
ret