joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014390
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140014090
cmp qword [0x140024048], 0
mov rbx, rax
je 0x1400144a8
test rax, rax
je 0x1400144a8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140017650
cmp eax, 1
je 0x1400144b6
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.140018d3c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140019508]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400144bc
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140013e60
nop
jmp fcn.140018d3c

Function at 0x1400144d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400142e0
mov ecx, dword [0x140019508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400144f0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140014390
Function at 0x140014c60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
je 0x140014d88
cmp eax, 1
je 0x140014cbb
call fcn.140013be0
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140013560
mov r12d, dword [rbx]
test r12d, r12d
je 0x140014cd0
cmp r12d, 1
jne 0x140014d60
mov rcx, rbp
call fcn.140013850
test rdi, rdi
je 0x140014cbb
mov rcx, rdi
call fcn.140013f80
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140014060]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1400142e0
mov ecx, dword [0x140019508]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140014dc8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.1400142e0
mov ecx, dword [0x140019508]
call r12
test rax, rax
je 0x140014db0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.1400142e0
mov ecx, dword [0x140019508]
call r12
test rax, rax
je 0x140014da0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140014ca6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.140013020
jmp 0x140014ca6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140014390
test rax, rax
jne 0x140014d49
jmp 0x140018d55
call fcn.140014390
test rax, rax
jne 0x140014d25
jmp 0x140018d6e
call fcn.140014390
test rax, rax
jne 0x140014cff
jmp 0x140018d64
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x140015050
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1400142e0
mov ecx, dword [0x140019508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400150c8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140017660
cmp esi, dword [rbx + 0x48]
jae 0x1400150a3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400150a3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400176a0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140014390
mov rbx, rax
jmp 0x14001507d
Function at 0x1400150e0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.1400142e0
mov ecx, dword [0x140019508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400151f0
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.140017660
cmp esi, dword [rbx + 0x48]
jae 0x140015170
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.1400176a0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
test rax, rax
mov rdi, rax
je 0x1400151fd
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x1400151fd
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x140015134
call fcn.140014390
mov rbx, rax
jmp 0x14001511f
mov rcx, r14
call fcn.1400176a0
mov eax, 0xc
jmp 0x140015152

Function at 0x140015280
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400142e0
mov ecx, dword [0x140019508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400152a8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140014390
test rax, rax
jne 0x14001529a
add rsp, 0x28
ret

Function at 0x140015310
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400142e0
mov ecx, dword [0x140019508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140015338
add rax, 0x18
add rsp, 0x28
ret
call fcn.140014390
test rax, rax
jne 0x14001532a
jmp 0x14001532e

Function at 0x140015450
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140021dd8]
test eax, eax
jne 0x140015468
xor eax, eax
add rsp, 0x28
ret
call fcn.1400142e0
mov ecx, dword [0x140019508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140015498
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001545e
test byte [rax + 0x40], 3
je 0x14001545e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140015460
call fcn.140014390
test rax, rax
jne 0x14001547e
jmp 0x14001545e
Function at 0x1400154b0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.1400142e0
mov ecx, dword [0x140019508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400154f0
test ebx, ebx
jle 0x1400154e0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140014390
test rax, rax
jne 0x1400154cd
add rsp, 0x20
pop rbx
ret

Function at 0x1400155e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400142e0
mov ecx, dword [0x140019508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140015658
test byte [rbx + 0x40], 0xc
jne 0x14001560f
mov eax, dword [0x140021dd8]
test eax, eax
jne 0x140015620
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140013560
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140015643
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140015643
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001566c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140013850
call fcn.140014390
test rax, rax
mov rbx, rax
jne 0x1400155ff
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001568a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140013850
call fcn.140015500
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140015710
call fcn.1400167f0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140015748
call fcn.1400142e0
mov ecx, dword [0x140019508]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400157a0
test esi, esi
je 0x140015726
call fcn.1400155e0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140015780
mov edx, edi
call fcn.1400168a0
call fcn.1400155e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400142e0
mov ecx, dword [0x140019508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140015790
call fcn.1400155e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400155e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400142e0
mov ecx, dword [0x140019508]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x1400156e5
call fcn.140014390
mov rbx, rax
jmp 0x1400156e5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400156fe
call fcn.140014390
jmp 0x140015726
call fcn.140014390
mov rbx, rax
jmp 0x1400156e1
Function at 0x1400156a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400142e0
mov ecx, dword [0x140019508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140015658
test byte [rbx + 0x40], 0xc
jne 0x14001560f
mov eax, dword [0x140021dd8]
test eax, eax
jne 0x140015620
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140013560
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140015643
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140015643
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001566c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140013850
call fcn.140014390
test rax, rax
mov rbx, rax
jne 0x1400155ff
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001568a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140013850
call fcn.140015500
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140015710
call fcn.1400167f0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140015748
call fcn.1400142e0
mov ecx, dword [0x140019508]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400157a0
test esi, esi
je 0x140015726
call fcn.1400155e0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140015780
mov edx, edi
call fcn.1400168a0
call fcn.1400155e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400142e0
mov ecx, dword [0x140019508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140015790
call fcn.1400155e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400155e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400142e0
mov ecx, dword [0x140019508]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x1400156e5
call fcn.140014390
mov rbx, rax
jmp 0x1400156e5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400156fe
call fcn.140014390
jmp 0x140015726
call fcn.140014390
mov rbx, rax
jmp 0x1400156e1

Function at 0x1400157b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.1400142e0
mov ecx, dword [0x140019508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140015820
test esi, esi
je 0x140015800
call fcn.1400155e0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140015830
mov edx, esi
call fcn.1400168a0
call fcn.1400155e0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400155e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400155e0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140014390
mov rbx, rax
jmp 0x1400157d1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400157ea
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140028c00]
mov dword [rax], 1
mov rax, qword [0x140028c10]
mov dword [rax], 1
mov rax, qword [0x140028c20]
mov dword [rax], 1
mov rax, qword [0x140028bf0]
mov dword [rax], 1
mov rax, qword [0x140028a60]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400019f9
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12, rcx
mov rcx, rdx
mov r13, rdx
call sub.msvcrt.dll_strlen
mov rcx, r13
mov r9, r12
mov edx, 1
mov r8, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x28
pop r12
pop r13
jmp fcn.14001fa70

Function at 0x140001a5b
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [fcn.1400201a0]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp fcn.14001fa70
Function at 0x1400051ba
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x50
lea rax, [0x140026c60]
mov qword [rcx], 0
mov r12, rcx
mov r13, rdx
mov qword [rcx + 8], rax
mov ecx, 0xfa9
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x30], 0
call fcn.140003aaa
mov qword [rax], 0xfa0
lea rbx, [rax + 8]
lea rsi, [rsp + 0x20]
mov qword [rsp + 0x40], 0xfa0
mov qword [rsp + 0x48], rax
mov r9, r13
mov r8d, 0xfa0
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
mov r14, rax
cmp rax, 0xfa0
je 0x140005259
mov rcx, r13
call fcn.140004f86
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.140004dab
jmp 0x14000527d
mov edx, 0xfa0
mov rcx, r12
call fcn.140004a77
movaps xmm0, xmmword [rsp + 0x40]
mov rdx, rsi
mov rcx, r12
movaps xmmword [rsp + 0x20], xmm0
call fcn.140001baa
jmp 0x140005221
mov rdx, qword [rsp + 0x40]
mov rcx, r12
call fcn.140004a77
movaps xmm1, xmmword [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov rcx, r12
movaps xmmword [rsp + 0x20], xmm1
call fcn.140001baa
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x1400052ce
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140005360
lea r13, [rsp + 0x38]
mov rcx, r13
call fcn.140014e1c
mov rcx, r13
call fcn.140018ca0
test byte [rcx + 7], 0x40
jne 0x1400052ab
call fcn.140002cee
jmp 0x1400052ab
lea rcx, [rsp + 0x30]
call fcn.140002a56
mov rax, r12
add rsp, 0x50
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret

Function at 0x140006e6c
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea r14, [0x1400307e0]
xor esi, esi
mov rbx, rdx
mov rbp, rcx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
shl rbx, 4
mov r12, qword [fcn.1400201a0]
mov qword [rsp + 0x28], rbx
mov ecx, 1
call r12
mov r13, qword [rbp + rsi + 8]
lea r8, [0x140025084]
mov rdi, rax
mov rax, qword [rbp + rsi]
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140006ece
lea r8, [r13 + 8]
lea r15, [0x1400252d4]
mov rcx, rdi
mov rdx, r15
call fcn.1400148e7
mov ebx, eax
movsxd rax, ebx
cmp qword [rsp + 0x20], rax
jle 0x140006f1e
cmp byte [r13 + rax + 8], 0
je 0x140006f0c
lea r8, [r13 + rax + 8]
mov rdx, r15
mov rcx, rdi
call fcn.1400148e7
test eax, eax
jle 0x140006f1e
add ebx, eax
jmp 0x140006ee2
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x140006f1e
inc ebx
jmp 0x140006ee2
add rsi, 0x10
cmp rsi, qword [rsp + 0x28]
jne 0x140006ea4
mov ecx, 1
call r12
mov r8d, 1
mov edx, 1
lea rcx, [0x1400250c7]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call r12
mov rcx, rax
call fcn.14001fa70
mov rcx, r14
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140014a9f
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [r8 + 8]
mov rsi, qword [r8]
mov r8, rbp
mov r10, rcx
mov rdi, rdx
test rbp, rbp
je 0x140014ac8
lea r8, [rbp + 8]
mov rax, rsi
mov ecx, 4
xor r11d, r11d
cqo
idiv rcx
xor ecx, ecx
shl rax, 2
cmp rax, rcx
jg 0x140014b04
xor edx, edx
cmp rax, 0xfffffffffffffffd
mov ecx, 4
mov rbx, rdx
cmovge rbx, rax
mov rax, rsi
cqo
idiv rcx
add r8, rbx
xor ecx, ecx
jmp 0x140014b3a
mov edx, dword [r8 + rcx]
add rcx, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
imul edx, edx, 0x1b873593
xor edx, r11d
rol edx, 0xd
lea edx, [rdx + rdx*4]
lea r11d, [rdx - 0x19ab949c]
jmp 0x140014ade
dec rdx
shl ecx, 8
movzx eax, byte [r8 + rdx]
or ecx, eax
test rdx, rdx
jg 0x140014b2d
imul ebx, ecx, 0xcc9e2d51
xor r11d, esi
rol ebx, 0xf
imul ebx, ebx, 0x1b873593
xor ebx, r11d
mov eax, ebx
shr eax, 0x10
xor ebx, eax
imul ebx, ebx, 0x85ebca6b
mov eax, ebx
shr eax, 0xd
xor ebx, eax
imul ebx, ebx, 0xc2b2ae35
mov eax, ebx
shr eax, 0x10
xor ebx, eax
test rbx, rbx
jne 0x140014b7f
mov ebx, 0x12b9b0a1
mov qword [r9], rbx
or r12, 0xffffffffffffffff
test r10, r10
je 0x140014be6
lea r13, [r10 - 1]
mov r12, rbx
lea r14, [rsp + 0x20]
and r12, r13
lea r15, [rsp + 0x30]
mov rax, r12
shl rax, 5
add rax, rdi
mov rdx, qword [rax + 8]
test rdx, rdx
jne 0x140014bb7
not r12
jmp 0x140014be6
cmp rbx, rdx
jne 0x140014bde
movups xmm0, xmmword [rax + 0x10]
mov rdx, r14
mov rcx, r15
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rbp
movaps xmmword [rsp + 0x30], xmm0
call fcn.140007be6
test al, al
jne 0x140014be6
inc r12
and r12, r13
jmp 0x140014b9f
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140019020
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400201a0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400201a0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x140019c52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140030c88]
test eax, eax
je 0x140019cea
lea rax, [0x140030c60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140030c90]
mov qword [rbp - 8], rax
jmp 0x140019cce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140019cc2
cmp qword [rbp - 0x10], 0
je 0x140019cc2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140019c88
lea rax, [0x140030c60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140019ceb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140019df0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140019e18
mov eax, 0
jmp 0x140019e66
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140019e41
mov eax, 0
jmp 0x140019e66
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140019e61
mov eax, 0
jmp 0x140019e66
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140019e6c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140019eea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140019ee1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140019ee1
mov rax, qword [rbp - 8]
jmp 0x140019eff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140019eb4
mov eax, 0
add rsp, 0x20
pop rbp
ret