joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140057eb0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x140057ecb
mov qword [r8], 0
call fcn.140058010
mov rbx, rax
test rax, rax
jne 0x140057ee1
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r15
call fcn.1400ae64c
mov esi, eax
cmp eax, 0xffffffff
je 0x140057fe2
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.1400a5e44
test eax, eax
jne 0x140057fe2
mov rcx, rbx
call fcn.1400ae64c
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140057fe2
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.1400a5e44
test eax, eax
jne 0x140057fe2
cmp rdi, 0xffffffffffffffff
je 0x140057fe2
mov rax, qword [0x14010c048]
test rax, rax
je 0x140057f5e
inc dword [rax + 0xfc]
mov rdx, qword [0x14010c058]
lea rcx, [rdi + rbp]
call qword [0x1401071b8]
mov rsi, rax
test rax, rax
je 0x140057fe2
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.1400a5a3c
cmp rax, rdi
je 0x140057fbb
mov rcx, rbx
call fcn.1400a4f90
mov rax, qword [0x14010c048]
test rax, rax
je 0x140057fa9
dec dword [rax + 0xfc]
mov rdx, qword [0x14010c058]
mov rcx, rsi
call qword [0x1401071c0]
jmp 0x140057fea
test ebp, ebp
jle 0x140057fcd
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call fcn.1400cedb0
mov rcx, rbx
call fcn.1400a4f90
test r14, r14
je 0x140057fdd
mov qword [r14], rdi
mov rax, rsi
jmp 0x140057fec
mov rcx, rbx
call fcn.1400a4f90
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret

Function at 0x1400583b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14005840d
lea rbx, [0x1400d9f90]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400583f4
cmp r10, 2
jb 0x1400583f4
cmp byte [r9], r8b
jne 0x1400583f4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400583d0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14005844f
lea rbx, [0x1400d9f90]
cmp r8b, 0x23
jne 0x140058433
cmp byte [r9], r8b
jne 0x140058433
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140058420
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140058710
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x10
mov qword [rsp + 0x30], rbx
lea r13, [0x140000000]
mov qword [rsp + 0x38], rbp
mov rdi, rdx
mov qword [rsp + 0x40], rsi
mov rax, rcx
mov qword [rsp + 8], r14
xor r12d, r12d
mov qword [rsp], r15
test rdi, rdi
je 0x140058750
cmp rax, rdi
jae 0x1400588c8
movzx r8d, byte [rax]
test r8b, r8b
je 0x1400588c8
xor ebx, ebx
mov ecx, r8d
shr rcx, 3
mov rdx, rdi
movsx r9, byte [rcx + r13 + 0xdaba8]
test r9d, r9d
sete bl
add ebx, r9d
test rdi, rdi
jne 0x140058786
movsxd rdx, ebx
add rdx, rax
xor esi, esi
lea rcx, [rax + 1]
cmp rax, rdx
cmovb esi, r8d
cmp rcx, rdx
jae 0x14005879e
movzx r15d, byte [rcx]
jmp 0x1400587a1
xor r15b, r15b
lea rcx, [rax + 2]
cmp rcx, rdx
jae 0x1400587b0
movzx r14d, byte [rcx]
jmp 0x1400587b3
xor r14b, r14b
lea rcx, [rax + 3]
cmp rcx, rdx
jae 0x1400587c1
movzx ebp, byte [rcx]
jmp 0x1400587c4
xor bpl, bpl
lea r10, [r9*4]
movzx ecx, sil
mov r9d, dword [r10 + r13 + 0xdabc8]
and r9d, ecx
movzx r8d, r15b
shl r9d, 6
mov ecx, r8d
and ecx, 0x3f
movzx edx, r14b
or r9d, ecx
movzx r11d, bpl
shl r9d, 6
and r8d, 0xc0
mov ecx, edx
and edx, 0xc0
and ecx, 0x3f
or r9d, ecx
mov ecx, r11d
shr r11d, 2
and ecx, 0x3f
or r11d, edx
shl r9d, 6
shr r11d, 2
or r9d, ecx
mov ecx, dword [r10 + r13 + 0xdabf8]
or r11d, r8d
shr r9d, cl
shr r11d, 2
mov edx, r9d
cmp r9d, dword [r10 + r13 + 0xdabe0]
sbb ecx, ecx
and edx, 0xfffff800
and ecx, 0x40
xor r8d, r8d
or r11d, ecx
mov ecx, 0x80
cmp edx, 0xd800
cmove r8d, ecx
xor edx, edx
or r11d, r8d
mov ecx, 0x100
cmp r9d, 0xffff
cmova edx, ecx
mov ecx, dword [r10 + r13 + 0xdac10]
or r11d, edx
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x1400588ba
xor edx, edx
test bpl, bpl
setne dl
xor ecx, ecx
test r14b, r14b
setne cl
add edx, ecx
xor ecx, ecx
test r15b, r15b
setne cl
add edx, ecx
xor ecx, ecx
test sil, sil
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
mov ebx, edx
movsxd rcx, ebx
add rax, rcx
inc r12d
jmp 0x140058742
mov r15, qword [rsp]
mov eax, r12d
mov r14, qword [rsp + 8]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x10
pop r13
pop r12
pop rdi
ret
Function at 0x140058940
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x20], rsi
mov rsi, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp], rax
cmp rcx, rax
jae 0x140058b57
mov qword [r11 + 0x18], rbp
lea rbp, [0x140000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
nop
test rsi, rsi
je 0x14005899e
cmp r8, rsi
jae 0x140058b34
movzx edx, byte [r8]
test dl, dl
je 0x140058b34
xor ebx, ebx
mov eax, edx
shr rax, 3
mov rcx, rsi
movsx r9, byte [rax + rbp + 0xdaba8]
test r9d, r9d
sete bl
add ebx, r9d
test rsi, rsi
jne 0x1400589d2
movsxd rcx, ebx
add rcx, r8
xor r14d, r14d
lea rax, [r8 + 1]
cmp r8, rcx
cmovb r14d, edx
cmp rax, rcx
jae 0x1400589eb
movzx r13d, byte [rax]
jmp 0x1400589ee
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x1400589fd
movzx r12d, byte [rax]
jmp 0x140058a00
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x140058a0f
movzx r15d, byte [rax]
jmp 0x140058a12
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov ebp, dword [r10 + rbp + 0xdabc8]
and ebp, eax
movzx r9d, r13b
shl ebp, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or ebp, eax
movzx r11d, r15b
shl ebp, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or ebp, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl ebp, 6
or ebp, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x140000000]
mov ecx, dword [r10 + rax + 0xdabf8]
shr r11d, 2
shr ebp, cl
mov ecx, 0x100
cmp ebp, dword [r10 + rax + 0xdabe0]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, ebp
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp ebp, 0xffff
cmova eax, ecx
lea rcx, [0x140000000]
mov ecx, dword [r10 + rcx + 0xdac10]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x140058b16
test r15b, r15b
mov eax, r9d
mov ecx, r9d
mov ebp, 0xfffd
setne cl
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
mov eax, r9d
test r14b, r14b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
mov ebx, ecx
mov word [rdi], bp
add rdi, 2
movsxd rax, ebx
lea rbp, [0x140000000]
add r8, rax
cmp rdi, qword [rsp]
jb 0x140058990
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov word [rdi], r9w
test rax, rax
je 0x140058b6d
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x140068560
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
mov rbx, qword [0x14010c048]
cmp byte [rbx + 0x5d60], 0
jne 0x1400686b2
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400686ab
lea rdx, [0x1400db7e0]
mov qword [rsp + 0x40], rdi
call fcn.140058010
mov rdi, rax
test rax, rax
je 0x1400686a6
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call fcn.1400ae64c
mov ebp, eax
cmp eax, 0xffffffff
je 0x140068694
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.1400a5e44
test eax, eax
jne 0x140068694
mov rcx, rdi
call fcn.1400ae64c
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140068694
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.1400a5e44
test eax, eax
jne 0x140068694
cmp rsi, 0xffffffffffffffff
je 0x140068694
mov rax, qword [0x14010c048]
test rax, rax
je 0x140068621
inc dword [rax + 0xfc]
mov rdx, qword [0x14010c058]
mov rcx, rsi
call qword [0x1401071b8]
mov rbp, rax
test rax, rax
je 0x140068694
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.1400a5a3c
mov rcx, rdi
cmp rax, rsi
je 0x14006865b
call fcn.1400a4f90
jmp 0x140068670
call fcn.1400a4f90
test rsi, rsi
je 0x140068670
mov rdx, rsi
mov rcx, rbp
call fcn.14005a0a0
mov rax, qword [0x14010c048]
test rax, rax
je 0x140068682
dec dword [rax + 0xfc]
mov rdx, qword [0x14010c058]
mov rcx, rbp
call qword [0x1401071c0]
jmp 0x14006869c
mov rcx, rdi
call fcn.1400a4f90
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x5d60], 1
movss xmm0, dword [rbx + 0x5d64]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1400686f5
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5d64], xmm0
jb 0x1400686f5
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400686e4
call fcn.140064020
jmp 0x1400686eb
mov byte [rbx + 0xe4], 1
mov dword [rbx + 0x5d64], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140082d10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14010c048]
mov rcx, qword [rax + 0x4c90]
mov r10, qword [rax + 0x3fd8]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x168]
movss xmm4, dword [rcx + 0x168]
movss xmm3, dword [rcx + 0x16c]
movss xmm2, dword [rcx + 0x170]
movss xmm1, dword [rcx + 0x174]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2d0]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x268], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2d0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2d0]
mov rcx, qword [rcx + 0x198]
add rsp, 0x38
jmp fcn.1400746d0

Function at 0x140082de0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14010c048]
mov rcx, qword [rax + 0x4c90]
mov r9, qword [rax + 0x3fd8]
movups xmm0, xmmword [r9 + 0x268]
movups xmmword [rcx + 0x168], xmm0
mov rax, qword [r9 + 0x2d0]
movups xmm0, xmmword [rcx + 0x148]
movss xmm4, dword [rcx + 0x148]
movss xmm3, dword [rcx + 0x14c]
movss xmm2, dword [rcx + 0x150]
movss xmm1, dword [rcx + 0x154]
movups xmmword [r9 + 0x268], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2d0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x21e]
mov rcx, qword [rcx + 0x198]
mov rdx, qword [r9 + 0x2d0]
add rsp, 0x38
jmp fcn.1400746d0
Function at 0x140097aec
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 0x140097b26
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140097b2b
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 0x140097b74
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.onnxruntime.dll_Ordinal_1
cmp byte [rcx + rax], 0
je 0x140097b74
dec r8
sub rdx, 1
jne 0x140097b5a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14009a3dc
Capabilities:
Parse pe header

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

Function at 0x1400adcb0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x1400adccf
call fcn.1400c3084
jmp 0x1400add84
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.1400a0ae4
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x1400add1a
cmp byte [rbp - 0x38], 0
je 0x1400add4f
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400add4f
call fcn.1400bbc80
test eax, eax
jne 0x1400add3b
cmp byte [rbp - 0x38], al
je 0x1400add33
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400add4f
cmp byte [rbp - 0x38], 0
je 0x1400add4c
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.1400a485c
test eax, eax
je 0x1400add68
or ebx, 0xffffffff
jmp 0x1400add73
mov rcx, qword [rbp - 0x20]
call fcn.1400c3084
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x1400add82
mov rcx, qword [rbp - 0x20]
call fcn.1400ba93c
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x1400ae3cc
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.140099f80
sub rsp, rax
mov rax, qword [0x140107280]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400bc8e4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400ae41b
mov rax, rbp
jmp 0x1400ae523
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 + 0x10d770]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400beb98
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x10d770]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400ae51f
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 0x1400ae51f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400beb98
test rax, rax
js 0x1400ae51f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400ae51f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400ae511
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400ae511
cmp byte [rcx], 0xd
jne 0x1400ae4f7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400ae506
cmp byte [rcx + 1], 0xa
jne 0x1400ae506
inc rcx
jmp 0x1400ae506
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x107890]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400ae4d9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400ae523
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140099d00
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 0x1400b661c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400b6418
Function at 0x1400bddf0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400bde06
mov al, 1
jmp 0x1400bde66
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400bde17
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400bde64
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400c6a58
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400bde64
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400bde64
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400bde64
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400bde66
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400bdf38
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, [0x14010d770]
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 0x1400bdf8f
cmp word [rdx], r13w
jne 0x1400bdf8f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400bdf94
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400be0b9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400be0da
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400bdfcd
mov rdx, r9
mov word [rbx], cx
jmp 0x1400bdff4
cmp r9, r8
jae 0x1400be004
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 0x1400bdfae
jmp 0x1400be0b9
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 0x1400be0ae
cmp dword [rsp + 0x80], esi
je 0x1400be0ae
lea r8, [0x14010d770]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400be086
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400be056
mov word [rbx], r13w
jmp 0x1400be0b6
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 0x1400be063
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400be0b6
cmp word [rsp + 0x70], r13w
jne 0x1400be093
cmp rbx, r14
je 0x1400be050
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400beba0
cmp word [rsp + 0x70], r13w
je 0x1400be0b9
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, [0x14010d770]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400be0b3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400be0b9
Function at 0x1400c595c
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 0x1400c598c
xor eax, eax
jmp 0x1400c5a4f
mov rbp, rbx
cmp word [rax], si
je 0x1400c59b1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400c5998
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400c5994
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.1400bb8d8
movsxd r14, eax
test eax, eax
jne 0x1400c59ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400c5985
mov rcx, r14
call fcn.1400bb7e8
mov rdi, rax
test rax, rax
jne 0x1400c5a08
xor ecx, ecx
call fcn.1400ba93c
jmp 0x1400c59e4
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.1400bb8d8
test eax, eax
jne 0x1400c5a39
mov rcx, rdi
call fcn.1400ba93c
jmp 0x1400c5a43
xor ecx, ecx
call fcn.1400ba93c
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 0x1400c5a6c
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 0x1400c5af3
mov rsi, rbx
cmp word [rax], bp
je 0x1400c5ab2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400c5a9c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400c5a98
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400bb7e8
mov rdi, rax
test rax, rax
je 0x1400c5ae0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400ce710
mov rbp, rdi
xor ecx, ecx
call fcn.1400ba93c
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 0x1400c8fac
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.1400ba0c0
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 0x1400c904d
cmp ebx, dword [rsp + 0x30]
je 0x1400c9046
test esi, esi
je 0x1400c9046
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400c9021
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400c902e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400c900b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400c9032
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400c904f
mov eax, 1
jmp 0x1400c904f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret