joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e3ac0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
mov rdx, qword [r8]
movups xmmword [rbp - 0x40], xmm0
movdqu xmmword [rbp - 0x30], xmm1
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rdx + r8], r14b
jne 0x1400e3b07
lea rcx, [rbp - 0x40]
call fcn.140009150
lea rax, fcn.140008a80
mov qword [rbp - 0x10], rax
lea rax, vtable.type_info.0
or rax, 2
mov qword [rbp - 8], rax
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x28]
call fcn.1400e6cc0
mov r9, rax
inc rbx
cmp byte [rdi + rbx], 0
jne 0x1400e3b43
mov edx, 0x811c9dc5
mov ecx, r14d
test rbx, rbx
je 0x1400e3b79
nop dword [rax]
movzx eax, byte [rdi]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
lea rdi, [rdi + 1]
movsxd rax, ecx
cmp rax, rbx
jb 0x1400e3b60
mov dword [rbp + 0x20], edx
lea r8, [rbp + 0x20]
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.1400e6d80
nop
mov rbx, qword [rbp + 0x28]
test rbx, rbx
je 0x1400e3bcc
mov eax, dword [rbx + 0x38]
and eax, 3
sub rax, 1
je 0x1400e3bad
cmp rax, 1
jne 0x1400e3bba
mov rcx, rbx
jmp 0x1400e3bb1
mov rcx, qword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov rdx, qword [rax]
call rdx
mov qword [rbx + 0x38], r14
mov edx, 0x40
mov rcx, rbx
call fcn.14015dacc
nop
mov rax, qword [rbp - 8]
and eax, 3
sub rax, 1
je 0x1400e3bfd
cmp rax, 1
jne 0x1400e3c1e
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax]
lea rax, [fcn.140008a80]
lea rcx, [rbp - 0x40]
cmp rdx, rax
jne 0x1400e3c1b
call fcn.140008e00
jmp 0x1400e3c1e
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax]
lea rax, [fcn.140008a80]
mov rcx, qword [rbp - 0x18]
cmp rdx, rax
jne 0x1400e3c1b
call fcn.140008e00
jmp 0x1400e3c1e
call rdx
nop
lea rcx, [0x14026e138]
call fcn.14015f914
mov rbx, rax
lea rcx, [0x14026e0c8]
call fcn.14015f914
cmp rbx, rax
jne 0x1400e3c7a
mov rbx, qword [rbp - 0x50]
mov rax, qword [rbx + 0x28]
mov qword [rbp + 0x20], rax
mov rdx, qword [0x140272c48]
cmp rdx, qword [0x140272c50]
je 0x1400e3c6b
mov qword [rdx], rax
add qword [0x140272c48], 8
mov rax, qword [rbx + 0x28]
jmp 0x1400e3c82
lea r8, [rbp + 0x20]
call fcn.1400ea280
mov rax, qword [rbx + 0x28]
jmp 0x1400e3c82
mov rax, qword [rbp - 0x50]
mov rax, qword [rax + 0x28]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140104fd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov r12d, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.1400f3ef0
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x140105028
xor eax, eax
add rsp, 0x50
pop r12
pop rdi
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rbp
mov ebp, dword [rbx + 0x40]
mov qword [rsp + 0x48], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x3c]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x34]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x38]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r13d
test r12d, r12d
jg 0x14010507f
mov ebx, 0x4b0000
jmp 0x14010508f
shl r12d, 0x10
mov edx, ecx
mov ecx, r12d
call fcn.1400f6320
mov ebx, eax
bsr ecx, ebx
bsr eax, edi
shl r13d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x1401050a5
mov ecx, r13d
jmp 0x1401050b0
mov edx, edi
mov ecx, ebx
call fcn.1400f6320
mov ecx, eax
mov r8d, dword [rsp + 0x88]
mov eax, r8d
shl eax, 0x10
cmp ecx, eax
jge 0x1401050cc
shl esi, 0x10
mov ecx, esi
jmp 0x140105192
mov edx, dword [rsp + 0x70]
mov r12d, edx
shl r12d, 0x10
cmp ecx, r12d
jge 0x1401050ff
mov r13d, edx
mov ecx, eax
mov edx, edi
sub r13d, r8d
call fcn.1400f3ef0
mov ecx, ebx
sub ecx, eax
test r13d, r13d
je 0x14010514f
sub r15d, esi
mov r8d, r13d
mov edx, r15d
jmp 0x140105138
mov eax, r14d
shl eax, 0x10
cmp ecx, eax
jl 0x140105153
cmp ecx, r13d
jge 0x14010518d
mov r15d, dword [rsp + 0x20]
mov edx, edi
sub r15d, r14d
shl r14d, 0x10
mov ecx, r14d
call fcn.1400f3ef0
sub ebx, eax
test r15d, r15d
je 0x14010518d
mov esi, dword [rsp + 0x78]
mov r8d, r15d
sub ebp, esi
mov ecx, ebx
mov edx, ebp
call fcn.1400f6210
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.1400f3ef0
add ebx, eax
jmp 0x14010519b
mov edx, dword [rsp + 0x70]
mov esi, r14d
mov ecx, r12d
sub esi, edx
mov edx, edi
call fcn.1400f3ef0
mov ecx, ebx
sub ecx, eax
test esi, esi
je 0x14010510e
mov edx, dword [rsp + 0x78]
mov r8d, esi
sub edx, r15d
call fcn.1400f6210
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.1400f3ef0
add ebx, eax
jmp 0x14010519b
shl ebp, 0x10
mov ecx, ebp
mov edx, edi
call fcn.1400f3ef0
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r12
pop rdi
pop rbx
jmp fcn.1400f3ef0
Function at 0x1401573b0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1401573cc
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140157420
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140157545
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x140157545
test rax, rax
je 0x140157545
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x140157545
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1401574ba
lea rax, [0x1401575a0]
jmp 0x140157513
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x140157545
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140157533
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1401574e0
lea rax, [0x140157570]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x14015755a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x140158460
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x14015846b
xor eax, eax
ret
lea r11, [0x1401b2420]
not ecx
cmp r8, 8
jb 0x14015853d
mov r10, r8
shr r10, 3
imul rax, r10, 0xfffffffffffffff8
add r8, rax
nop dword [rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x140158490
test r8, r8
je 0x14015856d
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r8, 1
jne 0x140158550
not ecx
mov eax, ecx
ret
Function at 0x14015e5a4
Capabilities:
Parse pe header

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

Function at 0x140169bc8
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.14015e370
sub rsp, rax
mov rax, qword [0x1401ef0c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140178440
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140169c17
mov rax, rbp
jmp 0x140169d1f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x271180]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140179b68
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x271180]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140169d1b
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 0x140169d1b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140179b68
test rax, rax
js 0x140169d1b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140169d1b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140169d0d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140169d0d
cmp byte [rcx], 0xd
jne 0x140169cf3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140169d02
cmp byte [rcx + 1], 0xa
jne 0x140169d02
inc rcx
jmp 0x140169d02
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1ef4f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140169cd5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140169d1f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14015d760
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 0x14017242c
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 0x140172463
call fcn.140168378
mov dword [rax], 0x16
call fcn.140164a90
xor eax, eax
jmp 0x1401724f1
mov rdx, r9
mov rcx, r8
call fcn.1401723c8
mov rbx, rax
test rax, rax
je 0x1401724ee
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1401722f4]
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 0x1401724db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401682ec
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401724c2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401724d1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140177104
jmp 0x1401724ee
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401724eb
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 0x140173d08
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140173b04
Function at 0x140179c14
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, [0x140271180]
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 0x140179c6b
cmp word [rdx], r13w
jne 0x140179c6b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140179c70
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140179d95
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140179db6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140179ca9
mov rdx, r9
mov word [rbx], cx
jmp 0x140179cd0
cmp r9, r8
jae 0x140179ce0
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 0x140179c8a
jmp 0x140179d95
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 0x140179d8a
cmp dword [rsp + 0x80], esi
je 0x140179d8a
lea r8, [0x140271180]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140179d62
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140179d32
mov word [rbx], r13w
jmp 0x140179d92
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 0x140179d3f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140179d92
cmp word [rsp + 0x70], r13w
jne 0x140179d6f
cmp rbx, r14
je 0x140179d2c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140179b70
cmp word [rsp + 0x70], r13w
je 0x140179d95
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, [0x140271180]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140179d8f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140179d95
Function at 0x14017c518
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14017c52e
mov al, 1
jmp 0x14017c58e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14017c53f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14017c58c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140180a54
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14017c58c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14017c58c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14017c58c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14017c58e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14017d0dc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x14017d13d
test byte [rbx + 6], 0xf
jne 0x14017d130
xor edi, edi
cmp word [rbx + 4], di
jne 0x14017d130
cmp word [rbx + 2], di
jne 0x14017d130
cmp word [rbx], di
jne 0x14017d130
lea esi, [rdi + 1]
jmp 0x14017d135
mov esi, 2
movzx eax, si
jmp 0x14017d335
xor edi, edi
test cx, cx
jne 0x14017d158
mov rcx, rbx
call fcn.140185f58
movzx ecx, ax
cmp di, ax
jl 0x14017d332
movsx edx, cx
test esi, esi
jle 0x14017d188
sub ebp, edx
cmp ebp, esi
jg 0x14017d188
movsd xmm0, qword [0x1401b7e90]
cmp word [rbx + 6], di
jge 0x14017d17a
xorps xmm0, xmmword [0x1401cb900]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x14017d335
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x14017d1b5
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x14017d335
movzx r15d, r11w
lea ebp, [rsi - 1]
and r11w, 0xf
mov r13d, 0x8000
mov r12d, 0x10
and r15w, r13w
or r11w, r12w
add ebp, edx
cmp ebp, 0xffffffcb
jl 0x14017d327
test ebp, ebp
jns 0x14017d327
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x14017d24a
movzx edx, word [rbx + 4]
mov eax, 0xfff0
movzx r8d, word [rbx + 2]
sub ax, bp
shr ax, 4
add ax, si
movzx ecx, ax
movzx eax, cx
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], r8w
movzx r8d, dx
movzx edx, r11w
mov r11d, edi
sub rcx, rsi
jne 0x14017d21c
mov word [rbx + 4], dx
mov word [rbx + 2], r8w
neg bp
je 0x14017d2c9
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x14017d2df
jne 0x14017d2fe
test byte [rbx], sil
je 0x14017d2fe
add word [rbx], si
jne 0x14017d2fe
add word [rbx + 2], si
jne 0x14017d2fe
add word [rbx + 4], si
jne 0x14017d2fe
add r11w, si
mov word [rbx + 6], r11w
jmp 0x14017d1ad
cmp r11w, r15w
jne 0x14017d1ad
cmp word [rbx + 4], di
jne 0x14017d1ad
cmp word [rbx + 2], di
jne 0x14017d1ad
movzx eax, word [rbx]
neg ax
sbb ax, ax
jmp 0x14017d335
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14017fd40
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 0x14017fd70
xor eax, eax
jmp 0x14017fe33
mov rbp, rbx
cmp word [rax], si
je 0x14017fd95
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14017fd7c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14017fd78
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.14017e480
movsxd r14, eax
test eax, eax
jne 0x14017fdd3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14017fd69
mov rcx, r14
call fcn.140177140
mov rdi, rax
test rax, rax
jne 0x14017fdec
xor ecx, ecx
call fcn.140177104
jmp 0x14017fdc8
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.14017e480
test eax, eax
jne 0x14017fe1d
mov rcx, rdi
call fcn.140177104
jmp 0x14017fe27
xor ecx, ecx
call fcn.140177104
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 0x140182fa8
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.140176da4
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 0x140183049
cmp ebx, dword [rsp + 0x30]
je 0x140183042
test esi, esi
je 0x140183042
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14018301d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14018302a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140183007
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14018302e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14018304b
mov eax, 1
jmp 0x14018304b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140186d3c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1401694c4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140186dc6
cmp byte [rbp - 0x21], r15b
je 0x140186dc1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140186dfc
call fcn.14017a92c
test eax, eax
jne 0x140186de8
cmp byte [rbp - 0x21], r15b
je 0x140186de0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140186dfc
cmp byte [rbp - 0x21], r15b
je 0x140186df9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140172178
test eax, eax
jne 0x140186e9c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401694c4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140186e3b
cmp byte [rbp - 0x21], r15b
je 0x140186e70
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140186e70
call fcn.14017a92c
test eax, eax
jne 0x140186e5c
cmp byte [rbp - 0x21], r15b
je 0x140186e55
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140186e70
cmp byte [rbp - 0x21], r15b
je 0x140186e6d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140172178
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140186e9c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140186e9f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140186ead
mov rcx, rdi
call fcn.140177104
cmp byte [rbp + 0x3f], r15b
je 0x140186ebc
mov rcx, qword [rbp + 0x27]
call fcn.140177104
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret