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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140013f74
mov r15, qword [rsp + 0x60]
lea r9d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x140013f74
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r9w, dx
jae 0x140013e7b
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x140013f9b
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140013e92
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x140013e92
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140013ea5
movzx r8d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x140013ef2
mov r8d, eax
cmp eax, 0x800
jae 0x140013ebf
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x140013ef2
cmp eax, 0x10000
jae 0x140013ed9
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x140013ef2
shr r8d, 0x12
mov r10d, 3
movzx r11d, sil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r9d
cmp rdx, rcx
jl 0x140013f74
add qword [r14], 2
test sil, sil
jne 0x140013f13
cmp r10d, 3
jae 0x140013f1f
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
test r9d, r9d
je 0x140013f51
lea r8d, [r10 + r10*2]
add r8d, r8d
nop dword [rax + rax]
sub r8d, 6
mov edx, eax
mov ecx, r8d
dec r9d
shr edx, cl
mov rcx, qword [rbx]
and dl, 0x3f
or dl, 0x80
mov byte [rcx], dl
inc qword [rbx]
test r9d, r9d
jg 0x140013f30
shr eax, 0xa
mov r9d, 1
test sil, sil
mov ecx, r9d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x140013e2f
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x140013f82
Function at 0x140020e20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push r14
lea rbp, [rsp - 0x20a0]
mov eax, 0x21a0
call fcn.14007ecb0
sub rsp, rax
mov rax, qword [0x1400b1010]
xor rax, rsp
mov qword [rbp + 0x2090], rax
xor ebx, ebx
mov qword [rsp + 0x21d0], rdi
mov rdi, rcx
mov r14d, ebx
test rcx, rcx
je 0x140020fa0
cmp qword [rcx + 0xe30], rbx
jne 0x140020eef
mov qword [rsp + 0x21c8], rsi
mov esi, ebx
nop dword [rax + rax]
mov r9d, esi
lea r8, str..pipe68327F92_4C65_4484_860D_DA80B61FCDBA.SoundResearch_Log__i
mov edx, 0x1000
lea rcx, [rbp + 0x90]
call fcn.140020bc0
mov qword [rsp + 0x30], rbx
lea rcx, [rbp + 0x90]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140020eda
inc esi
mov qword [rdi + 0xe30], rbx
cmp esi, 0xa
jl 0x140020e80
jmp 0x140020ee7
mov qword [rdi + 0xe30], rax
mov r14d, 1
mov rsi, qword [rsp + 0x21c8]
cmp qword [rdi + 0xe28], rbx
jne 0x140020fa0
lea r8, str.ISECOMAPI
lea rdx, str.c:SoundResearchLogs_s.log
lea rcx, [rbp + 0x90]
call fcn.140021f10
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x90]
mov dword [rsp + 0x20], 3
lea edx, [r9 + 4]
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140020f99
lea rcx, [rdi + 0x1e40]
mov qword [rdi + 0xe28], rax
lea rdx, [rbp + 0x80]
mov byte [rdi + 0xe20], 1
mov r14d, 1
mov dword [rbp + 0x80], 0xa7192d5f
mov dword [rbp + 0x84], 0x9a374fde
call fcn.14002a960
lea rcx, [rdi + 0x2e88]
lea rdx, [rbp + 0x80]
call fcn.14002a960
jmp 0x140020fa0
mov qword [rdi + 0xe28], rbx
lea r8, [rsp + 0x48]
mov dword [rsp + 0x48], ebx
lea rdx, [rsp + 0x60]
xor ecx, ecx
call fcn.140020c70
mov eax, dword [rsp + 0x48]
mov rdi, qword [rsp + 0x21d0]
cmp eax, 0xbd
je 0x14002107c
cmp eax, 0xabcdabcd
je 0x14002107c
lea r9, [0x14009c050]
mov edx, 0x1000
lea r8, str.SoftwareSoundResearchLogging_s
lea rcx, [rbp + 0x90]
call fcn.140020bc0
lea rax, [rsp + 0x40]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x90]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002107c
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rbp + 0x80]
mov dword [rsp + 0x50], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ISECOMAPI
mov dword [rsp + 0x4c], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140021071
cmp dword [rbp + 0x80], ebx
setne bl
or r14d, ebx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r14d
mov rcx, qword [rbp + 0x2090]
xor rcx, rsp
call fcn.14002bca0
add rsp, 0x21a0
pop r14
pop rbx
pop rbp
ret
Function at 0x140026450
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rdi, [rcx + 0x28]
mov qword [rsp + 0x20], rdi
mov byte [rsp + 0x28], 1
mov rcx, rdi
call fcn.1400343f4
test eax, eax
jne 0x1400265b0
lea rsi, [rbx + 0x78]
mov rdx, qword [rsp + 0x58]
movzx ecx, dl
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movabs r8, 0x100000001b3
imul rcx, r8
movzx eax, byte [rsp + 0x59]
xor rcx, rax
imul rcx, r8
movzx eax, byte [rsp + 0x5a]
xor rcx, rax
imul rcx, r8
movzx eax, byte [rsp + 0x5b]
xor rcx, rax
imul rcx, r8
movzx eax, byte [rsp + 0x5c]
xor rcx, rax
imul rcx, r8
movzx eax, byte [rsp + 0x5d]
xor rcx, rax
imul rcx, r8
movzx eax, byte [rsp + 0x5e]
xor rcx, rax
imul rcx, r8
movzx eax, byte [rsp + 0x5f]
xor rcx, rax
imul rcx, r8
mov r8, qword [rsi + 0x30]
and r8, rcx
mov r9, qword [rsi + 0x18]
mov rcx, r8
add rcx, rcx
mov rcx, qword [r9 + rcx*8 + 8]
mov rax, qword [rsi + 8]
cmp rcx, rax
je 0x14002655e
add r8, r8
mov r8, qword [r9 + r8*8]
cmp rdx, qword [rcx + 0x10]
je 0x14002653f
nop dword [rax]
cmp rcx, r8
je 0x14002655e
mov rcx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
jne 0x140026530
test rcx, rcx
je 0x14002655e
cmp rcx, rax
je 0x14002655e
mov rdx, qword [rcx + 0x18]
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax]
jmp 0x140026596
mov ecx, 0xc0
call fcn.14002bcc8
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.1400258e0
mov rbx, rax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140029010
mov rdx, qword [rax]
mov qword [rdx + 0x18], rbx
mov rcx, rdi
call fcn.140034454
mov al, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov ecx, eax
call fcn.140034560
int3
Function at 0x1400265c0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
lea rdi, [rcx + 0x28]
mov qword [rsp + 0x20], rdi
mov byte [rsp + 0x28], 1
mov rcx, rdi
call fcn.1400343f4
test eax, eax
jne 0x1400266f8
movzx edx, bl
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
movzx eax, byte [rsp + 0x49]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x4a]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x4b]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x4c]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x4d]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x4e]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x4f]
xor rdx, rax
imul rdx, rcx
mov rcx, qword [rsi + 0xa8]
and rcx, rdx
shl rcx, 4
add rcx, qword [rsi + 0x90]
mov rax, qword [rcx + 8]
mov rdx, qword [rsi + 0x80]
cmp rax, rdx
je 0x1400266a9
mov rcx, qword [rcx]
cmp rbx, qword [rax + 0x10]
je 0x1400266ab
cmp rax, rcx
je 0x1400266a9
mov rax, qword [rax + 8]
cmp rbx, qword [rax + 0x10]
jne 0x140026698
jmp 0x1400266ab
xor eax, eax
test rax, rax
cmove rax, rdx
cmp rax, rdx
je 0x1400266de
mov r8, qword [rax + 0x18]
mov rax, qword [r8]
movsxd rcx, dword [rax + 4]
add rcx, r8
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test eax, eax
jne 0x1400266de
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 0x78]
call fcn.140028c10
nop
mov rcx, rdi
call fcn.140034454
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ecx, eax
call fcn.140034560
int3
Function at 0x140028c10
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
movzx r8d, byte [rdx]
mov r10, rcx
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r8, rax
mov rbx, rdx
movzx eax, byte [rdx + 1]
mov rdi, qword [r10 + 0x18]
mov r9, qword [r10 + 8]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 2]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 3]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 4]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 5]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 6]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 7]
imul r8, rcx
xor r8, rax
imul r8, rcx
and r8, qword [r10 + 0x30]
mov r11, r8
shl r11, 4
add r11, rdi
mov rcx, qword [r11 + 8]
cmp rcx, r9
je 0x140028d36
mov rax, qword [rbx]
mov rdx, qword [r11]
cmp rax, qword [rcx + 0x10]
je 0x140028ccf
nop dword [rax + rax]
cmp rcx, rdx
je 0x140028d36
mov rcx, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
jne 0x140028cc0
test rcx, rcx
je 0x140028d36
add r8, r8
mov rax, qword [rdi + r8*8]
cmp qword [r11 + 8], rcx
jne 0x140028cfa
cmp rax, rcx
jne 0x140028cf0
mov qword [rdi + r8*8], r9
mov qword [r11 + 8], r9
jmp 0x140028d06
mov r9, qword [rcx + 8]
mov qword [r11 + 8], r9
jmp 0x140028d06
cmp rax, rcx
jne 0x140028d06
mov rax, qword [rcx]
mov qword [rdi + r8*8], rax
mov rdx, qword [rcx]
dec qword [r10 + 0x10]
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov edx, 0x20
call fcn.14002bcc0
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140029780
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140029961
lea rax, [rdx - 1]
or rax, rdi
bsr rcx, rax
inc ecx
shl rdi, cl
mov rbx, qword [rsi + 8]
lea rdx, [rdi + rdi]
mov r8, rbx
lea rcx, [rsi + 0x18]
call fcn.140028e70
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rdi
mov qword [rsp + 0x20], rsi
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x14002991f
movabs rbp, 0xcbf29ce484222325
movabs rdi, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rdx]
movzx r9d, byte [rcx + 0x10]
xor r9, rbp
imul r9, rdi
movzx eax, byte [rcx + 0x11]
xor r9, rax
imul r9, rdi
movzx eax, byte [rcx + 0x12]
xor r9, rax
imul r9, rdi
movzx eax, byte [rcx + 0x13]
xor r9, rax
imul r9, rdi
movzx eax, byte [rcx + 0x14]
xor r9, rax
imul r9, rdi
movzx eax, byte [rcx + 0x15]
xor r9, rax
imul r9, rdi
movzx eax, byte [rcx + 0x16]
xor r9, rax
imul r9, rdi
movzx eax, byte [rcx + 0x17]
xor r9, rax
imul r9, rdi
mov r11, qword [rsi + 0x30]
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14002989c
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x140029913
mov rax, qword [r11 + 8]
mov r8, qword [rcx + 0x10]
cmp r8, qword [rax + 0x10]
jne 0x1400298d9
mov r8, qword [rax]
cmp r8, rcx
je 0x1400298d3
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x140029913
cmp r9, rax
je 0x1400298ef
nop
mov rax, qword [rax + 8]
cmp r8, qword [rax + 0x10]
je 0x14002993b
cmp r9, rax
jne 0x1400298e0
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x140029820
mov qword [rsp + 0x20], 0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rax]
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
jmp 0x140029913
lea rcx, str.invalid_hash_bucket_count
call fcn.14002cbe8
int3
Function at 0x14002a6e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r11, rdx
lea rdi, [rcx + 8]
shr r11, 0x20
mov rbx, rdx
mov esi, 2
nop dword [rax]
nop word [rax + rax]
xor ebx, dword [rdi - 8]
mov eax, ebx
shr eax, 8
mov r8d, eax
shr rax, 8
mov rdx, rax
movzx eax, al
shr rdx, 8
mov r10d, dword [rcx + rdx*4 + 0x48]
add r10d, dword [rcx + rax*4 + 0x448]
movzx eax, r8b
xor r10d, dword [rcx + rax*4 + 0x848]
movzx eax, bl
add r10d, dword [rcx + rax*4 + 0xc48]
xor r10d, r11d
xor r10d, dword [rdi - 4]
mov eax, r10d
shr eax, 8
mov r8d, eax
shr rax, 8
mov rdx, rax
movzx eax, al
shr rdx, 8
mov r11d, dword [rcx + rdx*4 + 0x48]
add r11d, dword [rcx + rax*4 + 0x448]
movzx eax, r8b
xor r11d, dword [rcx + rax*4 + 0x848]
movzx eax, r10b
add r11d, dword [rcx + rax*4 + 0xc48]
xor r11d, ebx
xor r11d, dword [rdi]
mov eax, r11d
shr eax, 8
mov r8d, eax
shr rax, 8
mov rdx, rax
movzx eax, al
shr rdx, 8
mov ebx, dword [rcx + rdx*4 + 0x48]
add ebx, dword [rcx + rax*4 + 0x448]
movzx eax, r8b
xor ebx, dword [rcx + rax*4 + 0x848]
movzx eax, r11b
add ebx, dword [rcx + rax*4 + 0xc48]
xor ebx, r10d
xor ebx, dword [rdi + 4]
mov eax, ebx
shr eax, 8
mov r8d, eax
shr rax, 8
mov rdx, rax
movzx eax, al
shr rdx, 8
mov r10d, dword [rcx + rdx*4 + 0x48]
add r10d, dword [rcx + rax*4 + 0x448]
movzx eax, r8b
xor r10d, dword [rcx + rax*4 + 0x848]
movzx eax, bl
add r10d, dword [rcx + rax*4 + 0xc48]
xor r10d, r11d
xor r10d, dword [rdi + 8]
mov eax, r10d
shr eax, 8
mov r8d, eax
shr rax, 8
mov rdx, rax
movzx eax, al
shr rdx, 8
mov r11d, dword [rcx + rdx*4 + 0x48]
add r11d, dword [rcx + rax*4 + 0x448]
movzx eax, r8b
xor r11d, dword [rcx + rax*4 + 0x848]
movzx eax, r10b
add r11d, dword [rcx + rax*4 + 0xc48]
xor r11d, ebx
xor r11d, dword [rdi + 0xc]
mov eax, r11d
shr eax, 8
mov r8d, eax
shr rax, 8
mov rdx, rax
movzx eax, al
lea rdi, [rdi + 0x20]
shr rdx, 8
mov ebx, dword [rcx + rdx*4 + 0x48]
add ebx, dword [rcx + rax*4 + 0x448]
movzx eax, r8b
xor ebx, dword [rcx + rax*4 + 0x848]
movzx eax, r11b
add ebx, dword [rcx + rax*4 + 0xc48]
xor ebx, r10d
xor ebx, dword [rdi - 0x10]
mov eax, ebx
shr eax, 8
mov r8d, eax
shr rax, 8
mov rdx, rax
movzx eax, al
shr rdx, 8
mov r9d, dword [rcx + rdx*4 + 0x48]
add r9d, dword [rcx + rax*4 + 0x448]
movzx eax, r8b
xor r9d, dword [rcx + rax*4 + 0x848]
movzx eax, bl
add r9d, dword [rcx + rax*4 + 0xc48]
xor r9d, r11d
xor r9d, dword [rdi - 0xc]
mov eax, r9d
mov r10d, r9d
shr eax, 8
mov r11d, r10d
mov r8d, eax
shr rax, 8
mov rdx, rax
movzx eax, al
shr rdx, 8
mov r9d, dword [rcx + rdx*4 + 0x48]
add r9d, dword [rcx + rax*4 + 0x448]
movzx eax, r8b
xor r9d, dword [rcx + rax*4 + 0x848]
movzx eax, r10b
add r9d, dword [rcx + rax*4 + 0xc48]
xor r9d, ebx
mov ebx, r9d
sub rsi, 1
jne 0x14002a710
mov eax, dword [rcx + 0x40]
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov edx, r9d
xor rax, rdx
mov edx, dword [rcx + 0x44]
xor rdx, r10
shl rax, 0x20
or rax, rdx
ret
Function at 0x14006206c
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 0x140061ed7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140061ed7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140061ed7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140061ed7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140061ed7
cmp dword [rcx + 0x84], 0xe
jbe 0x140061ed7
cmp dword [rcx + 0xf8], 0
je 0x140061ed7
mov ecx, ebx
call fcn.140061f88
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.140061d64
nop
cmp dword [rbp + 0x20], 0
je 0x140061f25
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140061f30
int3
xor r8d, r8d
xor edx, edx
jmp 0x140061e68

