joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4047dc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004032fd
mov eax, dword [0x415008]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2004]
push 0xffffffffffffffff
push 0x1000
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll__vsnwprintf_s]
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
lea eax, [ebp - 0x2004]
push eax
je 0x40482a
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x404852
push 0x404860
call dword [sym.imp.MSVCR120_CLR0400.dll___iob_func]
add eax, 0x20
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll_fwprintf]
call dword [sym.imp.MSVCR120_CLR0400.dll___iob_func]
add eax, 0x20
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll_fflush]
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401f60
mov esp, ebp
pop ebp
ret

Function at 0x405d26
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x410f38
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x415008]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [0x415008]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
cmp byte [0x415a14], 0
jne 0x405d89
lea eax, [esp + 0xb]
mov ecx, 0x405e28
push eax
call fcn.00402609
mov dword [0x415a10], eax
mov byte [0x415a14], 1
jmp 0x405d8e
mov eax, dword [0x415a10]
test eax, eax
je 0x405e04
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], 0x200
mov dword [esp + 0x18], eax
mov dword [esp + 0x230], ecx
push 2
pop edx
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x18]
mov word [eax], cx
mov dword [esp + 0x230], edx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea ecx, [esp + 0x14]
call fcn.0040cedd
lea ecx, [esp + 0xc]
call fcn.0040c698
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [esp + 0x230], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402e57
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00401f60
mov esp, ebp
pop ebp
ret
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x401000
Capabilities:
Accept command line arguments
Allocate or change rwx memory

Disassembly:
mov edx, 0x325b
mov esi, 0x3469
call sub.user32.dll_GetFocus
push 0x40
push 0x3000
push 0x18c00
push 0
call sub.kernel32.dll_GetCommandLineA
call sub.kernel32.dll_VirtualAlloc
call fcn.0049c312
ret
Function at 0x100011e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e64a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.10004e30
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x1000126d
push eax
push esi
call fcn.100052d9
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
lea ecx, [ebp - 0x1c]
call fcn.10001180
push 0x1002c3ac
lea eax, [ebp - 0x1c]
push eax
call fcn.1000769d
int3

Function at 0x10001fc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e6f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
push edi
push str.advapi32.dll
lea ecx, [ebp - 0x54]
call fcn.10002430
push str.._1.jpg
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.10002430
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x54]
call fcn.10001c90
add esp, 4
push 0x40
push 0x3000
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, dword [ebp - 0x10]
mov ebx, eax
mov esi, dword [ebp - 0x24]
test ebx, ebx
jne 0x1000205f
mov edx, str.Failed_to_allocate_memory.
call fcn.10003f20
push eax
call fcn.100041d0
add esp, 4
mov ebx, 1
jmp 0x10002087
push dword [ebp - 0x14]
cmp edi, 0x10
lea eax, [ebp - 0x24]
cmovae eax, esi
push eax
push ebx
call fcn.10007710
add esp, 0xc
call ebx
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
cmp edi, 0x10
jb 0x100020b7
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x100020ad
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000213c
push ecx
push esi
call fcn.100061c6
add esp, 8
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x100020e7
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100020dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002141
push edx
push ecx
call fcn.100061c6
add esp, 8
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
cmp edx, 0x10
jb 0x10002129
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000211f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002146
push edx
push ecx
call fcn.100061c6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.1000c590
call fcn.1000c590
call fcn.1000c590
int3
Function at 0x100021f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, 0x5a4d
mov dword [ebp - 8], eax
cmp word [eax], cx
jne 0x10002275
mov ecx, dword [eax + 0x3c]
xor esi, esi
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10002277
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x10002275
mov edi, eax
mov ecx, edi
mov eax, str..text
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10002260
test dl, dl
je 0x1000225c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10002260
add eax, 2
add ecx, 2
test dl, dl
jne 0x10002240
xor eax, eax
jmp 0x10002265
sbb eax, eax
or eax, 1
test eax, eax
je 0x100022f7
inc esi
add edi, 0x28
cmp esi, ebx
jl 0x10002236
xor esi, esi
mov ebx, dword [ebp - 4]
mov edx, 0x1002dab0
add ebx, esi
mov ecx, esi
push 8
push ebx
call fcn.10002150
add esp, 8
test eax, eax
je 0x100022ad
mov eax, dword [eax + 0xe]
mov ecx, 0xefff
mov dword [eax], 0
mov eax, dword fs:[0x18]
and word [eax + 0xfca], cx
mov eax, dword fs:[0x30]
push str.ntdll.dll
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x1000238a
push str.RtlLeaveCriticalSection
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
push dword [ecx + 0xa0]
call eax
push str.LdrFastFailInLoaderCallout
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10002312
mov eax, dword [eax + 0x13]
jmp 0x1000232b
mov ecx, dword [ebp - 4]
lea eax, [esi + esi*4]
mov esi, dword [ecx + eax*8 + 0xc]
lea ecx, [ecx + eax*8]
mov eax, dword [ecx + 8]
add esi, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10002277
push 0xf
push ebx
mov edx, 0x1002da90
mov ecx, esi
call fcn.10002150
add esp, 8
test eax, eax
je 0x10002331
mov eax, dword [eax + 8]
mov dword [eax], 2
push str.LdrGetDllFullName
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000238a
lea ecx, [esi + 0x150]
mov edx, 0x1002daac
push 2
push ecx
mov ecx, esi
call fcn.10002150
add esp, 8
test eax, eax
je 0x1000236b
mov esi, dword [eax + 2]
mov eax, dword [esi]
mov eax, dword [eax + 0x50]
add dword [eax + 0x20], 2
push 0xc
push ebx
mov edx, 0x1002daa0
mov ecx, esi
call fcn.10002150
add esp, 8
test eax, eax
je 0x1000238a
mov eax, dword [eax + 0xc]
mov dword [eax], 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100028e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x1000290b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10003070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x1000292d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x1000292f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x100029ce
jg 0x1000294c
test esi, esi
je 0x100029ce
test ecx, ecx
jl 0x10002999
jg 0x10002956
test eax, eax
je 0x10002999
cmp ebx, ecx
jg 0x1000296a
jl 0x10002960
cmp esi, eax
jae 0x1000296a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.10007710
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x100029a0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x100029ce
jg 0x100029aa
test esi, esi
je 0x100029ce
cmp dword [edi + 0x4c], 0
je 0x100029ce
mov ecx, edi
call fcn.10003850
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.1000bec3
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003be0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001e780
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10006196
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.100051d2
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000de5a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000de99
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000de99
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000de99
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000de99
cmp dword [ecx + 0x74], 0xe
jbe 0x1000de99
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10012800
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024428
push 0x10024420
push str.FlsAlloc
push 0x1f
call fcn.100126c8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012834
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001f138]
call esi
jmp 0x1001283a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001287e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024438
push 0x10024430
push str.FlsGetValue
push 0x21
call fcn.100126c8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100128b5
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001f138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100128bd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024440
push 0x10024438
push str.FlsSetValue
push 0x22
call fcn.100126c8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100128f7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001f138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10013123
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100070d0
mov eax, dword [0x1002d068]
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.1000f098
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10013165
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100132c1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001e090
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 + 0x1002e970]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10013f24
mov ecx, dword [esi*4 + 0x1002e970]
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 0x100132ba
cmp eax, dword [ecx + edi + 0x24]
jne 0x100132ba
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 0x100132ba
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10013f24
add esp, 0x14
test edx, edx
jl 0x100132ba
jg 0x10013230
test eax, eax
jb 0x100132ba
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100132ba
jl 0x1001324a
cmp dword [ebp - 0x1008], eax
ja 0x100132ba
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10013268
test ebx, ebx
je 0x100132a1
cmp ecx, edi
jae 0x100132a1
mov al, byte [ecx]
cmp al, 0xd
jne 0x10013282
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001328e
cmp byte [ecx + 1], 0xa
jne 0x1001328e
inc ecx
jmp 0x1001328e
movzx eax, al
movsx eax, byte [eax + 0x1002d2c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10013268
cmp edx, ebx
jne 0x10013268
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100132bf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000689d
leave
ret
Function at 0x100133bc
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 + 0x1002e970]
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 0x100133fc
cmp byte [ebx], 0xa
jne 0x100133fc
or byte [edi + eax + 0x28], 4
jmp 0x10013401
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 0x10013500
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100134e3
inc eax
cmp dl, 0xd
je 0x1001342d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10013453
cmp eax, ecx
jae 0x10013461
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 0x10013415
jmp 0x10013500
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 0x100134de
cmp dword [ebp - 0x10], 0
je 0x100134de
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1002e970]
test byte [eax + edi + 0x28], 0x48
je 0x100134b8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100134a3
mov byte [esi], dl
jmp 0x100134b4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002e970]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10013500
cmp byte [ebp - 1], 0xa
jne 0x100134c7
cmp esi, ebx
jne 0x100134c7
mov byte [esi], 0xa
jmp 0x100134ff
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10013f42
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10013500
mov byte [esi], 0xd
jmp 0x100134ff
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1002e970]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100134fd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10013500
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10013509
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1002e970]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001354f
cmp word [ebx], dx
jne 0x1001354f
or byte [eax + edi + 0x28], 4
jmp 0x10013554
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100136b7
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10013697
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10013595
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100135cb
cmp eax, edx
jae 0x100135d9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10013570
jmp 0x100136b7
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10013692
cmp dword [ebp - 0x18], 0
je 0x10013692
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1002e970]
test byte [eax + edi + 0x28], 0x48
je 0x10013668
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1001362c
mov word [esi], cx
jmp 0x10013663
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1002e970]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1002e970]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1002e970]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100136b7
pop eax
cmp word [ebp - 4], ax
jne 0x10013678
cmp esi, ebx
jne 0x10013678
mov word [esi], ax
jmp 0x100136b4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10013f42
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100136b7
push 0xd
pop eax
jmp 0x10013673
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1002e970]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100136b1
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100136b7
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100187a3
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 0x10018840
push ebx
push esi
call fcn.1001876c
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.10017541
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100187ed
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001883f
push edi
push eax
call fcn.10013fa0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001880d
call fcn.10011e48
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001883e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10017541
add esp, 0x20
test eax, eax
jne 0x1001882c
push edi
call fcn.10011e48
jmp 0x10018834
push ebx
call fcn.10011e48
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 0x1001aef1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1000f681
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 0x1001af60
cmp esi, dword [ebp - 4]
je 0x1001af5b
cmp dword [ebp + 0xc], 0
je 0x1001af5b
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001af38
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001aa43
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001af62
xor eax, eax
inc eax
jmp 0x1001af62
xor eax, eax
pop edi
pop esi
leave
ret