joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180005458
Capabilities:
Identify system language via api

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
movaps xmmword [rax - 0x18], xmm6
mov r10d, ecx
movaps xmmword [rax - 0x28], xmm7
rdtscp
shl rdx, 0x20
mov r9d, 0x989680
or rax, rdx
cmp rax, r9
jbe 0x180005490
mov r9d, 0x2556e2b
jmp 0x1800054a8
rdtscp
shl rdx, 0x20
or rax, rdx
xor edx, edx
mov rcx, rax
mov rax, r9
div rcx
mov r9, rax
rdtscp
shl rdx, 0x20
or rax, rdx
movd xmm0, r9d
mov ecx, eax
movabs rax, 0x58ed2308158ed231
imul r8, rcx, 0xc924
cvtdq2ps xmm0, xmm0
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 6
imul rax, rax, 0x5f
sub r8, rax
add r8d, 3
xor edi, edi
cmp r9d, r8d
je 0x1800054fd
mov edi, r10d
ror edi, 0xd
jmp 0x180005645
movsd xmm1, qword [0x180030d68]
movss xmm2, dword [0x180030fdc]
jmp 0x180005520
movaps xmm0, xmm1
subsd xmm0, xmm1
movaps xmm1, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm1
comiss xmm0, xmm2
ja 0x18000550f
movsd xmm6, qword [0x180030d20]
mov esi, 0x7b
movss xmm7, dword [0x180030fd0]
jmp 0x18000557d
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm6
movaps xmm1, xmm0
movaps xmm6, xmm0
divsd xmm1, xmm0
cvttsd2si ebx, xmm1
mov cl, bl
call fcn.180003bc4
movaps xmm1, xmm6
mov ecx, eax
imul ecx, ebx
mov esi, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
ucomiss xmm0, xmm7
jp 0x180005584
je 0x18000553c
movsd xmm6, qword [0x180030cc0]
movsd xmm3, qword [0x180030d28]
movss xmm7, dword [0x180030f84]
movaps xmm0, xmm3
call fcn.180003498
movaps xmm0, xmm6
movsx ecx, al
divsd xmm0, xmm6
movaps xmm2, xmm6
movd xmm3, ecx
movaps xmm1, xmm0
mulsd xmm2, xmm6
movaps xmm6, xmm0
xorps xmm0, xmm0
cvtdq2pd xmm3, xmm3
mulsd xmm1, xmm2
addsd xmm1, xmm3
cvtsd2ss xmm0, xmm1
comiss xmm7, xmm0
ja 0x18000559c
movss xmm7, dword [0x180030fd4]
mov eax, 0x56
jmp 0x180005628
mov ecx, eax
call fcn.18000395c
xorps xmm6, xmm6
cvtss2sd xmm6, xmm0
cvttsd2si ecx, xmm6
call fcn.18000395c
cvttss2si rax, xmm0
xorps xmm2, xmm2
xorps xmm0, xmm0
cvtsi2sd xmm2, rax
movaps xmm1, xmm2
addsd xmm1, xmm6
subsd xmm6, xmm2
cvttsd2si eax, xmm1
cvtsi2sd xmm0, eax
addsd xmm6, xmm0
cvtpd2ps xmm0, xmm6
comiss xmm0, xmm7
ja 0x1800055e6
ucomiss xmm0, dword [0x180030f78]
jp 0x180005645
jne 0x180005645
movsd xmm0, qword [0x180030ec8]
call fcn.180003498
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rsi, qword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rdi
ret
Function at 0x180005664
Capabilities:
Access peb ldr_data
Resolve function by hash
Resolve function by parsing pe exports

