joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020a4
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x401108
call fcn.00402420
mov edi, 0x94
mov eax, edi
call fcn.00403030
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 [0x408afc], ecx
mov eax, dword [esi + 4]
mov dword [0x408b08], eax
mov edx, dword [esi + 8]
mov dword [0x408b0c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x408b00], esi
cmp ecx, 2
je 0x402104
or esi, 0x8000
mov dword [0x408b00], esi
shl eax, 8
add eax, edx
mov dword [0x408b04], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40213f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40213f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402157
cmp eax, 0x20b
je 0x402144
mov dword [ebp - 0x1c], esi
jmp 0x40216b
cmp dword [ecx + 0x84], 0xe
jbe 0x40213f
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x402165
cmp dword [ecx + 0x74], 0xe
jbe 0x40213f
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00402fd1
pop ecx
test eax, eax
jne 0x402197
cmp dword [0x408ae8], 1
jne 0x402184
call fcn.0040277a
push 0x1c
call fcn.00402603
push 0xff
call fcn.0040246c
pop ecx
pop ecx
call fcn.00402f2f
mov dword [ebp - 4], esi
call fcn.00402d84
test eax, eax
jge 0x4021b0
push 0x1b
call fcn.0040207f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x409014], eax
call fcn.00402c62
mov dword [0x408ae0], eax
call fcn.00402bc0
test eax, eax
jge 0x4021d6
push 8
call fcn.0040207f
pop ecx
call fcn.0040298d
test eax, eax
jge 0x4021e7
push 9
call fcn.0040207f
pop ecx
call fcn.0040249c
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4021fa
push eax
call fcn.0040207f
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402924
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40221b
movzx eax, word [ebp - 0x34]
jmp 0x40221e
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00401e4f
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40223c
push edi
call fcn.004025c3
call fcn.004025e5
jmp 0x40226e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040245b
ret
Function at 0x402501
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x408b3c], esi
push edi
jne 0x402521
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 [0x408b38], esi
mov byte [0x408b34], al
jne 0x402587
mov ecx, dword [0x409008]
test ecx, ecx
je 0x402568
mov eax, dword [0x409004]
sub eax, 4
cmp eax, ecx
jmp 0x402561
mov eax, dword [eax]
test eax, eax
je 0x402553
call eax
mov eax, dword [0x409004]
sub eax, 4
cmp eax, dword [0x409008]
mov dword [0x409004], eax
jae 0x40254b
mov eax, 0x40701c
mov esi, 0x407020
cmp eax, esi
mov edi, eax
jae 0x402587
mov eax, dword [edi]
test eax, eax
je 0x402580
call eax
add edi, 4
cmp edi, esi
jb 0x402578
mov eax, 0x407024
mov esi, 0x407028
cmp eax, esi
mov edi, eax
jae 0x4025a6
mov eax, dword [edi]
test eax, eax
je 0x40259f
call eax
add edi, 4
cmp edi, esi
jb 0x402597
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4025c1
push dword [ebp + 8]
mov dword [0x408b3c], 1
call fcn.0040246c
pop ecx
pop ebp
ret

Function at 0x402603
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x408868]
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 + 0x408878]
je 0x402630
inc eax
cmp eax, 0x12
jb 0x402621
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x408878]
jne 0x402764
mov eax, dword [0x408ae8]
cmp eax, 1
je 0x40273f
cmp eax, edx
jne 0x402660
cmp dword [0x408870], 1
je 0x40273f
cmp ecx, 0xfc
je 0x402764
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 0x402699
lea eax, [ebp - 0x10c]
push 0x401150
push eax
call fcn.00403170
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004033a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4026db
lea eax, [ebp - 0x10c]
push eax
call fcn.004033a0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40114c
push edi
call fcn.00403270
add esp, 0x10
push edi
call fcn.004033a0
push dword [esi + 0x40887c]
mov ebx, eax
call fcn.004033a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403030
mov ebx, esp
push 0x401628
push ebx
call fcn.00403170
push edi
push ebx
call fcn.00403180
push 0x401148
push ebx
call fcn.00403180
push dword [esi + 0x40887c]
push ebx
call fcn.00403180
push 0x12010
push 0x401114
push ebx
call fcn.0040306d
add esp, 0x2c
jmp 0x402764
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x40887c]
push dword [esi]
call fcn.004033a0
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.00402071
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40306d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x408c54], ebx
push esi
push edi
jne 0x4030ed
push 0x4016c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403128
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4016bc
push edi
call esi
test eax, eax
mov dword [0x408c54], eax
je 0x403128
push 0x4016ac
push edi
call esi
push 0x401698
push edi
mov dword [0x408c58], eax
call esi
cmp dword [0x408afc], 2
mov dword [0x408c5c], eax
jne 0x4030ed
push 0x40167c
push edi
call esi
test eax, eax
mov dword [0x408c64], eax
je 0x4030ed
push 0x401664
push edi
call esi
mov dword [0x408c60], eax
mov eax, dword [0x408c60]
test eax, eax
je 0x403132
call eax
test eax, eax
je 0x403119
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x408c64]
test eax, eax
je 0x403119
test byte [ebp - 8], 1
jne 0x403132
cmp dword [0x408b08], 4
jb 0x40312c
or byte [ebp + 0x12], 0x20
jmp 0x403151
xor eax, eax
jmp 0x403161
or byte [ebp + 0x12], 4
jmp 0x403151
mov eax, dword [0x408c58]
test eax, eax
je 0x403151
call eax
mov ebx, eax
test ebx, ebx
je 0x403151
mov eax, dword [0x408c5c]
test eax, eax
je 0x403151
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x408c54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4056f8
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.00403030
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40578d
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 [0x408afc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40578d
cmp eax, 1
je 0x4057a5
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 0x40578d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x405762
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x405789
xor eax, eax
inc eax
jmp 0x4057c1
cmp esi, ebx
jae 0x405791
xor eax, eax
jmp 0x4057c1
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x408afc]
jmp 0x4057a7
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 0x430000
Capabilities:
Check for vm using instruction vpcext
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, reloc.user32.dll_DrawTextW
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219

Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x7cf4614d
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..tls
nop
mov ebx, 0x42f314
mov ecx, 0x7fbb6983
nop
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10005670
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10028fe0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10035080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1000bb8f
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1000b2f2
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10005610
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10015e23
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10015e62
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10015e62
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10015e62
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10015e62
cmp dword [ecx + 0x74], 0xe
jbe 0x10015e62
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001a0fe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000cca0
mov eax, dword [0x10035080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10018ed5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001a140
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001a29c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100285c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100369c8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10019c87
mov ecx, dword [esi*4 + 0x100369c8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1001a295
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001a295
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001a295
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10019c87
add esp, 0x14
test edx, edx
jl 0x1001a295
jg 0x1001a20b
test eax, eax
jb 0x1001a295
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001a295
jl 0x1001a225
cmp dword [ebp - 0x1008], eax
ja 0x1001a295
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001a243
test ebx, ebx
je 0x1001a27c
cmp ecx, edi
jae 0x1001a27c
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001a25d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001a269
cmp byte [ecx + 1], 0xa
jne 0x1001a269
inc ecx
jmp 0x1001a269
movzx eax, al
movsx eax, byte [eax + 0x100359f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001a243
cmp edx, ebx
jne 0x1001a243
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001a29a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000bb50
leave
ret

Function at 0x1001b56d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002de78
push 0x1002de70
push str.FlsAlloc
push 0x1f
call fcn.1001b435
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001b5a1
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002a168]
call esi
jmp 0x1001b5a7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x1001b5eb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002de88
push 0x1002de80
push str.FlsGetValue
push 0x21
call fcn.1001b435
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001b622
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002a168]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001b62a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002de90
push 0x1002de88
push str.FlsSetValue
push 0x22
call fcn.1001b435
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001b664
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002a168]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001fbac
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001fc49
push ebx
push esi
call fcn.1001fb75
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001e94a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001fbf6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001fc48
push edi
push eax
call fcn.1001bcd8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001fc16
call fcn.10018d7c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001fc47
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001e94a
add esp, 0x20
test eax, eax
jne 0x1001fc35
push edi
call fcn.10018d7c
jmp 0x1001fc3d
push ebx
call fcn.10018d7c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10021ec6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100173cc
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10021f35
cmp esi, dword [ebp - 4]
je 0x10021f30
cmp dword [ebp + 0xc], 0
je 0x10021f30
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10021f0d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10021a18
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10021f37
xor eax, eax
inc eax
jmp 0x10021f37
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10021f9c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10035080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100173cc
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100173cc
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10022013
cmp word [ecx], dx
je 0x10022013
mov eax, dword [0x1002e594]
push edi
dec eax
push eax
push 0x1002e480
call fcn.10021f3b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10022086
cmp word [eax], dx
je 0x10022086
mov eax, dword [edi]
test eax, eax
je 0x10022037
cmp word [eax], dx
je 0x10022037
lea eax, [ebp - 0x10]
push eax
call fcn.1002191e
jmp 0x10022040
lea eax, [ebp - 0x10]
push eax
call fcn.100219b9
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100220b0
mov eax, dword [0x1002e47c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1002e170
call fcn.10021f3b
add esp, 0xc
test al, al
je 0x100220b0
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1002207b
cmp word [eax], di
je 0x1002207b
lea eax, [ebp - 0x10]
push eax
call fcn.1002191e
pop ecx
jmp 0x100220b2
lea eax, [ebp - 0x10]
push eax
call fcn.100219b9
jmp 0x10022078
mov eax, dword [edi]
test eax, eax
je 0x1002209d
cmp word [eax], dx
je 0x1002209d
lea eax, [ebp - 0x10]
push eax
call fcn.100218d3
pop ecx
jmp 0x100220b0
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1002217b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10021dc0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1002217b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1002217b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1002217b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10022108
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001b76a
test ebx, ebx
je 0x10022176
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001b76a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002217b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002217b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100264e4
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1002217d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000bb50
leave
ret
Function at 0x100227bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100369c8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100227ff
cmp byte [ebx], 0xa
jne 0x100227ff
or byte [edi + eax + 0x28], 4
jmp 0x10022804
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10022903
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100228e6
inc eax
cmp dl, 0xd
je 0x10022830
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10022856
cmp eax, ecx
jae 0x10022864
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10022818
jmp 0x10022903
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100228e1
cmp dword [ebp - 0x10], 0
je 0x100228e1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100369c8]
test byte [eax + edi + 0x28], 0x48
je 0x100228bb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100228a6
mov byte [esi], dl
jmp 0x100228b7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100369c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10022903
cmp byte [ebp - 1], 0xa
jne 0x100228ca
cmp esi, ebx
jne 0x100228ca
mov byte [esi], 0xa
jmp 0x10022902
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10019ca5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10022903
mov byte [esi], 0xd
jmp 0x10022902
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100369c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10022900
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10022903
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret