joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45adc8
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 0x45adf6
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 0x45adfd
cmp ebx, dword [eax + 4]
jae 0x45adfd
xor eax, eax
jmp 0x45afed
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x45ae0e
xor eax, eax
inc eax
jmp 0x45afec
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x45ae24
cmp ecx, edx
jae 0x45af69
cmp dword [eax + 4], 0
je 0x45ae2d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x45ae15
cmp dword [ebp + 8], 0
je 0x45ae4f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x45af69
cmp eax, esi
jae 0x45af69
mov eax, dword [0x497ed0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x45ae74
cmp dword [esi*4 + 0x497ed8], edi
je 0x45af6d
inc esi
cmp esi, eax
jl 0x45ae62
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x45afe9
cmp dword [ebp - 8], 0x1000000
jne 0x45afe9
test byte [ebp - 0xc], 0xcc
je 0x45aef2
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x45afe9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x45afe9
cmp word [eax + 0x18], 0x10b
jne 0x45afe9
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x45afe9
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x45aef2
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x45aef2
test byte [ecx + 0x27], 0x80
jne 0x45af69
push 1
push 0x497f18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x45ae06
mov ecx, dword [0x497ed0]
test ecx, ecx
mov edx, ecx
jle 0x45af26
lea eax, [ecx*4 + 0x497ed4]
cmp dword [eax], edi
je 0x45af26
dec edx
sub eax, 4
test edx, edx
jg 0x45af1a
test edx, edx
jne 0x45af57
push 0xf
pop ebx
cmp ecx, ebx
jg 0x45af33
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x45af4b
lea eax, [edx*4 + 0x497ed8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x45af39
cmp ecx, 0x10
jge 0x45af57
inc ecx
mov dword [0x497ed0], ecx
push 0
push 0x497f18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x45ae06
xor eax, eax
jmp 0x45afec
test esi, esi
jle 0x45ae06
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x497f18
call ebx
test eax, eax
jne 0x45ae06
cmp dword [esi*4 + 0x497ed8], edi
je 0x45afc3
mov eax, dword [0x497ed0]
lea esi, [eax - 1]
test esi, esi
jl 0x45afb1
cmp dword [esi*4 + 0x497ed8], edi
je 0x45afad
dec esi
jns 0x45afa1
test esi, esi
jge 0x45afc1
cmp eax, 0x10
jge 0x45afbc
inc eax
mov dword [0x497ed0], eax
lea esi, [eax - 1]
jmp 0x45afc3
je 0x45afdb
xor ecx, ecx
test esi, esi
jl 0x45afdb
lea eax, [ecx*4 + 0x497ed8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x45afc9
push 0
push 0x497f18
call ebx
jmp 0x45ae06
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45b145
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x495f14]
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 + 0x496540]
je 0x45b17c
inc eax
cmp eax, 0x13
jb 0x45b16d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x496540]
jne 0x45b29f
mov eax, dword [0x497cec]
cmp eax, 1
je 0x45b27a
cmp eax, edx
jne 0x45b1ac
cmp dword [0x495f44], 1
je 0x45b27a
cmp ecx, 0xfc
je 0x45b29f
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 0x45b1e2
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00459da0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00455860
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45b216
mov eax, edi
push eax
call fcn.00455860
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x48726c
push edi
call fcn.004535f0
add esp, 0x10
push edi
call fcn.00455860
push dword [esi + 0x496544]
mov ebx, eax
call fcn.00455860
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00453760
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00459da0
push edi
push ebx
call fcn.00459db0
push 0x487268
push ebx
call fcn.00459db0
push dword [esi + 0x496544]
push ebx
call fcn.00459db0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00464b38
add esp, 0x2c
jmp 0x45b29f
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x496544]
push dword [esi]
call fcn.00455860
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.00453275
add ebp, 0x90
leave
ret
Function at 0x45bc63
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x495f14]
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 0x45bc9f
xor eax, eax
jmp 0x45be09
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 + 0x4992c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x45bcdd
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00464eb9
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x45bd77
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x45bdda
jmp 0x45bd01
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 0x45bd3c
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x45bd2d
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 0x45bd0d
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 0x45bd9b
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x45bda4
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x45bcff
jmp 0x45bda4
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 0x45bd9b
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x45bda4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x45be04
cmp dword [ebp - 0x68], eax
je 0x45bdd7
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x45bdcc
call fcn.00456f4c
mov dword [eax], 9
call fcn.00456f55
mov dword [eax], esi
jmp 0x45bdff
push dword [ebp - 0x68]
call fcn.00456f5e
pop ecx
jmp 0x45bdff
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x45bdec
cmp byte [edi], 0x1a
jne 0x45bdec
xor eax, eax
jmp 0x45be07
call fcn.00456f4c
mov dword [eax], 0x1c
call fcn.00456f55
and dword [eax], 0
or eax, 0xffffffff
jmp 0x45be07
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.00453275
add ebp, 0x3a4
leave
ret
Function at 0x464b38
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x498108], ebx
push esi
push edi
jne 0x464bb8
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x464bf3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x498108], eax
je 0x464bf3
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x49810c], eax
call esi
cmp dword [0x497e80], 2
mov dword [0x498110], eax
jne 0x464bb8
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x498118], eax
je 0x464bb8
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x498114], eax
mov eax, dword [0x498114]
test eax, eax
je 0x464bfd
call eax
test eax, eax
je 0x464be4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x498118]
test eax, eax
je 0x464be4
test byte [ebp - 8], 1
jne 0x464bfd
cmp dword [0x497e8c], 4
jb 0x464bf7
or byte [ebp + 0x12], 0x20
jmp 0x464c1c
xor eax, eax
jmp 0x464c2c
or byte [ebp + 0x12], 4
jmp 0x464c1c
mov eax, dword [0x49810c]
test eax, eax
je 0x464c1c
call eax
mov ebx, eax
test ebx, ebx
je 0x464c1c
mov eax, dword [0x498110]
test eax, eax
je 0x464c1c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x498108]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x465374
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x46554a
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4992c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x46554a
test cl, 0x48
je 0x4653df
cmp byte [eax + 5], 0xa
je 0x4653df
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x465431
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x465419
call fcn.00456f4c
mov dword [eax], 9
call fcn.00456f55
mov dword [eax], esi
jmp 0x465429
cmp eax, 0x6d
je 0x46554a
push eax
call fcn.00456f5e
pop ecx
or eax, 0xffffffff
jmp 0x46554c
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x465545
test eax, eax
je 0x465458
cmp byte [ebx], 0xa
jne 0x465458
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x465461
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x46553f
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x46552f
cmp al, 0xd
je 0x465493
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x465521
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4654ad
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4654a8
add dword [ebp + 0x10], 2
jmp 0x465501
mov dword [ebp + 0x10], eax
jmp 0x46551d
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4654d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46551d
cmp dword [ebp - 0xc], 0
je 0x46551d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4654f6
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x465501
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x465520
cmp ebx, dword [ebp + 0xc]
jne 0x465506
cmp byte [ebp - 1], 0xa
jne 0x465506
mov byte [ebx], 0xa
jmp 0x465520
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00464eb9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x465521
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x465477
jmp 0x46553f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x46553f
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x46554c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x467045
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x48cdb0
call fcn.00456f00
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x49811c], edi
jne 0x467089
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x467074
mov dword [0x49811c], ebx
jmp 0x467089
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x467089
mov dword [0x49811c], 2
mov eax, dword [0x49811c]
cmp eax, ebx
jne 0x4670a9
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x46716c
cmp eax, 2
je 0x4670b2
cmp eax, edi
jne 0x4670da
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4670c5
mov eax, dword [0x49808c]
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 0x4670e1
xor eax, eax
jmp 0x46716c
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00453760
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x467114
cmp esi, edi
jne 0x46712a
push dword [ebp - 0x20]
call fcn.0045339b
pop ecx
mov esi, eax
cmp esi, edi
je 0x4670da
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 0x46715d
cmp dword [ebp + 0x14], edi
jne 0x467147
push edi
push edi
jmp 0x46714d
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 0x467169
push esi
call fcn.00453283
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00456f3b
ret
Function at 0x467175
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x48cdc0
call fcn.00456f00
xor esi, esi
cmp dword [0x498120], esi
jne 0x4671b9
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4671a4
mov dword [0x498120], edi
jmp 0x4671b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4671b9
mov dword [0x498120], 2
mov eax, dword [0x498120]
cmp eax, 2
je 0x46729a
cmp eax, esi
je 0x46729a
cmp eax, 1
jne 0x4671fe
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4671e7
mov eax, dword [0x49808c]
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 0x467205
xor eax, eax
jmp 0x4672ac
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00453760
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x46723b
cmp edi, esi
jne 0x467256
lea eax, [ebx + ebx]
push eax
call fcn.0045339b
pop ecx
mov edi, eax
cmp edi, esi
je 0x4671fe
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 0x467289
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x467273
push esi
push esi
jmp 0x467279
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 0x467295
push edi
call fcn.00453283
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4672ac
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.00456f3b
ret
Function at 0x468561
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00453760
mov eax, dword [0x495f14]
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.0045c287
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x468696
push 2
push esi
push dword [ebp + 8]
call fcn.0045c287
add esp, 0xc
cmp eax, ebx
je 0x468696
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x468636
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00462bf0
push 0x8000
push dword [ebp + 8]
call fcn.0046896a
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4685ec
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0045bc63
add esp, 0xc
cmp eax, 0xffffffff
je 0x46860c
sub edi, eax
test edi, edi
jg 0x4685e4
jmp 0x468624
call fcn.00456f55
cmp dword [eax], 5
jne 0x468621
call fcn.00456f4c
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0046896a
pop ecx
pop ecx
jmp 0x46867e
jge 0x46867e
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045c287
push dword [ebp + 8]
call fcn.004650f5
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 0x46867e
call fcn.00456f4c
mov dword [eax], 0xd
call fcn.00456f55
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.0045c287
add esp, 0xc
mov eax, esi
pop edi
jmp 0x468698
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00453275
leave
ret
Function at 0x1002bb9
Capabilities:
Create thread
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [0x100900c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x40001018
mov dword [ebp - 4], eax
call fcn.010049b6
pop ecx
mov esi, 0x104
push esi
lea eax, [ebp - 0xa0c]
push eax
push 0xda
call fcn.0100792b
push esi
lea eax, [ebp - 0xc14]
push eax
push 0xdb
call fcn.0100792b
push 0x410
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
je 0x1002c9e
lea eax, [ebp - 0xc20]
push eax
push edi
push esi
push 0x1002b79
push 0x3e80
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [ebp - 0xc18], eax
je 0x1002c96
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7530
push dword [ebp - 0xc18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1002c88
mov edi, dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [esi + 0x208]
push eax
lea eax, [ebp - 0xa0c]
push eax
call edi
lea eax, [ebp - 0xc14]
push esi
push eax
call edi
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 0x14
push dword [ebp - 0xc18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002c9e
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
lea eax, [ebp - 0xa0c]
push eax
push 0x40001019
call fcn.010049b6
lea eax, [ebp - 0xc14]
push eax
push 0x4000101a
call fcn.010049b6
add esp, 0x10
lea eax, [ebp - 0xc1c]
push eax
push dword [ebx + 0x64c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push dword [ebp - 0xc1c]
mov esi, dword [sym.imp.msvcrt.dll_swprintf]
mov edi, 0x1001368
lea eax, [ebp - 0x804]
push edi
push eax
call esi
lea eax, [ebp - 0x804]
push eax
push 0x40001046
call fcn.010049b6
add esp, 0x14
lea eax, [ebp - 0xc44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp - 0xc30]
lea eax, [ebp - 0x804]
push edi
push eax
call esi
lea eax, [ebp - 0x804]
push eax
push 0x4000101b
call fcn.010049b6
add esp, 0x14
call fcn.01005fa9
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, ah
movzx eax, al
push ecx
push eax
lea eax, [ebp - 0x804]
push 0x100135c
push eax
call esi
lea eax, [ebp - 0x804]
push eax
push 0x40001025
call fcn.010049b6
add esp, 0x18
call fcn.01005dbf
push 0x10012ec
call fcn.01004a6c
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007b1d
leave
ret 4
Function at 0x1004024
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x5008
call fcn.01007db0
mov eax, dword [0x100900c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
xor esi, esi
mov word [ebp - 0x1004], si
mov ecx, 0x3ff
lea edi, [ebp - 0x1002]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x5004], si
mov ecx, 0xfff
lea edi, [ebp - 0x5002]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x1004]
push 0x800
push eax
mov dword [ebp - 0x5008], esi
call dword [sym.imp.msvcrt.dll__vsnwprintf]
add esp, 0x10
push esi
push esi
lea eax, [ebp - 0x5008]
push eax
push 0x400
push dword [ebp + 8]
mov word [ebp - 6], si
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x1004]
push eax
push pe_nt_image_headers32
call fcn.010078fd
push eax
lea eax, [ebp - 0x5004]
push 0x2000
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x14
cmp edi, esi
mov word [ebp - 0x1006], si
je 0x1004127
push dword [ebp - 0x5008]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
call edi
mov ebx, eax
lea eax, [ebp - 0x5004]
push eax
call edi
add ebx, eax
lea eax, [ebx + ebx + 2]
cmp eax, 0x4000
pop ecx
pop ecx
jae 0x1004127
push dword [ebp - 0x5008]
lea eax, [ebp - 0x5004]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
push 0x12000
push 0xca
call fcn.010078fd
push eax
lea eax, [ebp - 0x5004]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x5008], esi
je 0x1004159
push dword [ebp - 0x5008]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]