joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441a10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x441a37
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x441a82
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ebx
jmp 0x441a86
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x441ae6
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x441aa5
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x441b17
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x46ce18
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x46ce19
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x441af0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x441b20
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x20]
call fcn.0040c760
mov esi, dword [esp + 0x1c]
mov ebx, eax
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [section..data]
mov edi, eax
add esp, 8
test edi, edi
je 0x441c88
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x441b9c
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push ebp
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x18]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x441c01
mov dword [esp + 0x18], eax
mov ebx, eax
nop dword [eax + eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1c]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x28], al
lea eax, [esp + 0x28]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x441bc0
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esi + 0x10]
jae 0x441c2d
mov eax, dword [esi + 4]
push 1
push 0x46ce18
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x46ce19
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x441c06
push dword [esp + 0x28]
call fcn.0040c760
mov ecx, dword [edi]
push eax
push dword [esp + 0x2c]
push dword [edi + 4]
mov eax, dword [ecx + 4]
call eax
mov esi, dword [esp + 0x3c]
add esp, 0x10
mov ebx, dword [edi]
test esi, esi
jne 0x441c58
mov esi, dword [ebx + 0xc]
add esi, dword [edi + 8]
push dword [edi + 4]
mov eax, dword [ebx + 8]
push esi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push esi
push dword [edi + 8]
call eax
push dword [edi + 8]
mov eax, dword [ebx + 8]
push esi
call eax
push edi
call dword [0x476004]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
pop ecx
ret
Function at 0x456c1a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00456a90

Function at 0x45b981
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045b5fe
Function at 0x406d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x417f33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004080a7
mov dword [esp + 0x14], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
mov dword [esi], vtable.common::ICloneableException.0
call fcn.004014e0
mov byte [esp + 0x14], 1
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov dword [esp + 0x14], 2
mov dword [esi], vtable.common::CRuntimeError.0
mov dword [esp + 0x14], 3
mov dword [esi], vtable.common::CConvertedWin32StructuredException.0
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov dword [esp + 0x14], 0xffffffff
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40842a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0040ac7f
xor esi, esi
inc esi
cmp dword [0x4216a8], esi
pop ecx
jne 0x408452
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 [0x4216a4], esi
mov byte [0x4216a0], al
jne 0x4084b8
mov ecx, dword [0x422eac]
test ecx, ecx
je 0x408499
mov eax, dword [0x422ea8]
sub eax, 4
cmp eax, ecx
jmp 0x408492
mov eax, dword [eax]
test eax, eax
je 0x408484
call eax
mov eax, dword [0x422ea8]
sub eax, 4
cmp eax, dword [0x422eac]
mov dword [0x422ea8], eax
jae 0x40847c
mov eax, 0x420038
mov esi, 0x420040
cmp eax, esi
mov edi, eax
jae 0x4084b8
mov eax, dword [edi]
test eax, eax
je 0x4084b1
call eax
add edi, 4
cmp edi, esi
jb 0x4084a9
mov eax, 0x420044
mov esi, 0x42004c
cmp eax, esi
mov edi, eax
jae 0x4084d7
mov eax, dword [edi]
test eax, eax
je 0x4084d0
call eax
add edi, 4
cmp edi, esi
jb 0x4084c8
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4084e8
push 8
call fcn.0040abeb
jmp 0x4084fa
push dword [ebp + 8]
mov dword [0x4216a8], 1
call fcn.00408383
pop ecx
pop ebp
ret
Function at 0x408e46
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x41a5e0
call fcn.0040b1f8
mov edi, 0x94
mov eax, edi
call fcn.00411c80
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 [0x421668], ecx
mov eax, dword [esi + 4]
mov dword [0x421674], eax
mov edx, dword [esi + 8]
mov dword [0x421678], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42166c], esi
cmp ecx, 2
je 0x408ea6
or esi, 0x8000
mov dword [0x42166c], esi
shl eax, 8
add eax, edx
mov dword [0x421670], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x408edf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408edf
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x408ef7
cmp eax, 0x20b
je 0x408ee4
mov dword [ebp - 0x1c], edi
jmp 0x408f0b
cmp dword [ecx + 0x84], 0xe
jbe 0x408edf
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x408f05
cmp dword [ecx + 0x74], 0xe
jbe 0x408edf
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00411c27
pop ecx
test eax, eax
jne 0x408f1f
push 0x1c
call fcn.00408e22
pop ecx
call fcn.0040ae29
test eax, eax
jne 0x408f30
push 0x10
call fcn.00408e22
pop ecx
call fcn.0040fe34
mov dword [ebp - 4], edi
call fcn.00410ecb
test eax, eax
jge 0x408f49
push 0x1b
call fcn.00408dfd
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x421e90], eax
call fcn.00411aeb
mov dword [0x4216d0], eax
call fcn.00411a49
test eax, eax
jge 0x408f6f
push 8
call fcn.00408dfd
pop ecx
call fcn.00411816
test eax, eax
jge 0x408f80
push 9
call fcn.00408dfd
pop ecx
call fcn.004083c5
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x408f93
push eax
call fcn.00408dfd
pop ecx
mov eax, dword [0x421688]
mov dword [0x42168c], eax
push eax
push dword [0x421680]
push dword [0x42167c]
call fcn.00402fd0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x1c], edi
jne 0x408fc2
push esi
call fcn.004084fd
call fcn.0040851f
jmp 0x408ff4
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0040b233
ret
Function at 0x40fc84
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x420628]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x420da0]
je 0x40fcb1
inc eax
cmp eax, 0x12
jb 0x40fca2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x420da0]
jne 0x40fde5
mov eax, dword [0x4216d8]
cmp eax, 1
je 0x40fdc0
cmp eax, edx
jne 0x40fce1
cmp dword [0x420914], 1
je 0x40fdc0
cmp ecx, 0xfc
je 0x40fde5
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40fd1a
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0040af60
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004090e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40fd5c
lea eax, [ebp - 0x10c]
push eax
call fcn.004090e0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x41a8ac
push edi
call fcn.00408880
add esp, 0x10
push edi
call fcn.004090e0
push dword [esi + 0x420da4]
mov ebx, eax
call fcn.004090e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00411c80
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040af60
push edi
push ebx
call fcn.0040af70
push 0x41a8a8
push ebx
call fcn.0040af70
push dword [esi + 0x420da4]
push ebx
call fcn.0040af70
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004144fa
add esp, 0x2c
jmp 0x40fde5
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x420da4]
push dword [esi]
call fcn.004090e0
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00408241
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4144fa
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x421a24], ebx
push esi
push edi
jne 0x41457a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4145b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41cc4c
push edi
call esi
test eax, eax
mov dword [0x421a24], eax
je 0x4145b5
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x421a28], eax
call esi
cmp dword [0x421668], 2
mov dword [0x421a2c], eax
jne 0x41457a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x421a34], eax
je 0x41457a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x421a30], eax
mov eax, dword [0x421a30]
test eax, eax
je 0x4145bf
call eax
test eax, eax
je 0x4145a6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x421a34]
test eax, eax
je 0x4145a6
test byte [ebp - 8], 1
jne 0x4145bf
cmp dword [0x421674], 4
jb 0x4145b9
or byte [ebp + 0x12], 0x20
jmp 0x4145de
xor eax, eax
jmp 0x4145ee
or byte [ebp + 0x12], 4
jmp 0x4145de
mov eax, dword [0x421a28]
test eax, eax
je 0x4145de
call eax
mov ebx, eax
test ebx, ebx
je 0x4145de
mov eax, dword [0x421a2c]
test eax, eax
je 0x4145de
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x421a24]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41487b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x420628]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4148a4
xor eax, eax
jmp 0x414a12
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x421d80]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4148d7
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00416712
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4149a9
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4149e4
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x414932
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x414923
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x414906
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414972
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x41497b
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4148f7
jmp 0x41497d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x414a0d
cmp dword [ebp - 8], edi
je 0x4149e4
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4149d6
call fcn.0040a8d3
mov dword [eax], 9
call fcn.0040a8dc
mov dword [eax], esi
jmp 0x4149df
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4149cb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x41497d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x41497d
push dword [ebp - 8]
call fcn.0040a8e5
pop ecx
or eax, 0xffffffff
jmp 0x414a10
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4149f9
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4149f9
xor eax, eax
jmp 0x414a10
call fcn.0040a8d3
mov dword [eax], 0x1c
call fcn.0040a8dc
mov dword [eax], edi
jmp 0x4149df
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00408241
leave
ret
Function at 0x41593e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00411c80
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4159d3
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x421668]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4159d3
cmp eax, 1
je 0x4159eb
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4159d3
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4159a8
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4159cf
xor eax, eax
inc eax
jmp 0x415a07
cmp esi, ebx
jae 0x4159d7
xor eax, eax
jmp 0x415a07
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x421668]
jmp 0x4159ed
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415d0f
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x41cd08
call fcn.0040b1f8
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x421af8], edi
jne 0x415d53
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x415d3e
mov dword [0x421af8], ebx
jmp 0x415d53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x415d53
mov dword [0x421af8], 2
mov eax, dword [0x421af8]
cmp eax, ebx
jne 0x415d73
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x415e36
cmp eax, 2
je 0x415d7c
cmp eax, edi
jne 0x415da4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x415d8f
mov eax, dword [0x4219e4]
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 - 0x24], eax
cmp eax, edi
jne 0x415dab
xor eax, eax
jmp 0x415e36
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00411c80
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x415dde
cmp esi, edi
jne 0x415df4
push dword [ebp - 0x24]
call fcn.004090aa
pop ecx
mov esi, eax
cmp esi, edi
je 0x415da4
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x415e27
cmp dword [ebp + 0x14], edi
jne 0x415e11
push edi
push edi
jmp 0x415e17
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 - 0x20], edi
je 0x415e33
push esi
call fcn.00409588
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0040b233
ret
Function at 0x415e3f
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x41cd18
call fcn.0040b1f8
xor esi, esi
cmp dword [0x421afc], esi
jne 0x415e83
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x415e6e
mov dword [0x421afc], edi
jmp 0x415e83
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x415e83
mov dword [0x421afc], 2
mov eax, dword [0x421afc]
cmp eax, 2
je 0x415f64
cmp eax, esi
je 0x415f64
cmp eax, 1
jne 0x415ec8
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x415eb1
mov eax, dword [0x4219e4]
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 0x415ecf
xor eax, eax
jmp 0x415f76
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00411c80
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x415f05
cmp edi, esi
jne 0x415f20
lea eax, [ebx + ebx]
push eax
call fcn.004090aa
pop ecx
mov edi, eax
cmp edi, esi
je 0x415ec8
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 0x415f53
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x415f3d
push esi
push esi
jmp 0x415f43
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 0x415f5f
push edi
call fcn.00409588
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x415f76
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.0040b233
ret
Function at 0x416795
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00411c80
mov eax, dword [0x420628]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0041475c
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4168bf
push 2
push esi
push dword [ebp + 8]
call fcn.0041475c
add esp, 0xc
cmp eax, ebx
je 0x4168bf
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x416862
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00413280
push 0x8000
push dword [ebp + 8]
call fcn.00417391
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x41681b
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0041487b
add esp, 0xc
cmp eax, 0xffffffff
je 0x41683b
sub edi, eax
test edi, edi
jg 0x416813
jmp 0x416853
call fcn.0040a8dc
cmp dword [eax], 5
jne 0x416850
call fcn.0040a8d3
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00417391
pop ecx
pop ecx
jmp 0x4168aa
jge 0x4168aa
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041475c
push dword [ebp + 8]
call fcn.004164ef
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 0x4168aa
call fcn.0040a8d3
mov dword [eax], 0xd
call fcn.0040a8dc
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0041475c
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4168c1
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00408241
leave
ret