Disassembly:
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x20]
jmp 0x1800056b1
mov r9, qword [rdx + 0x50]
xor r8d, r8d
movzx r10d, word [rdx + 0x48]
movzx ecx, byte [r9]
ror r8d, 0xd
mov eax, r8d
add rax, rcx
cmp cl, 0x61
lea r8, [rax - 0x20]
cmovb r8, rax
inc r9
sub r10, 1
jne 0x180005683
cmp r8d, 0x6a4abc5b
je 0x1800056b9
mov rdx, qword [rdx]
test rdx, rdx
jne 0x180005677
xor eax, eax
ret
mov r8, qword [rdx + 0x20]
movsxd rax, dword [r8 + 0x3c]
mov r9d, dword [rax + r8 + 0x88]
mov edx, dword [r9 + r8 + 0x20]
mov ecx, dword [r9 + r8 + 0x24]
add rdx, r8
add rcx, r8
mov r11d, dword [rdx]
add r11, r8
xor r10d, r10d
mov al, byte [r11]
inc r11
ror r10d, 0xd
movsx eax, al
add r10d, eax
mov al, byte [r11]
test al, al
jne 0x1800056e5
cmp r10d, 0x3bd09a55
je 0x18000570c
add rdx, 4
add rcx, 2
jmp 0x1800056d9
movzx edx, word [rcx]
mov ecx, dword [r9 + r8 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
add rax, r8
ret

Function at 0x180005924
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x1800059b6
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x180005990
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800059af
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800059af
mov rdx, qword [rdi]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
jmp 0x18000599f
cmp dword [rdi + 8], 0
je 0x1800059af
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, 1
jmp 0x18000599f
cmp byte [0x180039af8], 0
jne 0x180005a01
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800059ed
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x180039af0], rax
jmp 0x1800059f4
mov r10, qword [0x180039af0]
mov eax, 1
mov byte [0x180039af8], al
jmp 0x180005a08
mov r10, qword [0x180039af0]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x180005999
mov r8d, dword [rbx + 8]
xor r9d, r9d
call r10
jmp 0x18000599f
Function at 0x180005a20
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov edi, dword [rcx + 8]
lea rax, [rbp + 0x1a0]
xor r15d, r15d
mov qword [rsp + 0x20], rax
mov rsi, rcx
mov qword [rsp + 0x40], r15
mov rcx, qword [rcx]
or edi, 0x2001f
mov r9d, edi
mov dword [rsp + 0x48], r15d
xor r8d, r8d
mov qword [rsp + 0x50], r15
mov r14, rdx
mov qword [rbp + 0x1a0], r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x180005b3c
mov rcx, qword [rsp + 0x40]
mov ebx, r15d
test rcx, rcx
je 0x180005a9d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rbp + 0x1a0]
and edi, 0x300
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x48], edi
test ebx, ebx
jne 0x180005b3c
mov edi, 0x100
jmp 0x180005adc
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.180005a20
mov ebx, eax
test eax, eax
jne 0x180005b3c
mov rcx, qword [rsp + 0x40]
lea rax, [rbp + 0x1a8]
mov dword [rbp + 0x190], edi
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x190]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180005ac2
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180005b2a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov rdx, r14
mov dword [rsp + 0x48], r15d
mov rcx, rsi
call fcn.180005924
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180005b4c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180005f98
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x460
mov r14, r9
mov r15, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x50], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x488], rax
test rax, rax
jne 0x180006017
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x488], rax
test rax, rax
jne 0x180006017
call fcn.180005764
mov ebx, eax
jmp 0x18000612b
mov r8, r14
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x180006038
call fcn.180005764
jmp 0x18000611a
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18000602e
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x480], eax
inc eax
cmp eax, ebx
jae 0x180006076
mov ebx, 0x8007000e
jmp 0x18000611c
mov ecx, eax
test eax, eax
je 0x1800060a8
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x18000615d
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1800060a8
lea rcx, [rsp + 0x50]
call fcn.1800090c0
jmp 0x1800060b2
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
jmp 0x1800060ca
cmp qword [rsp + 0x50], rdi
je 0x18000606c
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x18000602e
mov ecx, eax
mov rax, qword [rsp + 0x50]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4a0]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.180006cf0
mov ebx, eax
test rsi, rsi
je 0x18000612b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x180006142
lea rcx, [rsp + 0x50]
call fcn.180008f48
nop
mov eax, ebx
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov ecx, 0x80070216
call fcn.180005740
int3
Function at 0x180008090
Capabilities:
Write 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, r8
mov r14, rdx
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x1800080c0
call fcn.180008878
jmp 0x180008138
mov rsi, rbx
mov rax, qword [rcx + 0x40]
mov r9, qword [rax]
test r9, r9
je 0x1800080d7
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1800080d9
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180008132
test ecx, ecx
jle 0x180008113
cmp rbx, rbp
cmovl rbp, rbx
mov r8, rbp
mov rcx, r9
call fcn.18000bb80
nop
sub rbx, rbp
mov rax, qword [rdi + 0x58]
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
add r14, rbp
test rbx, rbx
jle 0x180008132
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180008132
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.18001023c
sub rbx, rax
sub rsi, rbx
mov rax, rsi
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

Function at 0x180008154
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180008181
xor eax, eax
jmp 0x180008272
cmp qword [rcx + 0x68], 0
je 0x180008192
call fcn.180008928
jmp 0x180008272
mov rbp, rdi
mov rax, qword [rcx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800081a9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800081ab
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800081e1
mov rbx, rdi
cmp rax, rdi
cmovb rbx, rax
mov r8, rbx
mov rcx, r14
call fcn.18000bb80
nop
add r14, rbx
mov rbp, rdi
sub rbp, rbx
mov rax, qword [rsi + 0x50]
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
mov rbx, rbp
cmp qword [rsi + 0x80], 0
je 0x18000826c
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18000821b
mov rdx, qword [rsi + 0x90]
mov rcx, qword [rsi + 0x88]
mov qword [r8], rcx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
jmp 0x180008248
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.180010550
add r14, rax
sub rbp, rax
mov rbx, rbp
cmp rax, r15
jne 0x18000828b
cmp rbp, r15
ja 0x180008223
test rbx, rbx
je 0x18000826c
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.180010550
sub rbx, rax
sub rdi, rbx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
sub rdi, rbp
jmp 0x18000826f
Function at 0x180008620
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x180008648
xor eax, eax
jmp 0x18000876a
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x180008682
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x180008682
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, esi
mov byte [rdx], sil
jmp 0x18000876a
cmp qword [rbx + 0x80], 0
je 0x180008768
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800086bd
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1800086e0
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.18000f6a8
cmp eax, edi
cmovne edi, esi
jmp 0x180008768
lea r8, [rbp + 0x30]
mov byte [rbp - 0x30], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 0x2f]
lea r8, [rbp - 8]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x28]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x38]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 0x30]
call qword [rax + 0x38]
test eax, eax
je 0x18000872e
sub eax, 1
je 0x18000872e
cmp eax, 2
jne 0x180008768
movsx ecx, byte [rbp - 0x30]
jmp 0x1800086ca
mov r14, qword [rbp + 0x30]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x180008758
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.18001023c
cmp r14, rax
jne 0x180008768
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp + 0x38], rax
mov eax, esi
jne 0x18000876a
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x180008cc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180008d1c
cmp byte [rcx + 0x71], 0
je 0x180008d1c
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180008d63
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x180008d29
sub eax, 1
je 0x180008d2d
cmp eax, 2
jne 0x180008d63
mov byte [rbx + 0x71], 0
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x180008d5a
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call fcn.18001023c
cmp rdi, rax
jne 0x180008d63
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180008d1e
xor al, al
jmp 0x180008d1e
Function at 0x180017c78
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x180017b18
call fcn.18000f4a0
mov dword [rax], 0x16
call fcn.18000f17c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180017b00
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x180017b00
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x180017b4a
lock or dword [rax + 0x14], 0x10
jmp 0x180017b00
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x180017b67
mov rcx, qword [rbp + 0x10]
call fcn.180017e6c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180015ea8
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.180019538
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x180017bbe
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x180017b00
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x180017c2a
mov rcx, qword [rbp + 0x10]
call fcn.180015ea8
cmp eax, 0xffffffff
je 0x180017c11
mov rcx, qword [rbp + 0x10]
call fcn.180015ea8
cmp eax, 0xfffffffe
je 0x180017c11
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180015ea8
movsxd rdi, eax
lea rsi, [0x180038dd0]
mov rcx, rbx
sar rdi, 6
call fcn.180015ea8
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x180017c18
lea rax, [0x1800373c0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180017c2a
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x180017c60
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x180017c5c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x180017c5c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x180017b03
jmp 0x180017ad0
Function at 0x180019f4c
Capabilities:
Get geographical location

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 edi, r9d
mov rsi, r8
mov ebp, edx
lea r9, str.GetLocaleInfoEx
mov r14, rcx
lea r8, [0x180029040]
lea rdx, str.GetLocaleInfoEx
mov ecx, 0xc
call fcn.180019b94
mov rbx, rax
test rax, rax
je 0x180019faf
mov rcx, rax
call qword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_8]
mov r9d, edi
mov r8, rsi
mov edx, ebp
mov rcx, r14
call rbx
jmp 0x180019fc9
xor edx, edx
mov rcx, r14
call fcn.18001a2b4
mov ecx, eax
mov r9d, edi
mov r8, rsi
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
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
Function at 0x14000bc80
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [rcx + 0x1e8]
mov r10, r8
movsxd r9, dword [rcx + 0x1e0]
mov r11, rdx
mov rcx, r11
mov r8d, dword [rax + r9*4 - 4]
mov eax, r10d
sub eax, edx
xor edx, edx
test r10, r10
cmovne edx, eax
jmp fcn.14000c770

Function at 0x14000c380
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x14000c39b
mov qword [r8], 0
call fcn.14000c4d0
mov rbx, rax
test rax, rax
jne 0x14000c3b1
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov rcx, rbx
mov qword [rsp + 0x50], r15
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000c49e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000c49e
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000c49e
mov rax, qword [0x1400a87d8]
mov rsi, rdi
test rax, rax
je 0x14000c417
inc dword [rax + 0x3c8]
mov rdx, qword [0x1400a87e8]
lea rcx, [rdi + rbp]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14000c49e
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rsi
je 0x14000c476
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400a87d8]
test rax, rax
je 0x14000c464
dec dword [rax + 0x3c8]
mov rdx, qword [0x1400a87e8]
mov rcx, rdi
call qword [0x140081008]
jmp 0x14000c4a7
test ebp, ebp
jle 0x14000c488
lea rcx, [rdi + rsi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000c499
mov qword [r14], rsi
mov rax, rdi
jmp 0x14000c4a9
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
Function at 0x14000c770
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x1400a8804], 0
lea rdi, [0x1400a8800]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x14000c848
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x14000c7a0
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x14000c87e
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x14000c860
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x14000c8bf
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x14000c8a3
cmp byte [r8], r9b
jne 0x14000c8a3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x14000c890
not eax
pop rdi
ret
Function at 0x1400149e0
Capabilities:
Write file on windows

Disassembly:
push rdi
push r15
sub rsp, 0x28
mov rax, qword [0x1400a87d8]
xor edi, edi
mov r15, rcx
mov dword [rax + 0x2d9c], edi
test rcx, rcx
je 0x140014b0f
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov rsi, qword [0x1400a87d8]
lea rbx, [rsi + 0x2da0]
mov dword [rsi + 0x2d9c], edi
mov ecx, dword [rbx + 4]
test ecx, ecx
jns 0x140014a45
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.140017b40
mov dword [rbx], edi
cmp dword [rbx + 4], edi
jne 0x140014a59
mov edx, 8
mov rcx, rbx
call fcn.140017b40
movsxd rcx, dword [rbx]
mov ebp, edi
mov rax, qword [rbx + 8]
mov byte [rcx + rax], dil
inc dword [rbx]
cmp dword [rsi + 0x2db0], edi
jle 0x140014aaa
mov qword [rsp + 0x20], r14
mov r14, rdi
nop dword [rax + rax]
mov r9, qword [rsi + 0x2db8]
mov r8, rbx
add r9, r14
mov rcx, rsi
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add r14, 0x30
cmp ebp, dword [rsi + 0x2db0]
jl 0x140014a80
mov r14, qword [rsp + 0x20]
cmp qword [rbx + 8], rdi
je 0x140014ab4
mov edi, dword [rbx]
dec edi
mov rax, qword [rsi + 0x2da8]
lea rdx, [0x140053cb4]
test rax, rax
movsxd rbp, edi
lea rdi, [0x1400a87e0]
mov rcx, r15
cmovne rdi, rax
call fcn.14000c4d0
mov rsi, qword [rsp + 0x50]
mov rbx, rax
test rax, rax
je 0x140014b05
mov r9, rax
mov r8, rbp
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x28
pop r15
pop rdi
ret