joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
nop
jmp int.00401219
Function at 0x401130
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x41b3c0]
xor eax, dword [ebp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [eax], 0
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x9c
call esi
test eax, eax
jne 0x4011a9
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x94
call esi
test eax, eax
jne 0x4011a9
mov eax, 0x25e
mov ecx, dword [esp + 0xac]
xor ecx, dword [ebp + 4]
call fcn.0040e242
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
test eax, eax
mov ecx, dword [ebp + 8]
jne 0x4011bc
mov dword [ecx], 1
jmp 0x4011d4
cmp eax, 1
jne 0x4011c9
mov dword [ecx], 2
jmp 0x4011d4
cmp eax, 2
jne 0x4011d4
mov dword [ecx], 5
mov eax, dword [esp + 0xc]
cmp eax, 5
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
jl 0x4011e8
mov dword [ecx], 6
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [edx], eax
cmp dword [ecx], 6
jne 0x401201
cmp eax, 1
jne 0x401201
mov dword [ecx], 7
mov ecx, dword [esp + 0xac]
xor ecx, dword [ebp + 4]
xor eax, eax
call fcn.0040e242
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4012c0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x20
push esi
push str.DevicePhysicalMemory
lea eax, [esp + 8]
push eax
mov esi, ecx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0xc]
push eax
xor edx, edx
push 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], edx
push esi
mov dword [esp + 0x18], 0x18
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x2c], edx
call dword [sym.imp.ntdll.dll_ZwOpenSection]
mov ecx, dword [esi]
push 0x1000
push 0x30000
push 0
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
mov eax, esi
pop esi
add esp, 0x20
ret

Function at 0x401350
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov eax, esi
shr eax, 0x16
mov eax, dword [ecx + eax*4]
test al, 1
jne 0x40136e
pop edi
xor eax, eax
pop esi
ret 8
test al, al
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
js 0x4013b9
mov edx, dword [edi]
push 0x1000
and eax, 0xfffff000
push eax
push 0
push 4
push edx
call ebp
shr esi, 0xc
and esi, 0x3ff
mov ebx, dword [eax + esi*4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test bl, 1
jne 0x4013af
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret 8
and ebx, 0xfffff000
mov esi, ebx
jmp 0x4013c6
and esi, 0x3ff000
and eax, 0xfffff000
add esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [edi]
push 0x1000
push esi
push 0
push eax
push ecx
call ebp
pop ebp
pop ebx
pop edi
pop esi
ret 8
Function at 0x4014e0
Capabilities:
Get system information on windows

Disassembly:
push ebx
push ebp
push edi
push 0x1400
mov edi, 0x100
call fcn.004099e0
mov ebp, dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
add esp, 4
push 0
push 0x1400
mov ebx, eax
push ebx
push 0x10
call ebp
cmp eax, 0xc0000004
jne 0x40153a
push esi
push ebx
call fcn.004099c0
add edi, edi
lea esi, [edi + edi*4]
shl esi, 2
push esi
call fcn.004099e0
add esp, 8
push 0
push esi
mov ebx, eax
push ebx
push 0x10
call ebp
cmp eax, 0xc0000004
je 0x401511
pop esi
pop edi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x403750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41610e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dl, byte [esp + 0x28]
mov dword [esi], eax
mov dword [esi + 4], ecx
lea ecx, [esi + 8]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x30]
mov edi, 0xf
mov byte [ecx], dl
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov dword [esp + 0x24], 2
mov byte [ecx + 4], bl
call fcn.00402b30
mov dl, byte [esp + 0x44]
lea ecx, [esi + 0x24]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x4c]
mov byte [ecx], dl
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0x24], 3
mov byte [ecx + 4], bl
call fcn.00402b30
mov dl, byte [esp + 0x60]
lea ecx, [esi + 0x40]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x68]
mov byte [ecx], dl
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0x24], 4
mov byte [ecx + 4], bl
call fcn.00402b30
cmp dword [esp + 0x40], 0x10
jb 0x403806
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004099a0
add esp, 4
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
jb 0x403826
mov edx, dword [esp + 0x48]
push edx
call fcn.004099a0
add esp, 4
cmp dword [esp + 0x78], 0x10
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
jb 0x403846
mov eax, dword [esp + 0x64]
push eax
call fcn.004099a0
add esp, 4
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x5c
Function at 0x41067f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x41bff4], esi
push edi
jne 0x41069f
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 [0x41bff0], esi
mov byte [0x41bfec], al
jne 0x410705
mov ecx, dword [0x41c608]
test ecx, ecx
je 0x4106e6
mov eax, dword [0x41c604]
sub eax, 4
cmp eax, ecx
jmp 0x4106df
mov eax, dword [eax]
test eax, eax
je 0x4106d1
call eax
mov eax, dword [0x41c604]
sub eax, 4
cmp eax, dword [0x41c608]
mov dword [0x41c604], eax
jae 0x4106c9
mov eax, 0x41b058
mov esi, 0x41b060
cmp eax, esi
mov edi, eax
jae 0x410705
mov eax, dword [edi]
test eax, eax
je 0x4106fe
call eax
add edi, 4
cmp edi, esi
jb 0x4106f6
mov eax, 0x41b064
mov esi, 0x41b06c
cmp eax, esi
mov edi, eax
jae 0x410724
mov eax, dword [edi]
test eax, eax
je 0x41071d
call eax
add edi, 4
cmp edi, esi
jb 0x410715
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x41073f
push dword [ebp + 8]
mov dword [0x41bff4], 1
call fcn.004105ea
pop ecx
pop ebp
ret

Function at 0x4107b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41b3c0]
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 + 0x41b840]
je 0x4107e6
inc eax
cmp eax, 0x12
jb 0x4107d7
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41b840]
jne 0x41091a
mov eax, dword [0x41bf74]
cmp eax, 1
je 0x4108f5
cmp eax, edx
jne 0x410816
cmp dword [0x41b41c], 1
je 0x4108f5
cmp ecx, 0xfc
je 0x41091a
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 0x41084f
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00410270
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00410370
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x410891
lea eax, [ebp - 0x10c]
push eax
call fcn.00410370
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x417910
push edi
call fcn.00412820
add esp, 0x10
push edi
call fcn.00410370
push dword [esi + 0x41b844]
mov ebx, eax
call fcn.00410370
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00411170
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00410270
push edi
push ebx
call fcn.00410280
push 0x41790c
push ebx
call fcn.00410280
push dword [esi + 0x41b844]
push ebx
call fcn.00410280
push 0x12010
push 0x4178d8
push ebx
call fcn.004142f3
add esp, 0x2c
jmp 0x41091a
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x41b844]
push dword [esi]
call fcn.00410370
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.0040e242
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413bc7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41b3c0]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x41c4e8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x413d57
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x41c500]
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 - 0x18], ebx
je 0x413d57
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x413c26
xor eax, eax
jmp 0x413d6b
test al, 0x20
je 0x413c37
push 2
push edi
push edi
push ecx
call fcn.004150e5
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x413cf3
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x413d2b
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x413c8d
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x413c7e
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x413c63
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413ccd
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x413cd6
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x413c57
jmp 0x413cd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x413d52
cmp dword [ebp + 8], edi
je 0x413d2b
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x413d20
mov dword [0x41bfac], eax
jmp 0x413d5e
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413d15
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x413cd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x413cd8
push dword [ebp + 8]
call fcn.00414fa9
pop ecx
jmp 0x413d68
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x413d40
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x413c1f
mov dword [0x41bfa8], 0x1c
mov dword [0x41bfac], edi
jmp 0x413d68
sub eax, dword [ebp - 0x14]
jmp 0x413d6b
and dword [0x41bfac], 0
mov dword [0x41bfa8], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0040e242
leave
ret
Function at 0x4142f3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41c184], ebx
push esi
push edi
jne 0x414373
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4143ae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x41c184], eax
je 0x4143ae
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41c188], eax
call esi
cmp dword [0x41bfb4], 2
mov dword [0x41c18c], eax
jne 0x414373
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41c194], eax
je 0x414373
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41c190], eax
mov eax, dword [0x41c190]
test eax, eax
je 0x4143b8
call eax
test eax, eax
je 0x41439f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41c194]
test eax, eax
je 0x41439f
test byte [ebp - 8], 1
jne 0x4143b8
cmp dword [0x41bfc0], 4
jb 0x4143b2
or byte [ebp + 0x12], 0x20
jmp 0x4143d7
xor eax, eax
jmp 0x4143e7
or byte [ebp + 0x12], 4
jmp 0x4143d7
mov eax, dword [0x41c188]
test eax, eax
je 0x4143d7
call eax
mov ebx, eax
test ebx, ebx
je 0x4143d7
mov eax, dword [0x41c18c]
test eax, eax
je 0x4143d7
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41c184]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414ed8
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.00411170
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414f6d
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 [0x41bfb4]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x414f6d
cmp eax, 1
je 0x414f85
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 0x414f6d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x414f42
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x414f69
xor eax, eax
inc eax
jmp 0x414fa1
cmp esi, ebx
jae 0x414f71
xor eax, eax
jmp 0x414fa1
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41bfb4]
jmp 0x414f87
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 0x415184
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x41c4e8]
push edi
jae 0x41534b
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x41c500]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x41534b
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x41522a
test dl, 2
jne 0x41522a
test dl, 0x48
je 0x4151f4
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4151f4
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41523d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x415225
mov dword [0x41bfac], ecx
jmp 0x415352
cmp eax, 0x6d
jne 0x415231
xor eax, eax
jmp 0x41535f
push eax
call fcn.00414fa9
pop ecx
jmp 0x41535c
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x415346
test edx, edx
je 0x415260
cmp byte [edi], 0xa
jne 0x415260
or al, 4
jmp 0x415262
and al, 0xfb
mov byte [ecx], al
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 0x415340
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x415330
cmp al, 0xd
je 0x415296
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x415322
dec ecx
cmp dword [ebp - 8], ecx
jae 0x4152b0
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x4152ab
add dword [ebp - 8], 2
jmp 0x415304
mov dword [ebp - 8], eax
jmp 0x41531e
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4152d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41531e
cmp dword [ebp - 0x10], 0
je 0x41531e
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x4152f9
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x415304
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x415321
cmp edi, dword [ebp + 0xc]
jne 0x415309
cmp byte [ebp - 1], 0xa
jne 0x415309
mov byte [edi], 0xa
jmp 0x415321
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414025
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x415322
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x41527a
jmp 0x415340
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x415340
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x41535f
and dword [0x41bfac], 0
mov dword [0x41bfa8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415900
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4192b0
call fcn.0040f8c4
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x41c1bc], edi
jne 0x415944
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41592f
mov dword [0x41c1bc], ebx
jmp 0x415944
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x415944
mov dword [0x41c1bc], 2
mov eax, dword [0x41c1bc]
cmp eax, ebx
jne 0x415964
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x415a27
cmp eax, 2
je 0x41596d
cmp eax, edi
jne 0x415995
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x415980
mov eax, dword [0x41c150]
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 0x41599c
xor eax, eax
jmp 0x415a27
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00411170
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4159cf
cmp esi, edi
jne 0x4159e5
push dword [ebp - 0x24]
call fcn.0040f1be
pop ecx
mov esi, eax
cmp esi, edi
je 0x415995
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 0x415a18
cmp dword [ebp + 0x14], edi
jne 0x415a02
push edi
push edi
jmp 0x415a08
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 0x415a24
push esi
call fcn.0040e9ce
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0040f8ff
ret
Function at 0x415a30
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4192c0
call fcn.0040f8c4
xor esi, esi
cmp dword [0x41c1c0], esi
jne 0x415a74
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x415a5f
mov dword [0x41c1c0], edi
jmp 0x415a74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x415a74
mov dword [0x41c1c0], 2
mov eax, dword [0x41c1c0]
cmp eax, 2
je 0x415b55
cmp eax, esi
je 0x415b55
cmp eax, 1
jne 0x415ab9
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x415aa2
mov eax, dword [0x41c150]
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 0x415ac0
xor eax, eax
jmp 0x415b67
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00411170
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x415af6
cmp edi, esi
jne 0x415b11
lea eax, [ebx + ebx]
push eax
call fcn.0040f1be
pop ecx
mov edi, eax
cmp edi, esi
je 0x415ab9
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 0x415b44
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x415b2e
push esi
push esi
jmp 0x415b34
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 0x415b50
push edi
call fcn.0040e9ce
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x415b67
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.0040f8ff
ret