joyce8/EMBER2024-capa huggingface dataset:
Function at 0x164fd99a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 8
mov r9, qword [rsp + 0x10]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x164fd9a01
lea r8, [r9 + 8]
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 0x164fd99c0
mov ecx, dword [r9]
jmp 0x164fd9ae8
cmp ecx, 0x4e0
jb 0x164fd9ae8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
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 [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x164fd9a20
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
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 [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x164fd9a70
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 0x164ff2600
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rsp + 0x50], rax
movaps xmm0, xmm1
mov rsi, r8
movaps xmm6, xmm1
mov rbx, rcx
call fcn.164ff27a0
test rax, rax
je 0x164ff2643
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 0x10], rax
mov byte [rbx + 8], 0
jmp 0x164ff2783
lea r9, [rsp + 0x20]
mov qword [rsp + 0x70], rdi
lea r8, [rsp + 0x28]
movaps xmm0, xmm6
lea rdx, [rsp + 0x30]
call fcn.164ff2580
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x164ff2670
mov edi, dword [rsp + 0x20]
mov rcx, rsi
mov eax, edi
cdq
xor eax, edx
sub eax, edx
cdqe
add r8, rax
lea rdx, [r8*2 + 8]
call fcn.164ff1a20
mov r10, rax
test rax, rax
jne 0x164ff26bb
lea rax, [0x1650a825c]
mov byte [rbx + 8], r10b
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 0x10], rax
jmp 0x164ff277e
xorps xmm0, xmm0
mov r8, r10
comisd xmm0, xmm6
jbe 0x164ff26d4
mov eax, 0x2d
lea r8, [r10 + 2]
mov word [r10], ax
mov r9, qword [rsp + 0x28]
mov ecx, 0x30
test edi, edi
jg 0x164ff26f0
mov word [r8], cx
add r8, 2
jmp 0x164ff2711
movzx eax, byte [r9]
test al, al
je 0x164ff26fd
inc r9
jmp 0x164ff2700
movzx eax, cl
movsx eax, al
dec edi
mov word [r8], ax
add r8, 2
test edi, edi
jg 0x164ff26f0
cmp byte [r9], 0
je 0x164ff2767
mov eax, 0x2e
mov word [r8], ax
add r8, 2
test edi, edi
jns 0x164ff273b
neg edi
movzx eax, cx
mov edx, edi
mov rdi, r8
mov ecx, edx
rep stosw word [rdi], ax
lea r8, [r8 + rdx*2]
movzx eax, byte [r9]
test al, al
je 0x164ff2767
nop dword [rax]
nop word [rax + rax]
movsx eax, al
lea r9, [r9 + 1]
mov word [r8], ax
add r8, 2
movzx eax, byte [r9]
test al, al
jne 0x164ff2750
xor eax, eax
mov word [r8], ax
sub r8, r10
sar r8, 1
mov qword [rbx + 0x10], r8
mov qword [rbx], r10
mov byte [rbx + 8], 1
mov rdi, qword [rsp + 0x70]
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.165001080
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rsi
pop rbx
ret

Function at 0x164ff5690
Capabilities:
Hash data using murmur3

Disassembly:
mov qword [rsp + 8], rbx
mov eax, r8d
lea r10, [rdx - 1]
shr eax, 0x10
mov rbx, rcx
xor eax, r8d
mov r11, r8
imul r9d, eax, 0x85ebca6b
mov eax, r9d
shr eax, 0xd
xor eax, r9d
imul eax, eax, 0xc2b2ae35
mov edx, eax
shr rax, 0x10
xor rax, rdx
and rax, r10
xor ecx, ecx
nop dword [rax]
mov rdx, qword [rbx + rax*8]
lea r8, [rbx + rax*8]
test rdx, rdx
je 0x164ff56fb
cmp rdx, r11
je 0x164ff56f3
inc rax
add rax, rcx
inc rcx
and rax, r10
cmp rcx, r10
jbe 0x164ff56d0
xor al, al
mov rbx, qword [rsp + 8]
ret
mov rbx, qword [rsp + 8]
mov al, 1
mov qword [r8], r11
ret

Function at 0x164ff5710
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
xor eax, eax
movzx ecx, word [rcx]
test cx, cx
je 0x164ff573f
nop dword [rax]
movzx edx, cx
lea r8, [r8 + 2]
add edx, eax
imul eax, edx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
movzx ecx, word [r8]
test cx, cx
jne 0x164ff5720
lea ecx, [rax + rax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret
Function at 0x164ff5bb0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r12d, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
test r8, r8
jne 0x164ff5bef
call fcn.164ff0e00
xor edi, edi
mov dword [rbx], 1
mov qword [rbx + 8], rdi
mov rax, rbx
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
xor edi, edi
mov qword [rsp + 0x88], rsi
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x90], rdi
mov rcx, r14
call fcn.164ff5170
mov esi, eax
test eax, eax
je 0x164ff5c2a
mov rcx, rbx
call fcn.164ff0e00
mov dword [rbx], esi
mov qword [rbx + 8], rdi
jmp 0x164ff5cf7
mov qword [rsp + 0x80], rbp
mov rbp, qword [rsp + 0x90]
lea rcx, [rbp + 2]
call qword [section..data]
mov rsi, rax
test rax, rax
jne 0x164ff5c63
mov rcx, rbx
call fcn.164ff0e00
mov dword [rbx], 3
mov qword [rbx + 8], rdi
jmp 0x164ff5cef
mov r9, r14
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1650227b0
cmp rax, rbp
je 0x164ff5c98
mov rcx, rsi
call qword [fcn.164fe9110]
mov rcx, rbx
call fcn.164ff0e00
mov dword [rbx], 2
mov qword [rbx + 8], rdi
jmp 0x164ff5cef
mov ecx, dword [rsp + 0xa0]
mov r8, rbp
mov rdx, rsi
call fcn.164ff5110
mov r8d, eax
mov rdx, rbp
mov rcx, rsi
call fcn.164ffc900
mov rcx, qword [rsp + 0xa8]
mov r9, rsi
mov qword [rsp + 0x48], rcx
mov rdx, r15
mov byte [rsp + 0x40], 1
mov rcx, rbx
mov byte [rsp + 0x38], 1
mov dword [rsp + 0x30], r8d
mov r8, r15
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
call fcn.164ff5870
mov rbp, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov rax, rbx
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
Function at 0x164ffcae0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp rdx, 0x20
jb 0x164ffca77
mov qword [rsp + 0x40], rbp
movabs rbp, 0x60ea27eeadc0b5d6
mov qword [rsp + 0x48], r12
add rbp, r8
mov qword [rsp + 0x50], r14
lea r12, [rdx - 0x1f]
mov qword [rsp + 0x58], r15
movabs r14, 0xc2b2ae3d27d4eb4f
add r14, r8
add r12, rcx
movabs r15, 0x61c8864e7a143579
add r15, r8
nop dword [rax]
mov rcx, rbx
call fcn.164ffccc0
mov rdx, rax
mov rcx, rbp
call fcn.164ffcc50
lea rcx, [rbx + 8]
mov rbp, rax
call fcn.164ffccc0
mov rdx, rax
mov rcx, r14
call fcn.164ffcc50
lea rcx, [rbx + 0x10]
mov r14, rax
call fcn.164ffccc0
mov rdx, rax
mov rcx, rdi
call fcn.164ffcc50
lea rcx, [rbx + 0x18]
mov rdi, rax
call fcn.164ffccc0
mov rdx, rax
mov rcx, r15
call fcn.164ffcc50
add rbx, 0x20
mov r15, rax
cmp rbx, r12
jb 0x164ffc9b0
mov rcx, rax
mov rdx, rbp
rol rcx, 0x12
mov rax, rdi
rol rax, 0xc
add rcx, rax
mov rax, r14
rol rax, 7
add rcx, rax
mov rax, rbp
rol rax, 1
add rcx, rax
call fcn.164ffcc10
mov rcx, rax
mov rdx, r14
call fcn.164ffcc10
mov rcx, rax
mov rdx, rdi
call fcn.164ffcc10
mov rcx, rax
mov rdx, r15
call fcn.164ffcc10
mov r15, qword [rsp + 0x58]
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
jmp 0x164ffca84
movabs rax, 0x27d4eb2f165667c5
add rax, r8
lea rcx, [rax + rsi]
mov r9d, 1
mov r8, rsi
mov rdx, rbx
add rsp, 0x20
pop rdi
pop rsi
pop rbx
jmp 0x164ffcae0
mov rax, rcx
shr rax, 0x21
xor rax, rcx
movabs rcx, 0xc2b2ae3d27d4eb4f
imul rax, rcx
mov rcx, rax
shr rcx, 0x1d
xor rcx, rax
movabs rax, 0x165667b19e3779f9
imul rcx, rax
mov rax, rcx
shr rax, 0x20
xor rax, rcx
ret
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r15
sub rsp, 0x20
mov rsi, r8
mov qword [rsp + 0x50], r14
and esi, 0x1f
mov r14d, r9d
mov rdi, rdx
mov rbx, rcx
movabs r15, 0x9e3779b185ebca87
cmp rsi, 8
jb 0x164ffcb71
mov qword [rsp + 0x40], rbp
mov ebp, esi
shr rbp, 3
imul rax, rbp, 0xfffffffffffffff8
mov qword [rsp + 0x48], r12
movabs r12, 0x7a1435883d4d519d
add rsi, rax
cmp r14d, 1
jne 0x164ffcb42
mov rcx, rdi
call fcn.164ffccc0
jmp 0x164ffcb45
mov rax, qword [rdi]
mov rdx, rax
xor ecx, ecx
add rdi, 8
call fcn.164ffcc50
xor rbx, rax
rol rbx, 0x1b
imul rbx, r15
sub rbx, r12
sub rbp, 1
jne 0x164ffcb32
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
cmp rsi, 4
jb 0x164ffcbb9
cmp r14d, 1
jne 0x164ffcb87
mov rcx, rdi
call fcn.164ffcca0
jmp 0x164ffcb89
mov eax, dword [rdi]
mov eax, eax
add rdi, 4
imul rax, r15
xor rbx, rax
movabs rax, 0xc2b2ae3d27d4eb4f
rol rbx, 0x17
imul rbx, rax
movabs rax, 0x165667b19e3779f9
add rbx, rax
sub rsi, 4
mov r14, qword [rsp + 0x50]
test rsi, rsi
je 0x164ffcbec
movabs rcx, 0x27d4eb2f165667c5
nop dword [rax]
movzx eax, byte [rdi]
lea rdi, [rdi + 1]
imul rax, rcx
xor rbx, rax
rol rbx, 0xb
imul rbx, r15
sub rsi, 1
jne 0x164ffcbd0
mov rcx, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rdi
pop rsi
jmp 0x164ffcaa0
Function at 0x1650000a0
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 0x1650000da
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1650000df
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 0x165000128
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x165095650]
cmp byte [rcx + rax], 0
je 0x165000128
dec r8
sub rdx, 1
jne 0x16500010e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x16502ad78
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.165001d20
sub rsp, rax
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.165030a5c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x16502adc7
mov rax, rbp
jmp 0x16502aecf
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, [0x164e40000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x37b2e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.165032cf4
mov r13, rax
lea rax, [0x164e40000]
mov rcx, qword [rax + rbx*8 + 0x37b2e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x16502aecb
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 0x16502aecb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.165032cf4
test rax, rax
js 0x16502aecb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x16502aecb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x16502aebd
lea r8, [0x164e40000]
cmp rcx, rdx
jae 0x16502aebd
cmp byte [rcx], 0xd
jne 0x16502aea3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x16502aeb2
cmp byte [rcx + 1], 0xa
jne 0x16502aeb2
inc rcx
jmp 0x16502aeb2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x30b640]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x16502ae85
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x16502aecf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.165001080
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 0x165032fd8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1651bb2e0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x165033036
cmp word [rdx], r12w
jne 0x165033036
or byte [rax + r8*8 + 0x38], cl
jmp 0x16503303c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x165033197
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x165033172
lea r9, [rcx + 2]
cmp ax, r13w
je 0x165033075
mov rcx, r9
jmp 0x165033098
cmp r9, rdx
jae 0x1650330af
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x165033059
jmp 0x165033197
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x16503316c
cmp dword [rsp + 0x80], edi
je 0x16503316c
mov rdx, r14
lea r11, [0x1651bb2e0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x165033145
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x165033118
mov word [rbx], r12w
jmp 0x165033193
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x165033121
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x165033193
cmp word [rsp + 0x70], r12w
jne 0x165033152
cmp rbx, rsi
je 0x165033112
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.165032cfc
cmp word [rsp + 0x70], r12w
je 0x165033197
mov word [rbx], r13w
jmp 0x165033193
lea r11, [0x1651bb2e0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x16503318f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x165033197
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1650339ec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x165033a1e
call fcn.165016680
mov dword [rax], 0x16
call fcn.165016400
jmp 0x165033b3d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x165033b3d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x165033b3d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x165033a4d
lock or dword [rcx + 0x14], 0x10
jmp 0x165033b3d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x165033a61
call fcn.165033b58
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.165030a5c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.165033484
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x165033b2b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x165033af6
mov rcx, rsi
call fcn.165030a5c
cmp eax, edi
je 0x165033ae1
mov rcx, rsi
call fcn.165030a5c
cmp eax, 0xfffffffe
je 0x165033ae1
mov rcx, rsi
call fcn.165030a5c
movsxd rbx, eax
lea r14, [0x1651bb2e0]
mov rcx, rsi
sar rbx, 6
call fcn.165030a5c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x165033ae8
lea rdx, [0x16514b5f0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x165033af6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x165033b1a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x165033b1a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x165033b1a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x165033b40
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x16503bb28
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 0x16503bb58
xor eax, eax
jmp 0x16503bc1b
mov rbp, rbx
cmp word [rax], si
je 0x16503bb7d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x16503bb64
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x16503bb60
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.16503b060
movsxd r14, eax
test eax, eax
jne 0x16503bbbb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x16503bb51
mov rcx, r14
call fcn.16502d924
mov rdi, rax
test rax, rax
jne 0x16503bbd4
xor ecx, ecx
call fcn.16502d8e8
jmp 0x16503bbb0
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.16503b060
test eax, eax
jne 0x16503bc05
mov rcx, rdi
call fcn.16502d8e8
jmp 0x16503bc0f
xor ecx, ecx
call fcn.16502d8e8
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 0x16503bc38
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 0x16503bcbf
mov rsi, rbx
cmp word [rax], bp
je 0x16503bc7e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x16503bc68
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x16503bc64
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.16502d924
mov rdi, rax
test rax, rax
je 0x16503bcac
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.16503fa90
mov rbp, rdi
xor ecx, ecx
call fcn.16502d8e8
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 0x16503eff4
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.165032cfc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.165032cfc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x16503f144
cmp rax, 0xffffffffffffffff
je 0x16503f144
xor edi, edi
test rbp, rbp
jle 0x16503f0ef
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.16502d870
mov rbx, rax
test rax, rax
jne 0x16503f07c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x16503f0e5
mov edx, 0x8000
mov ecx, r14d
call fcn.16503ee7c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.165032734
cmp eax, 0xffffffff
je 0x16503f0c5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x16503f08c
mov edx, r15d
mov ecx, r14d
call fcn.16503ee7c
jmp 0x16503f0e5
cmp byte [rsi + 0x38], dil
je 0x16503f0dc
cmp dword [rsi + 0x34], 5
jne 0x16503f0dc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.OLEAUT32.dll_DosDateTimeToVariantTime
cmp byte [rsi + 0x30], dil
je 0x16503f0e5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.16502d8e8
jmp 0x16503f158
jns 0x16503f158
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.165032cfc
cmp rax, 0xffffffffffffffff
jne 0x16503f110
cmp byte [rsi + 0x30], dil
je 0x16503f158
mov edi, dword [rsi + 0x2c]
jmp 0x16503f158
mov ecx, r14d
call fcn.16503d014
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x16503f158
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.OLEAUT32.dll_DosDateTimeToVariantTime
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.OLEAUT32.dll_DosDateTimeToVariantTime
jmp 0x16503f158
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x16503f151
mov eax, dword [rsi + 0x2c]
jmp 0x16503f156
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.165032cfc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x16503f740
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x16503f768
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x16503f768
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002994
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
xor r12d, r12d
mov r15d, r8d
xor eax, eax
mov rbx, rdx
mov rsi, rcx
lock cmpxchg qword [rcx], r12
je 0x1400029fb
or rdi, 0xffffffffffffffff
cmp rax, rdi
jne 0x1400029da
xor eax, eax
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
or rdi, 0xffffffffffffffff
mov qword [rbp + 0x188], r12
test r15b, 1
je 0x140002a1a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jmp 0x140002b5f
bt qword [0x14000b3d0], 0
lea rdx, str.LoadLibraryExW
lea rcx, [0x1403f8078]
call fcn.1400028c8
mov r14, rax
test rax, rax
je 0x1400029d8
mov r13d, 2
test r13b, r15b
je 0x140002a51
mov r8d, r13d
jmp 0x140002b57
test r15b, 4
je 0x140002a5f
xor r8d, r8d
jmp 0x140002b57
bt qword [0x14000b3b8], 0
lea rdx, str.AddDllDirectory
lea rcx, [0x1403f8060]
call fcn.1400028c8
test rax, rax
jne 0x140002b51
bt qword [0x14000b3b0], 0
lea rdx, str.LdrLoadDll
lea rcx, [0x1403f8058]
call fcn.1400028c8
mov r15, rax
test rax, rax
je 0x1400029d8
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x140002a57
mov rdx, rdi
mov rax, rbx
mov rcx, r12
test rbx, rbx
je 0x140002af7
cmp word [rax], r12w
je 0x140002af7
inc rcx
add rax, r13
sub rdx, 1
jne 0x140002ae5
add rcx, rcx
mov qword [rsp + 0x28], rbx
movzx eax, cx
lea r9, [rbp + 0x188]
mov edx, 0xffff
lea r8, [rsp + 0x20]
cmp rcx, rdx
cmova ax, dx
mov word [rsp + 0x20], ax
lea rax, [rcx + 2]
add cx, r13w
cmp rax, rdx
cmova cx, dx
xor edx, edx
mov word [rsp + 0x22], cx
lea rcx, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call r15
mov rax, qword [rbp + 0x188]
jmp 0x140002b66
mov r8d, 0x800
xor edx, edx
mov rcx, rbx
call r14
mov qword [rbp + 0x188], rax
test rax, rax
jne 0x140002b73
xchg qword [rsi], rdi
jmp 0x1400029d8
xchg qword [rsi], rax
test rax, rax
je 0x140002b88
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rbp + 0x188]
jmp 0x1400029da