joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1016c390
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
test edi, edi
je 0x1016c3f1
mov al, byte [edi]
test al, al
je 0x1016c3f1
push ebx
push ebp
mov ebx, 0x100
movsx eax, al
or eax, ebx
mov ebp, esi
mov edx, eax
mov ecx, eax
shr edx, 2
and edx, 0xf
and ecx, 0xf
xor edx, ecx
mov ecx, 0x20
sub ecx, edx
add ebx, 0x100
shr ebp, cl
mov ecx, edx
mov edx, eax
imul edx, eax
shl esi, cl
mov al, byte [edi + 1]
or ebp, esi
xor ebp, edx
inc edi
test al, al
mov esi, ebp
jne 0x1016c3a9
mov eax, esi
pop ebp
shr eax, 0x10
pop ebx
xor eax, esi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x10184a0f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10184a2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10064f2b
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x10184a52
test byte [esp + 8], 2
je 0x10184a52
call fcn.10064f9e
mov dword [eax], 0xd
call fcn.10064fa7
mov dword [eax], 5
jmp 0x10184a2b
xor eax, eax
ret
Function at 0x418f10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420de0], ecx
add edx, 1
cmp edx, 0x100
jb 0x418f12
cmp edx, 0x800
jae 0x418ffb
mov edi, edi
mov eax, dword [edx*4 + 0x4209e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420de0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x420ddc], eax
jb 0x418fd0
mov dword [0x420dbc], 0x4196b0
call fcn.00419140
test eax, eax
jne 0x419018
mov dword [0x420dbc], 0x4195d0
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x1a7716dc
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x55557c24
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x100012c1
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], ebx
push esi
cmp edx, 0x40
jb 0x10001477
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x10001477
mov ecx, dword [ebx + 0x3c]
lea eax, [ecx + 0xf8]
cmp edx, eax
jl 0x10001477
lea esi, [ecx + ebx]
cmp dword [esi], 0x4550
jne 0x10001477
mov eax, 0x2000
test word [esi + 0x16], ax
jne 0x10001477
mov eax, 0xe0
cmp word [esi + 0x14], ax
jne 0x10001477
lea eax, [esi + 0xf8]
push eax
push esi
call fcn.10001229
pop ecx
pop ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
test eax, eax
je 0x10001477
push edi
push 0x40
push 0x1000
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ecx], eax
test eax, eax
je 0x10001471
movzx edx, word [esi + 6]
mov ecx, dword [esi + 0x54]
test edx, edx
je 0x10001386
lea eax, [esi + 0x10c]
cmp dword [eax], edi
je 0x1000137b
cmp dword [eax], ecx
cmovb ecx, dword [eax]
add eax, 0x28
sub edx, 1
jne 0x10001372
mov eax, dword [ebp - 8]
push ecx
push ebx
push eax
call fcn.10007b80
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [0x100a0f78], edi
mov esi, dword [eax]
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ecx], eax
mov dword [ebp - 8], eax
lea ecx, [eax + 0xf8]
mov dword [edx], ecx
xor edx, edx
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x54]
dec eax
add eax, ecx
div ecx
mov edx, dword [ebp - 8]
mov ebx, eax
xor eax, eax
imul ebx, ecx
add ebx, esi
cmp ax, word [edx + 6]
jae 0x10001471
mov esi, dword [ebp - 0xc]
mov ecx, edi
imul eax, ecx, 0x28
add eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x100013f3
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ecx]
add ebx, dword [eax + 0xc]
cmp dword [eax + 0x10], 0
je 0x1000143e
push dword [eax + 0x10]
mov eax, dword [eax + 0x14]
add eax, esi
push eax
push ebx
call fcn.10007b80
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov edi, dword [0x100a0f78]
mov ecx, dword [eax]
imul eax, edi, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [eax + ecx + 8]
mov eax, dword [eax + ecx + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov ecx, dword [eax + 0x38]
mov eax, dword [ebp - 0x10]
cmp edx, eax
jb 0x1000144d
lea eax, [edx - 1]
jmp 0x1000144e
mov esi, dword [ebp - 4]
mov ecx, dword [edx + 0x38]
mov eax, dword [eax + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0xc]
dec eax
add eax, ecx
xor edx, edx
div ecx
mov edx, dword [ebp - 8]
imul eax, ecx
inc edi
mov ecx, edi
mov dword [0x100a0f78], edi
add ebx, eax
movzx eax, word [edx + 6]
cmp ecx, eax
jl 0x100013df
xor eax, eax
inc eax
pop edi
jmp 0x10001479
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x1000147d
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor ebx, ebx
mov dword [ebp - 4], edx
lea eax, [ebp - 0x7c]
mov esi, ecx
push ebx
push eax
call fcn.10008130
push 0x10
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.10008130
add esp, 0x18
mov dword [ebp - 0x7c], edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 8], eax
test eax, eax
je 0x1000155a
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.GetThreadContext
push 0x1002509c
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push 0x100250ac
push 0x1002509c
mov ebx, eax
call edi
push eax
call esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push esi
push edx
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov dword [esi], 0x10007
call ebx
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0xc]
mov ebx, dword [ebp + 8]
push eax
mov eax, dword [esi + 0xa4]
push 4
push edi
add eax, 8
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, dword [edi]
lea eax, [ebp - 0x38]
push 0x1c
push eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov eax, dword [ebp + 0x18]
sub esi, dword [edi]
mov dword [eax], esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100017d0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 8], edx
push ebx
push 0x80
push 3
push ebx
push 1
push 1
push dword [ebp + 8]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x10001877
push esi
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.10006bf0
push esi
mov ebx, eax
push 0
push ebx
call fcn.10008130
and dword [ebp - 4], 0
lea eax, [ebp - 4]
add esp, 0x10
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
test esi, esi
je 0x1000185a
mov edx, esi
mov al, byte [ecx]
xor al, 0x7b
add al, 0x7b
xor al, 0x7b
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1000184a
push dword [ebp - 8]
mov edx, esi
mov ecx, ebx
push dword [ebp - 0xc]
call fcn.10001763
push ebx
mov esi, eax
call fcn.10006893
add esp, 0xc
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x100043ac
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x100043cd
jl 0x100043c4
test edi, edi
jne 0x100043cd
xor eax, eax
xor edx, edx
jmp 0x1000448e
cmp dword [ebx + 0x38], 0
je 0x100043e2
push eax
push edi
push dword [ebp + 8]
call fcn.10004494
jmp 0x1000448e
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10004429
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x10004429
cmp eax, edi
jb 0x10004403
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.10007b80
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x1000442f
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x10004483
mov ecx, ebx
call fcn.10003c43
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1000446e
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1000cae6
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x10004483
jmp 0x10004441
test edx, edx
je 0x10004483
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1000cae6
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x1000ea16
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000ea55
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000ea55
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000ea55
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000ea55
cmp dword [ecx + 0x74], 0xe
jbe 0x1000ea55
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10013a16
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10021718
push 0x10021710
push str.FlsAlloc
push 0x1f
call fcn.100138de
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013a4a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001e194]
call esi
jmp 0x10013a50
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10013a94
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10021728
push 0x10021720
push str.FlsGetValue
push 0x21
call fcn.100138de
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013acb
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001e194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10013ad3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10021730
push 0x10021728
push str.FlsSetValue
push 0x22
call fcn.100138de
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013b0d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001e194]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100153c3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10007720
mov eax, dword [0x1009f040]
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.100103a0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10015405
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10015561
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001d0f0
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 + 0x100a0b58]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10016599
mov ecx, dword [esi*4 + 0x100a0b58]
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 0x1001555a
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001555a
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 0x1001555a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10016599
add esp, 0x14
test edx, edx
jl 0x1001555a
jg 0x100154d0
test eax, eax
jb 0x1001555a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001555a
jl 0x100154ea
cmp dword [ebp - 0x1008], eax
ja 0x1001555a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10015508
test ebx, ebx
je 0x10015541
cmp ecx, edi
jae 0x10015541
mov al, byte [ecx]
cmp al, 0xd
jne 0x10015522
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001552e
cmp byte [ecx + 1], 0xa
jne 0x1001552e
inc ecx
jmp 0x1001552e
movzx eax, al
movsx eax, byte [eax + 0x1009f2e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10015508
cmp edx, ebx
jne 0x10015508
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001555f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10006f7f
leave
ret
Function at 0x10015a31
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 + 0x100a0b58]
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 0x10015a71
cmp byte [ebx], 0xa
jne 0x10015a71
or byte [edi + eax + 0x28], 4
jmp 0x10015a76
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 0x10015b75
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10015b58
inc eax
cmp dl, 0xd
je 0x10015aa2
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10015ac8
cmp eax, ecx
jae 0x10015ad6
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 0x10015a8a
jmp 0x10015b75
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 0x10015b53
cmp dword [ebp - 0x10], 0
je 0x10015b53
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100a0b58]
test byte [eax + edi + 0x28], 0x48
je 0x10015b2d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10015b18
mov byte [esi], dl
jmp 0x10015b29
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100a0b58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10015b75
cmp byte [ebp - 1], 0xa
jne 0x10015b3c
cmp esi, ebx
jne 0x10015b3c
mov byte [esi], 0xa
jmp 0x10015b74
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100165b7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10015b75
mov byte [esi], 0xd
jmp 0x10015b74
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100a0b58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10015b72
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10015b75
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10015b7e
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 + 0x100a0b58]
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 0x10015bc4
cmp word [ebx], dx
jne 0x10015bc4
or byte [eax + edi + 0x28], 4
jmp 0x10015bc9
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 0x10015d2c
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 0x10015d0c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10015c0a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10015c40
cmp eax, edx
jae 0x10015c4e
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 0x10015be5
jmp 0x10015d2c
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 0x10015d07
cmp dword [ebp - 0x18], 0
je 0x10015d07
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100a0b58]
test byte [eax + edi + 0x28], 0x48
je 0x10015cdd
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 0x10015ca1
mov word [esi], cx
jmp 0x10015cd8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100a0b58]
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 + 0x100a0b58]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100a0b58]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10015d2c
pop eax
cmp word [ebp - 4], ax
jne 0x10015ced
cmp esi, ebx
jne 0x10015ced
mov word [esi], ax
jmp 0x10015d29
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100165b7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10015d2c
push 0xd
pop eax
jmp 0x10015ce8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100a0b58]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10015d26
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10015d2c
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 0x10018303
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 0x100183a0
push ebx
push esi
call fcn.100182cc
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.1001706b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001834d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001839f
push edi
push eax
call fcn.1000ff88
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001836d
call fcn.1000ff4e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001839e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001706b
add esp, 0x20
test eax, eax
jne 0x1001838c
push edi
call fcn.1000ff4e
jmp 0x10018394
push ebx
call fcn.1000ff4e
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 0x1001a834
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10010858
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 0x1001a8a3
cmp esi, dword [ebp - 4]
je 0x1001a89e
cmp dword [ebp + 0xc], 0
je 0x1001a89e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001a87b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001a386
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001a8a5
xor eax, eax
inc eax
jmp 0x1001a8a5
xor eax, eax
pop edi
pop esi
leave
ret