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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14002c248]
test eax, eax
je 0x140014d1a
lea rax, [0x14002c220]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14002c250]
mov qword [rbp - 8], rax
jmp 0x140014cfe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140014cf2
cmp qword [rbp - 0x10], 0
je 0x140014cf2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140014cb8
lea rax, [0x14002c220]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140014d1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140014e20
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140014e48
mov eax, 0
jmp 0x140014e96
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140014e71
mov eax, 0
jmp 0x140014e96
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140014e91
mov eax, 0
jmp 0x140014e96
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140014e9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140014f1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140014f11
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140014f11
mov rax, qword [rbp - 8]
jmp 0x140014f2f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140014ee4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001f20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001f98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001f98
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140001f85
nop
cmp rbx, rcx
jae 0x140001f98
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140001f70
cmp rbx, rcx
jae 0x140001f98
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x140001f9a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140007b10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x50], 0
movzx ebp, r8b
mov edi, edx
mov rbx, rcx
je 0x140007cc7
cmp dword [rcx + 0xf4], 0
jne 0x140007cc7
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x40], rsi
movaps xmmword [rsp + 0x20], xmm6
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.WINMM.dll_waveOutReset]
xor esi, esi
mov byte [rbx + 0x110], 0
mov qword [rbx + 0x80], rsi
mov qword [rbx + 0xb0], rsi
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x140007ba7
movsd xmm6, qword [rbx + 0x118]
movaps xmm0, xmm6
mulsd xmm0, qword [0x140048a68]
cvttsd2si rdx, xmm0
call qword [sym.imp.WINMM.dll_waveOutSetPitch]
test eax, eax
jne 0x140007ba7
movsd qword [rbx + 0x118], xmm6
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x140007bda
movsd xmm6, qword [rbx + 0x120]
movaps xmm0, xmm6
mulsd xmm0, qword [0x140048a68]
cvttsd2si rdx, xmm0
call qword [sym.imp.WINMM.dll_waveOutSetPlaybackRate]
test eax, eax
jne 0x140007bda
movsd qword [rbx + 0x120], xmm6
mov rcx, qword [rbx + 0xd0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0xe8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x68]
mov byte [rbx + 0x111], sil
mov byte [rbx + 0xf0], sil
mov qword [rbx + 0xe0], rsi
mov byte [rbx + 0xf8], sil
mov dword [rbx + 0xfc], edi
mov dword [rbx + 0x100], edi
call qword [sym.imp.WINMM.dll_waveOutPause]
movaps xmm6, xmmword [rsp + 0x20]
lea rdi, [rbx + 0x70]
mov esi, 2
mov rdx, rdi
mov rcx, rbx
call fcn.1400084d0
add rdi, 0x30
sub rsi, 1
jne 0x140007c41
mov rsi, qword [rsp + 0x40]
lea rcx, [0x1400082c0]
mov r8, rbx
xor edx, edx
call fcn.14001876c
mov rcx, qword [rbx + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x38]
test bpl, bpl
je 0x140007ca1
mov rcx, qword [rbx + 0x48]
mov dword [rbx + 0xf4], 2
mov rax, qword [rcx]
call qword [rax + 0x48]
mov al, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 0x68]
mov dword [rbx + 0xf4], 1
call qword [sym.imp.WINMM.dll_waveOutRestart]
mov al, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
xor al, al
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140007d10
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rdi, rdx
mov rdx, qword [rcx + 8]
movabs r8, 0x100000001b3
movabs rcx, 0xcbf29ce484222325
mov rax, rdi
shr rax, 8
xor ebx, ebx
movzx ebp, al
movzx eax, dil
xor rax, rcx
imul rax, r8
xor rbp, rax
mov rax, rdi
imul rbp, r8
shr rax, 0x10
movzx ecx, al
mov rax, rdi
xor rbp, rcx
shr rax, 0x18
imul rbp, r8
movzx ecx, al
mov rax, rdi
xor rbp, rcx
shr rax, 0x20
imul rbp, r8
movzx ecx, al
mov rax, rdi
xor rbp, rcx
shr rax, 0x28
imul rbp, r8
movzx ecx, al
mov rax, rdi
xor rbp, rcx
shr rax, 0x30
imul rbp, r8
movzx ecx, al
mov rax, rdi
xor rbp, rcx
shr rax, 0x38
imul rbp, r8
xor rbp, rax
imul rbp, r8
mov rcx, rbp
and rcx, qword [rsi + 0x30]
shl rcx, 4
add rcx, qword [rsi + 0x18]
mov rax, qword [rcx + 8]
cmp rax, rdx
je 0x140007df1
mov rcx, qword [rcx]
cmp rdi, qword [rax + 0x10]
je 0x140007df4
nop dword [rax]
cmp rax, rcx
je 0x140007df1
mov rax, qword [rax + 8]
cmp rdi, qword [rax + 0x10]
jne 0x140007de0
jmp 0x140007df4
mov rax, rbx
test rax, rax
je 0x140007ed0
cmp rax, rdx
je 0x140007ed0
mov rcx, qword [rsi + 0x40]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x140007ed0
mov rcx, qword [rsi + 0x30]
and rcx, rbp
shl rcx, 4
add rcx, qword [rsi + 0x18]
mov rax, qword [rcx + 8]
cmp rax, qword [rsi + 8]
je 0x140007e52
mov rcx, qword [rcx]
cmp rdi, qword [rax + 0x10]
je 0x140007e4f
nop
cmp rax, rcx
je 0x140007e52
mov rax, qword [rax + 8]
cmp rdi, qword [rax + 0x10]
jne 0x140007e40
mov rbx, rax
test rbx, rbx
je 0x140007ec1
mov rax, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x30]
and rcx, rbp
add rcx, rcx
lea r8, [rax + rcx*8]
lea rdx, [rax + rcx*8]
mov rax, qword [rax + rcx*8]
cmp qword [r8 + 8], rbx
jne 0x140007e93
cmp rax, rbx
jne 0x140007e89
mov rax, qword [rsi + 8]
mov qword [rdx], rax
mov qword [r8 + 8], rax
jmp 0x140007e9e
mov rax, qword [rbx + 8]
mov qword [r8 + 8], rax
jmp 0x140007e9e
cmp rax, rbx
jne 0x140007e9e
mov rax, qword [rbx]
mov qword [rdx], rax
mov rdx, qword [rbx]
mov rcx, rbx
dec qword [rsi + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rdx
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
mov edx, 0x18
call fcn.1400118d0
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a4d0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rsi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
ja 0x14000a6ab
lea rax, [rdx - 1]
mov qword [rsp + 0x58], rdi
mov rdi, qword [rsi + 8]
or rax, rbx
bsr rcx, rax
mov r8, rdi
mov qword [rsp + 0x20], r14
inc ecx
shl rbx, cl
lea rcx, [rsi + 0x18]
lea rdx, [rbx + rbx]
call fcn.140008a90
mov rcx, qword [rsi + 8]
lea rax, [rbx - 1]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rbx
mov rcx, qword [rcx]
cmp rcx, rdi
je 0x14000a674
mov qword [rsp + 0x50], rbp
mov rax, rcx
movabs rbp, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x14]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x15]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x16]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x17]
imul r9, rbx
xor r9, rdx
imul r9, rbx
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rdi
jne 0x14000a5ec
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14000a663
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x14000a629
mov r10, qword [rdx]
cmp r10, rax
je 0x14000a623
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14000a663
cmp r9, rdx
je 0x14000a63f
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x14000a685
cmp r9, rdx
jne 0x14000a630
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rdi
jne 0x14000a570
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14000a663
lea rcx, str.invalid_hash_bucket_count
call fcn.14000f380
int3
Function at 0x14000e4f0
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea eax, [rcx - 0x61]
cmp al, 0x19
lea eax, [rcx - 0x41]
setbe dl
cmp al, 0x19
setbe al
or dl, al
je 0x14000e550
movsx r8d, cl
lea rdx, str._c:_
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
sete al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400118b0
add rsp, 0x38
ret
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400118b0
add rsp, 0x38
ret

Function at 0x14000e570
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsx ebx, cl
mov rsi, rdx
test rdx, rdx
je 0x14000e5ff
lea eax, [rbx - 0x61]
cmp al, 0x19
lea eax, [rbx - 0x41]
setbe dl
cmp al, 0x19
setbe al
or dl, al
je 0x14000e5ff
mov r8d, ebx
lea rdx, str._c:_
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x14000e5ff
movzx ecx, bl
call fcn.14000e450
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000e5ff
mov rdx, rsi
mov rcx, rax
call fcn.14000e620
mov rcx, rdi
movzx ebx, al
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
jmp 0x14000e601
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400118b0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140010b9c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140010bca
xor eax, eax
jmp 0x140010cb0
cmp qword [rcx + 0x68], 0
je 0x140010bdb
call fcn.140010ccc
jmp 0x140010cb0
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140010bf2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140010bf4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140010c26
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140039980
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140010caa
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140010c5d
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140010c86
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14002400c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140010caa
cmp rsi, rbx
ja 0x140010c64
test rsi, rsi
je 0x140010caa
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14002400c
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14001260c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012656
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140012656
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140012656
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140012656
cmp dword [rcx + 0x84], 0xe
jbe 0x140012656
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140012658
xor al, al
add rsp, 0x28
ret

Function at 0x140025e38
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140025c34
Function at 0x14002dc9c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140011ff0
sub rsp, rax
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002c168
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002dceb
mov rax, rbp
jmp 0x14002ddf3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x52720]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002edbc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x52720]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002ddef
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002ddef
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002edbc
test rax, rax
js 0x14002ddef
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002ddef
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002dde1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002dde1
cmp byte [rcx], 0xd
jne 0x14002ddc7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002ddd6
cmp byte [rcx + 1], 0xa
jne 0x14002ddd6
inc rcx
jmp 0x14002ddd6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x50470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002dda9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002ddf3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400118b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14002e014
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002e02a
mov al, 1
jmp 0x14002e08a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002e03b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002e088
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400323a4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002e088
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002e088
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002e088
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002e08a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002e15c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140052720]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14002e1b3
cmp word [rdx], r13w
jne 0x14002e1b3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002e1b8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002e2dd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002e2fe
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002e1f1
mov rdx, r9
mov word [rbx], cx
jmp 0x14002e218
cmp r9, r8
jae 0x14002e228
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14002e1d2
jmp 0x14002e2dd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002e2d2
cmp dword [rsp + 0x80], esi
je 0x14002e2d2
lea r8, [0x140052720]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002e2aa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002e27a
mov word [rbx], r13w
jmp 0x14002e2da
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14002e287
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002e2da
cmp word [rsp + 0x70], r13w
jne 0x14002e2b7
cmp rbx, r14
je 0x14002e274
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002edc4
cmp word [rsp + 0x70], r13w
je 0x14002e2dd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140052720]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002e2d7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002e2dd
Function at 0x140031928
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140031958
xor eax, eax
jmp 0x140031a1b
mov rbp, rbx
cmp word [rax], si
je 0x14003197d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140031964
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140031960
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14003002c
movsxd r14, eax
test eax, eax
jne 0x1400319bb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140031951
mov rcx, r14
call fcn.14002a598
mov rdi, rax
test rax, rax
jne 0x1400319d4
xor ecx, ecx
call fcn.1400292e4
jmp 0x1400319b0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14003002c
test eax, eax
jne 0x140031a05
mov rcx, rdi
call fcn.1400292e4
jmp 0x140031a0f
xor ecx, ecx
call fcn.1400292e4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400348f8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140029698
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140034999
cmp ebx, dword [rsp + 0x30]
je 0x140034992
test esi, esi
je 0x140034992
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14003496d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14003497a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140034957
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14003497e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14003499b
mov eax, 1
jmp 0x14003499b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret