joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000cef0
Capabilities:
Hash data using fnv

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
movzx r9d, byte [rdx]
movabs rcx, 0xcbf29ce484222325
xor rcx, r9
movabs r14, 0x100000001b3
imul r14, rcx
mov rcx, qword [0x14032db28]
and rcx, r14
mov rdx, qword [0x14032db10]
mov r8, rcx
shl r8, 4
mov rax, qword [rdx + r8 + 8]
cmp rax, qword [0x14032db00]
je 0x14000cf76
cmp r9b, byte [rax + 0x10]
je 0x14000cf6f
add rcx, rcx
mov rbx, qword [rdx + rcx*8]
nop
cmp rax, rbx
je 0x14000cf79
mov rax, qword [rax + 8]
cmp r9b, byte [rax + 0x10]
jne 0x14000cf60
xor ecx, ecx
jmp 0x14000d138
mov rbx, rax
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [0x14032db08], rax
je 0x14000d149
mov ecx, 0x18
call fcn.14002f08c
movzx edi, byte [rdi]
mov byte [rax + 0x10], dil
mov byte [rax + 0x11], 0
mov rdx, qword [0x14032db08]
inc rdx
js 0x14000cfb8
vcvtsi2ss xmm0, xmm0, rdx
jmp 0x14000cfcd
mov rcx, rdx
shr rcx, 1
and edx, 1
or rdx, rcx
vcvtsi2ss xmm0, xmm0, rdx
vaddss xmm0, xmm0, xmm0
vmovss xmm1, dword [0x14032daf8]
mov rdx, qword [0x14032db30]
test rdx, rdx
js 0x14000cfe8
vcvtsi2ss xmm2, xmm2, rdx
jmp 0x14000cfff
mov r8, rdx
shr r8, 1
mov ecx, edx
and ecx, 1
or rcx, r8
vcvtsi2ss xmm2, xmm2, rcx
vaddss xmm2, xmm2, xmm2
vdivss xmm2, xmm0, xmm2
vucomiss xmm2, xmm1
jbe 0x14000d0c4
vdivss xmm0, xmm0, xmm1
vroundss xmm0, xmm0, xmm0, 0xa
vcvttss2si r9, xmm0
mov rcx, r9
vsubss xmm0, xmm0, dword [0x14005f490]
vcvttss2si r8, xmm0
sar rcx, 0x3f
and r8, rcx
or r8, r9
cmp r8, 9
mov r9d, 8
cmovae r9, r8
cmp rdx, r9
mov qword [rbp - 0x10], rax
jae 0x14000d06a
lea rcx, [rdx*8]
cmp rcx, r9
cmovb rcx, r9
cmp rdx, 0x200
cmovae rcx, r9
mov rdx, rcx
lea rcx, [0x14032daf8]
call fcn.140003750
and r14, qword [0x14032db28]
mov r11, qword [0x14032db10]
lea rcx, [r14 + r14]
lea r8, [r14 + r14]
inc r8
mov rbx, qword [r11 + rcx*8 + 8]
mov rdx, qword [0x14032db00]
cmp rbx, rdx
je 0x14000d0e6
cmp dil, byte [rbx + 0x10]
mov rax, qword [rbp - 0x10]
je 0x14000d0bf
mov r9, qword [r11 + rcx*8]
nop
cmp rbx, r9
je 0x14000d0ef
mov rbx, qword [rbx + 8]
cmp dil, byte [rbx + 0x10]
jne 0x14000d0b0
mov rbx, qword [rbx]
jmp 0x14000d0f2
mov rdx, qword [0x14032db00]
mov r11, qword [0x14032db10]
and r14, qword [0x14032db28]
lea rcx, [r14 + r14]
lea r8, [r14 + r14]
inc r8
jmp 0x14000d0f2
mov rdx, rbx
mov rax, qword [rbp - 0x10]
jmp 0x14000d0f2
mov rbx, r9
mov r9, qword [rbx + 8]
inc qword [0x14032db08]
mov qword [rax], rbx
mov qword [rax + 8], r9
mov qword [r9], rax
mov qword [rbx + 8], rax
lea r10, [r11 + rcx*8]
lea r8, [r11 + r8*8]
mov rcx, qword [r11 + rcx*8]
cmp rcx, rdx
je 0x14000d12d
cmp rcx, rbx
je 0x14000d133
mov cl, 1
mov r10, r8
cmp qword [r8], r9
jne 0x14000d138
jmp 0x14000d133
mov qword [r10], rax
mov r10, r8
mov qword [r10], rax
mov cl, 1
mov qword [rsi], rax
mov byte [rsi + 8], cl
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.unordered_map_set_too_long
call fcn.14002cf4c
int3
Function at 0x14002be20
Capabilities:
Hash data using fnv

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
movzx r9d, byte [rdx]
movabs rcx, 0xcbf29ce484222325
xor rcx, r9
movabs r14, 0x100000001b3
imul r14, rcx
mov rcx, qword [0x140f337c0]
and rcx, r14
mov rdx, qword [0x140f337a8]
mov r8, rcx
shl r8, 4
mov rax, qword [rdx + r8 + 8]
cmp rax, qword [0x140f33798]
je 0x14002bea6
cmp r9b, byte [rax + 0x10]
je 0x14002be9f
add rcx, rcx
mov rbx, qword [rdx + rcx*8]
nop
cmp rax, rbx
je 0x14002bea9
mov rax, qword [rax + 8]
cmp r9b, byte [rax + 0x10]
jne 0x14002be90
xor ecx, ecx
jmp 0x14002c068
mov rbx, rax
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [0x140f337a0], rax
je 0x14002c079
mov ecx, 0x18
call fcn.14002f08c
movzx edi, byte [rdi]
mov byte [rax + 0x10], dil
mov byte [rax + 0x11], 0
mov rdx, qword [0x140f337a0]
inc rdx
js 0x14002bee8
vcvtsi2ss xmm0, xmm0, rdx
jmp 0x14002befd
mov rcx, rdx
shr rcx, 1
and edx, 1
or rdx, rcx
vcvtsi2ss xmm0, xmm0, rdx
vaddss xmm0, xmm0, xmm0
vmovss xmm1, dword [0x140f33790]
mov rdx, qword [0x140f337c8]
test rdx, rdx
js 0x14002bf18
vcvtsi2ss xmm2, xmm2, rdx
jmp 0x14002bf2f
mov r8, rdx
shr r8, 1
mov ecx, edx
and ecx, 1
or rcx, r8
vcvtsi2ss xmm2, xmm2, rcx
vaddss xmm2, xmm2, xmm2
vdivss xmm2, xmm0, xmm2
vucomiss xmm2, xmm1
jbe 0x14002bff4
vdivss xmm0, xmm0, xmm1
vroundss xmm0, xmm0, xmm0, 0xa
vcvttss2si r9, xmm0
mov rcx, r9
vsubss xmm0, xmm0, dword [0x14005f490]
vcvttss2si r8, xmm0
sar rcx, 0x3f
and r8, rcx
or r8, r9
cmp r8, 9
mov r9d, 8
cmovae r9, r8
cmp rdx, r9
mov qword [rbp - 0x10], rax
jae 0x14002bf9a
lea rcx, [rdx*8]
cmp rcx, r9
cmovb rcx, r9
cmp rdx, 0x200
cmovae rcx, r9
mov rdx, rcx
lea rcx, [0x140f33790]
call fcn.140003750
and r14, qword [0x140f337c0]
mov r11, qword [0x140f337a8]
lea rcx, [r14 + r14]
lea r8, [r14 + r14]
inc r8
mov rbx, qword [r11 + rcx*8 + 8]
mov rdx, qword [0x140f33798]
cmp rbx, rdx
je 0x14002c016
cmp dil, byte [rbx + 0x10]
mov rax, qword [rbp - 0x10]
je 0x14002bfef
mov r9, qword [r11 + rcx*8]
nop
cmp rbx, r9
je 0x14002c01f
mov rbx, qword [rbx + 8]
cmp dil, byte [rbx + 0x10]
jne 0x14002bfe0
mov rbx, qword [rbx]
jmp 0x14002c022
mov rdx, qword [0x140f33798]
mov r11, qword [0x140f337a8]
and r14, qword [0x140f337c0]
lea rcx, [r14 + r14]
lea r8, [r14 + r14]
inc r8
jmp 0x14002c022
mov rdx, rbx
mov rax, qword [rbp - 0x10]
jmp 0x14002c022
mov rbx, r9
mov r9, qword [rbx + 8]
inc qword [0x140f337a0]
mov qword [rax], rbx
mov qword [rax + 8], r9
mov qword [r9], rax
mov qword [rbx + 8], rax
lea r10, [r11 + rcx*8]
lea r8, [r11 + r8*8]
mov rcx, qword [r11 + rcx*8]
cmp rcx, rdx
je 0x14002c05d
cmp rcx, rbx
je 0x14002c063
mov cl, 1
mov r10, r8
cmp qword [r8], r9
jne 0x14002c068
jmp 0x14002c063
mov qword [r10], rax
mov r10, r8
mov qword [r10], rax
mov cl, 1
mov qword [rsi], rax
mov byte [rsi + 8], cl
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.unordered_map_set_too_long
call fcn.14002cf4c
int3
Function at 0x14002db04
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 0x14002db32
xor eax, eax
jmp 0x14002dc18
cmp qword [rcx + 0x68], 0
je 0x14002db43
call fcn.140007620
jmp 0x14002dc18
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14002db5a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002db5c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14002db8e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400555f0
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 0x14002dc12
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14002dbc5
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 0x14002dbee
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140039edc
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14002dc12
cmp rsi, rbx
ja 0x14002dbcc
test rsi, rsi
je 0x14002dc12
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140039edc
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 0x14002f9b0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140035daf
call fcn.14003845c
mov dword [rax], 0x16
call fcn.140038ce0
xor eax, eax
jmp 0x140035e3d
mov rdx, r9
mov rcx, r8
call fcn.140035e60
mov rbx, rax
test rax, rax
je 0x140035e3a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140035ec4]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140035e27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003849c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140035e0e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140035e1d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140043370
jmp 0x140035e3a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140035e37
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140035f98
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400360e0
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003614f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003614f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003614f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003614f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003614f
cmp dword [rcx + 0x84], 0xe
jbe 0x14003614f
cmp dword [rcx + 0xf8], 0
je 0x14003614f
mov ecx, ebx
call fcn.140036018
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140036274
nop
cmp dword [rbp + 0x20], 0
je 0x14003619d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400360ac
int3
Function at 0x1400360e0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400360e0
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003614f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003614f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003614f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003614f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003614f
cmp dword [rcx + 0x84], 0xe
jbe 0x14003614f
cmp dword [rcx + 0xf8], 0
je 0x14003614f
mov ecx, ebx
call fcn.140036018
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140036274
nop
cmp dword [rbp + 0x20], 0
je 0x14003619d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400360ac
int3

Function at 0x14003fe30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003fe58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003fe58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14004a394
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.1400435dc
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 0x14004a435
cmp ebx, dword [rsp + 0x30]
je 0x14004a42e
test esi, esi
je 0x14004a42e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004a409
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004a416
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14004a3f3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004a41a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004a437
mov eax, 1
jmp 0x14004a437
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004b6a0
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.14002f270
sub rsp, rax
mov rax, qword [0x140329040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140047918
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004b6ef
mov rax, rbp
jmp 0x14004b7f7
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 + 0x32cd70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004b3d0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x32cd70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004b7f3
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 0x14004b7f3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004b3d0
test rax, rax
js 0x14004b7f3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004b7f3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004b7e5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004b7e5
cmp byte [rcx], 0xd
jne 0x14004b7cb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004b7da
cmp byte [rcx + 1], 0xa
jne 0x14004b7da
inc rcx
jmp 0x14004b7da
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x329b40]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004b7ad
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004b7f7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002f480
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 0x14004bb3c
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 0x14004bb6c
xor eax, eax
jmp 0x14004bc2f
mov rbp, rbx
cmp word [rax], si
je 0x14004bb91
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004bb78
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004bb74
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.14004349c
movsxd r14, eax
test eax, eax
jne 0x14004bbcf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004bb65
mov rcx, r14
call fcn.1400433ac
mov rdi, rax
test rax, rax
jne 0x14004bbe8
xor ecx, ecx
call fcn.140043370
jmp 0x14004bbc4
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.14004349c
test eax, eax
jne 0x14004bc19
mov rcx, rdi
call fcn.140043370
jmp 0x14004bc23
xor ecx, ecx
call fcn.140043370
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 0x14004d5ac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004d5c2
mov al, 1
jmp 0x14004d622
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004d5d3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004d620
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004c094
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004d620
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004d620
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004d620
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004d622
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004df58
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, [0x14032cd70]
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 0x14004dfaf
cmp word [rdx], r13w
jne 0x14004dfaf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004dfb4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004e0d9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004e0fa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004dfed
mov rdx, r9
mov word [rbx], cx
jmp 0x14004e014
cmp r9, r8
jae 0x14004e024
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 0x14004dfce
jmp 0x14004e0d9
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 0x14004e0ce
cmp dword [rsp + 0x80], esi
je 0x14004e0ce
lea r8, [0x14032cd70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004e0a6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004e076
mov word [rbx], r13w
jmp 0x14004e0d6
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 0x14004e083
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004e0d6
cmp word [rsp + 0x70], r13w
jne 0x14004e0b3
cmp rbx, r14
je 0x14004e070
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004b32c
cmp word [rsp + 0x70], r13w
je 0x14004e0d9
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, [0x14032cd70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004e0d3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004e0d9
Function at 0x140053768
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140031200
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400537f2
cmp byte [rbp - 0x21], r15b
je 0x1400537ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140053828
call fcn.140043fb8
test eax, eax
jne 0x140053814
cmp byte [rbp - 0x21], r15b
je 0x14005380c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140053828
cmp byte [rbp - 0x21], r15b
je 0x140053825
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14003129c
test eax, eax
jne 0x1400538c8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140031200
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140053867
cmp byte [rbp - 0x21], r15b
je 0x14005389c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14005389c
call fcn.140043fb8
test eax, eax
jne 0x140053888
cmp byte [rbp - 0x21], r15b
je 0x140053881
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14005389c
cmp byte [rbp - 0x21], r15b
je 0x140053899
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14003129c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400538c8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400538cb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400538d9
mov rcx, rdi
call fcn.140043370
cmp byte [rbp + 0x3f], r15b
je 0x1400538e8
mov rcx, qword [rbp + 0x27]
call fcn.140043370
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret