joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7d1f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x7e69fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x7d2002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.007d5dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x7d2002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.007cd6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.007d620b
push 0x10
call fcn.007d61d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x7d1fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.007c21c0
jmp 0x7d1fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.007d1b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x7d1ff0
mov ecx, edi
call fcn.007c22c0
push edi
call fcn.007d61c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x7d2021
inc ebx
cmp ebx, 0x20
jb 0x7d1f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x7d3250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7e7808
push 0x7d7288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x7d3329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x7d3329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.007d61d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x7d3329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x7d3329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x7d332c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.007d3351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7d4000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x7d4131
push esi
call fcn.007d7145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.007c6080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x7d4131
push 0
push ebp
call fcn.007c63a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.007c6260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x7d408b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.007c62f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x7d4121
push 0x7ec918
push edi
call fcn.007d53f0
push eax
push ebx
push esi
call fcn.007d3f60
push 0x7ec8f8
push edi
call fcn.007d53f0
push eax
push ebx
push esi
call fcn.007d3f60
push 0x7ec8d8
push edi
call fcn.007d53f0
push eax
push ebx
push esi
call fcn.007d3f60
push 0x7ec8c0
push edi
call fcn.007d53f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.007d3f60
push 0x7ec8a0
push edi
call fcn.007d53f0
push eax
push ebx
push esi
call fcn.007d3f60
push 0x7ec888
push edi
call fcn.007d53f0
push eax
push ebx
push esi
call fcn.007d3f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x7d51b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.007d5140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.007d5140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.007d5140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.007d5140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x7d5bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7d5c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x7e787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7d5c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x7d5c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x10002d60
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
call fcn.10003110
movzx eax, al
test eax, eax
je 0x10002d7a
jmp 0x10002e0a
push 0x40
push 0x1000
mov ecx, dword [ebp + 8]
call fcn.100030e0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.100030e0
push eax
mov ecx, dword [ebp + 8]
call fcn.10003150
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.1000a5d0
add esp, 0xc
push 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10002de3
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10002e0a
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov esp, ebp
pop ebp
ret

Function at 0x10002ef0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10032064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.10002b80
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 2
jge 0x10002f14
jmp 0x10002fcd
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
cdq
mov ecx, eax
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x3c]
cdq
add ecx, eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x14]
cdq
mov ecx, dword [ebp - 0x2c]
xor esi, esi
add eax, dword [ecx + 0x28]
adc edx, esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x10], 0x50
mov byte [ebp - 0xf], 0x58
mov byte [ebp - 0xe], 0xeb
mov byte [ebp - 0xd], 0xfc
mov dword [ebp - 0x18], 4
lea edx, [ebp - 8]
push edx
push 4
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0xc], 0
jmp 0x10002f88
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jge 0x10002fa2
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov al, byte [ebp + eax - 0x10]
mov byte [ecx + edx], al
jmp 0x10002f7f
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
push 0
push 0x10002e10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008e5d
mov esp, ebp
pop ebp
ret
Function at 0x10003b70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x10003c96
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x10003ba8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.10004590
jmp 0x10003caa
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.10005900
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x10003c3c
jg 0x10003bd0
cmp dword [ebp + 0xc], 0
jbe 0x10003c3c
cmp dword [ebp - 8], 0
jl 0x10003c3c
jg 0x10003bde
cmp dword [ebp - 0xc], 0
jbe 0x10003c3c
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x10003bfc
jl 0x10003bf0
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x10003bfc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
call fcn.10005a60
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.10001260
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.100059e0
cmp dword [ebp + 0x10], 0
jl 0x10003c86
jg 0x10003c4a
cmp dword [ebp + 0xc], 0
jbe 0x10003c86
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x10003c86
mov ecx, dword [ebp - 4]
call fcn.10005500
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1000ed43
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x10003caa
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.10004590
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10010cda
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10028738
push 0x10028730
push str.FlsAlloc
push 0x1f
call fcn.1001572b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015897
push dword [ebp + 8]
mov ecx, esi
call dword [0x10023154]
call esi
jmp 0x1001589d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100158e1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10028748
push 0x10028740
push str.FlsGetValue
push 0x21
call fcn.1001572b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015918
push dword [ebp + 8]
mov ecx, esi
call dword [0x10023154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10015920
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10028750
push 0x10028748
push str.FlsSetValue
push 0x22
call fcn.1001572b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001595a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10023154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10016186
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10009e50
mov eax, dword [0x10032064]
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.100120f8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100161c8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10016324
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100215c0
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 + 0x10033bd0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10016f87
mov ecx, dword [esi*4 + 0x10033bd0]
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 0x1001631d
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001631d
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 0x1001631d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10016f87
add esp, 0x14
test edx, edx
jl 0x1001631d
jg 0x10016293
test eax, eax
jb 0x1001631d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001631d
jl 0x100162ad
cmp dword [ebp - 0x1008], eax
ja 0x1001631d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100162cb
test ebx, ebx
je 0x10016304
cmp ecx, edi
jae 0x10016304
mov al, byte [ecx]
cmp al, 0xd
jne 0x100162e5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100162f1
cmp byte [ecx + 1], 0xa
jne 0x100162f1
inc ecx
jmp 0x100162f1
movzx eax, al
movsx eax, byte [eax + 0x10032348]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100162cb
cmp edx, ebx
jne 0x100162cb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10016322
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10008e5d
leave
ret
Function at 0x1001641f
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 + 0x10033bd0]
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 0x1001645f
cmp byte [ebx], 0xa
jne 0x1001645f
or byte [edi + eax + 0x28], 4
jmp 0x10016464
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 0x10016563
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10016546
inc eax
cmp dl, 0xd
je 0x10016490
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100164b6
cmp eax, ecx
jae 0x100164c4
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 0x10016478
jmp 0x10016563
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 0x10016541
cmp dword [ebp - 0x10], 0
je 0x10016541
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10033bd0]
test byte [eax + edi + 0x28], 0x48
je 0x1001651b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10016506
mov byte [esi], dl
jmp 0x10016517
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10033bd0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10016563
cmp byte [ebp - 1], 0xa
jne 0x1001652a
cmp esi, ebx
jne 0x1001652a
mov byte [esi], 0xa
jmp 0x10016562
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10016fa5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10016563
mov byte [esi], 0xd
jmp 0x10016562
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10033bd0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10016560
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10016563
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001656c
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 + 0x10033bd0]
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 0x100165b2
cmp word [ebx], dx
jne 0x100165b2
or byte [eax + edi + 0x28], 4
jmp 0x100165b7
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 0x1001671a
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 0x100166fa
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100165f8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001662e
cmp eax, edx
jae 0x1001663c
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 0x100165d3
jmp 0x1001671a
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 0x100166f5
cmp dword [ebp - 0x18], 0
je 0x100166f5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10033bd0]
test byte [eax + edi + 0x28], 0x48
je 0x100166cb
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 0x1001668f
mov word [esi], cx
jmp 0x100166c6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10033bd0]
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 + 0x10033bd0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10033bd0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001671a
pop eax
cmp word [ebp - 4], ax
jne 0x100166db
cmp esi, ebx
jne 0x100166db
mov word [esi], ax
jmp 0x10016717
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10016fa5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001671a
push 0xd
pop eax
jmp 0x100166d6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10033bd0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10016714
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001671a
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 0x1001b80f
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 0x1001b8ac
push ebx
push esi
call fcn.1001b7d8
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.1001a5d1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001b859
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001b8ab
push edi
push eax
call fcn.10017333
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001b879
call fcn.10014eab
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001b8aa
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001a5d1
add esp, 0x20
test eax, eax
jne 0x1001b898
push edi
call fcn.10014eab
jmp 0x1001b8a0
push ebx
call fcn.10014eab
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 0x1001e3e9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100126e1
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 0x1001e458
cmp esi, dword [ebp - 4]
je 0x1001e453
cmp dword [ebp + 0xc], 0
je 0x1001e453
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001e430
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001df3b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001e45a
xor eax, eax
inc eax
jmp 0x1001e45a
xor eax, eax
pop edi
pop esi
leave
ret