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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rdx
mov r8, rcx
mov r10, qword [rcx + 0x10]
mov rdx, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x18007464e
mov rdx, qword [rcx]
movabs rbx, 0xcbf29ce484222325
mov r9, rbx
xor edi, edi
mov ecx, edi
movabs rsi, 0x100000001b3
test r10, r10
je 0x180074683
nop
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, rsi
inc rcx
cmp rcx, r10
jb 0x180074670
lea rdx, [rsp + 0x28]
call fcn.180076130
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x180074703
lea r10, [rax + 0x30]
mov rdx, qword [r14 + 0x10]
mov rcx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x1800746ac
mov rcx, qword [r14]
test rdx, rdx
je 0x1800746c4
movzx eax, byte [rcx + rdi]
xor rbx, rax
imul rbx, rsi
inc rdi
cmp rdi, rdx
jb 0x1800746b1
mov r9, rbx
mov r8, r14
lea rdx, [rsp + 0x28]
mov rcx, r10
call fcn.180076860
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1800746f7
mov rax, qword [rax + 0x30]
jmp 0x1800746e9
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
lea rcx, str.invalid_unordered_map_K__T__key
call fcn.180096de0
lea rcx, str.invalid_unordered_map_K__T__key
call fcn.180096de0
int3

Function at 0x180074720
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rdx
mov r8, rcx
mov r10, qword [rcx + 0x10]
mov rdx, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x18007474e
mov rdx, qword [rcx]
movabs rbx, 0xcbf29ce484222325
mov r9, rbx
xor edi, edi
mov ecx, edi
movabs rsi, 0x100000001b3
test r10, r10
je 0x180074783
nop
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, rsi
inc rcx
cmp rcx, r10
jb 0x180074770
lea rdx, [rsp + 0x28]
call fcn.180076130
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x180074803
lea r10, [rax + 0x70]
mov rdx, qword [r14 + 0x10]
mov rcx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x1800747ac
mov rcx, qword [r14]
test rdx, rdx
je 0x1800747c4
movzx eax, byte [rcx + rdi]
xor rbx, rax
imul rbx, rsi
inc rdi
cmp rdi, rdx
jb 0x1800747b1
mov r9, rbx
mov r8, r14
lea rdx, [rsp + 0x28]
mov rcx, r10
call fcn.180076860
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1800747f7
mov rax, qword [rax + 0x30]
jmp 0x1800747e9
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
lea rcx, str.invalid_unordered_map_K__T__key
call fcn.180096de0
lea rcx, str.invalid_unordered_map_K__T__key
call fcn.180096de0
int3
Function at 0x180077cc0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rdi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x180077ce5
cvtsi2ss xmm0, rdx
jmp 0x180077cfa
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call fcn.1800c1894
movss xmm1, dword [0x180323998]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x180077d28
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x180077d28
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x180077d5a
cmp rbx, 0x200
jae 0x180077d57
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x180077d5a
mov rbx, rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.180075a80
Function at 0x180084bb0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
cmp byte [rcx + 8], 0
je 0x180084d34
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180084d34
mov rsi, qword [0x180340750]
cmp qword [rsi + 8], 0
je 0x180084d34
mov rbx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0x14
lea rdx, str.rightClickDelayTimer
lea rcx, [rsp + 0x20]
call fcn.180007ec0
nop
lea rdx, [rsp + 0x20]
lea rcx, [0x18033eeb0]
call fcn.180074620
mov rdx, qword [rbx]
mov r9, qword [rdx + 0x320]
mov r8, rax
mov rdx, qword [rsi + 8]
mov rcx, rbx
call r9
mov ebx, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x180084c85
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180084c80
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180084d4a
call fcn.1800980f0
cmp ebx, 4
jne 0x180084d34
mov rsi, qword [0x180340750]
mov edi, dword [rdi + 0x20]
cmp qword [rsi + 8], 0
je 0x180084d34
mov rbx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0x14
lea rdx, str.rightClickDelayTimer
lea rcx, [rsp + 0x20]
call fcn.180007ec0
nop
lea rdx, [rsp + 0x20]
lea rcx, [0x18033eeb0]
call fcn.180074620
mov r8, qword [rbx]
mov r10, qword [r8 + 0x368]
mov r9d, edi
mov r8, rax
mov rdx, qword [rsi + 8]
mov rcx, rbx
call r10
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x180084d34
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180084d2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180084d44
call fcn.1800980f0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.1800a1d94
int3
call fcn.1800a1d94
int3
Function at 0x1800890e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x18033b0c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx], 0
mov rbx, rcx
jne 0x180089175
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], 0
cmp byte [rcx], 0xe9
jne 0x180089151
movzx edx, byte [rbx + 1]
lea r9, [rsp + 0x20]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180089151
movzx r8d, byte [rbx + 1]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
call fcn.1800c6120
movzx edx, byte [rbx + 1]
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rbx + 0x20]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rbx + 0x18]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, 0x38
mov rcx, rbx
call fcn.1800980f0
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800980d0
add rsp, 0x30
pop rbx
ret

