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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1401ea904
call fcn.1401d7bc8
mov dword [rax], 0x16
call fcn.1401d7aa8
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401ea8ec
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401ea8ec
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1401ea936
lock or dword [rax + 0x14], 0x10
jmp 0x1401ea8ec
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401ea953
mov rcx, qword [rbp + 0x10]
call fcn.1401f210c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401e176c
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1401ea128
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1401ea9aa
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1401ea8ec
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401eaa16
mov rcx, qword [rbp + 0x10]
call fcn.1401e176c
cmp eax, 0xffffffff
je 0x1401ea9fd
mov rcx, qword [rbp + 0x10]
call fcn.1401e176c
cmp eax, 0xfffffffe
je 0x1401ea9fd
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401e176c
movsxd rdi, eax
lea rsi, [0x1402bb5f0]
mov rcx, rbx
sar rdi, 6
call fcn.1401e176c
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1401eaa04
lea rax, [0x1402aaa50]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401eaa16
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1401eaa4c
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401eaa48
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401eaa48
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1401ea8ef
jmp 0x1401ea8bc

Function at 0x1401ead1c
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1401eacf9
call fcn.1401d7bc8
mov dword [rax], 0x16
call fcn.1401d7aa8
or eax, 0xffffffff
jmp 0x1401ead16
sub dword [rcx + 0x10], 1
jns 0x1401ead08
add rsp, 0x28
jmp fcn.1401eaa64
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1401eacd8
Function at 0x18000ca80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x13c0
call fcn.180067f10
sub rsp, rax
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
call fcn.180066294
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
mov edx, 1
nop dword [rax]
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x34], eax
inc rdx
cmp rdx, 0x270
jb 0x18000cad0
mov dword [rsp + 0x30], 0x270
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], dil
mov dword [rsp + 0x20], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x13d8], rax
mov edi, 0x20
lea rsi, [0x180127120]
nop dword [rax]
mov edx, 0x1a
lea rcx, [rsp + 0x13d8]
call fcn.180034260
movzx r9d, byte [rax + rsi]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x18000cb73
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x18000cb68
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18000cb83
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call fcn.18001b650
sub rdi, 1
jne 0x18000cb30
mov rax, rbx
lea r11, [rsp + 0x13c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180024730
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x1800248bf
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1800171a0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180024884
mov qword [rsp + 0x38], rbp
movabs rdi, 0xcbf29ce484222325
movabs rbp, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
mov edx, r9d
mov rcx, qword [rcx]
xor rdx, rdi
imul rdx, rbp
and r11, rdx
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x180024802
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180024873
mov rdx, qword [r11 + 8]
cmp r9b, byte [rdx + 0x10]
jne 0x18002483b
mov r10, qword [rdx]
cmp r10, rax
je 0x180024835
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180024873
cmp r8, rdx
je 0x18002484f
mov rdx, qword [rdx + 8]
cmp r9b, byte [rdx + 0x10]
je 0x180024899
cmp r8, rdx
jne 0x180024840
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x1800247d0
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180024873
lea rcx, [0x1801285b8]
call fcn.180065a74
int3
Function at 0x180034450
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 0x1800344b1
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 0x180034470
mov ecx, dword [r9]
jmp 0x18003459b
cmp ecx, 0x4e0
jb 0x18003459b
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 0x1800344d0
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 0x180034520
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 0x180065760
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, [0x18011a640]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18006579a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18006579f
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 0x1800657e8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18011a540]
cmp byte [rcx + rax], 0
je 0x1800657e8
dec r8
sub rdx, 1
jne 0x1800657ce
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1800776d0
Capabilities:
Parse pe header

Disassembly:
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 0x18007773f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18007773f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18007773f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18007773f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18007773f
cmp dword [rcx + 0x84], 0xe
jbe 0x18007773f
cmp dword [rcx + 0xf8], 0
je 0x18007773f
mov ecx, ebx
call fcn.1800777f0
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.1800775cc
nop
cmp dword [rbp + 0x20], 0
je 0x18007778d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180077798
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800776d0

Function at 0x1800791dc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800791f2
mov al, 1
jmp 0x180079252
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180079203
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180079250
mov ecx, dword [rcx + 0x18]
nop
call fcn.180085bbc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180079250
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180079250
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180079250
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180079252
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18007eea0
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.180067f10
sub rsp, rax
mov rax, qword [0x180091100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800790bc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18007eeef
mov rax, rbp
jmp 0x18007eff7
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x10dc50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180081884
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x10dc50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18007eff3
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 0x18007eff3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180081884
test rax, rax
js 0x18007eff3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18007eff3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18007efe5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18007efe5
cmp byte [rcx], 0xd
jne 0x18007efcb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18007efda
cmp byte [rcx + 1], 0xa
jne 0x18007efda
inc rcx
jmp 0x18007efda
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x916d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18007efad
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18007eff7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180067ee0
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 0x180080c24
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, [0x18010dc50]
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 0x180080c7b
cmp word [rdx], r13w
jne 0x180080c7b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180080c80
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180080da5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180080dc6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180080cb9
mov rdx, r9
mov word [rbx], cx
jmp 0x180080ce0
cmp r9, r8
jae 0x180080cf0
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 0x180080c9a
jmp 0x180080da5
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 0x180080d9a
cmp dword [rsp + 0x80], esi
je 0x180080d9a
lea r8, [0x18010dc50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180080d72
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180080d42
mov word [rbx], r13w
jmp 0x180080da2
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 0x180080d4f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180080da2
cmp word [rsp + 0x70], r13w
jne 0x180080d7f
cmp rbx, r14
je 0x180080d3c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18008188c
cmp word [rsp + 0x70], r13w
je 0x180080da5
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, [0x18010dc50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180080d9f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180080da5
Function at 0x180084f08
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 0x180084f38
xor eax, eax
jmp 0x180084ffb
mov rbp, rbx
cmp word [rax], si
je 0x180084f5d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180084f44
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180084f40
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.18007c908
movsxd r14, eax
test eax, eax
jne 0x180084f9b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180084f31
mov rcx, r14
call fcn.18007c818
mov rdi, rax
test rax, rax
jne 0x180084fb4
xor ecx, ecx
call fcn.18007c394
jmp 0x180084f90
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.18007c908
test eax, eax
jne 0x180084fe5
mov rcx, rdi
call fcn.18007c394
jmp 0x180084fef
xor ecx, ecx
call fcn.18007c394
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 0x180085018
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 0x18008509f
mov rsi, rbx
cmp word [rax], bp
je 0x18008505e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180085048
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180085044
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18007c818
mov rdi, rax
test rax, rax
je 0x18008508c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18008dee0
mov rbp, rdi
xor ecx, ecx
call fcn.18007c394
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 0x18008816c
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.1800796e0
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 0x18008820d
cmp ebx, dword [rsp + 0x30]
je 0x180088206
test esi, esi
je 0x180088206
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800881e1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800881ee
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800881cb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800881f2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18008820f
mov eax, 1
jmp 0x18008820f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18008d028
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.18008188c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18008188c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18008d178
cmp rax, 0xffffffffffffffff
je 0x18008d178
xor edi, edi
test rbp, rbp
jle 0x18008d123
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18007b534
mov rbx, rax
test rax, rax
jne 0x18008d0b0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18008d119
mov edx, 0x8000
mov ecx, r14d
call fcn.18008ceac
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.18007c08c
cmp eax, 0xffffffff
je 0x18008d0f9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18008d0c0
mov edx, r15d
mov ecx, r14d
call fcn.18008ceac
jmp 0x18008d119
cmp byte [rsi + 0x38], dil
je 0x18008d110
cmp dword [rsi + 0x34], 5
jne 0x18008d110
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18008d119
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18007c394
jmp 0x18008d18c
jns 0x18008d18c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18008188c
cmp rax, 0xffffffffffffffff
jne 0x18008d144
cmp byte [rsi + 0x30], dil
je 0x18008d18c
mov edi, dword [rsi + 0x2c]
jmp 0x18008d18c
mov ecx, r14d
call fcn.180085bbc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18008d18c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18008d18c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18008d185
mov eax, dword [rsi + 0x2c]
jmp 0x18008d18a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18008188c
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 0x18008da80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18008daa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18008daa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002350
Capabilities:
Encode data using xor

Disassembly:
movabs eax, dword [0x99c985311f6addc7]
enter 0xffffffffffff90ac, 0x78

Function at 0x140015098
Capabilities:
Encode data using xor

Disassembly:
dec dl
pop rsp
jnp 0x1400150eb
pop rbp
xchg edx, eax
test al, 0x37
push rbx
add eax, 0xed9a8d5e
add eax, 0x1feb8be
stc
sub bh, byte [rax + 0x2c65ad5e]
add dword [rdx], 0xca77f76b
xor al, 0x42
pop rbx
xchg ebp, eax
call 0x1b75c94c1
jo 0x1400150a0
pushfq
mov ds, edi
mov esi, dword [rdx]
push rcx
sahf
add edi, ebp
xor ebx, dword [rdi]
invalid

Function at 0x140017894
Capabilities:
Encode data using xor

Disassembly:
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], al
nop dword [rax + rax]
jrcxz 0x140017846
push rcx
mov ch, bl
invalid

Function at 0x14002846c
Capabilities:
Encode data using xor

Disassembly:
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], al
nop
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
add byte [rsi - 0x70], ah
insb byte [rdi], dx
add edi, esi
xchg ebx, eax
insb byte [rdi], dx
and ebp, eax
lea esi, [rcx + 0x7c00820f]
mov esp, 0xfb21a8cc
jno 0x1400284a7
hlt

Function at 0x14002b6b0
Capabilities:
Encode data using xor

Disassembly:
mul byte [rcx + 0x1e951b09]
or eax, 0x73a6b41a
enter 0x6cc7, 0x40
fsub dword [rsi - 0x78]
invalid