joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035900
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140112028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140209868]
mov edi, ecx
cmp byte [rbx + 0x4a4d], 0
jne 0x140035961
cmp byte [rbx + 0x4a4e], 0
jne 0x140035961
movsx r9d, word [rbx + 0x5b72]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140024b40
test dil, 1
je 0x140035a8f
jmp 0x1400359ea
movss xmm1, dword [rbx + 0x38c0]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5b72]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1400ff414]
mulss xmm1, dword [0x1400ff3f0]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe08]
addss xmm1, dword [rbx + 0xe0c]
mov qword [rbx + 0x47b8], rax
mov dword [rbx + 0x47a4], 1
movss dword [rbx + 0x47b0], xmm0
movss dword [rbx + 0x47b4], xmm1
movss xmm0, dword [rbx + 0x391c]
mulss xmm0, dword [0x1400ff2c0]
or dword [rbx + 0x47a0], 0x41
movss dword [rbx + 0x4800], xmm0
call fcn.140024b40
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140035a40
lea r11, [0x1400f5f00]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140035a23
cmp byte [r8], r9b
jne 0x140035a23
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140035a10
not ecx
call fcn.14002c800
test rax, rax
je 0x140035a8f
cmp byte [rax + 0xb6], 0
je 0x140035a8f
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5b72]
movsx r9d, word [rbx + 0x5b72]
call fcn.140024b40
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14002ec80
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400cfa20
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14003b420
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c58], 0
lea rbx, [rcx + 0x5c60]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14003b4c7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14003b47a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14003d7e0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140025650
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c58]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c68]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140209855]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14003b4cf
mov rcx, rbx
call fcn.140025650
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14003b950
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140209868]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14003b9b3
mov qword [rsp], rbx
lea rbx, [0x1400f5f00]
nop dword [rax]
cmp r9b, 0x23
jne 0x14003b993
cmp byte [r8], r9b
jne 0x14003b993
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14003b980
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5bd0]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x14003b9e7
mov r10, qword [r10 + 0x5bd8]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14003b9ee
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x14003b9d4
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x14007f8b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2d8]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.14006e4b0
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x14007f906
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x14007f95d
mov ebp, 0x4b0000
jmp 0x14007f96b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.1400709f0
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x14007f981
mov eax, r12d
jmp 0x14007f98a
mov edx, edi
mov ecx, ebp
call fcn.1400709f0
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x14007f9a6
shl esi, 0x10
mov ecx, esi
jmp 0x14007fa95
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x14007fa04
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.14006e4b0
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x14007f9f4
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.1400708c0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.14006e4b0
add ebx, eax
jmp 0x14007fa9e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x14007fa11
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x14007fa50
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.14006e4b0
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x14007fa55
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.1400708c0
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.14006e4b0
add ebx, eax
jmp 0x14007fa9e
cmp eax, r12d
jge 0x14007fa8e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.14006e4b0
sub ebp, eax
sub r15d, esi
je 0x14007fa8e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.1400708c0
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.14006e4b0
add ebx, eax
jmp 0x14007fa9e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.14006e4b0
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
call fcn.14006e4b0
mov r15, qword [rsp + 0x30]
add eax, 0x8000
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
shr eax, 0x10
cwde
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400b82b0
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
xor r14d, r14d
sub rax, 0x34
mov qword [rcx + 0x78], r14
mov qword [rcx + 0x28], rax
mov ebp, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r14w
mov esi, r14d
mov dword [rcx + 0x3c], r14d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r14w
cmp r14w, word [rcx + 0xb8]
jge 0x1400b83fb
movzx r10d, r14w
mov edi, r14d
mov r8, qword [rbx + 0xd0]
mov r9d, ebp
mov dword [rbx + 0x88], r14d
movzx edx, r10w
mov qword [rbx + 0x80], r14
mov rcx, rbx
movzx r8d, word [rdi + r8]
call fcn.1400b8770
test al, al
jne 0x1400b8496
mov rax, qword [rbx + 0xd0]
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
movzx r10d, word [rdi + rax]
lea eax, [r8 - 1]
test edx, eax
jne 0x1400b838b
cmp edx, dword [rbx + 0x60]
jl 0x1400b838b
cmp edx, dword [rbx + 0x64]
jg 0x1400b838b
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400b838b
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x1400b838b
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x1400b83ae
test byte [r9 + 0x18], 8
je 0x1400b83ae
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x1400b83bf
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.1400b9130
test al, al
jne 0x1400b8496
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x1400b83e2
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc esi
add rdi, 2
inc r10w
cmp esi, eax
jl 0x1400b8314
movzx edi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp di, 1
jbe 0x1400b849a
test rdx, rdx
je 0x1400b849a
mov ebp, 0xffff
nop dword [rax + rax]
lea rsi, [rdx + 8]
cmp di, 1
jbe 0x1400b8438
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x1400b843b
mov r10, r14
mov qword [rsi], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x1400b8456
dec r11d
add r11d, eax
jmp 0x1400b846d
sub r8d, eax
inc r8d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.1400b9400
test al, al
jne 0x1400b8496
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.1400b9400
test al, al
jne 0x1400b8496
mov rdx, qword [rsi]
add di, bp
jne 0x1400b8420
jmp 0x1400b849e
mov al, 1
jmp 0x1400b84a9
mov qword [rbx + 0x78], r14
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
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 0x1400d08b4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d08fe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d08fe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d08fe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d08fe
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d08fe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400d0900
xor al, al
add rsp, 0x28
ret
Function at 0x14000800c
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 0x14000803a
xor eax, eax
jmp 0x140008120
cmp qword [rcx + 0x68], 0
je 0x14000804b
call fcn.14000813c
jmp 0x140008120
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140008062
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008064
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140008096
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400a9300
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 0x14000811a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400080cd
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 0x1400080f6
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400509a4
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000811a
cmp rsi, rbx
ja 0x1400080d4
test rsi, rsi
je 0x14000811a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400509a4
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 0x1400301a4
Capabilities:
Encode data using xor
Hash data using fnv

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

Function at 0x1400301b8
Capabilities:
Encode data using xor
Hash data using fnv

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

Function at 0x14003e3e8
Capabilities:
Parse pe header

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

Function at 0x140084564
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400842ec
Function at 0x14008f47c
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.14003dac0
sub rsp, rax
mov rax, qword [0x1400ce040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14008d498
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14008f4cb
mov rax, rbp
jmp 0x14008f5d3
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 + 0xd1a80]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400911c4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xd1a80]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14008f5cf
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 0x14008f5cf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400911c4
test rax, rax
js 0x14008f5cf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14008f5cf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14008f5c1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14008f5c1
cmp byte [rcx], 0xd
jne 0x14008f5a7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14008f5b6
cmp byte [rcx + 1], 0xa
jne 0x14008f5b6
inc rcx
jmp 0x14008f5b6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xce490]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14008f589
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14008f5d3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003cf70
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 0x14008fc8c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14008fca2
mov al, 1
jmp 0x14008fd02
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14008fcb3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14008fd00
mov ecx, dword [rcx + 0x18]
nop
call fcn.14009ac9c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14008fd00
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14008fd00
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14008fd00
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14008fd02
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14009001c
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, [0x1400d1a80]
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 0x140090073
cmp word [rdx], r13w
jne 0x140090073
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140090078
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14009019d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400901be
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400900b1
mov rdx, r9
mov word [rbx], cx
jmp 0x1400900d8
cmp r9, r8
jae 0x1400900e8
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 0x140090092
jmp 0x14009019d
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 0x140090192
cmp dword [rsp + 0x80], esi
je 0x140090192
lea r8, [0x1400d1a80]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14009016a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14009013a
mov word [rbx], r13w
jmp 0x14009019a
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 0x140090147
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14009019a
cmp word [rsp + 0x70], r13w
jne 0x140090177
cmp rbx, r14
je 0x140090134
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400911cc
cmp word [rsp + 0x70], r13w
je 0x14009019d
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, [0x1400d1a80]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140090197
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14009019d
Function at 0x1400997ec
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 0x14009981c
xor eax, eax
jmp 0x1400998df
mov rbp, rbx
cmp word [rax], si
je 0x140099841
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140099828
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140099824
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.140095518
movsxd r14, eax
test eax, eax
jne 0x14009987f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140099815
mov rcx, r14
call fcn.14008c338
mov rdi, rax
test rax, rax
jne 0x140099898
xor ecx, ecx
call fcn.1400899a4
jmp 0x140099874
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.140095518
test eax, eax
jne 0x1400998c9
mov rcx, rdi
call fcn.1400899a4
jmp 0x1400998d3
xor ecx, ecx
call fcn.1400899a4
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 0x1400998fc
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 0x140099983
mov rsi, rbx
cmp word [rax], bp
je 0x140099942
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14009992c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140099928
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14008c338
mov rdi, rax
test rax, rax
je 0x140099970
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400a9300
mov rbp, rdi
xor ecx, ecx
call fcn.1400899a4
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 0x14009d754
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.14008a3ac
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 0x14009d7f5
cmp ebx, dword [rsp + 0x30]
je 0x14009d7ee
test esi, esi
je 0x14009d7ee
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14009d7c9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14009d7d6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14009d7b3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14009d7da
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14009d7f7
mov eax, 1
jmp 0x14009d7f7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a8ea0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a8ec8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a8ec8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
and al, byte [rbx - 0x63f7cbea]
invalid
Function at 0x1400013fc
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x40
mov rbx, r9
lea rax, [r11 - 0x18]
mov r14, r8
mov r9d, 8
mov r8, rbx
mov rsi, rdx
mov qword [r11 - 0x28], rax
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
xor edi, edi
test eax, eax
je 0x14000148d
lea rax, [rsp + 0x38]
mov r9, rbx
mov r8, r14
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001468
cmp rbx, qword [rsp + 0x38]
jne 0x140001468
mov dil, 1
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
neg eax
sbb al, al
and al, dil
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