Function at 0x1800891a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x18033b0c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx], 0
mov edi, edx
mov rbx, rcx
jne 0x18008923b
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], 0
cmp byte [rcx], 0xe9
jne 0x180089217
movzx edx, byte [rbx + 1]
lea r9, [rsp + 0x20]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180089217
movzx r8d, byte [rbx + 1]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
call fcn.1800c6120
movzx edx, byte [rbx + 1]
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rbx + 0x20]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rbx + 0x18]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test dil, 1
je 0x18008924e
mov edx, 0x38
mov rcx, rbx
call fcn.1800980f0
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800980d0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1800894d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x18033b0c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov word [rcx], 1
lea rax, [0x180088750]
mov qword [rcx + 8], rax
mov rcx, qword [0x18033edc8]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 0
mov qword [rbx + 0x20], 0
mov dword [rbx + 0x28], 0x25ff
mov dword [rbx + 0x2c], 0x1010000
mov dword [rbx + 0x30], 0x1010101
mov word [rbx + 0x34], 0x101
call fcn.180070b80
mov rcx, qword [rbx + 0x10]
mov edx, 0xe
mov byte [rbx + 1], al
call fcn.180071c80
mov qword [rbx + 0x20], rax
test rax, rax
je 0x18008966d
mov rcx, qword [rbx + 8]
mov r9d, 0x40
mov qword [rbx + 0x2e], rcx
mov r8d, 0x3000
movsd xmm0, qword [rbx + 0x28]
movsd qword [rax], xmm0
mov ecx, dword [rbx + 0x30]
mov dword [rax + 8], ecx
movzx ecx, word [rbx + 0x34]
mov word [rax + 0xc], cx
xor ecx, ecx
movzx edx, byte [rbx + 1]
add rdx, 0xe
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x18008966d
mov qword [0x18033edb0], rax
movzx r8d, byte [rbx + 1]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x48], rdi
call fcn.1800c6120
movzx edx, byte [rbx + 1]
lea r9, [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
mov r8d, 0x40
add rcx, rdx
mov qword [rbx + 0x2e], rcx
mov rcx, qword [rbx + 0x18]
movsd xmm0, qword [rbx + 0x28]
movsd qword [rcx + rdx], xmm0
mov eax, dword [rbx + 0x30]
mov dword [rcx + rdx + 8], eax
movzx eax, word [rbx + 0x34]
mov word [rcx + rdx + 0xc], ax
mov edx, 5
mov edi, dword [rbx + 0x20]
sub edi, dword [rbx + 0x10]
mov rcx, qword [rbx + 0x10]
sub edi, 5
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180089641
lea rdx, str.Hook:_Failed_to_change_target_function_protection_n
lea rcx, [0x18033cdb0]
call fcn.1800077a0
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800980d0
add rsp, 0x30
pop rbx
ret
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x20]
mov edx, 5
mov byte [rax], 0xe9
mov rax, qword [rbx + 0x10]
mov dword [rax + 1], edi
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [rbx], 0
jmp 0x180089626
lea rdx, str.Hook:_Failed_to_allocate_memory_n
lea rcx, [0x18033cdb0]
call fcn.1800077a0
jmp 0x18008962b
Function at 0x18008ba40
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx eax, byte [rdx]
mov rbx, r8
dec eax
mov r8, rdx
mov rdi, rcx
cmp eax, 0x20
ja case.0x18008bb29.4
lea rsi, [0x180000000]
nop dword [rax]
cdqe
movzx eax, byte [rsi + rax + 0x8bca8]
mov ecx, dword [rsi + rax*4 + 0x8bc7c]
add rcx, rsi
jmp rcx
mov rax, qword [rbx + 0xd0]
movzx r8d, byte [r8 + 1]
add rax, 0xffffffffffffffc4
lea r8, [rax + r8*2]
movzx eax, byte [r8]
dec eax
cmp eax, 0x20
jbe 0x18008ba70
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rax, dword [rbx + 0xcc]
movzx edx, word [rsi + rax*2 + 0xcfd00]
mov rcx, rdi
call fcn.18008a2f0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x9c]
cmp al, 8
jae case.0x18008bb29.4
lea edx, [rax + 0x6d]
mov rcx, rdi
call fcn.18008a2f0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [r8 + 1]
add eax, 0xfffffffe
cmp eax, 0x1a
ja case.0x18008bb29.4
cdqe
movzx eax, byte [rsi + rax + 0x8bcd8]
mov ecx, dword [rsi + rax*4 + 0x8bccc]
add rcx, rsi
jmp rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.18008cae0
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.18008bd00
movzx eax, byte [rbx + 0xa2]
mov r9, rbx
mov rcx, rdi
mov rdx, qword [rbx + rax*8 + 0xa8]
inc al
mov byte [rbx + 0xa2], al
call fcn.18008a870
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx edx, byte [rbx + 0x34]
mov rcx, rdi
call fcn.18008a2c0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0x60]
cmp eax, 2
jne 0x18008bbbe
lea edx, [rax + 0x35]
jmp 0x18008bbd0
cmp eax, 1
jne 0x18008bbcb
lea edx, [rax + 0x1f]
lea eax, [rdx + 0x19]
jmp 0x18008bbd5
mov edx, 0x39
mov eax, 0x20
cmp byte [rbx + 0x37], 0
mov rcx, rdi
cmovne edx, eax
call fcn.18008a2f0
movsxd rax, dword [rbx + 8]
mov rcx, rdi
movzx edx, byte [rax + rsi + 0xcfec0]
call fcn.18008a2f0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0x60]
cmp eax, 2
jne 0x18008bc17
lea edx, [rax + 0x31]
jmp 0x18008bc29
cmp eax, 1
jne 0x18008bc24
lea edx, [rax + 0x19]
lea eax, [rdx - 0xa]
jmp 0x18008bc2e
mov edx, 0x10
mov eax, 0x1a
cmp byte [rbx + 0x37], 0
mov rcx, rdi
cmovne edx, eax
call fcn.18008a2f0
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rax, dword [rbx + 0xb8]
jmp 0x18008babe
movzx edx, byte [rbx + 0xa0]
and edx, 7
add edx, 0x85
jmp 0x18008bac6
movsxd rax, dword [rbx + 0x98]
jmp 0x18008babe
Function at 0x1800a21b4
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.180099100
sub rsp, rax
mov rax, qword [0x18033b0c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800af1c0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800a2203
mov rax, rbp
jmp 0x1800a230b
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 + 0x33e200]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800b22cc
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x33e200]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800a2307
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 0x1800a2307
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800b22cc
test rax, rax
js 0x1800a2307
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800a2307
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800a22f9
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800a22f9
cmp byte [rcx], 0xd
jne 0x1800a22df
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800a22ee
cmp byte [rcx + 1], 0xa
jne 0x1800a22ee
inc rcx
jmp 0x1800a22ee
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x33b4f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800a22c1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800a230b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800980d0
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 0x1800ab7e0
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 0x1800ab817
call fcn.1800ab22c
mov dword [rax], 0x16
call fcn.1800a1d74
xor eax, eax
jmp 0x1800ab8a5
mov rdx, r9
mov rcx, r8
call fcn.1800ab77c
mov rbx, rax
test rax, rax
je 0x1800ab8a2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1800ab6a8]
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 0x1800ab88f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800ab1a0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1800ab876
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1800ab885
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1800ade84
jmp 0x1800ab8a2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800ab89f
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 0x1800aced4
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 0x1800acf43
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800acf43
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800acf43
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800acf43
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800acf43
cmp dword [rcx + 0x84], 0xe
jbe 0x1800acf43
cmp dword [rcx + 0xf8], 0
je 0x1800acf43
mov ecx, ebx
call fcn.1800acff4
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.1800acdd0
nop
cmp dword [rbp + 0x20], 0
je 0x1800acf91
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800acf9c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800aced4
Function at 0x1800b2378
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, [0x18033e200]
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 0x1800b23cf
cmp word [rdx], r13w
jne 0x1800b23cf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800b23d4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800b24f9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800b251a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800b240d
mov rdx, r9
mov word [rbx], cx
jmp 0x1800b2434
cmp r9, r8
jae 0x1800b2444
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 0x1800b23ee
jmp 0x1800b24f9
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 0x1800b24ee
cmp dword [rsp + 0x80], esi
je 0x1800b24ee
lea r8, [0x18033e200]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800b24c6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800b2496
mov word [rbx], r13w
jmp 0x1800b24f6
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 0x1800b24a3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800b24f6
cmp word [rsp + 0x70], r13w
jne 0x1800b24d3
cmp rbx, r14
je 0x1800b2490
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800b22d4
cmp word [rsp + 0x70], r13w
je 0x1800b24f9
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, [0x18033e200]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800b24f3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800b24f9
Function at 0x1800b4bec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800b4c02
mov al, 1
jmp 0x1800b4c62
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800b4c13
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800b4c60
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800b621c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800b4c60
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800b4c60
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800b4c60
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800b4c62
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800b9880
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 0x1800b98b0
xor eax, eax
jmp 0x1800b9973
mov rbp, rbx
cmp word [rax], si
je 0x1800b98d5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800b98bc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800b98b8
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.1800b81a4
movsxd r14, eax
test eax, eax
jne 0x1800b9913
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800b98a9
mov rcx, r14
call fcn.1800adec0
mov rdi, rax
test rax, rax
jne 0x1800b992c
xor ecx, ecx
call fcn.1800ade84
jmp 0x1800b9908
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.1800b81a4
test eax, eax
jne 0x1800b995d
mov rcx, rdi
call fcn.1800ade84
jmp 0x1800b9967
xor ecx, ecx
call fcn.1800ade84
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 0x1800bd8f4
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.1800af710
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 0x1800bd995
cmp ebx, dword [rsp + 0x30]
je 0x1800bd98e
test esi, esi
je 0x1800bd98e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800bd969
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800bd976
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800bd953
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800bd97a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800bd997
mov eax, 1
jmp 0x1800bd997
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret