joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b7d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140015040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000b7fd
xor eax, eax
jmp 0x14000b969
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000b837
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000b837
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000b969
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000b95c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000b87a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000b8a5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000b961
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000b914
sub eax, 1
je 0x14000b914
cmp eax, 2
jne 0x14000b95c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000b961
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000b942
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000b95c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000b961
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000dc50
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000bf50
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140015040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000c023
cmp byte [rcx + 0x71], 0
je 0x14000c023
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000c01f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000bfe4
sub eax, 1
je 0x14000bfe8
cmp eax, 2
jne 0x14000c01f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000dc50
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000c016
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000c01f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000bfcc
xor al, al
jmp 0x14000bfcc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000dc50
add rsp, 0x60
pop rbx
ret

Function at 0x14000d618
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000d652
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000d657
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000d6a0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000f590]
cmp byte [rcx + rax], 0
je 0x14000d6a0
dec r8
sub rdx, 1
jne 0x14000d686
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000e6f4
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140018cc0], rbx
je 0x14000d4f7
cmp rax, rbx
jne 0x14000d4ea
mov edi, 1
mov esi, edi
jmp 0x14000d4fc
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000d4cf
mov edi, 1
mov eax, dword [0x140018cc8]
cmp eax, edi
jne 0x14000d514
mov ebx, 0x1f
mov ecx, ebx
call sub.msvcrt.dll__amsg_exit
jmp 0x14000d58a
mov eax, dword [0x140018cc8]
test eax, eax
jne 0x14000d57f
mov dword [0x140018cc8], edi
lea r15, [0x14000fb70]
lea rbx, [0x14000fb58]
mov qword [rsp + 0x30], rbx
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rbx, r15
jae 0x14000d571
test eax, eax
jne 0x14000d575
cmp qword [rbx], r14
je 0x14000d566
movabs r10, 0xd30527475e523070
mov rax, qword [rbx]
mov rcx, qword [0x14000fa90]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14000d53e
test eax, eax
je 0x14000d585
mov eax, 0xff
jmp 0x14000d6eb
mov dword [0x140016444], edi
mov ebx, 0x1f
mov eax, dword [0x140018cc8]
cmp eax, edi
jne 0x14000d5b1
lea rdx, [0x14000fb50]
lea rcx, [0x14000faa8]
call sub.msvcrt.dll__initterm
mov dword [0x140018cc8], 2
test esi, esi
jne 0x14000d5bf
mov rax, r14
xchg qword [0x140018cc0], rax
cmp qword [0x140018cd0], r14
je 0x14000d5fc
lea rcx, [0x140018cd0]
call fcn.14000d930
test eax, eax
je 0x14000d5fc
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140018cd0]
mov r9, qword [0x14000fa90]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000d615
mov eax, 0xff
jmp 0x14000d6eb
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000d69c
test ax, ax
je 0x14000d630
test edx, edx
jne 0x14000d69c
sub ax, di
cmp ax, bx
ja 0x14000d646
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000d630
test byte [rsp + 0x7c], dil
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001524
mov dword [0x140016440], eax
cmp dword [0x140016460], r14d
jne 0x14000d685
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140016444], r14d
jne 0x14000d69a
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140016440]
jmp 0x14000d6eb
cmp ax, 0x22
jne 0x14000d6b0
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000d61e
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140161000
add rsp, 0x28
jmp 0x14000d490
Function at 0x1400141b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [rcx + 0x10]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, qword [rcx + 0x28]
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
je 0x1400141e8
add rsp, 0x90
pop rbx
ret
lea rdx, [0x140094268]
lea rcx, [rsp + 0x48]
call fcn.140001ee0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140012f30
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001510
lea rdx, [0x1400a4668]
lea rcx, [rsp + 0x30]
call fcn.1400501e0
int3

Function at 0x1400163c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140016551
mov r15, qword [rsp + 0x60]
lea r8d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r9d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x140016551
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r8w, dx
jae 0x14001645b
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x140016578
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140016472
mov eax, ecx
add cx, r11w
cmp cx, r9w
ja 0x140016472
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140016485
movzx r9d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x1400164d2
mov r9d, eax
cmp eax, 0x800
jae 0x14001649f
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov r11d, r8d
jmp 0x1400164d2
cmp eax, 0x10000
jae 0x1400164b9
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov r11d, r10d
jmp 0x1400164d2
shr r9d, 0x12
mov r10d, 3
movzx r11d, sil
or r9b, 0xf0
xor r11d, 1
add r11d, r11d
lea r8d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r8d
cmp rdx, rcx
jl 0x140016551
add qword [r14], 2
test sil, sil
jne 0x1400164f3
cmp r10d, 3
jae 0x1400164ff
mov rcx, qword [rbx]
mov r8d, r11d
mov byte [rcx], r9b
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jle 0x14001652e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jg 0x140016510
shr eax, 0xa
mov r8d, 1
test sil, sil
mov ecx, r8d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x14001640f
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x14001655f
Function at 0x14001830c
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 0x14001833a
xor eax, eax
jmp 0x140018420
cmp qword [rcx + 0x68], 0
je 0x14001834b
call fcn.1400065c0
jmp 0x140018420
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140018362
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140018364
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140018396
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400802d0
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 0x14001841a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400183cd
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 0x1400183f6
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140062854
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14001841a
cmp rsi, rbx
ja 0x1400183d4
test rsi, rsi
je 0x14001841a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140062854
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 0x140032bd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14001ee52
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14001ee35
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14001ee20

