joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002ad00
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x14008b020]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rcx, [rbp + 0x2f]
call fcn.140025560
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
mov r8d, 4
lea rdx, [0x140072a88]
lea rcx, [rbp - 0x11]
call fcn.140004560
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
mov r8d, 0xf
lea rdx, str.AppDataMigrated
lea rcx, [rbp + 0xf]
call fcn.140004560
nop
xor ebx, ebx
mov qword [rbp - 0x19], rbx
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rdx, qword [rbp + 0x2f]
mov qword [rsp + 0x40], rbx
lea rax, [rbp - 0x19]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002ae0b
mov eax, dword [rbp - 1]
lea eax, [rax*2 + 2]
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rdx, qword [rbp + 0xf]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
lea r9d, [rbx + 1]
xor r8d, r8d
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x14002ae4b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ae46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002af1d
call fcn.14003d1f0
movdqa xmm0, xmmword [0x14007dc60]
movdqu xmmword [rbp + 0x1f], xmm0
mov word [rbp + 0xf], bx
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14002ae9c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ae97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002af23
call fcn.14003d1f0
movdqa xmm0, xmmword [0x14007dc60]
movdqu xmmword [rbp - 1], xmm0
mov word [rbp - 0x11], bx
mov rdx, qword [rbp + 0x47]
cmp rdx, 8
jb 0x14002aee9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002aee4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002af17
call fcn.14003d1f0
movdqa xmm0, xmmword [0x14007dc60]
movdqu xmmword [rbp + 0x3f], xmm0
mov word [rbp + 0x2f], bx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14003d1d0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rbp
ret
call fcn.14004930c
nop
call fcn.14004930c
nop
call fcn.14004930c
int3
Function at 0x14002b100
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x14008b020]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rcx, [rbp + 0x2f]
call fcn.140025560
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
mov r8d, 4
lea rdx, [0x140072a88]
lea rcx, [rbp - 0x11]
call fcn.140004560
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
mov r8d, 0x14
lea rdx, str.LocalAppDataMigrated
lea rcx, [rbp + 0xf]
call fcn.140004560
nop
xor ebx, ebx
mov qword [rbp - 0x19], rbx
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rdx, qword [rbp + 0x2f]
mov qword [rsp + 0x40], rbx
lea rax, [rbp - 0x19]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002b20b
mov eax, dword [rbp - 1]
lea eax, [rax*2 + 2]
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rdx, qword [rbp + 0xf]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
lea r9d, [rbx + 1]
xor r8d, r8d
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x14002b24b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b246
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b31d
call fcn.14003d1f0
movdqa xmm0, xmmword [0x14007dc60]
movdqu xmmword [rbp + 0x1f], xmm0
mov word [rbp + 0xf], bx
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14002b29c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b297
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b323
call fcn.14003d1f0
movdqa xmm0, xmmword [0x14007dc60]
movdqu xmmword [rbp - 1], xmm0
mov word [rbp - 0x11], bx
mov rdx, qword [rbp + 0x47]
cmp rdx, 8
jb 0x14002b2e9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b2e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b317
call fcn.14003d1f0
movdqa xmm0, xmmword [0x14007dc60]
movdqu xmmword [rbp + 0x3f], xmm0
mov word [rbp + 0x2f], bx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14003d1d0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rbp
ret
call fcn.14004930c
nop
call fcn.14004930c
nop
call fcn.14004930c
int3
Function at 0x14002b500
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x14008b020]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rcx, [rbp + 0x2f]
call fcn.140025560
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
mov r8d, 4
lea rdx, [0x140072a88]
lea rcx, [rbp - 0x11]
call fcn.140004560
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
mov r8d, 0x13
lea rdx, [0x1400771e8]
lea rcx, [rbp + 0xf]
call fcn.140004560
nop
xor ebx, ebx
mov qword [rbp - 0x19], rbx
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rdx, qword [rbp + 0x2f]
mov qword [rsp + 0x40], rbx
lea rax, [rbp - 0x19]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002b60b
mov eax, dword [rbp - 1]
lea eax, [rax*2 + 2]
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rdx, qword [rbp + 0xf]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
lea r9d, [rbx + 1]
xor r8d, r8d
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x14002b64b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b646
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b71d
call fcn.14003d1f0
movdqa xmm0, xmmword [0x14007dc60]
movdqu xmmword [rbp + 0x1f], xmm0
mov word [rbp + 0xf], bx
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14002b69c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b697
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b723
call fcn.14003d1f0
movdqa xmm0, xmmword [0x14007dc60]
movdqu xmmword [rbp - 1], xmm0
mov word [rbp - 0x11], bx
mov rdx, qword [rbp + 0x47]
cmp rdx, 8
jb 0x14002b6e9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b6e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b717
call fcn.14003d1f0
movdqa xmm0, xmmword [0x14007dc60]
movdqu xmmword [rbp + 0x3f], xmm0
mov word [rbp + 0x2f], bx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14003d1d0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rbp
ret
call fcn.14004930c
nop
call fcn.14004930c
nop
call fcn.14004930c
int3
Function at 0x14002d2a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14008b020]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor edi, edi
lea rdx, [rsp + 0x48]
call fcn.140029e60
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400038b0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14002d316
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002d311
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002d3c4
call fcn.14003d1f0
movdqa xmm0, xmmword [0x14007dc60]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], di
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002d34d
test al, 0x10
je 0x14002d34d
mov bl, 1
jmp 0x14002d34f
xor bl, bl
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14002d38d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002d388
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002d3be
call fcn.14003d1f0
movdqa xmm0, xmmword [0x14007dc60]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], di
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14003d1d0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
call fcn.14004930c
nop
call fcn.14004930c
nop
int3
Function at 0x14002ef40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x80], r14d
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x14002ef75
mov rdx, qword [r8]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov dword [rsp + 0x30], 1
cmp eax, 0xea
jne 0x14002f089
mov edx, dword [rsp + 0x80]
shr rdx, 1
mov rdi, qword [rbx + 0x10]
mov r9, qword [rbx + 0x18]
cmp rdx, rdi
ja 0x14002eff7
mov rax, rbx
cmp r9, 8
jb 0x14002efec
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + rdx*2], r14w
jmp 0x14002f049
mov rcx, rdx
sub rcx, rdi
mov rax, r9
sub rax, rdi
cmp rcx, rax
ja 0x14002f02f
mov qword [rbx + 0x10], rdx
mov r8, rbx
cmp r9, 8
jb 0x14002f018
mov r8, qword [rbx]
lea rdi, [r8 + rdi*2]
test rcx, rcx
je 0x14002f028
movzx eax, r14w
rep stosw word [rdi], ax
mov word [r8 + rdx*2], r14w
jmp 0x14002f049
mov word [rsp + 0x20], r14w
mov r9, rcx
movzx r8d, byte [rsp + 0x70]
mov rdx, rcx
mov rcx, rbx
call fcn.140004690
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002f056
mov rax, qword [rbx]
cmp qword [rsi + 0x18], 8
jb 0x14002f060
mov rsi, qword [rsi]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbx + 0x10]
mov rax, rbx
test rcx, rcx
je 0x14002f143
mov rdi, qword [rbx + 0x18]
cmp rdi, 8
jb 0x14002f0a6
mov rax, qword [rbx]
cmp word [rax + rcx*2 - 2], 0
jne 0x14002f140
lea rdx, [rcx - 1]
cmp rdx, rcx
ja 0x14002f0de
mov rax, rbx
cmp rdi, 8
jb 0x14002f0c7
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + rdx*2], r14w
mov rax, rbx
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, rdi
sub rax, rcx
cmp rax, 0xffffffffffffffff
jb 0x14002f122
mov qword [rbx + 0x10], rdx
mov r8, rbx
cmp rdi, 8
jb 0x14002f0fa
mov r8, qword [rbx]
lea rdi, [r8 + rcx*2]
movzx eax, r14w
movabs rcx, 0x7fffffffffffffff
rep stosw word [rdi], ax
mov word [r8 + rdx*2], r14w
mov rax, rbx
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov word [rsp + 0x20], r14w
mov r9, 0xffffffffffffffff
movzx r8d, byte [rsp + 0x70]
mov rdx, r9
mov rcx, rbx
call fcn.140004690
mov rax, rbx
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140031200
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x140031244
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140031230
ret
Function at 0x140035ee0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x140035fc3
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140035fc3
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140035fe1
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140035fb3
cmp word [rax], 0x5c
jne 0x140035fac
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x140035fac
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140035f97
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x140035fa9
test r8b, 0x10
jne 0x140035fac
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x140035fac
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.140032660
test edi, edi
jne 0x140035f10
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140032650
int3

Function at 0x14003ab34
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14003abac
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14003abac
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14003abac
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14003aba0
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14003abbe
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14003ab8e
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14003abae

Function at 0x14003b714
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14003b798
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140065e30]
cmp byte [rcx + rax], 0
je 0x14003b798
dec r8
sub rdx, 1
jne 0x14003b77e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14003e064
Capabilities:
Parse pe header

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

Function at 0x14004afb8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004ada8
Function at 0x140054f20
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 0x140054fa7
mov rsi, rbx
cmp word [rax], bp
je 0x140054f66
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140054f50
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140054f4c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004ee90
mov rdi, rax
test rax, rax
je 0x140054f94
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003f3a0
mov rbp, rdi
xor ecx, ecx
call fcn.14004ee54
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 0x180003528
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebp, edx
mov rsi, rcx
xor edx, edx
lea rcx, str.kernel32.dll
call qword [sym.imp.ole32.dll_CoLoadLibrary]
mov rdx, rax
lea r8, str.VirtualAlloc
call fcn.18000b3e8
lea rcx, str.8192
mov rdi, rax
call fcn.18001c30c
lea rcx, str.4096
mov ebx, eax
call fcn.18001c30c
or ebx, eax
mov edx, ebp
mov r8d, ebx
mov r9d, 0x40
xor ecx, ecx
call rdi
xor r8d, r8d
mov r9, rax
test rax, rax
je 0x1800035de
test ebp, ebp
je 0x1800035db
mov r10, r9
sub rsi, r9
mov ecx, r8d
mov eax, 0x78787879
imul r8d
inc r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x11
sub ecx, eax
movsxd rax, ecx
lea rcx, str.W_k4h_PZO_Qv6ykm
mov al, byte [rax + rcx]
xor al, byte [rsi + r10]
mov byte [r10], al
inc r10
cmp r8d, ebp
jb 0x1800035a2
mov rax, r9
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18000b3e8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movsxd rax, dword [rdx + 0x3c]
mov r9, rdx
mov rbp, r8
mov ecx, dword [rax + rdx + 0x88]
add rcx, rdx
mov r10d, dword [rcx + 0x20]
mov ebx, dword [rcx + 0x1c]
add r10, rdx
mov edi, dword [rcx + 0x24]
add rbx, rdx
mov esi, dword [rcx + 0x18]
add rdi, rdx
xor edx, edx
test esi, esi
je 0x18000b45a
mov eax, dword [r10]
mov r11, rbp
add rax, r9
sub r11, rax
movzx ecx, byte [rax]
movzx r8d, byte [rax + r11]
sub ecx, r8d
jne 0x18000b44c
inc rax
test r8d, r8d
jne 0x18000b437
test ecx, ecx
je 0x18000b471
inc edx
add r10, 4
cmp edx, esi
jb 0x18000b42b
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rdi + rdx*2]
mov eax, dword [rbx + rcx*4]
add rax, r9
jmp 0x18000b45c
Function at 0x180029c38
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 0x18002995a
call fcn.18001d57c
mov dword [rax], 0x16
call fcn.18001bab0
jmp 0x180029aaa
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180029aaa
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x180029aaa
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x180029989
lock or dword [rcx + 0x14], 0x10
jmp 0x180029aaa
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18002999d
call fcn.18002a038
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x1800299ad
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x1800299b0
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.1800252f8
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.180033804
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x180029a98
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x180029a43
mov rcx, rbx
call fcn.1800252f8
cmp eax, 0xffffffff
je 0x180029a2e
mov rcx, rbx
call fcn.1800252f8
cmp eax, 0xfffffffe
je 0x180029a2e
mov rcx, rbx
call fcn.1800252f8
movsxd rdi, eax
lea rsi, [0x18008c3f0]
mov rcx, rbx
sar rdi, 6
call fcn.1800252f8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x180029a35
lea rdx, [0x18008a250]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180029a43
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x180029a67
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x180029a67
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x180029a67
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x180029a85
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x180029a90
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x180029aaf
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 0x180029924
Function at 0x18002b1c0
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.180011910
sub rsp, rax
mov rax, qword [0x18008a028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800252f8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18002b20f
mov rax, rbp
jmp 0x18002b317
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 + 0x8c3f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18002b6b0
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x8c3f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18002b313
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 0x18002b313
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18002b6b0
test rax, rax
js 0x18002b313
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18002b313
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18002b305
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18002b305
cmp byte [rcx], 0xd
jne 0x18002b2eb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18002b2fa
cmp byte [rcx + 1], 0xa
jne 0x18002b2fa
inc rcx
jmp 0x18002b2fa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x8ab10]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18002b2cd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18002b317
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180011090
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret