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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140100bf4
mov r15, qword [rsp + 0x60]
lea r9d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x140100bf4
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r9w, dx
jae 0x140100afb
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x140100c1b
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140100b12
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x140100b12
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140100b25
movzx r8d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x140100b72
mov r8d, eax
cmp eax, 0x800
jae 0x140100b3f
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x140100b72
cmp eax, 0x10000
jae 0x140100b59
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x140100b72
shr r8d, 0x12
mov r10d, 3
movzx r11d, sil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r9d
cmp rdx, rcx
jl 0x140100bf4
add qword [r14], 2
test sil, sil
jne 0x140100b93
cmp r10d, 3
jae 0x140100b9f
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
test r9d, r9d
je 0x140100bd1
lea r8d, [r10 + r10*2]
add r8d, r8d
nop dword [rax + rax]
sub r8d, 6
mov edx, eax
mov ecx, r8d
dec r9d
shr edx, cl
mov rcx, qword [rbx]
and dl, 0x3f
or dl, 0x80
mov byte [rcx], dl
inc qword [rbx]
test r9d, r9d
jg 0x140100bb0
shr eax, 0xa
mov r9d, 1
test sil, sil
mov ecx, r9d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x140100aaf
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x140100c02
Function at 0x140100c30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140100dc4
mov r15, qword [rsp + 0x60]
lea r9d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x140100dc4
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r9w, dx
jae 0x140100ccb
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x140100deb
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140100ce2
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x140100ce2
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140100cf5
movzx r8d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x140100d42
mov r8d, eax
cmp eax, 0x800
jae 0x140100d0f
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x140100d42
cmp eax, 0x10000
jae 0x140100d29
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x140100d42
shr r8d, 0x12
mov r10d, 3
movzx r11d, sil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r9d
cmp rdx, rcx
jl 0x140100dc4
add qword [r14], 2
test sil, sil
jne 0x140100d63
cmp r10d, 3
jae 0x140100d6f
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
test r9d, r9d
je 0x140100da1
lea r8d, [r10 + r10*2]
add r8d, r8d
nop dword [rax + rax]
sub r8d, 6
mov edx, eax
mov ecx, r8d
dec r9d
shr edx, cl
mov rcx, qword [rbx]
and dl, 0x3f
or dl, 0x80
mov byte [rcx], dl
inc qword [rbx]
test r9d, r9d
jg 0x140100d80
shr eax, 0xa
mov r9d, 1
test sil, sil
mov ecx, r9d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x140100c7f
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x140100dd2
Function at 0x140101ae0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x1401af968]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rbx, r8
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
jae 0x140101c92
lea rax, str.cannot_write_to_file
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
xor ebx, ebx
mov qword [rbp - 0x60], rbx
lea rax, [rbp - 0x40]
mov qword [rbp - 0x58], rax
mov dword [rsp + 0x20], ecx
lea rax, [0x1401af588]
mov qword [rsp + 0x28], rax
mov qword [rbp - 0x10], rbx
lea rdi, vtable.fmt::v9::basic_memory_buffer_char__500__class_std::allocator_char__.0
mov qword [rbp - 0x20], rdi
lea rax, [rbp]
mov qword [rbp - 0x18], rax
mov qword [rbp - 8], 0x1f4
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x68], xmm1
mov dword [rsp + 0x78], ebx
lea rax, [rbp - 0x20]
mov qword [rbp - 0x80], rax
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rbx
movdqa xmmword [rbp - 0x60], xmm1
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x60]
call fcn.1400bca60
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], bl
mov r8, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x60]
call fcn.140008e70
nop
mov qword [rbp - 0x20], rdi
lea rax, [rbp]
mov rcx, qword [rbp - 0x18]
cmp rcx, rax
je 0x140101c06
mov rdx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140101c00
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140101c62
call fcn.140117b2c
nop
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400dd1a0
lea rax, vtable.std::system_error.0
mov qword [rsp + 0x40], rax
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x140101c73
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140101c69
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140101c69
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140117b2c
mov rax, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call qword [rax + 8]
nop
lea rax, vtable.std::exception.0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll___std_exception_destroy
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1401185a0
add rsp, 0x310
pop rdi
pop rbx
pop rbp
ret
Function at 0x14010c9a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rbp, rcx
mov rbx, r9
mov ecx, dword [0x1401af950]
mov rdi, r8
mov rsi, rdx
cmp ecx, 0xffffffff
je 0x14010c9d6
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14010c9f0
call fcn.14010ef80
mov ecx, dword [0x1401af950]
cmp ecx, 0xffffffff
jne 0x14010c9ea
xor eax, eax
jmp 0x14010c9f0
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x40], rbx
lea rdx, [rsp + 0x48]
movsd xmm1, qword [rsp + 0x40]
lea rbx, [rax + 0x28]
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x48], rbp
movsd qword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x50], xmm0
call fcn.14010ab20
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, rbx
lea r9, [rax + 0x20]
call fcn.14010afb0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14010dfb0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, dword [0x1401af950]
cmp ecx, 0xffffffff
je 0x14010dfcf
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14010dffa
call fcn.14010ef80
mov ecx, dword [0x1401af950]
cmp ecx, 0xffffffff
jne 0x14010dff4
xor eax, eax
lea rdx, [rsp + 0x30]
lea rcx, [rax + 0x28]
call fcn.14010de10
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rcx, [rax + 0x28]
lea rdx, [rsp + 0x30]
call fcn.14010de10
add rsp, 0x28
ret

Function at 0x14010e010
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1401af950]
cmp ecx, 0xffffffff
je 0x14010e077
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14010e077
mov rdx, qword [rax + 0x28]
mov rcx, rdx
mov r8, qword [rdx + 8]
cmp byte [r8 + 0x19], 0
jne 0x14010e05a
cmp qword [r8 + 0x20], rbx
jae 0x14010e04d
mov r8, qword [r8 + 0x10]
jmp 0x14010e053
mov rcx, r8
mov r8, qword [r8]
cmp byte [r8 + 0x19], 0
je 0x14010e041
cmp rcx, rdx
je 0x14010e065
cmp rbx, qword [rcx + 0x20]
jae 0x14010e068
mov rcx, rdx
cmp rcx, rdx
je 0x14010e077
lea rax, [rcx + 0x28]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14010ef80
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
call fcn.14010b1e0
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rdx, [0x14010d630]
lea rcx, [0x1401fa988]
call fcn.14010d1d0
mov ecx, dword [0x1401af950]
cmp ecx, 0xffffffff
je 0x14010efc4
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0x30
pop rbx
ret

Function at 0x14010f940
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x14010f968
mov qword [rdi], 0
mov rax, rdi
add rsp, 0x20
pop rdi
ret
cmp qword [rsp + 0x40], 0
jle 0x14010f958
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x38]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14010f99c
inc ebx
cmp ebx, 3
ja 0x14010f9d2
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14010f986
mov rbx, qword [rsp + 0x30]
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x38]
xorps xmm0, xmm0
mulsd xmm1, qword [0x140186fb8]
cvtsi2sd xmm0, qword [rsp + 0x40]
divsd xmm1, xmm0
cvttsd2si rax, xmm1
mov qword [rdi], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov qword [rdi], 0
add rsp, 0x20
pop rdi
ret
Function at 0x14010fd40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov ecx, dword [0x1401af950]
cmp ecx, 0xffffffff
jne 0x14010fd68
xor esi, esi
jmp 0x14010fd71
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x14010fe60
nop
mov rbx, qword [rsi + 0x18]
cmp qword [rsi + 0x30], 0
jne 0x14010fd96
test rbx, rbx
je 0x14010fe39
jmp 0x14010fda0
test rbx, rbx
je 0x14010fdf4
nop dword [rax + rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x14010fdd7
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x14010fda0
cmp qword [rsi + 0x30], 0
je 0x14010fd80
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14010fe1c
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x14010fe1c
call qword [rbx + 0x28]
mov r8, rbx
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 0x28]
call fcn.14010da30
cmp qword [rsi + 0x30], 0
jne 0x14010fe00
jmp 0x14010fd80
lea rdx, [0x14010d630]
lea rcx, [0x1401fa988]
call fcn.14010d1d0
mov ecx, dword [0x1401af950]
cmp ecx, 0xffffffff
je 0x14010fe60
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x14010fe91
or eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x14010fe91
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1401160d8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14011615c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140187160]
cmp byte [rcx + rax], 0
je 0x14011615c
dec r8
sub rdx, 1
jne 0x140116142
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140117278
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14011658c
mov ebx, eax
test eax, eax
jne 0x1401172a8
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14011730b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140117302
test al, 0x10
je 0x140117302
bt eax, 0xa
jae 0x1401172fb
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140117328
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1401172f7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1401172f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x140117302
and dword [rsp + 0x3c], 0
jmp 0x140117307
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140119374
Capabilities:
Parse pe header

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

Function at 0x140001d4c
Capabilities:
Parse pe header

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

Disassembly:
push rdi
push rsi
mov esi, ecx
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x10]
lea rdi, [rax + 0x10]
cmp rbx, rdi
je 0x401073
movzx edx, word [rbx + 0x58]
mov rcx, qword [rbx + 0x60]
call fcn.00401439
cmp eax, esi
jne 0x40106e
mov rax, qword [rbx + 0x30]
jmp 0x401075
mov rbx, qword [rbx]
jmp 0x401052
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x40107d
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x401097
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
je 0x401097
xor eax, eax
ret

Function at 0x401180
Capabilities:
Get number of processors

Disassembly:
push r13
xor eax, eax
push r12
mov r12, rcx
mov ecx, 0x18
push rdi
push rsi
sub rsp, 0xb8
lea rdi, [rsp + 0x50]
lea rsi, [rsp + 0x50]
mov qword [rsp + 0x40], 0
rep stosd dword [rdi], eax
mov rdi, rsi
mov qword [rsp + 0x48], 0
mov ecx, 0x60
mov dword [rsp + 0x3c], 0
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov r13, qword [rax + 0x30]
call fcn.00401016
mov qword [rsp + 0x50], rax
call fcn.00402010
mov rdx, qword [rsp + 0x50]
mov ecx, 0x70e61753
mov qword [rsp + 0x48], 8
sub rax, rdx
add rdx, qword [0x004015e0]
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x40], rdx
call fcn.00401030
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x40123b
mov ecx, 0xadd31df0
call fcn.00401030
mov qword [rsp + 0x98], rax
mov rcx, rax
test rax, rax
jne 0x401297
jmp 0x4012ab
mov rcx, rax
mov edx, 0x3be94c5a
call fcn.00401098
mov qword [rsp + 0x60], rax
test rax, rax
je 0x401328
mov rcx, qword [rsp + 0x90]
mov edx, 0x73a9e4d7
call fcn.00401098
mov qword [rsp + 0x68], rax
test rax, rax
je 0x401328
mov rcx, qword [rsp + 0x90]
mov edx, 0x50e92888
call fcn.00401098
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x40121f
jmp 0x401328
mov edx, 0x36c007a2
call fcn.00401098
mov qword [rsp + 0x78], rax
test rax, rax
je 0x401328
lea rax, [rsp + 0x3c]
or rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x40]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
call qword [rsp + 0x70]
test eax, eax
js 0x401328
mov rdi, qword [rsp + 0x40]
mov r8d, 0x60
mov edx, 8
mov rcx, r13
call qword [rsp + 0x60]
mov qword [rdi], rax
test rax, rax
je 0x401328
mov rax, qword [rsp + 0x40]
mov ecx, 0x18
mov rax, qword [rax]
mov rdi, rax
xor eax, eax
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x50]
mov ecx, 0x60
rep stosb byte [rdi], al
mov rsi, qword [rsp + 0x40]
mov ecx, 0x18
lea rdi, [rsi + 8]
rep stosb byte [rdi], al
mov rcx, r12
call fcn.00401130
add rsp, 0xb8
pop rsi
pop rdi
pop r12
pop r13
ret

Function at 0x401439
Capabilities:
Hash data using djb2

Disassembly:
xor r9d, r9d
test rcx, rcx
je 0x401488
mov r8, rcx
mov r9d, 0x1505
mov al, byte [r8]
test rdx, rdx
jne 0x401458
test al, al
jne 0x40146c
jmp 0x401488
mov r10, r8
sub r10, rcx
cmp r10, rdx
jae 0x401488
test al, al
jne 0x40146c
inc r8
jmp 0x401473
cmp al, 0x60
jbe 0x401473
sub eax, 0x20
mov r10d, r9d
movzx eax, al
inc r8
shl r10d, 5
add eax, r10d
add r9d, eax
jmp 0x40144a
mov eax, r9d
ret
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebp, dword [rcx - 0x4847e902]
fcom dword [r8]
in al, 0x23
xchg dword [0x1105ecb04], eax
cli
adc bl, byte [rax - 0x69]
idiv edi
mov bh, 0x97
mov bl, byte [rcx + rax]
push rsi
and edx, esp
mov ah, byte fs:[rbx]
push rbp
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000aa10]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000aa20]
mov dword [rax], 1
mov rax, qword [0x14000aa30]
mov dword [rax], 1
mov rax, qword [0x14000a9c0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000aa00]
mov dword [0x14000e00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000aae0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000aac0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a970]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a