joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007f30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100287c0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x10035080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
mov eax, dword [edi]
mov al, byte [eax + 0x2d]
mov byte [ebp - 0x11], al
nop
mov ecx, dword [edi]
mov byte [ebp - 0x12], al
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esi]
mov dword [ebp - 4], 0
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
add eax, 0x18
mov dword [ebp - 0x1c], eax
lock inc dword [eax]
cmp byte [ebp - 0x11], 0
mov eax, dword [esi]
mov byte [ebp - 4], 2
mov esi, dword [eax + 8]
je 0x1000808d
mov dword [ebp - 0x34], 0
lea eax, [esi + 0x18]
mov dword [ebp - 0x30], 0x10035018
xor edx, edx
lock xadd dword [eax], edx
test edx, edx
jne 0x10007fd8
mov ecx, esi
call fcn.10009d90
xor eax, eax
mov dword [ebp - 0x30], 0x10035018
mov dword [ebp - 0x34], eax
jmp 0x10008079
lea ecx, [ebp - 0x8c]
call fcn.10007420
push dword [0x10036540]
mov ecx, esi
lea eax, [esi + 0x14]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x58]
push eax
push dword [0x10036540]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov byte [ebp - 4], 4
nop dword [eax]
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
lea eax, [ebp - 0x8c]
push eax
push 0
call fcn.10008e80
test eax, eax
jne 0x10008020
push dword [ebp - 0x50]
push dword [0x10036540]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov byte [ebp - 4], 2
xor esi, esi
nop dword [eax]
mov eax, dword [ebp + esi*4 - 0x8c]
test eax, eax
je 0x10008064
push eax
call fcn.1001394c
add esp, 4
inc esi
cmp esi, 0xa
jl 0x10008050
lea eax, [ebp - 0x60]
push eax
call fcn.1000be12
mov eax, dword [ebp - 0x34]
add esp, 4
test eax, eax
jne 0x100081a8
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov esi, dword [ebp + 0xc]
jmp 0x100080fb
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
mov ecx, esi
mov dword [ebp - 0x38], 0x10035018
call fcn.10009740
cmp dword [ebp - 0x3c], 0
jne 0x100081b1
jmp 0x10008110
mov eax, dword [edi]
mov dword [ebp - 4], 1
mov al, byte [eax + 0x2e]
nop
test al, al
jne 0x10007f92
mov eax, dword [ebp - 0x1c]
or ecx, 0xffffffff
mov byte [ebp - 4], 6
lock xadd dword [eax], ecx
jne 0x10008188
mov ecx, dword [ebp - 0x20]
call fcn.10009d90
jmp 0x10008188
mov ecx, dword [edi]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x34]
push eax
call fcn.100093c0
lea eax, [ebp - 0x3c]
push eax
call fcn.100093c0
push 0
push 0
call fcn.1000dcde
int3
Function at 0x10008940
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x10036540]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [esp + 0x14]
lea edi, [edi + 3]
shr edi, 2
test eax, eax
je 0x100089dd
mov ebp, dword [eax + 4]
test ebp, ebp
je 0x100089dd
xor ecx, ecx
nop word [eax + eax]
lea ebx, [ecx*4]
mov esi, dword [ebx + ebp]
test esi, esi
je 0x10008991
movzx eax, byte [esi]
cmp eax, edi
jb 0x10008991
xor edx, edx
mov eax, esi
div dword [esp + 0x18]
test edx, edx
je 0x100089b6
inc ecx
cmp ecx, 2
jl 0x10008970
xor eax, eax
nop dword [eax]
lea ecx, [eax*4]
mov edx, dword [ecx + ebp]
test edx, edx
jne 0x100089cd
inc eax
cmp eax, 2
jl 0x100089a0
jmp 0x100089dd
mov eax, dword [esp + 0x14]
mov dword [ebx + ebp], 0
mov cl, byte [esi]
pop edi
mov byte [esi + eax], cl
mov eax, esi
pop esi
pop ebp
pop ebx
ret
push edx
mov dword [ecx + ebp], 0
call fcn.1001394c
add esp, 4
lea eax, [edi*4 + 1]
push eax
push dword [esp + 0x1c]
call fcn.100088a0
add esp, 8
xor edx, edx
mov ecx, edi
cmp edi, 0xff
movzx ecx, cl
cmova ecx, edx
mov edx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov byte [eax + edx], cl
pop ebx
ret

Function at 0x10009550
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x100365c4
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
test eax, eax
push 0
setne al
push ecx
test al, al
je 0x100095a3
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
add esp, 8
ret
push method.asio::execution_context::service.virtual_8
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
add esp, 8
ret

Function at 0x10009640
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x1000967c
mov esi, dword [esi + 0x28]
test esi, esi
je 0x10009675
push ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10009674
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10009674
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop ebx
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x100096bf
push dword [0x10036540]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100096af
mov edx, dword [eax + 4]
test edx, edx
je 0x100096af
xor eax, eax
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x100096c2
inc eax
cmp eax, 2
jl 0x100096a0
push esi
call fcn.1001394c
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x30]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x10009740
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10028a65
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x10035080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edx, edx
lea eax, [esi + 0x18]
lock xadd dword [eax], edx
test edx, edx
jne 0x100097a2
call fcn.10009d90
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0x10035018
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x4c]
call fcn.10007420
push dword [0x10036540]
mov ecx, esi
mov dword [ebp - 4], 0
neg ecx
lea eax, [esi + 0x14]
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push dword [0x10036540]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push ebx
push eax
push 0xffffffffffffffff
mov ecx, esi
mov byte [ebp - 4], 1
xor edi, edi
call fcn.10008e80
test eax, eax
je 0x1000981d
nop
cmp edi, 0xffffffff
lea eax, [edi + 1]
push ebx
cmove eax, edi
mov ecx, esi
mov edi, eax
lea eax, [ebp - 0x4c]
push eax
push 0xffffffffffffffff
call fcn.10008e80
test eax, eax
jne 0x10009800
push dword [ebp - 0x10]
push dword [0x10036540]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
nop
mov eax, dword [ebp + esi*4 - 0x4c]
test eax, eax
je 0x10009841
push eax
call fcn.1001394c
add esp, 4
inc esi
cmp esi, 0xa
jl 0x10009830
lea eax, [ebp - 0x20]
push eax
call fcn.1000be12
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10009c50
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0
push 0
push 1
push 0
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], edi
test edi, edi
jne 0x10009ca1
call esi
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [esp + 0x14], esi
call fcn.10002610
mov dword [esp + 0x18], eax
test esi, esi
jne 0x10009d5e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp + 8], eax
mov dword [ebx + 8], eax
cmp dword [ebp + 8], 0
jne 0x10009cdc
call esi
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [esp + 0x14], esi
call fcn.10002610
mov dword [esp + 0x18], eax
test esi, esi
jne 0x10009d6d
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
push ebx
push 0x10009e00
push dword [esp + 0x34]
push 0
call fcn.10013b27
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
mov dword [ebp + 4], eax
test eax, eax
jne 0x10009d44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [esp + 0x24], eax
call dword [edx]
test edi, edi
je 0x10009d25
push edi
call esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x10009d2f
push eax
call esi
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
call fcn.10002610
mov dword [esp + 0x18], eax
test ebx, ebx
jne 0x10009d7c
test edi, edi
je 0x10009d54
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
push str.thread.entry_event
lea eax, [esp + 0x18]
push eax
call fcn.10002550
push str.thread.exit_event
lea eax, [esp + 0x18]
push eax
call fcn.10002550
push str.thread
lea eax, [esp + 0x18]
push eax
call fcn.10002550
int3

Function at 0x10009fb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x10009fdb
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10009fde
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10009f90
pop esi
leave
ret 8
Function at 0x1000b84d
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 0x1000b86e
jl 0x1000b865
test edi, edi
jne 0x1000b86e
xor eax, eax
xor edx, edx
jmp 0x1000b92f
cmp dword [ebx + 0x38], 0
je 0x1000b883
push eax
push edi
push dword [ebp + 8]
call fcn.1000b935
jmp 0x1000b92f
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000b8ca
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x1000b8ca
cmp eax, edi
jb 0x1000b8a4
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.1000e100
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 0x1000b8d0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1000b924
mov ecx, ebx
call fcn.1000b0a2
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1000b90f
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.10015189
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 0x1000b924
jmp 0x1000b8e2
test edx, edx
je 0x1000b924
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.10015189
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 0x10016b46
Capabilities:
Parse pe header

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

Function at 0x1001bc94
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002d714
push 0x1002d70c
push str.FlsAlloc
push 0x1f
call fcn.1001bb1c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001bcc8
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002919c]
call esi
jmp 0x1001bcce
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001bd12
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002d724
push 0x1002d71c
push str.FlsGetValue
push 0x21
call fcn.1001bb1c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001bd49
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002919c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1001bd51
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002d72c
push 0x1002d724
push str.FlsSetValue
push 0x22
call fcn.1001bb1c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001bd8b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002919c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001e2c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000da80
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.1001b480
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001e304
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001e460
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100279e0
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 + 0x100371d8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001f2bf
mov ecx, dword [esi*4 + 0x100371d8]
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 0x1001e459
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001e459
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 0x1001e459
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001f2bf
add esp, 0x14
test edx, edx
jl 0x1001e459
jg 0x1001e3cf
test eax, eax
jb 0x1001e459
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001e459
jl 0x1001e3e9
cmp dword [ebp - 0x1008], eax
ja 0x1001e459
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001e407
test ebx, ebx
je 0x1001e440
cmp ecx, edi
jae 0x1001e440
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001e421
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001e42d
cmp byte [ecx + 1], 0xa
jne 0x1001e42d
inc ecx
jmp 0x1001e42d
movzx eax, al
movsx eax, byte [eax + 0x10035338]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001e407
cmp edx, ebx
jne 0x1001e407
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001e45e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000cc6e
leave
ret
Function at 0x1001e757
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 + 0x100371d8]
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 0x1001e797
cmp byte [ebx], 0xa
jne 0x1001e797
or byte [edi + eax + 0x28], 4
jmp 0x1001e79c
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 0x1001e89b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001e87e
inc eax
cmp dl, 0xd
je 0x1001e7c8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001e7ee
cmp eax, ecx
jae 0x1001e7fc
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 0x1001e7b0
jmp 0x1001e89b
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 0x1001e879
cmp dword [ebp - 0x10], 0
je 0x1001e879
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100371d8]
test byte [eax + edi + 0x28], 0x48
je 0x1001e853
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001e83e
mov byte [esi], dl
jmp 0x1001e84f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100371d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001e89b
cmp byte [ebp - 1], 0xa
jne 0x1001e862
cmp esi, ebx
jne 0x1001e862
mov byte [esi], 0xa
jmp 0x1001e89a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001f2dd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001e89b
mov byte [esi], 0xd
jmp 0x1001e89a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100371d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001e898
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001e89b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001e8a4
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 + 0x100371d8]
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 0x1001e8ea
cmp word [ebx], dx
jne 0x1001e8ea
or byte [eax + edi + 0x28], 4
jmp 0x1001e8ef
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 0x1001ea52
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 0x1001ea32
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001e930
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001e966
cmp eax, edx
jae 0x1001e974
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 0x1001e90b
jmp 0x1001ea52
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 0x1001ea2d
cmp dword [ebp - 0x18], 0
je 0x1001ea2d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100371d8]
test byte [eax + edi + 0x28], 0x48
je 0x1001ea03
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 0x1001e9c7
mov word [esi], cx
jmp 0x1001e9fe
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100371d8]
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 + 0x100371d8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100371d8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001ea52
pop eax
cmp word [ebp - 4], ax
jne 0x1001ea13
cmp esi, ebx
jne 0x1001ea13
mov word [esi], ax
jmp 0x1001ea4f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001f2dd
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001ea52
push 0xd
pop eax
jmp 0x1001ea0e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100371d8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001ea4c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001ea52
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 0x10020803
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 0x100208a0
push ebx
push esi
call fcn.100207cc
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.1001f5c8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002084d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002089f
push edi
push eax
call fcn.10019afc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002086d
call fcn.1001a594
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002089e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001f5c8
add esp, 0x20
test eax, eax
jne 0x1002088c
push edi
call fcn.1001a594
jmp 0x10020894
push ebx
call fcn.1001a594
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 0x10022b1d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001814c
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 0x10022b8c
cmp esi, dword [ebp - 4]
je 0x10022b87
cmp dword [ebp + 0xc], 0
je 0x10022b87
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10022b64
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1002266f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10022b8e
xor eax, eax
inc eax
jmp 0x10022b8e
xor eax, eax
pop edi
pop esi
leave
ret