Function at 0x140062d0c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140062d43
call fcn.14006583c
mov dword [rax], 0x16
call fcn.1400604fc
xor eax, eax
jmp 0x140062dd1
mov rdx, r9
mov rcx, r8
call fcn.140062ca8
mov rbx, rax
test rax, rax
je 0x140062dce
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140062bd4]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140062dbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400657b0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140062da2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140062db1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14006f464
jmp 0x140062dce
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140062dcb
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140075ab0
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 0x140075b37
mov rsi, rbx
cmp word [rax], bp
je 0x140075af6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140075ae0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140075adc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400707f8
mov rdi, rax
test rax, rax
je 0x140075b24
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140055b80
mov rbp, rdi
xor ecx, ecx
call fcn.14006f464
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 0x140078a3c
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.14006efb4
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 0x140078add
cmp ebx, dword [rsp + 0x30]
je 0x140078ad6
test esi, esi
je 0x140078ad6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140078ab1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140078abe
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140078a9b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140078ac2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140078adf
mov eax, 1
jmp 0x140078adf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140079fe4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140079ffa
mov al, 1
jmp 0x14007a05a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14007a00b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14007a058
mov ecx, dword [rcx + 0x18]
nop
call fcn.140076358
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14007a058
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14007a058
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14007a058
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14007a05a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x40cb67
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x0041c040]
jne 0x40b8da
rol rcx, 0x10
test cx, 0xffff
jne 0x40b8d6
repz ret
ror rcx, 0x10
jmp 0x40cac0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0041d2e0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x0041d3d8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x40cb45
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x0041d2e0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x40cb67
mov rax, qword [rsp + 0x88]
mov qword [0x0041d3d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0041d378], rax
mov rax, qword [0x0041d3d8]
mov qword [0x0041d250], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0041d360], rax
mov dword [0x0041d240], 0xc0000409
mov dword [0x0041d244], 1
mov rax, qword [0x0041c040]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0041c048]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x0041d2d8], eax
mov ecx, 1
call fcn.0040d600
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00416308]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x0041d2d8], 0
jne 0x40cbee
mov ecx, 1
call fcn.0040d600
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret