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

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x42ad20]
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 0x419d0a
xor eax, eax
jmp 0x419e74
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 + 0x42e280]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x419d48
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0041e1a2
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x419de2
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x419e45
jmp 0x419d6c
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 0x419da7
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x419d98
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 0x419d78
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 0x419e06
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x419e0f
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x419d6a
jmp 0x419e0f
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 0x419e06
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x419e0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x419e6f
cmp dword [ebp - 0x68], eax
je 0x419e42
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x419e37
call fcn.0041a159
mov dword [eax], 9
call fcn.0041a162
mov dword [eax], esi
jmp 0x419e6a
push dword [ebp - 0x68]
call fcn.0041a16b
pop ecx
jmp 0x419e6a
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x419e57
cmp byte [edi], 0x1a
jne 0x419e57
xor eax, eax
jmp 0x419e72
call fcn.0041a159
mov dword [eax], 0x1c
call fcn.0041a162
and dword [eax], 0
or eax, 0xffffffff
jmp 0x419e72
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.004131be
add ebp, 0x3a4
leave
ret
Function at 0x41a3e1
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 0x41a5b7
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x42e280]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41a5b7
test cl, 0x48
je 0x41a44c
cmp byte [eax + 5], 0xa
je 0x41a44c
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 0x41a49e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41a486
call fcn.0041a159
mov dword [eax], 9
call fcn.0041a162
mov dword [eax], esi
jmp 0x41a496
cmp eax, 0x6d
je 0x41a5b7
push eax
call fcn.0041a16b
pop ecx
or eax, 0xffffffff
jmp 0x41a5b9
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41a5b2
test eax, eax
je 0x41a4c5
cmp byte [ebx], 0xa
jne 0x41a4c5
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41a4ce
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 0x41a5ac
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41a59c
cmp al, 0xd
je 0x41a500
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41a58e
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41a51a
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41a515
add dword [ebp + 0x10], 2
jmp 0x41a56e
mov dword [ebp + 0x10], eax
jmp 0x41a58a
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 0x41a542
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41a58a
cmp dword [ebp - 0xc], 0
je 0x41a58a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41a563
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41a56e
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41a58d
cmp ebx, dword [ebp + 0xc]
jne 0x41a573
cmp byte [ebp - 1], 0xa
jne 0x41a573
mov byte [ebx], 0xa
jmp 0x41a58d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041e1a2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41a58e
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41a4e4
jmp 0x41a5ac
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41a5ac
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 0x41a5b9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41aa38
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x42ad20]
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 + 0x42b5d8]
je 0x41aa6f
inc eax
cmp eax, 0x13
jb 0x41aa60
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x42b5d8]
jne 0x41ab92
mov eax, dword [0x42dee8]
cmp eax, 1
je 0x41ab6d
cmp eax, edx
jne 0x41aa9f
cmp dword [0x42ad74], 1
je 0x41ab6d
cmp ecx, 0xfc
je 0x41ab92
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 0x41aad5
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.004175d0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00414ec0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41ab09
mov eax, edi
push eax
call fcn.00414ec0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x424c44
push edi
call fcn.004144a0
add esp, 0x10
push edi
call fcn.00414ec0
push dword [esi + 0x42b5dc]
mov ebx, eax
call fcn.00414ec0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041afa0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004175d0
push edi
push ebx
call fcn.004175e0
push 0x426088
push ebx
call fcn.004175e0
push dword [esi + 0x42b5dc]
push ebx
call fcn.004175e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041cff7
add esp, 0x2c
jmp 0x41ab92
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x42b5dc]
push dword [esi]
call fcn.00414ec0
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.004131be
add ebp, 0x90
leave
ret
Function at 0x41b2b1
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.0041afa0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41b34c
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 [0x42dd88]
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 0x41b34c
cmp eax, 1
je 0x41b36d
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 0x41b34c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41b319
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41b348
xor eax, eax
inc eax
jmp 0x41b38c
cmp edi, eax
jae 0x41b350
xor eax, eax
jmp 0x41b38c
cmp eax, esi
jae 0x41b357
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 [0x42dd88]
jmp 0x41b370
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 0x41cb50
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 0x41cb7e
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 0x41cb85
cmp ebx, dword [eax + 4]
jae 0x41cb85
xor eax, eax
jmp 0x41cd75
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41cb96
xor eax, eax
inc eax
jmp 0x41cd74
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41cbac
cmp ecx, edx
jae 0x41ccf1
cmp dword [eax + 4], 0
je 0x41cbb5
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41cb9d
cmp dword [ebp + 8], 0
je 0x41cbd7
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41ccf1
cmp eax, esi
jae 0x41ccf1
mov eax, dword [0x42e110]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41cbfc
cmp dword [esi*4 + 0x42e118], edi
je 0x41ccf5
inc esi
cmp esi, eax
jl 0x41cbea
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41cd71
cmp dword [ebp - 8], 0x1000000
jne 0x41cd71
test byte [ebp - 0xc], 0xcc
je 0x41cc7a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41cd71
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41cd71
cmp word [eax + 0x18], 0x10b
jne 0x41cd71
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41cd71
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41cc7a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41cc7a
test byte [ecx + 0x27], 0x80
jne 0x41ccf1
push 1
push 0x42e158
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41cb8e
mov ecx, dword [0x42e110]
test ecx, ecx
mov edx, ecx
jle 0x41ccae
lea eax, [ecx*4 + 0x42e114]
cmp dword [eax], edi
je 0x41ccae
dec edx
sub eax, 4
test edx, edx
jg 0x41cca2
test edx, edx
jne 0x41ccdf
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41ccbb
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41ccd3
lea eax, [edx*4 + 0x42e118]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41ccc1
cmp ecx, 0x10
jge 0x41ccdf
inc ecx
mov dword [0x42e110], ecx
push 0
push 0x42e158
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41cb8e
xor eax, eax
jmp 0x41cd74
test esi, esi
jle 0x41cb8e
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42e158
call ebx
test eax, eax
jne 0x41cb8e
cmp dword [esi*4 + 0x42e118], edi
je 0x41cd4b
mov eax, dword [0x42e110]
lea esi, [eax - 1]
test esi, esi
jl 0x41cd39
cmp dword [esi*4 + 0x42e118], edi
je 0x41cd35
dec esi
jns 0x41cd29
test esi, esi
jge 0x41cd49
cmp eax, 0x10
jge 0x41cd44
inc eax
mov dword [0x42e110], eax
lea esi, [eax - 1]
jmp 0x41cd4b
je 0x41cd63
xor ecx, ecx
test esi, esi
jl 0x41cd63
lea eax, [ecx*4 + 0x42e118]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41cd51
push 0
push 0x42e158
call ebx
jmp 0x41cb8e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41cff7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42e170], ebx
push esi
push edi
jne 0x41d077
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41d0b2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x427794
push edi
call esi
test eax, eax
mov dword [0x42e170], eax
je 0x41d0b2
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x42e174], eax
call esi
cmp dword [0x42dd88], 2
mov dword [0x42e178], eax
jne 0x41d077
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42e180], eax
je 0x41d077
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42e17c], eax
mov eax, dword [0x42e17c]
test eax, eax
je 0x41d0bc
call eax
test eax, eax
je 0x41d0a3
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42e180]
test eax, eax
je 0x41d0a3
test byte [ebp - 8], 1
jne 0x41d0bc
cmp dword [0x42dd94], 4
jb 0x41d0b6
or byte [ebp + 0x12], 0x20
jmp 0x41d0db
xor eax, eax
jmp 0x41d0eb
or byte [ebp + 0x12], 4
jmp 0x41d0db
mov eax, dword [0x42e174]
test eax, eax
je 0x41d0db
call eax
mov ebx, eax
test ebx, ebx
je 0x41d0db
mov eax, dword [0x42e178]
test eax, eax
je 0x41d0db
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42e170]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e5a5
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4277f8
call fcn.00416e08
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x42e188], edi
jne 0x41e5e9
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41e5d4
mov dword [0x42e188], ebx
jmp 0x41e5e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41e5e9
mov dword [0x42e188], 2
mov eax, dword [0x42e188]
cmp eax, ebx
jne 0x41e609
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x41e6cc
cmp eax, 2
je 0x41e612
cmp eax, edi
jne 0x41e63a
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x41e625
mov eax, dword [0x42e0a0]
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 0x41e641
xor eax, eax
jmp 0x41e6cc
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0041afa0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x41e674
cmp esi, edi
jne 0x41e68a
push dword [ebp - 0x20]
call fcn.00414e93
pop ecx
mov esi, eax
cmp esi, edi
je 0x41e63a
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 0x41e6bd
cmp dword [ebp + 0x14], edi
jne 0x41e6a7
push edi
push edi
jmp 0x41e6ad
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 0x41e6c9
push esi
call fcn.0041370a
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00416e43
ret
Function at 0x41e6d5
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x427808
call fcn.00416e08
xor esi, esi
cmp dword [0x42e18c], esi
jne 0x41e719
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41e704
mov dword [0x42e18c], edi
jmp 0x41e719
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41e719
mov dword [0x42e18c], 2
mov eax, dword [0x42e18c]
cmp eax, 2
je 0x41e7fa
cmp eax, esi
je 0x41e7fa
cmp eax, 1
jne 0x41e75e
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x41e747
mov eax, dword [0x42e0a0]
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 0x41e765
xor eax, eax
jmp 0x41e80c
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0041afa0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x41e79b
cmp edi, esi
jne 0x41e7b6
lea eax, [ebx + ebx]
push eax
call fcn.00414e93
pop ecx
mov edi, eax
cmp edi, esi
je 0x41e75e
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 0x41e7e9
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x41e7d3
push esi
push esi
jmp 0x41e7d9
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 0x41e7f5
push edi
call fcn.0041370a
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x41e80c
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.00416e43
ret
Function at 0x41f0e0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0041afa0
mov eax, dword [0x42ad20]
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.0041a867
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x41f215
push 2
push esi
push dword [ebp + 8]
call fcn.0041a867
add esp, 0xc
cmp eax, ebx
je 0x41f215
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41f1b5
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0041b030
push 0x8000
push dword [ebp + 8]
call fcn.0041f291
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x41f16b
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00419cce
add esp, 0xc
cmp eax, 0xffffffff
je 0x41f18b
sub edi, eax
test edi, edi
jg 0x41f163
jmp 0x41f1a3
call fcn.0041a162
cmp dword [eax], 5
jne 0x41f1a0
call fcn.0041a159
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0041f291
pop ecx
pop ecx
jmp 0x41f1fd
jge 0x41f1fd
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041a867
push dword [ebp + 8]
call fcn.0041de88
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 0x41f1fd
call fcn.0041a159
mov dword [eax], 0xd
call fcn.0041a162
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.0041a867
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41f217
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004131be
leave
ret
Function at 0x420560
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0x14], edi
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
mov esi, dword [edi + 0xf0]
lea esi, [esi + esi - 2]
lea esi, [edi + esi*8]
mov dword [esp + 0x18], esi
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 3]
mov edi, ecx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, edx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8]
movzx edi, ch
xor esi, dword [ebp + edi*8 + 3]
mov edi, edx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, eax
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8]
movzx edi, dh
xor esi, dword [ebp + edi*8 + 3]
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 1]
mov edi, dword [esp + 0x14]
mov edx, dword [ebp + edx*8]
movzx eax, ah
xor edx, dword [ebp + eax*8 + 3]
mov eax, dword [esp + 4]
and ebx, 0xff
xor edx, dword [ebp + ebx*8 + 2]
mov ebx, dword [esp + 8]
xor edx, dword [ebp + ecx*8 + 1]
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
cmp edi, dword [esp + 0x18]
mov dword [esp + 0x14], edi
jb 0x420580
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, bh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, edx
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, ch
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, eax
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, dh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
movzx edi, bh
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov edi, dword [esp + 0x14]
and edx, 0xff
mov edx, dword [ebp + edx*8 + 2]
and edx, 0xff
movzx eax, ah
mov eax, dword [ebp + eax*8]
and eax, 0xff00
xor edx, eax
mov eax, dword [esp + 4]
and ebx, 0xff
mov ebx, dword [ebp + ebx*8]
and ebx, 0xff0000
xor edx, ebx
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + ecx*8 + 2]
and ecx, 0xff000000
xor edx, ecx
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
ret