joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005b1d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movzx eax, byte [rcx + 0xbc]
lea rsi, [rcx + 0xa0]
movzx r12d, word [rsi]
and al, 0x1f
mov r15, rcx
cmp al, 0xe
jne 0x14005b238
movzx edx, word [rcx + 0x1fa]
cmp edx, r12d
jbe 0x14005b238
movzx eax, word [rcx + 0x214]
cmp eax, r12d
jbe 0x14005b238
nop
cmp eax, edx
jb 0x14005b38b
mov ecx, eax
mov rax, qword [r15 + 0x10]
movzx eax, word [rax + rcx*8 + 6]
cmp eax, r12d
ja 0x14005b220
movzx eax, word [r15 + 0x216]
cmp eax, r12d
jbe 0x14005b38f
mov rbx, qword [r15 + 0x10]
mov ebp, 0x8000
mov dword [rsp + 0x50], ebp
nop word [rax + rax]
lea r13, [rbx + rax*8]
movzx eax, word [rbx + rax*8]
movzx ecx, word [rbx + rax*8 + 2]
lea rdx, [rbx + rax*8]
cmp rsi, rdx
je 0x14005b38b
movzx r9d, word [rsi + 2]
cmp byte [rbx + r9*8 + 5], 0x1e
lea r8, [rbx + r9*8]
jne 0x14005b293
movzx r9d, word [r8]
lea r8, [rbx + r9*8]
cmp byte [rbx + rcx*8 + 5], 0x1e
lea r10, [rbx + rcx*8]
jne 0x14005b2a6
movzx ecx, word [r10]
lea r10, [rbx + rcx*8]
movzx r11d, byte [rsi + 5]
lea eax, [r11 - 0x39]
cmp al, 1
jbe 0x14005b2b8
movzx eax, word [rsi]
jmp 0x14005b2bf
movzx eax, word [rsi]
movzx eax, word [rbx + rax*8]
movzx r14d, ax
movzx eax, byte [rdx + 5]
sub al, 0x39
cmp al, 1
jbe 0x14005b2d2
movzx eax, word [rdx]
jmp 0x14005b2d9
movzx eax, word [rdx]
movzx eax, word [rbx + rax*8]
movzx edi, ax
cmp r9d, ecx
je 0x14005b360
cmp r9d, ebp
jae 0x14005b2ee
cmp ecx, ebp
jb 0x14005b377
cmp r11b, 0x39
jne 0x14005b353
xor r11d, r11d
xor edx, edx
cmp byte [r8 + 5], 0x29
mov ebp, r9d
jne 0x14005b320
movzx eax, word [r8 + 2]
cmp ax, word [rsp + 0x50]
jae 0x14005b320
movzx ebp, word [r8]
mov r11d, dword [rbx + rax*8]
cmp ebp, ecx
jne 0x14005b320
test r11d, r11d
jne 0x14005b377
cmp byte [r10 + 5], 0x29
jne 0x14005b348
movzx eax, word [r10 + 2]
mov r8d, 0x8000
cmp ax, r8w
jae 0x14005b348
movzx ecx, word [r10]
mov edx, dword [rbx + rax*8]
cmp r9d, ecx
jne 0x14005b348
test edx, edx
jne 0x14005b377
cmp ebp, ecx
jne 0x14005b360
cmp r11d, edx
je 0x14005b360
jmp 0x14005b377
movzx eax, byte [r10 + 4]
xor al, byte [r8 + 4]
test al, 0x1f
jne 0x14005b377
cmp r14d, edi
je 0x14005b38b
mov r8d, edi
mov edx, r14d
mov rcx, r15
call fcn.14005a500
test eax, eax
jne 0x14005b38b
movzx eax, word [r13 + 6]
cmp eax, r12d
jbe 0x14005b38f
mov ebp, 0x8000
jmp 0x14005b260
xor eax, eax
jmp 0x14005b394
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14005b700
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
movzx esi, dx
mov rdi, rcx
movzx r9d, word [rcx + rsi*2 + 0x190]
cmp r9d, r8d
jbe 0x14005b79d
mov r11, qword [rcx + 0x10]
mov eax, r8d
lea rbp, [r11 + rax*8]
nop word [rax + rax]
movzx eax, byte [r11 + r9*8 + 4]
lea rbx, [r11 + r9*8]
movzx ecx, word [rbx]
and al, 0x1f
cmp ecx, r8d
je 0x14005b7df
test al, al
jne 0x14005b793
movzx r9d, word [r11 + rcx*8 + 2]
movzx r10d, word [rbp + 2]
cmp esi, 0x42
je 0x14005b77c
movzx edx, byte [r11 + r10*8 + 4]
xor dl, byte [r11 + r9*8 + 4]
test dl, 0x1f
jne 0x14005b793
cmp r9d, r10d
je 0x14005b7c6
cmp r9d, 0x8000
jae 0x14005b7c6
cmp r10d, 0x8000
jae 0x14005b7c6
movzx r9d, word [rbx + 6]
cmp r9d, r8d
ja 0x14005b740
movzx eax, word [rdi + rsi*2 + 0x182]
cmp eax, r8d
jbe 0x14005b7c6
mov rdx, qword [rdi + 0x10]
nop
lea rcx, [rdx + rax*8]
movzx eax, word [rdx + rax*8]
cmp eax, r8d
je 0x14005b7ea
movzx eax, word [rcx + 6]
cmp eax, r8d
ja 0x14005b7b0
xor eax, eax
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
jmp 0x14005b7c8
test byte [rcx + 4], 0x1f
mov ecx, 0
setne cl
mov eax, ecx
jmp 0x14005b7c8
Function at 0x14005ca70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r10, qword [rcx + 0x10]
mov esi, r9d
movzx r14d, dx
mov r12d, r8d
mov r9d, edx
mov rbp, rcx
movzx r15d, byte [r10 + r14*8 + 5]
cmp r15d, 0x36
jb 0x14005cbaf
cmp r15d, r8d
jg 0x14005cbaf
xor edx, edx
add rcx, 0x910
nop word [rax + rax]
cmp word [rcx], r14w
jne 0x14005cada
mov eax, dword [rcx + 4]
cmp eax, esi
jb 0x14005cada
xor eax, esi
test eax, 0xfff
je 0x14005cb9e
inc rdx
add rcx, 8
cmp rdx, 0x10
jl 0x14005cac0
movzx edx, word [r10 + r14*8]
mov r9d, esi
mov qword [rsp + 0x40], rbx
mov rcx, rbp
movzx ebx, word [r10 + r14*8 + 2]
mov qword [rsp + 0x48], rdi
call fcn.14005ca70
mov r9d, esi
mov r8d, r12d
mov edx, ebx
mov rcx, rbp
mov edi, eax
call fcn.14005ca70
mov ecx, 0xf3
mov word [rbp + 0xa0], di
add r15w, cx
mov word [rbp + 0xa2], ax
movzx edx, r15w
mov ecx, 0x100
imul edx, ecx
mov r8d, esi
shr r8d, 5
mov rcx, rbp
and r8w, 0x1f
or r8w, dx
mov word [rbp + 0xa4], r8w
call fcn.14005a090
mov ecx, dword [rbp + 0x990]
mov r9d, eax
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rdx, [rcx*8]
lea eax, [rcx + 1]
and eax, 0xf
mov dword [rbp + 0x990], eax
mov word [rdx + rbp + 0x910], r14w
mov word [rdx + rbp + 0x912], r9w
mov dword [rdx + rbp + 0x914], esi
jmp 0x14005cbf0
movzx ecx, word [rcx + 2]
movzx eax, byte [r10 + rcx*8 + 4]
shl eax, 0x18
add eax, ecx
jmp 0x14005cbf3
bt esi, 0xb
jae 0x14005cbf0
movzx ecx, byte [r10 + r14*8 + 4]
mov edx, 0x604208
and ecx, 0x1f
shr edx, cl
test dl, 1
jne 0x14005cbf0
mov eax, 0x5a15
mov word [rbp + 0xa0], r14w
mov rcx, rbp
mov word [rbp + 0xa4], ax
mov word [rbp + 0xa2], si
call fcn.14005a090
mov r9d, eax
mov eax, r9d
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400836d4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140083567
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140083567
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140083567
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140083567
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140083567
cmp dword [rcx + 0x84], 0xe
jbe 0x140083567
cmp dword [rcx + 0xf8], 0
je 0x140083567
mov ecx, ebx
call fcn.140083608
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400833f8
cmp dword [rbp + 0x20], 0
je 0x1400835b4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400835bc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140083500
Function at 0x140096ec4
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 rbx, rcx
test rcx, rcx
jne 0x140096bea
call fcn.140083798
mov dword [rax], 0x16
call fcn.140091090
jmp 0x140096d35
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140096d35
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140096d35
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140096c19
lock or dword [rcx + 0x14], 0x10
jmp 0x140096d35
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140096c2d
call fcn.14009a710
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x140096c3d
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x140096c40
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.140082a9c
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.140096640
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140096d23
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140096cd1
mov rcx, rbx
call fcn.140082a9c
cmp eax, 0xffffffff
je 0x140096cbc
mov rcx, rbx
call fcn.140082a9c
cmp eax, 0xfffffffe
je 0x140096cbc
mov rcx, rbx
call fcn.140082a9c
movsxd rdi, eax
lea r14, [0x1400cbcd0]
mov rcx, rbx
sar rdi, 6
call fcn.140082a9c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140096cc3
lea rdx, [0x1400ca340]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140096cd1
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140096cf5
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140096cf5
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140096cf5
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x140096d13
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x140096d1e
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x140096d3a
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x140096bb4

Function at 0x14009cd60
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14009cd80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140083728
or eax, 0xffffffff
jmp 0x14009cd82
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000f330
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rcx
xor edi, edi
mov ecx, edi
lea r9, [0x14001d0a0]
mov rdx, r9
movzx eax, cl
add al, byte [rdx]
not al
sub al, 0x48
xor al, 0x9c
sub al, 2
ror al, 2
add al, cl
neg al
xor al, 0x33
not al
sub al, 0x38
xor al, 0x22
ror al, 1
mov byte [rdx], al
inc ecx
lea rdx, [rdx + 1]
cmp ecx, 0x2a
jb 0x14000f360
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x90], xmm1
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [r9 + r8], dil
jne 0x14000f3b0
mov rdx, r9
lea rcx, [rsp + 0x80]
call fcn.1400012b0
nop
mov dword [rsp + 0x78], 1
lea rdx, [rsp + 0x80]
cmp qword [rsp + 0x98], 0xf
cmova rdx, qword [rsp + 0x80]
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [0x140016008]
test eax, eax
jne 0x14000f4d1
movabs rax, 0xe0bd99813bd54642
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
movabs rcx, 0xaea4da7d9103816c
mov qword [rsp + 0x50], rcx
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
movabs rax, 0xe0bdfde44fbc3e27
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x50], rcx
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa8], rax
movdqa xmm0, xmmword [rsp + 0xa0]
xorps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
call qword [0x140016020]
mov rcx, qword [rsp + 0x70]
call qword [0x140016010]
mov rcx, qword [rbx]
call fcn.140004a90
mov rcx, qword [rbx + 8]
call fcn.140009d80
nop
mov rdx, qword [rsp + 0x98]
cmp rdx, 0xf
jbe 0x14000f529
inc rdx
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f524
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f524
call qword [0x1400165c0]
int3
call fcn.140013324
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400132c0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret
Function at 0x140011f10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140011f71
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140011f30
mov ecx, dword [r9]
jmp 0x14001205b
cmp ecx, 0x4e0
jb 0x14001205b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140011f90
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140011fe0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140013d7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x140016138]
test rax, rax
je 0x140013dc6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140013dc6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140013dc6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140013dc6
cmp dword [rcx + 0x84], 0xe
jbe 0x140013dc6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140013dc8
xor al, al
add rsp, 0x28
ret
Function at 0x140005980
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 0x1400059ae
xor eax, eax
jmp 0x140005a94
cmp qword [rcx + 0x68], 0
je 0x1400059bf
call fcn.140005ab0
jmp 0x140005a94
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400059d6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400059d8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005a0a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140020b50
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 0x140005a8e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140005a41
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 0x140005a6a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000eb2c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140005a8e
cmp rsi, rbx
ja 0x140005a48
test rsi, rsi
je 0x140005a8e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000eb2c
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 0x14000705c
Capabilities:
Parse pe header

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

Function at 0x140010ba4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400109a0
Function at 0x1400171e8
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.140006940
sub rsp, rax
mov rax, qword [0x140032040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140015dc8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140017237
mov rax, rbp
jmp 0x14001733f
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 + 0x34590]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140018308
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x34590]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001733b
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 0x14001733b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140018308
test rax, rax
js 0x14001733b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001733b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001732d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001732d
cmp byte [rcx], 0xd
jne 0x140017313
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140017322
cmp byte [rcx + 1], 0xa
jne 0x140017322
inc rcx
jmp 0x140017322
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x32480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400172f5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001733f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140006430
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 0x140017560
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140017576
mov al, 1
jmp 0x1400175d6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140017587
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400175d4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001b210
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400175d4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400175d4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400175d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400175d6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400176a8
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, [0x140034590]
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 0x1400176ff
cmp word [rdx], r13w
jne 0x1400176ff
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140017704
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140017829
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001784a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001773d
mov rdx, r9
mov word [rbx], cx
jmp 0x140017764
cmp r9, r8
jae 0x140017774
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 0x14001771e
jmp 0x140017829
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 0x14001781e
cmp dword [rsp + 0x80], esi
je 0x14001781e
lea r8, [0x140034590]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400177f6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400177c6
mov word [rbx], r13w
jmp 0x140017826
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 0x1400177d3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140017826
cmp word [rsp + 0x70], r13w
jne 0x140017803
cmp rbx, r14
je 0x1400177c0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140018310
cmp word [rsp + 0x70], r13w
je 0x140017829
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, [0x140034590]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140017823
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140017829
Function at 0x14001a9a8
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 0x14001a9d8
xor eax, eax
jmp 0x14001aa9b
mov rbp, rbx
cmp word [rax], si
je 0x14001a9fd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001a9e4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001a9e0
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.140018fa8
movsxd r14, eax
test eax, eax
jne 0x14001aa3b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001a9d1
mov rcx, r14
call fcn.1400145cc
mov rdi, rax
test rax, rax
jne 0x14001aa54
xor ecx, ecx
call fcn.140013b44
jmp 0x14001aa30
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.140018fa8
test eax, eax
jne 0x14001aa85
mov rcx, rdi
call fcn.140013b44
jmp 0x14001aa8f
xor ecx, ecx
call fcn.140013b44
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 0x14001d764
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.1400137e4
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 0x14001d805
cmp ebx, dword [rsp + 0x30]
je 0x14001d7fe
test esi, esi
je 0x14001d7fe
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001d7d9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001d7e6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001d7c3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001d7ea
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001d807
mov eax, 1
jmp 0x14001d807
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret