joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180042f60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18007a290]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180042fc4
mov eax, 0xa
jmp 0x180043053
test esi, esi
je 0x180042fe6
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180043009
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180043009
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180043002
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180043009
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180043070
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180079340]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18004319a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180043191
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180043174
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180043174
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180043174
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180043132
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x180079c60]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180043191
jmp 0x180043167
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180043167
mov rcx, qword [0x180079c60]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180043191
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800430e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800431f3
cmp dword [rbx + 0xc], esi
jbe 0x1800431f3
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800431ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180043560
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1800431b0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180044890
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180043710
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x18004377f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x180043768
mov qword [rsp + 0x38], rsi
mov rax, qword [rdi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18004375c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180043730
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x180079c60]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180043840
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x180043880
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18007a280]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800438be
cmp rsi, r14
jb 0x1800438b6
cmp rsi, r15
jae 0x1800438b6
cmp qword [rsi + 8], 0
jne 0x180043a87
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800438a1
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180043952
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180043949
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180043949
cmp dword [rsp + 0x70], 0x10000
je 0x1800439cb
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x180043949
sub rbx, rbp
cmp rbx, r14
jae 0x180043910
test rsi, rsi
jne 0x180043a30
cmp rdi, r15
ja 0x180043a6f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180043a6f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180043a6f
cmp dword [rsp + 0x70], 0x10000
je 0x180043a01
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180043982
jmp 0x180043a6f
test rbx, rbx
je 0x180043949
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180043a30
cmp rbx, r14
jae 0x1800438f0
jmp 0x180043952
test rdi, rdi
je 0x180043a6f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180043a30
cmp rdi, r15
jbe 0x180043960
jmp 0x180043a6f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180043a40
mov rax, qword [0x18007a280]
mov qword [rsi], rax
mov qword [0x18007a280], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x180045820
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18004585a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18004585f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800458a8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180051ea0]
cmp byte [rcx + rax], 0
je 0x1800458a8
dec r8
sub rdx, 1
jne 0x18004588e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140002ae0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rdx, rcx
mov rax, qword [0x140044a88]
xor rax, rsp
mov qword [rsp + 0x40], rax
movabs r14, 0xd6ce926fbd74f5c3
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x38], 0
lea r8, [0x14003996a]
call fcn.14001fe84
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov eax, 0x44bdff6a
mov r13d, 0x4bf47806
mov ebx, 0x74db2b2e
mov ebp, 0x42d98b0
mov r15d, 0x68c52f30
jmp 0x140002b60
mov eax, 0xf2887a81
mov r12d, esi
nop
cmp eax, 0x4bf47805
jg 0x140002ba0
cmp eax, 0xf78fa127
jle 0x140002bd0
cmp eax, 0xf78fa128
je 0x140002c42
cmp eax, 0x42d98b0
je 0x140002c9d
cmp eax, 0x44bdff6a
jne 0x140002b60
cmp qword [rsp + 0x28], 0
mov eax, 0xf78fa128
mov ecx, 0xf29167bb
cmove eax, ecx
jmp 0x140002b60
cmp eax, 0x68c52f2f
jle 0x140002c20
cmp eax, 0x68c52f30
je 0x140002caa
cmp eax, 0x73f0b8a3
je 0x140002cb7
cmp eax, 0x74db2b2e
jne 0x140002b60
mov eax, 0x4bf47806
jmp 0x140002b60
cmp eax, 0xa4fd4a3d
je 0x140002b57
cmp eax, 0xf29167bb
jne 0x140002d05
mov eax, dword [0x1400457a0]
lea ecx, [rax - 1]
imul ecx, eax
not ecx
or ecx, 0xfffffffe
cmp ecx, 0xffffffff
sete cl
mov eax, 0x74db2b2e
cmove eax, r13d
cmp dword [0x1400457a4], 0xa
cmovge eax, ebx
setl dl
xor dl, cl
cmovne eax, r13d
jmp 0x140002b60
cmp eax, 0x4bf47806
je 0x140002cd0
cmp eax, 0x5eec9084
jne 0x140002b60
mov eax, 0xa4fd4a3d
xor esi, esi
jmp 0x140002b60
mov ecx, 0x200
call fcn.1400204a8
mov rdi, rax
mov r9, qword [rsp + 0x38]
mov edx, 1
mov r8d, 0x200
mov rcx, rax
call fcn.140020214
mov rcx, qword [rsp + 0x38]
call fcn.14001ffb0
movsxd rax, dword [rdi + 0x3c]
add rax, r14
add rax, rdi
sub rax, r14
mov qword [rsp + 0x30], rax
movzx eax, word [rdi]
cmp eax, 0x5a4d
mov eax, 0x5eec9084
mov ecx, 0x73f0b8a3
cmove eax, ecx
jmp 0x140002b60
mov eax, 0xf2887a81
xor r12d, r12d
jmp 0x140002b60
mov eax, 0xa4fd4a3d
mov sil, 1
jmp 0x140002b60
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
mov eax, 0x5eec9084
cmove eax, r15d
jmp 0x140002b60
mov eax, dword [0x1400457a0]
lea ecx, [rax - 1]
imul ecx, eax
mov eax, ecx
xor eax, 0xfffffffe
test eax, ecx
sete cl
mov eax, 0x74db2b2e
cmove eax, ebp
cmp dword [0x1400457a4], 0xa
cmovge eax, ebx
setl dl
xor dl, cl
cmovne eax, ebp
jmp 0x140002b60
cmp eax, 0xf2887a81
jne 0x140002b60
mov rax, qword [rsp + 0x20]
and r12b, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400147e0
mov eax, r12d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14001e6a0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001e7e8
Function at 0x140026f14
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 0x140026f9b
mov rsi, rbx
cmp word [rax], bp
je 0x140026f5a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140026f44
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140026f40
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140024974
mov rdi, rax
test rax, rax
je 0x140026f88
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400192c0
mov rbp, rdi
xor ecx, ecx
call fcn.140023e48
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 0x140028974
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, [0x140046b10]
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 0x1400289cb
cmp word [rdx], r13w
jne 0x1400289cb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400289d0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140028af5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140028b16
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140028a09
mov rdx, r9
mov word [rbx], cx
jmp 0x140028a30
cmp r9, r8
jae 0x140028a40
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 0x1400289ea
jmp 0x140028af5
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 0x140028aea
cmp dword [rsp + 0x80], esi
je 0x140028aea
lea r8, [0x140046b10]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140028ac2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140028a92
mov word [rbx], r13w
jmp 0x140028af2
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 0x140028a9f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140028af2
cmp word [rsp + 0x70], r13w
jne 0x140028acf
cmp rbx, r14
je 0x140028a8c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002d6d8
cmp word [rsp + 0x70], r13w
je 0x140028af5
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, [0x140046b10]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140028aef
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140028af5
Function at 0x14002c228
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002c23e
mov al, 1
jmp 0x14002c29e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002c24f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002c29c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002740c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002c29c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002c29c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002c29c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002c29e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14002e964
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14002d6d8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002d6d8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002eab4
cmp rax, 0xffffffffffffffff
je 0x14002eab4
xor edi, edi
test rbp, rbp
jle 0x14002ea5f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140024804
mov rbx, rax
test rax, rax
jne 0x14002e9ec
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002ea55
mov edx, 0x8000
mov ecx, r14d
call fcn.14001fd6c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140029760
cmp eax, 0xffffffff
je 0x14002ea35
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002e9fc
mov edx, r15d
mov ecx, r14d
call fcn.14001fd6c
jmp 0x14002ea55
cmp byte [rsi + 0x38], dil
je 0x14002ea4c
cmp dword [rsi + 0x34], 5
jne 0x14002ea4c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002ea55
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140023e48
jmp 0x14002eac8
jns 0x14002eac8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002d6d8
cmp rax, 0xffffffffffffffff
jne 0x14002ea80
cmp byte [rsi + 0x30], dil
je 0x14002eac8
mov edi, dword [rsi + 0x2c]
jmp 0x14002eac8
mov ecx, r14d
call fcn.14002740c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002eac8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14002eac8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002eac1
mov eax, dword [rsi + 0x2c]
jmp 0x14002eac6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002d6d8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14012abd8
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x14012ac32
mov r11b, 0x23
lea rbx, [0x140ec2d20]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x14012ac1c
cmp rdx, 2
jb 0x14012ac1c
cmp byte [r10], r11b
jne 0x14012ac1c
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x14012abfa
jmp 0x14012ac73
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x14012ac73
mov r11b, 0x23
lea rbx, [0x140ec2d20]
cmp dl, r11b
jne 0x14012ac57
cmp byte [r10], r11b
jne 0x14012ac57
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rbx + rcx*4]
test dl, dl
jne 0x14012ac45
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x14012adc8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14012ade9
and qword [r8], 0
lea rdx, [0x140ec2834]
call fcn.14012ac84
mov rbx, rax
test rax, rax
je 0x14012aea4
mov rcx, rax
call fcn.140ce309c
mov esi, eax
cmp eax, 0xffffffff
je 0x14012ae9c
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.140ce3bec
test eax, eax
jne 0x14012ae9c
mov rcx, rbx
call fcn.140ce309c
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14012ae9c
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.140ce3bec
test eax, eax
jne 0x14012ae9c
mov rsi, rdi
cmp rdi, 0xffffffffffffffff
je 0x14012ae9c
mov rcx, rdi
call fcn.14012d7b8
mov rdi, rax
test rax, rax
je 0x14012ae9c
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.140ceb6a4
mov rcx, rbx
cmp rax, rsi
je 0x14012ae8a
call fcn.140ce3838
mov rcx, rdi
call fcn.14012d7fc
jmp 0x14012aea4
call fcn.140ce3838
test r14, r14
je 0x14012ae97
mov qword [r14], rsi
mov rax, rdi
jmp 0x14012aea6
mov rcx, rbx
call fcn.140ce3838
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x14012d128
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x100]
mov r11d, 4
mov rax, qword [rcx + 0x108]
mov r9, rcx
mov r10d, r11d
mov ebx, dword [rax + r8*4 - 4]
lea r8, [rsp + 0x38]
not ebx
movzx eax, byte [r8]
inc r8
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x140ec2d20]
xor ebx, dword [rax + rcx*4]
sub r10, 1
jne 0x14012d157
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x404c], ebx
jne 0x14012d191
movsxd r8, edx
mov ecx, ebx
mov edx, r11d
call fcn.14013e038
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14014ce98
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1413332e8]
test rax, rax
je 0x14014ceb3
mov rbx, qword [rax + 0x90]
jmp 0x14014ceb5
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14014cee0
and dword [rbx + 0x2c], eax
add rsp, 0x20
pop rbx
ret
Function at 0x140159984
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r13, r8
mov rsi, rdx
mov rbp, rcx
movzx eax, byte [r8]
mov edx, eax
movabs rcx, 0xcbf29ce484222325
xor rdx, rcx
movabs rcx, 0x100000001b3
imul rdx, rcx
mov qword [rsp + 0x60], rdx
mov rcx, qword [rbp + 0x30]
and rcx, rdx
add rcx, rcx
mov rdx, qword [rbp + 0x18]
mov rbx, qword [rdx + rcx*8 + 8]
lea r8, [rbp + 8]
mov r12, qword [r8]
cmp rbx, r12
jne 0x1401599f0
mov rbx, r12
mov r14, r12
jmp 0x140159a2b
mov rdx, qword [rdx + rcx*8]
jmp 0x1401599ff
cmp rbx, rdx
je 0x140159a25
mov rbx, qword [rbx + 8]
cmp al, byte [rbx + 0x10]
jne 0x1401599f6
mov qword [rsi], rbx
mov byte [rsi + 8], 0
mov rax, rsi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov r12, rbx
mov r14, rbx
movabs rax, 0x7ffffffffffffff
cmp qword [rbp + 0x10], rax
je 0x140159b7b
mov qword [rsp + 0x20], r8
and qword [rsp + 0x28], 0
mov ecx, 0x20
call fcn.140cd8ad8
mov rdi, rax
mov qword [rsp + 0x28], rax
mov cl, byte [r13]
mov byte [rax + 0x10], cl
and qword [rax + 0x18], 0
mov rcx, qword [rbp + 0x10]
add rcx, 1
xorps xmm0, xmm0
js 0x140159a7c
cvtsi2ss xmm0, rcx
jmp 0x140159a91
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [rbp + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x140159aa4
cvtsi2ss xmm1, rcx
jmp 0x140159ab9
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rbp]
jbe 0x140159b1f
mov rcx, rbp
call fcn.14015c7e4
mov rcx, qword [rbp + 0x30]
mov r9, qword [rsp + 0x60]
and rcx, r9
add rcx, rcx
mov rdx, qword [rbp + 0x18]
mov rax, qword [rdx + rcx*8 + 8]
mov rbx, qword [rbp + 8]
cmp rax, rbx
je 0x140159b09
mov r8, qword [rdx + rcx*8]
mov cl, byte [rdi + 0x10]
jmp 0x140159b01
mov rbx, rax
cmp rax, r8
je 0x140159b18
mov rax, qword [rax + 8]
cmp cl, byte [rax + 0x10]
jne 0x140159af5
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov r14, rbx
mov r12, qword [rsp + 0x20]
jmp 0x140159b24
mov qword [rsp + 0x20], rax
jmp 0x140159b0e
mov r9, qword [rsp + 0x60]
mov rdx, qword [rbx + 8]
inc qword [rbp + 0x10]
mov qword [rdi], r12
mov qword [rdi + 8], rdx
mov qword [rdx], rdi
mov qword [rbx + 8], rdi
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x30]
and rax, r9
add rax, rax
mov r8, qword [rcx + rax*8]
cmp r8, qword [rbp + 8]
jne 0x140159b58
mov qword [rcx + rax*8], rdi
jmp 0x140159b6a
cmp r8, r14
jne 0x140159b63
mov qword [rcx + rax*8], rdi
jmp 0x140159b6f
cmp qword [rcx + rax*8 + 8], rdx
jne 0x140159b6f
mov qword [rcx + rax*8 + 8], rdi
mov qword [rsi], rdi
mov byte [rsi + 8], 1
jmp 0x140159a0b
lea rcx, str.unordered_map_set_too_long
call fcn.140cda0a4
int3