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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040ac60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040ac40]
test rbx, rbx
je 0x403134
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40312b
test rsi, rsi
je 0x40312b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403110
lea rcx, [0x0040ac60]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x403370
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x403380
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x403390
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4033d1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4033c8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4033d3
add rax, 0x28
cmp rax, r9
jne 0x4033b4
xor eax, eax
ret

Function at 0x403470
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004074d0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4034dd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4034dd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4034dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4034d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4034df
add rax, 0x28
cmp rax, r9
jne 0x4034c0
xor eax, eax
add rsp, 0x28
ret

Function at 0x4035e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004074d0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x403600
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4035f8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40365d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403654
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403664
add rax, 0x28
cmp rax, r9
jne 0x403640
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x403680
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004074d0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x4036ee
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4036ee
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x4036ee
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4036ee
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x4036e5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x4036f5
add rcx, 0x28
cmp rcx, rax
jne 0x4036d0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x403708
jmp 0x4036ee
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x403716
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x4036ee
test r9d, r9d
jg 0x403700
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret

Function at 0x405a90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400010a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x140001ad8
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140001b65
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140001b65
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b65
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140001b4c
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140001b46
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140001b4e
add rdx, 0x28
jmp 0x140001b2b
xor edx, edx
test rdx, rdx
jne 0x140001b57
xor al, al
jmp 0x140001b6b
cmp dword [rdx + 0x24], 0
jge 0x140001b61
xor al, al
jmp 0x140001b6b
mov al, 1
jmp 0x140001b6b
xor al, al
jmp 0x140001b6b
add rsp, 0x18
ret

Function at 0x14000111d
Capabilities:
Parse pe header

Disassembly:
jmp 0x140002098
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400020e3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400020e3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400020e3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400020e3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400020e3
cmp dword [rcx + 0xf8], 0
je 0x1400020e3
mov al, 1
jmp 0x1400020e5
xor al, al
add rsp, 0x28
ret
Function at 0x140001070
Capabilities:
Execute command
Log keystrokes via polling

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140003008]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rdx, [0x140002270]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
lea rcx, str.mode_40__4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x140001149
nop dword [rax]
nop word [rax + rax]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTimes]
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov r9, qword [rsp + 0x20]
mov rax, rcx
mov r8, qword [rsp + 0x28]
mov r10, r9
sub r10, qword [0x140003648]
sub r10, qword [0x140003630]
sub rax, qword [0x140003638]
add r10, r8
div r10
mov qword [0x140003638], rcx
lea rcx, [0x140002288]
mov edx, eax
mov qword [0x140003648], r8
mov qword [0x140003630], r9
call fcn.140001010
mov ecx, 0x640
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400010c0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001170
add rsp, 0x48
ret
Function at 0x21390
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
sub rsp, 0xb8
mov rax, qword [0x000181d8]
mov qword [rsp + 0x90], rax
movzx r8d, word [rcx + 0x91]
movzx r10d, word [rcx + 0x8d]
mov qword [r11 + 0x20], rbp
movzx eax, r8w
mov qword [r11 - 8], rsi
mov rbp, rcx
shr ax, 0xc
mov rsi, rdx
lea r9, [rsp + 0x28]
and al, 0xf
mov byte [rsp + 0x38], al
movzx eax, r8w
shr r8b, 4
shr ax, 8
and r8b, 0xf
and al, 0xf
mov byte [rsp + 0x39], al
movzx eax, byte [rcx + 0x91]
mov byte [r11 - 0x7e], r8b
movzx r11d, word [rcx + 0x8f]
and al, 0xf
xor r8d, r8d
mov byte [rsp + 0x3b], al
nop
movzx ecx, r8w
movzx edx, r10w
movzx eax, r11w
shr dx, cl
shr ax, cl
inc r8d
and dl, 1
and al, 1
inc r9
add dl, dl
or dl, al
cmp r8d, 0x10
mov byte [r9 - 1], dl
jl 0x21410
xor eax, eax
mov qword [rsp + 0xd0], rbx
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0x93]
mov qword [rsp + 0xa8], rdi
mov edi, 6
sub rbx, 4
mov qword [rsp + 0x68], rax
nop
nop
mov eax, dword [rsp + 0x6c]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x64]
lea rcx, [rsp + 0x6c]
mov r9, rbp
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
call fcn.00016d00
add rbx, 4
movzx r11d, al
mov eax, dword [rsp + 0x68]
dec edi
xor dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x60]
add word [rsp + 0x5c], r11w
test edi, edi
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x64]
mov dword [rbx], eax
jg 0x21490
mov eax, dword [rsp + 0x44]
mov rdi, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov dword [rsi], eax
mov eax, dword [rsp + 0x40]
mov dword [rsi + 4], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsi + 8], eax
mov eax, dword [rsp + 0x48]
mov dword [rsi + 0xc], eax
mov eax, dword [rsp + 0x54]
mov dword [rsi + 0x10], eax
mov eax, dword [rsp + 0x50]
mov dword [rsi + 0x14], eax
movzx eax, word [rsp + 0x5c]
mov word [rsi + 0x18], ax
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x90]
call fcn.00017320
add rsp, 0xb8
ret

Function at 0x140001b18
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
mov ecx, edi
mov edx, eax
mov ebx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rsi
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov edx, 5
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
mov edx, ebx
mov ecx, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_AttachThreadInput]
Function at 0x1400040d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000411a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000411a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000411a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000411a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000411a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000411c
xor al, al
add rsp, 0x28
ret
Function at 0x140002a30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x140047b44], 0
lea rdi, [0x140047b40]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x140002b08
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x140002a60
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x140002b3e
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x140002b20
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x140002b7f
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140002b63
cmp byte [r8], r9b
jne 0x140002b63
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x140002b50
not eax
pop rdi
ret
Function at 0x140002d60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
test r8, r8
je 0x140002d79
mov qword [r8], 0
lea rdx, [0x140039810]
call fcn.140002b90
mov rbx, rax
test rax, rax
jne 0x140002d98
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002e58
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140002e58
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002e58
mov rax, qword [0x1400453f0]
mov rbp, rsi
test rax, rax
je 0x140002df5
inc dword [rax + 0x3c8]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140002e58
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x140002e45
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400453f0]
test rax, rax
je 0x140002e3a
dec dword [rax + 0x3c8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002e61
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140002e53
mov qword [rdi], rbp
mov rax, rsi
jmp 0x140002e63
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140012af0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [0x1400453f0]
xor esi, esi
mov r15, rcx
mov dword [rdi + 0x2d9c], esi
test rcx, rcx
je 0x140012c0a
mov qword [rsp + 0x40], rbx
lea rbx, [rdi + 0x2da0]
mov dword [rdi + 0x2d9c], esi
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x48], rbp
test ecx, ecx
jns 0x140012b4a
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.140013b10
mov dword [rbx], esi
cmp dword [rbx + 4], esi
jne 0x140012b5e
mov edx, 8
mov rcx, rbx
call fcn.140013b10
movsxd rcx, dword [rbx]
mov ebp, esi
mov rax, qword [rbx + 8]
mov byte [rcx + rax], sil
inc dword [rbx]
cmp dword [rdi + 0x2db0], esi
jle 0x140012baa
mov qword [rsp + 0x50], r14
mov r14, rsi
nop dword [rax]
mov r9, qword [rdi + 0x2db8]
mov r8, rbx
add r9, r14
mov rcx, rdi
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add r14, 0x30
cmp ebp, dword [rdi + 0x2db0]
jl 0x140012b80
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
cmp qword [rbx + 8], rsi
je 0x140012bb9
mov esi, dword [rbx]
dec esi
mov rax, qword [rdi + 0x2da8]
lea rdx, [0x140039814]
test rax, rax
movsxd rsi, esi
lea rdi, [0x1400453e8]
mov rcx, r15
cmovne rdi, rax
call fcn.140002b90
mov rbx, rax
test rax, rax
je 0x140012c05
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x14001e910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x14001eac7
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov esi, r9d
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x14001e9a6
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.14001e280
mov r8d, dword [rbx + 0x80]
mov r9d, esi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.14001d890
mov ecx, dword [rbx + 0x84]
test ecx, ecx
jns 0x14001e997
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x80]
test eax, eax
cmovg edx, eax
call fcn.140013850
mov dword [rbx + 0x80], 0
jmp 0x14001eab3
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.14001c6d0
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rdi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rdi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], esi
movsd xmm0, qword [rdi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], esi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140036c98
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140036ce2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140036ce2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140036ce2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140036ce2
cmp dword [rcx + 0x84], 0xe
jbe 0x140036ce2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140036ce4
xor al, al
add rsp, 0x28
ret
Function at 0x14003efa0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1401f5018]
test ecx, ecx
je 0x14003efd0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14003efe9
mov rdi, rax
cmp qword [rax + 8], 0
je 0x14003efe9
add rdi, 0x10
jmp 0x14003f0f3
lea rcx, section..data
call fcn.1401c6a80
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x14003efbd
mov ecx, dword [0x1401f5018]
test ecx, ecx
je 0x14003f0d4
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14003f0f1
mov rsi, rax
test rax, rax
jne 0x14003f07e
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x14003f03b
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14003f117
mov rcx, rax
mov qword [0x1402d9150], rax
mov r8d, 0x18
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x14003f117
mov rsi, rax
lea rax, section..data
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401f5018]
test ecx, ecx
je 0x14003f104
dec ecx
mov rdx, rsi
call fcn.1401f2dc4
mov rax, qword [0x1402d9030]
cmp rax, 3
jne 0x14003f0fd
call fcn.14003e280
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], rax
je 0x14003f0f3
mov rax, qword [rcx + 0x820]
lea rdx, [rax - 1]
mov qword [rcx + 0x820], rdx
cmp qword [rcx + 0x818], 0
jne 0x14003f0f3
cmp rax, 1
jne 0x14003f0f3
call fcn.14003e690
jmp 0x14003f0f3
lea rcx, section..data
call fcn.1401c6a80
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x14003f008
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
call fcn.14003f3c0
jmp 0x14003f08b
lea rcx, section..data
call fcn.1401c6a80
mov ecx, eax
jmp 0x14003f076
ud2
Function at 0x14004bde0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rdx
cmp dword [rcx], 2
jne 0x14004be76
movdqu xmm0, xmmword [rcx + 8]
pshufd xmm1, xmm0, 0x44
pxor xmm1, xmmword [0x1401f7b50]
movdqa xmmword [rsp + 0x30], xmm1
pshufd xmm1, xmm0, 0xee
pxor xmm1, xmmword [0x1401f7b60]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmmword [rsp + 0x50], xmm0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov rdi, qword [rsi]
xor eax, eax
test rdi, rdi
setne al
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.14004c0b0
test rdi, rdi
je 0x14004bf05
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
jmp 0x14004bf1e
mov rdx, qword [rsi]
xor ecx, ecx
test rdx, rdx
setne cl
movabs rax, 0xcbf29ce484222325
xor rax, rcx
movabs rcx, 0x1efac7090aef4a21
imul rax, rcx
test rdx, rdx
je 0x14004c016
mov r9, qword [rsi + 0x10]
test r9, r9
je 0x14004c098
mov rcx, qword [rsi + 8]
movabs rdx, 0x100000001b3
mov r10, r9
and r10, 7
je 0x14004c023
mov r11, rax
mov r8, rcx
nop word cs:[rax + rax]
movzx eax, byte [r8]
inc r8
xor rax, r11
imul rax, rdx
mov r11, rax
dec r10
jne 0x14004bee0
cmp r9, 8
jae 0x14004c02c
jmp 0x14004c098
movzx eax, byte [rsi + 8]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.14004c0b0
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x60]
shl r9, 0x38
or r9, qword [rsp + 0x68]
mov rax, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
add r8, rcx
rol rcx, 0xd
xor rax, r9
xor rcx, r8
rol r8, 0x20
mov rdx, qword [rsp + 0x38]
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rax, r8
xor rcx, rdx
rol rdx, 0x20
xor r8, r9
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
xor rdx, 0xff
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
add rdx, rax
shl rax, 0x10
xor rax, rdx
shr rax, 0x2b
add rdx, rcx
shr rcx, 0x2f
xor rcx, rax
mov rax, rdx
shr rax, 0x20
xor rax, rdx
xor rax, rcx
jmp 0x14004c098
movzx edx, byte [rsi + 8]
xor rax, rdx
imul rax, rcx
jmp 0x14004c098
mov r8, rcx
cmp r9, 8
jb 0x14004c098
add rcx, r9
nop
movzx r9d, byte [r8]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 1]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 2]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 3]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 4]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 5]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 6]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 7]
add r8, 8
xor rax, r9
imul rax, rdx
cmp r8, rcx
jne 0x14004c030
and eax, 0x7fff
add rsp, 0x78
pop rdi
pop rsi
ret