joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400032b7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x1400027ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1400027c6
repz ret
ror rcx, 0x10
jmp 0x140003210
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140083e00]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140083ef8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140003295
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140083e00]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400032b7
mov rax, qword [rsp + 0x88]
mov qword [0x140083ef8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140083e98], rax
mov rax, qword [0x140083ef8]
mov qword [0x140083d70], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140083e80], rax
mov dword [0x140083d60], 0xc0000409
mov dword [0x140083d64], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140082008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140083df8], eax
mov ecx, 1
call fcn.14000d730
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, str.__b_
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140083df8], 0
jne 0x14000333e
mov ecx, 1
call fcn.14000d730
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140006500
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
add rsp, 0x28
ret
Function at 0x2fc4d31d0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d42b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d3bd2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d3c6a
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d3c4e
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 0x2fc4d3c42
cmp qword [rbp - 0x10], 0
je 0x2fc4d3c42
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 0x2fc4d3c08
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d3c6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d3d70
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 0x2fc4d3d98
mov eax, 0
jmp 0x2fc4d3de6
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 0x2fc4d3dc1
mov eax, 0
jmp 0x2fc4d3de6
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 0x2fc4d3de1
mov eax, 0
jmp 0x2fc4d3de6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d3dec
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 0x2fc4d3e6a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d3e61
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 0x2fc4d3e61
mov rax, qword [rbp - 8]
jmp 0x2fc4d3e7f
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 0x2fc4d3e34
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140008d38
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x1400100e0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r8d, 0x40
lea rdx, [rsp + 0x20]
lea rcx, str._MSI_TEST
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
je 0x140008da0
movzx eax, word [rsp + 0x20]
lea rdx, [rsp + 0x22]
test eax, eax
je 0x140008d9e
mov ecx, dword [0x140010bb0]
and eax, 0x1f
bts ecx, eax
movzx eax, word [rdx]
lea rdx, [rdx + 2]
test eax, eax
jne 0x140008d87
mov dword [0x140010bb0], ecx
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140001490
add rsp, 0xb8
ret

Function at 0x14000a330
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
cmp byte [0x1400110da], bl
jne 0x14000a3f3
cmp byte [0x140010dc4], bl
je 0x14000a3f3
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14000a404
lea rdx, str.GetSystemWow64DirectoryW
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
jne 0x14000a3a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
xor edi, edi
jmp 0x14000a3d0
movabs r10, 0x9351969e78d6d070
mov edx, 0x105
mov rcx, rdi
call qword [0x14000b670]
mov edi, eax
test eax, eax
jne 0x14000a3d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, edi
jmp 0x14000a404
mov edx, 0x105
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x2fc5529f0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc553ad0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc5533f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc575108]
test eax, eax
je 0x2fc55348a
lea rax, [0x2fc5750e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc575110]
mov qword [rbp - 8], rax
jmp 0x2fc55346e
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 0x2fc553462
cmp qword [rbp - 0x10], 0
je 0x2fc553462
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 0x2fc553428
lea rax, [0x2fc5750e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc55348b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc553590
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 0x2fc5535b8
mov eax, 0
jmp 0x2fc553606
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 0x2fc5535e1
mov eax, 0
jmp 0x2fc553606
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 0x2fc553601
mov eax, 0
jmp 0x2fc553606
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc55360c
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 0x2fc55368a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc553681
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 0x2fc553681
mov rax, qword [rbp - 8]
jmp 0x2fc55369f
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 0x2fc553654
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002f50
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, qword [fcn.140078e20]
xor ebx, ebx
mov rbp, rcx
mov rsi, rdx
test rdx, rdx
jle 0x140002f93
nop
mov r12, qword [rbp + rbx*8]
mov ecx, 1
add rbx, 1
call rdi
xor r8d, r8d
mov rcx, rax
mov rdx, r12
call fcn.140002df0
cmp rsi, rbx
jg 0x140002f70
mov ecx, 1
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x14007b29c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rdi
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.msvcrt.dll_fflush

Function at 0x140003200
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x20
xor r12d, r12d
mov r15, rcx
mov ecx, 0xfa0
call fcn.14000ba80
mov r14, rax
lea rbx, [rax + 0x10]
test rax, rax
je 0x1400032ed
nop dword [rax]
mov rdx, qword [r14]
test rdx, rdx
jg 0x140003243
sub rdx, 1
xor ecx, ecx
call fcn.14000d860
mov r9, r15
mov r8d, 0xfa0
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
mov r13, rax
cmp rax, 0xfa0
je 0x140003328
mov rcx, r15
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x140003399
test r13, r13
js 0x140003380
mov rdx, r13
mov rcx, r14
call fcn.14000bac0
mov rbx, rax
test rax, rax
je 0x140003360
mov rdx, qword [rax]
mov rcx, r12
call fcn.14000c4a0
lea rdx, [rbx + 0x10]
mov r12, rax
mov rax, qword [rax]
lea rcx, [r12 + rax + 0x10]
mov rax, qword [rbx]
lea r8, [rax + 1]
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx]
add qword [r12], rax
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r12
xor edx, edx
call fcn.14000c4a0
mov r12, rax
mov rdx, 0xffffffffffffffff
xor ecx, ecx
call fcn.14000d860
mov r9, r15
mov r8d, 0xfa0
mov edx, 1
mov ecx, 0x10
call sub.msvcrt.dll_fread
mov r13, rax
cmp rax, 0xfa0
jne 0x140003268
jmp 0x1400032e0
mov rdx, qword [r14]
mov rcx, r12
call fcn.14000c4a0
mov rdx, rbx
mov r12, rax
mov rax, qword [rax]
lea rcx, [r12 + rax + 0x10]
mov rax, qword [r14]
lea r8, [rax + 1]
call sub.msvcrt.dll_memcpy
mov rax, qword [r14]
add qword [r12], rax
jmp 0x140003230
xor edx, edx
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.14000c4a0
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r13
call fcn.14000d6c0
jmp 0x140003281
mov rcx, r15
call fcn.140002c60
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400033b0
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x20
mov r13, rcx
mov rbx, rdx
test rdx, rdx
js 0x140003518
mov rcx, rbx
call fcn.14000ba80
mov r12, rax
test rax, rax
je 0x140003508
mov rdx, qword [rax]
test rdx, rdx
jle 0x140003470
test rbx, rbx
js 0x140003484
lea rcx, [r12 + 0x10]
mov r9, r13
mov r8, rbx
mov edx, 1
call sub.msvcrt.dll_fread
mov rcx, r13
mov r14, rax
cmp rbx, rax
je 0x1400034a0
call sub.msvcrt.dll_ferror
mov rcx, r13
test eax, eax
jne 0x140003569
call sub.msvcrt.dll_fgetc
mov rdx, r13
mov esi, eax
mov ecx, eax
call sub.msvcrt.dll_ungetc
test esi, esi
jns 0x1400034b5
cmp rbx, r14
jle 0x1400034f2
test r14, r14
js 0x140003550
mov rdx, r14
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
jmp fcn.14000bac0
sub rdx, 1
xor ecx, ecx
call fcn.14000d860
test rbx, rbx
jns 0x1400033f4
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.14000d6c0
jmp 0x1400033f4
call sub.msvcrt.dll_fgetc
mov rdx, r13
mov ebx, eax
mov ecx, eax
call sub.msvcrt.dll_ungetc
test ebx, ebx
js 0x1400034f2
mov rcx, r13
call fcn.140003200
mov rbx, rax
test rax, rax
je 0x140003538
mov rdx, qword [rax]
mov rcx, r12
call fcn.14000c4a0
lea rdx, [rbx + 0x10]
mov r12, rax
mov rax, qword [rax]
lea rcx, [r12 + rax + 0x10]
mov rax, qword [rbx]
lea r8, [rax + 1]
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx]
add qword [r12], rax
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
mov rdx, 0xffffffffffffffff
jmp 0x140003474
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.14000d6c0
jmp 0x1400033cb
xor edx, edx
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
jmp fcn.14000c4a0
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r14
call fcn.14000d6c0
jmp 0x14000344f
call fcn.140002c60
nop
nop
push r14
push r13
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
xor ecx, ecx
call qword [fcn.140078e20]
cmp r12, rax
je 0x1400035c8
mov r13, qword [0x14007a190]
mov rcx, r12
call r13
xor edx, edx
mov r8d, 2
mov rcx, r12
mov r14, rax
mov rbx, qword [0x14007a198]
call rbx
mov rcx, r12
call r13
xor r8d, r8d
mov rdx, r14
mov rcx, r12
mov r13, rax
call rbx
test r13, r13
jg 0x1400035e0
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
jmp fcn.140003200
mov rdx, r13
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
jmp fcn.1400033b0
Function at 0x140003570
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x20
mov r13, rcx
mov rbx, rdx
test rdx, rdx
js 0x140003518
mov rcx, rbx
call fcn.14000ba80
mov r12, rax
test rax, rax
je 0x140003508
mov rdx, qword [rax]
test rdx, rdx
jle 0x140003470
test rbx, rbx
js 0x140003484
lea rcx, [r12 + 0x10]
mov r9, r13
mov r8, rbx
mov edx, 1
call sub.msvcrt.dll_fread
mov rcx, r13
mov r14, rax
cmp rbx, rax
je 0x1400034a0
call sub.msvcrt.dll_ferror
mov rcx, r13
test eax, eax
jne 0x140003569
call sub.msvcrt.dll_fgetc
mov rdx, r13
mov esi, eax
mov ecx, eax
call sub.msvcrt.dll_ungetc
test esi, esi
jns 0x1400034b5
cmp rbx, r14
jle 0x1400034f2
test r14, r14
js 0x140003550
mov rdx, r14
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
jmp fcn.14000bac0
sub rdx, 1
xor ecx, ecx
call fcn.14000d860
test rbx, rbx
jns 0x1400033f4
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.14000d6c0
jmp 0x1400033f4
call sub.msvcrt.dll_fgetc
mov rdx, r13
mov ebx, eax
mov ecx, eax
call sub.msvcrt.dll_ungetc
test ebx, ebx
js 0x1400034f2
mov rcx, r13
call fcn.140003200
mov rbx, rax
test rax, rax
je 0x140003538
mov rdx, qword [rax]
mov rcx, r12
call fcn.14000c4a0
lea rdx, [rbx + 0x10]
mov r12, rax
mov rax, qword [rax]
lea rcx, [r12 + rax + 0x10]
mov rax, qword [rbx]
lea r8, [rax + 1]
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx]
add qword [r12], rax
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
mov rdx, 0xffffffffffffffff
jmp 0x140003474
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.14000d6c0
jmp 0x1400033cb
xor edx, edx
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
jmp fcn.14000c4a0
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r14
call fcn.14000d6c0
jmp 0x14000344f
call fcn.140002c60
nop
nop
push r14
push r13
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
xor ecx, ecx
call qword [fcn.140078e20]
cmp r12, rax
je 0x1400035c8
mov r13, qword [0x14007a190]
mov rcx, r12
call r13
xor edx, edx
mov r8d, 2
mov rcx, r12
mov r14, rax
mov rbx, qword [0x14007a198]
call rbx
mov rcx, r12
call r13
xor r8d, r8d
mov rdx, r14
mov rcx, r12
mov r13, rax
call rbx
test r13, r13
jg 0x1400035e0
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
jmp fcn.140003200
mov rdx, r13
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
jmp fcn.1400033b0
Function at 0x140004040
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x140004061
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sub.msvcrt.dll_fflush

Function at 0x140004120
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
mov ecx, 2
call qword [fcn.140078e20]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop word cs:[rax + rax]
nop dword [rax]
ret

Function at 0x14000da80
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
push r12
push rbx
sub rsp, 0x150
movups xmmword [rbp - 0x20], xmm6
cmp qword [0x1400bb858], 0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov byte [rbp - 0x131], 1
je 0x14000db72
mov rax, qword [0x1400bb848]
lea rcx, [rbp - 0x120]
mov rdx, rbp
mov qword [rbp - 0x130], rax
lea rax, [rbp - 0x130]
mov qword [0x1400bb848], rax
call sub.msvcrt.dll__setjmp
cdqe
mov qword [rbp - 0x128], rax
test rax, rax
jne 0x14000db98
xor r12d, r12d
cmp qword [rbp + 0x10], 0
je 0x14000db43
mov rcx, qword [rbp + 0x10]
call sub.msvcrt.dll_strlen
mov edx, 7
lea rcx, [0x14007a020]
cmp rax, rdx
movq xmm6, rax
mov rbx, rax
cmovge rdx, rax
movq xmm0, rdx
add rdx, 0x11
punpcklqdq xmm6, xmm0
call fcn.14000a3d0
mov rdx, qword [rbp + 0x10]
lea r8, [rbx + 1]
movups xmmword [rax], xmm6
lea rcx, [rax + 0x10]
mov r12, rax
call sub.msvcrt.dll_memcpy
mov rcx, r12
call qword [0x1400bb858]
mov rax, qword [0x1400bb848]
cmp qword [rbp - 0x128], 0
mov byte [rbp - 0x131], 0
mov rax, qword [rax]
mov qword [0x1400bb848], rax
jne 0x14000dc05
movzx eax, byte [rbp - 0x131]
test al, al
jne 0x14000dc20
movups xmm6, xmmword [rbp - 0x20]
add rsp, 0x150
pop rbx
pop r12
pop rbp
ret
mov rax, qword [0x1400bb848]
mov rax, qword [rax]
mov qword [rbp - 0x128], 0
mov qword [0x1400bb848], rax
mov rax, qword [0x1400bb840]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x14000dbd5
add qword [rbx - 0x10], 8
mov rax, qword [0x1400bb840]
test rax, rax
je 0x14000dbf0
mov rdx, qword [rax - 0x10]
lea rcx, [rax - 0x10]
sub rdx, 8
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x14000dbf0
call fcn.140006db0
cmp qword [rbp - 0x128], 0
mov qword [0x1400bb840], rbx
je 0x14000db72
mov rcx, qword [0x1400bb840]
test rcx, rcx
je 0x14000dc50
call fcn.14000dfe0
jmp 0x14000db72
mov ecx, 2
call qword [fcn.140078e20]
mov rcx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fflush
jmp 0x14000db81
call fcn.14000d9f0
nop
nop word cs:[rax + rax]
Function at 0x1400115a0
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
test rcx, rcx
je 0x1400115fb
mov rdx, qword [rcx]
add rcx, 0x10
xor eax, eax
lea r8, [rcx + rdx]
test rdx, rdx
jle 0x1400115fb
nop word [rax + rax]
movzx edx, byte [rcx]
add rcx, 1
add rdx, rax
mov rax, rdx
shl rax, 0xa
add rax, rdx
mov rdx, rax
shr rdx, 6
xor rax, rdx
cmp r8, rcx
jne 0x1400115c0
lea rdx, [rax + rax*8]
mov rax, rdx
shr rax, 0xb
xor rax, rdx
mov r9, rax
shl r9, 0xf
add r9, rax
mov rax, r9
ret

Function at 0x1400137b0
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rsi, [rdx + 3]
test rdx, rdx
mov rbx, rcx
mov rdi, rdx
cmovns rsi, rdx
and rsi, 0xfffffffffffffffc
jle 0x140013920
test rdx, rdx
jle 0x140013910
cmp rdx, rsi
mov rdx, rsi
cmovle rdx, rdi
xor r12d, r12d
xor r13d, r13d
nop dword [rax]
mov eax, dword [rbx + r12]
add r12, 4
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r13d
rol eax, 0xd
lea r13d, [rax + rax*4 - 0x19ab949c]
cmp r12, rdx
jl 0x1400137f8
cmp rsi, r12
jle 0x140013865
lea rbp, [rdi - 1]
nop dword [rax + rax]
mov rcx, r12
mov rdx, rbp
call fcn.14000d860
mov eax, dword [rbx + r12]
add r12, 4
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r13d
rol eax, 0xd
lea r13d, [rax + rax*4 - 0x19ab949c]
cmp rsi, r12
jg 0x140013830
mov rax, rdi
xor ebp, ebp
sar rax, 0x3f
shr rax, 0x3e
lea r14, [rdi + rax]
and r14d, 3
sub r14, rax
test r14, r14
jle 0x1400138c6
lea r12, [rdi - 1]
nop word cs:[rax + rax]
sub r14, 1
lea r15, [rsi + r14]
cmp rdi, r15
jg 0x1400138a8
mov rdx, r12
mov rcx, r15
call fcn.14000d860
movzx eax, byte [rbx + r15]
shl ebp, 8
or ebp, eax
test r14, r14
jne 0x140013890
imul ebp, ebp, 0xcc9e2d51
rol ebp, 0xf
imul ebp, ebp, 0x1b873593
xor r13d, edi
mov eax, r13d
xor eax, ebp
mov r13d, eax
shr r13d, 0x10
xor r13d, eax
imul r13d, r13d, 0x85ebca6b
mov edx, r13d
shr edx, 0xd
xor edx, r13d
imul edx, edx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r12d, r12d
xor r13d, r13d
jmp 0x140013827
xor esi, esi
xor r13d, r13d
jmp 0x140013865
push r12
sub rsp, 0x20
xor edx, edx
mov r12, rcx
test rcx, rcx
je 0x14001394c
mov rdx, qword [rcx]
test rdx, rdx
js 0x140013960
add r12, 0x10
mov rcx, r12
add rsp, 0x20
pop r12
jmp 0x1400137b0
lea r9, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, r9
call fcn.140010200
mov rdx, qword [r12]
jmp 0x140013948