Function at 0x14003e474
Capabilities:
Parse pe header

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

Function at 0x140046980
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
je 0x14004699f
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov r9d, 0xc
lea r8, str.TLS_capacity_depleted
lea rcx, str.libslog_src_thread_specific.cpp
lea edx, [r9 + 0x1d]
call fcn.140041650
int3
Function at 0x14004e2b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov ecx, dword [0x1400a60f0]
cmp ecx, 0xffffffff
je 0x14004e2d0
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14004e2ea
call fcn.14004e7d0
mov ecx, dword [0x1400a60f0]
cmp ecx, 0xffffffff
jne 0x14004e2e4
xor eax, eax
jmp 0x14004e2ea
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rbx, [rax + 0x18]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14004d1e0
mov qword [rbx], rax
add rsp, 0x20
pop rbx
ret

Function at 0x14004e740
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1400a60f0]
cmp ecx, 0xffffffff
je 0x14004e7a3
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14004e7a3
mov rdx, qword [rax + 0x28]
mov rcx, rdx
mov rax, qword [rdx + 8]
cmp byte [rax + 0x19], 0
jne 0x14004e788
cmp qword [rax + 0x20], rbx
jae 0x14004e77c
mov rax, qword [rax + 0x10]
jmp 0x14004e782
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14004e770
cmp byte [rcx + 0x19], 0
jne 0x14004e7a3
cmp rbx, qword [rcx + 0x20]
jb 0x14004e7a3
cmp rcx, rdx
je 0x14004e7a3
lea rax, [rcx + 0x28]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14004e7d0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.14004d180
mov rbx, rax
mov qword [rsp + 0x30], rax
lea rdx, [0x14004e720]
lea rcx, [0x1400ab390]
call fcn.14004e310
mov ecx, dword [0x1400a60f0]
cmp ecx, 0xffffffff
je 0x14004e80b
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0x20
pop rbx
ret
Function at 0x14006ad70
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14006ab6c
Function at 0x140073038
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.14003de70
sub rsp, rax
mov rax, qword [0x1400a6040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14006fa74
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140073087
mov rax, rbp
jmp 0x14007318f
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 + 0xab990]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140074158
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xab990]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14007318b
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 0x14007318b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140074158
test rax, rax
js 0x14007318b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14007318b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14007317d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14007317d
cmp byte [rcx], 0xd
jne 0x140073163
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140073172
cmp byte [rcx + 1], 0xa
jne 0x140073172
inc rcx
jmp 0x140073172
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa64d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140073145
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14007318f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003d700
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 0x1400733b0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400733c6
mov al, 1
jmp 0x140073426
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400733d7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140073424
mov ecx, dword [rcx + 0x18]
nop
call fcn.140078ab8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140073424
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140073424
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140073424
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140073426
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400734f8
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, [0x1400ab990]
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 0x14007354f
cmp word [rdx], r13w
jne 0x14007354f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140073554
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140073679
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14007369a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14007358d
mov rdx, r9
mov word [rbx], cx
jmp 0x1400735b4
cmp r9, r8
jae 0x1400735c4
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 0x14007356e
jmp 0x140073679
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 0x14007366e
cmp dword [rsp + 0x80], esi
je 0x14007366e
lea r8, [0x1400ab990]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140073646
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140073616
mov word [rbx], r13w
jmp 0x140073676
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 0x140073623
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140073676
cmp word [rsp + 0x70], r13w
jne 0x140073653
cmp rbx, r14
je 0x140073610
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140074160
cmp word [rsp + 0x70], r13w
je 0x140073679
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, [0x1400ab990]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140073673
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140073679
Function at 0x140077aac
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 0x140077adc
xor eax, eax
jmp 0x140077b9f
mov rbp, rbx
cmp word [rax], si
je 0x140077b01
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140077ae8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140077ae4
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.140075524
movsxd r14, eax
test eax, eax
jne 0x140077b3f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140077ad5
mov rcx, r14
call fcn.14006e818
mov rdi, rax
test rax, rax
jne 0x140077b58
xor ecx, ecx
call fcn.14006e7dc
jmp 0x140077b34
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.140075524
test eax, eax
jne 0x140077b89
mov rcx, rdi
call fcn.14006e7dc
jmp 0x140077b93
xor ecx, ecx
call fcn.14006e7dc
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 0x140077bbc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140077c43
mov rsi, rbx
cmp word [rax], bp
je 0x140077c02
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140077bec
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140077be8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14006e818
mov rdi, rax
test rax, rax
je 0x140077c30
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400802d0
mov rbp, rdi
xor ecx, ecx
call fcn.14006e7dc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14007b00c
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.14006e404
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 0x14007b0ad
cmp ebx, dword [rsp + 0x30]
je 0x14007b0a6
test esi, esi
je 0x14007b0a6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14007b081
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14007b08e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14007b06b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14007b092
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14007b0af
mov eax, 1
jmp 0x14007b0af
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret