joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140030e80
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x14007d160]
call fcn.140025e04
cmp dword [reloc.WS2_32.dll_accept], 0
mov rdi, qword [rax]
je 0x140030ef7
cmp qword [0x14007d180], rdi
jne 0x140030ef7
cmp dword [0x140078ab4], 0
je 0x140030ef7
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x140078ab8]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x140030ee7
cmp rbx, rdi
je 0x140030edc
cmp dword [rbx + 0x38], esi
jne 0x140030edc
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [rbx + 0x38], esi
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140030ec8
mov rbx, qword [rsp + 0x30]
mov dword [0x140078ab4], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140030f00
Capabilities:
Check for time delay via gettickcount
Suspend thread

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x14007d160]
call fcn.140025e04
cmp dword [reloc.WS2_32.dll_accept], 0
mov rsi, qword [rax]
je 0x140031040
cmp dword [0x140078ab4], 0
jne 0x140031040
lea rcx, [0x140078ac0]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x140078274], 0
je 0x140030f76
lea rcx, [0x14007da40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14008dea0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14007d1c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x14008de80]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [0x14007d180], rsi
mov dword [0x140078ab4], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x140078ab8]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x140030ff3
cmp rbx, rsi
je 0x140030feb
cmp dword [rbx + 0x38], 0
jne 0x140030feb
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x140030fdb
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x140030fc0
cmp dword [rbx + 0x38], 0
jne 0x140030feb
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140030fb3
cmp dword [0x140078274], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x14003102d
lea rcx, [0x14007d1c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14008dea0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14007da40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140078ac0]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret
Function at 0x140035bc0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
call fcn.1400359d0
call fcn.140030f00
xor ecx, ecx
call fcn.140035e80
test eax, eax
jne 0x140035bd0
mov rbx, qword [0x140078290]
test rbx, rbx
je 0x140035cb0
cmp dword [0x140078298], eax
je 0x140035cb0
cmp dword [0x140078af0], 0
mov eax, dword [0x140078284]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x140035c7b
mov rcx, qword [0x14007d9e0]
movsxd r8, eax
mov rdx, rbx
call sub.msvcrt.dll_memcpy
xor r9d, r9d
cmp dword [0x140078284], r9d
jle 0x140035c74
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x14007d9e0]
inc r9d
add rdx, r8
add r8, 4
movzx ecx, byte [rdx]
movzx eax, byte [rdx + 3]
mov byte [rdx], al
movzx eax, byte [rdx + 2]
mov byte [rdx + 3], cl
movzx ecx, byte [rdx + 1]
mov byte [rdx + 1], al
mov byte [rdx + 2], cl
cmp r9d, dword [0x140078284]
jl 0x140035c40
mov rbx, qword [0x14007d9e0]
call fcn.140046f60
lea rcx, [0x14008dea0]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140078b18]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x14008dea0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.140046f60
lea rcx, [0x14008dea0]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140078b18]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x14008dea0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x140078b18]
call qword [rax + 0x28]
lea rcx, [0x14007d1c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14008dea0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14007da40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x140078b08]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140078b08]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140078b10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140078b10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x14007d1c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14008dea0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14007da40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14007d1c0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x14008dea0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x14007da40]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
add rsp, 0x40
pop rbx
ret
Function at 0x140038860
Capabilities:
Hash data with crc32

Disassembly:
xor ecx, ecx
lea rdx, [0x140078b20]
nop dword [rax]
mov eax, ecx
shr eax, 1
test cl, 1
je 0x14003887e
xor eax, 0xedb88320
test al, 1
je 0x14003888b
shr eax, 1
xor eax, 0xedb88320
jmp 0x14003888d
shr eax, 1
test al, 1
je 0x14003889a
shr eax, 1
xor eax, 0xedb88320
jmp 0x14003889c
shr eax, 1
test al, 1
je 0x1400388a9
shr eax, 1
xor eax, 0xedb88320
jmp 0x1400388ab
shr eax, 1
test al, 1
je 0x1400388b8
shr eax, 1
xor eax, 0xedb88320
jmp 0x1400388ba
shr eax, 1
test al, 1
je 0x1400388c7
shr eax, 1
xor eax, 0xedb88320
jmp 0x1400388c9
shr eax, 1
test al, 1
je 0x1400388d6
shr eax, 1
xor eax, 0xedb88320
jmp 0x1400388d8
shr eax, 1
test al, 1
je 0x1400388e5
shr eax, 1
xor eax, 0xedb88320
jmp 0x1400388e7
shr eax, 1
inc ecx
mov dword [rdx], eax
add rdx, 4
cmp ecx, 0x100
jl 0x140038870
ret

Function at 0x14003a150
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x110
mov rsi, rdx
lea rdx, [rsp + 0x40]
mov rbp, r8
mov rdi, rcx
xor ebx, ebx
call fcn.14003a980
test eax, eax
je 0x14003a249
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.msvcrt.dll__stricmp
test eax, eax
jne 0x14003a249
lea rdx, [rsp + 0xa4]
mov rcx, rbp
call sub.msvcrt.dll__stricmp
test eax, eax
jne 0x14003a249
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14003a249
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14003a240
test eax, eax
jle 0x14003a240
lea ecx, [rdi + 1]
movsxd rcx, ecx
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x14003a240
lea r9, [rsp + 0x138]
mov r8d, edi
mov rdx, rax
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003a240
cmp dword [rsp + 0x138], edi
jne 0x14003a240
mov rcx, rsi
mov byte [rdi + rsi], bl
call fcn.14003a660
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x110]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14003aca0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x270
lea r9, [rsp + 0x20]
xor edi, edi
mov rbp, r8
sub r9, rcx
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [r9 + rcx - 1], al
test al, al
jne 0x14003acd0
lea rcx, [rsp + 0x20]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14003acf0
movzx eax, word [0x140058bc4]
mov word [rcx], ax
lea rcx, [rsp + 0x20]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], dil
jne 0x14003ad10
lea rbx, [rsp + 0x20]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
add rbx, rax
mov eax, 0x2a
mov word [rbx], ax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14003ae22
lea rax, [rsp + 0x15c]
sub rbx, rax
nop dword [rax]
nop dword [rax + rax]
lea rax, [rsp + 0x15c]
nop dword [rax + rax]
movzx ecx, byte [rax]
lea rax, [rax + 1]
mov byte [rbx + rax - 1], cl
test cl, cl
jne 0x14003ad70
test byte [rsp + 0x130], 0x10
je 0x14003ade0
movzx edx, byte [rsp + 0x15c]
movzx ecx, byte [rsp + 0x15d]
cmp dl, byte [0x140058bc8]
jne 0x14003adb9
cmp cl, byte [0x140058bc9]
jne 0x14003adb9
movzx eax, byte [rsp + 0x15e]
cmp al, byte [0x140058bca]
je 0x14003adf9
cmp dl, byte [0x1400587c4]
jne 0x14003adc9
cmp cl, byte [0x1400587c5]
je 0x14003adf9
mov rdx, qword [rsp + 0x288]
lea rcx, [rsp + 0x20]
mov r8, rbp
call fcn.14003aca0
jmp 0x14003adf5
mov rdx, qword [rsp + 0x288]
lea rcx, [rsp + 0x20]
mov r8, rbp
call fcn.14003a150
test eax, eax
jne 0x14003ae14
lea rdx, [rsp + 0x130]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14003ad60
jmp 0x14003ae19
mov edi, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r11, [rsp + 0x270]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140040ec0
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, str.PureBasic_Console_Debugger__press_CtrlC_to_stop_program_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, 0x1f4
mov ecx, 0xfffffff5
mov word [rsp + 0x22], ax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0x4000
mov rcx, rax
call sub.msvcrt.dll__open_osfhandle
lea rdx, [0x140058b90]
mov ecx, eax
call sub.msvcrt.dll__fdopen
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, rax
mov qword [0x140078f60], rax
call sub.msvcrt.dll_setvbuf
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0x4000
mov rcx, rax
call sub.msvcrt.dll__open_osfhandle
lea rdx, [0x14005b660]
mov ecx, eax
call sub.msvcrt.dll__fdopen
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, rax
mov qword [0x140078f68], rax
call sub.msvcrt.dll_setvbuf
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0x4000
mov rcx, rax
call sub.msvcrt.dll__open_osfhandle
lea rdx, [0x14005b660]
mov ecx, eax
call sub.msvcrt.dll__fdopen
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, rax
mov qword [0x140078f70], rax
call sub.msvcrt.dll_setvbuf
mov rax, qword [0x140078f68]
mov qword [0x14008d4a0], rax
call fcn.14003d050
add rsp, 0x48
ret
Function at 0x140048fd0
Capabilities:
Encode data using xor
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xc0
mov edi, 1
lea rcx, [rsp + 0xd0]
xor r8d, r8d
xor edx, edx
mov r9d, edi
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor ebx, ebx
test eax, eax
je 0x140049035
mov rcx, qword [rsp + 0xd0]
lea r8, [rsp + 0x30]
lea edx, [rdi + 0x1f]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0xd0]
test eax, eax
cmovne edi, ebx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test edi, edi
je 0x1400490a1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x30], eax
call fcn.140046f60
mov rcx, rbx
movups xmm0, xmmword [0x1400750c0]
mov dword [rsp + 0x34], eax
mov eax, dword [0x14007c488]
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], eax
movzx eax, byte [rsp + rcx + 0x30]
add rcx, 6
xor byte [rsp + rcx + 0x2b], al
movzx eax, byte [rsp + rcx + 0x2b]
xor byte [rsp + rcx + 0x2c], al
movzx eax, byte [rsp + rcx + 0x2c]
xor byte [rsp + rcx + 0x2d], al
movzx eax, byte [rsp + rcx + 0x2d]
xor byte [rsp + rcx + 0x2e], al
movzx eax, byte [rsp + rcx + 0x2e]
xor byte [rsp + rcx + 0x2f], al
movzx eax, byte [rsp + rcx + 0x2f]
xor byte [rsp + rcx + 0x30], al
cmp rcx, 0x1e
jl 0x140049061
lea rcx, [rsp + 0x60]
call fcn.14004c718
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
mov r8d, 0x20
call fcn.14004cfa8
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14004c63c
lea rdx, [0x140000000]
nop word [rax + rax]
movzx ecx, byte [rsp + rbx + 0x50]
inc rbx
mov eax, ecx
and ecx, 0xf
shr rax, 4
movzx eax, byte [rax + rdx + 0x5e6e8]
mov byte [rdx + rbx*2 + 0x7c6c6], al
movzx eax, byte [rcx + rdx + 0x5e6e8]
mov byte [rdx + rbx*2 + 0x7c6c7], al
cmp rbx, 0x10
jl 0x1400490e0
lea r8, [0x14007c758]
lea rdx, [rsp + 0x30]
lea rcx, [0x14007c4e0]
mov r9d, 0x20
call fcn.14004ea00
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret
Function at 0x140049c90
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, edx
mov rbp, rcx
test edx, edx
jle 0x140049ceb
nop
mov rcx, qword [0x14007c4a8]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rbp
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp eax, 0xffffffff
jne 0x140049ce5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8bb
test eax, 0xfffffffa
je 0x140049d05
add ebx, esi
cmp ebx, edi
jl 0x140049cb0
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x140049cf0

Function at 0x14004bad0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x28
mov ebp, r9d
mov r14, r8
mov ebx, edx
mov rsi, rcx
test r8, r8
je 0x14004bbbd
cmp word [r8], 0
je 0x14004bbbd
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r13
xor r13d, r13d
test edx, edx
mov qword [rsp + 0x20], r15
cmovs ebx, r13d
test rcx, rcx
je 0x14004bb3d
cmp word [rcx], r13w
je 0x14004bb3d
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rcx + rdi*2], r13w
jne 0x14004bb25
cmp edi, ebx
cmovg edi, ebx
sub ebx, edi
jns 0x14004bb40
mov ebx, r13d
jmp 0x14004bb40
mov edi, r13d
call fcn.140028520
movzx r12d, word [r14]
lea ecx, [rdi + rbx]
mov edx, ebp
mov r15d, eax
call fcn.1400283a0
mov r14, rax
test r15d, r15d
je 0x14004bb69
mov ecx, r15d
call fcn.140028590
mov rsi, rax
mov r15, qword [rsp + 0x20]
test edi, edi
jle 0x14004bb83
movsxd r8, edi
mov rdx, rsi
mov rcx, r14
add r8, r8
call sub.msvcrt.dll_memmove
movsxd rax, edi
lea r8, [r14 + rax*2]
test ebx, ebx
je 0x14004bba0
mov rdi, r8
mov edx, ebx
movzx eax, r12w
mov ecx, ebx
lea r8, [r8 + rdx*2]
rep stosw word [rdi], ax
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov word [r8], r13w
mov r13, qword [rsp + 0x60]
add rsp, 0x28
pop r14
pop rsi
pop rbp
pop rbx
ret
mov ecx, r9d
add rsp, 0x28
pop r14
pop rsi
pop rbp
pop rbx
jmp fcn.1400285c0
Function at 0x14004dd10
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14004df40
xor r10d, r10d
lea edx, [rax*4]
mov r11d, eax
movsxd r9, edx
test edx, edx
jle 0x14004dd89
lea r8, [rbx + 8]
lea rcx, [rbx + 8]
lea r8, [r8 + r9*4]
nop
mov eax, dword [r8 - 8]
mov edx, dword [rcx - 8]
add r10, 4
mov dword [rcx - 8], eax
mov eax, dword [r8 - 4]
mov dword [r8 - 8], edx
mov edx, dword [rcx - 4]
mov dword [rcx - 4], eax
mov eax, dword [r8]
mov dword [r8 - 4], edx
mov edx, dword [rcx]
mov dword [rcx], eax
mov eax, dword [r8 + 4]
mov dword [r8], edx
mov edx, dword [rcx + 4]
mov dword [rcx + 4], eax
sub r9, 4
mov dword [r8 + 4], edx
lea r8, [r8 - 0x10]
lea rcx, [rcx + 0x10]
cmp r10, r9
jl 0x14004dd40
cmp r11d, 1
jle 0x14004df2d
mov qword [rsp + 0x30], rdi
add rbx, 2
lea r10d, [r11 - 1]
lea rdi, [0x140000000]
nop word [rax + rax]
mov r8d, dword [rbx + 0xe]
lea rbx, [rbx + 0x10]
mov eax, r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x5fe80]
movzx eax, byte [rbx - 1]
movzx ecx, byte [rdi + rax*4 + 0x5fe80]
mov r9d, dword [rdi + rdx*4 + 0x60280]
movzx eax, r8b
xor r9d, dword [rdi + rcx*4 + 0x60a80]
movzx ecx, byte [rdi + rax*4 + 0x5fe80]
movzx eax, byte [rbx]
xor r9d, dword [rdi + rcx*4 + 0x60e80]
movzx ecx, byte [rdi + rax*4 + 0x5fe80]
movzx eax, byte [rbx + 3]
movzx edx, byte [rdi + rax*4 + 0x5fe80]
xor r9d, dword [rdi + rcx*4 + 0x60680]
movzx eax, byte [rbx + 4]
movzx ecx, byte [rdi + rax*4 + 0x5fe80]
mov r8d, dword [rdi + rdx*4 + 0x60a80]
mov dword [rbx - 2], r9d
xor r8d, dword [rdi + rcx*4 + 0x60680]
mov r9d, dword [rbx + 2]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x5fe80]
movzx eax, r9b
mov r9d, dword [rbx + 6]
xor r8d, dword [rdi + rcx*4 + 0x60280]
movzx ecx, byte [rdi + rax*4 + 0x5fe80]
movzx eax, byte [rbx + 7]
xor r8d, dword [rdi + rcx*4 + 0x60e80]
movzx edx, byte [rdi + rax*4 + 0x5fe80]
movzx eax, byte [rbx + 8]
movzx ecx, byte [rdi + rax*4 + 0x5fe80]
mov dword [rbx + 2], r8d
mov r8d, dword [rdi + rdx*4 + 0x60a80]
xor r8d, dword [rdi + rcx*4 + 0x60680]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x5fe80]
movzx eax, r9b
mov r9d, dword [rbx + 0xa]
xor r8d, dword [rdi + rcx*4 + 0x60280]
movzx ecx, byte [rdi + rax*4 + 0x5fe80]
movzx eax, byte [rbx + 0xb]
xor r8d, dword [rdi + rcx*4 + 0x60e80]
movzx edx, byte [rdi + rax*4 + 0x5fe80]
movzx eax, byte [rbx + 0xc]
movzx ecx, byte [rdi + rax*4 + 0x5fe80]
mov dword [rbx + 6], r8d
mov r8d, dword [rdi + rdx*4 + 0x60a80]
xor r8d, dword [rdi + rcx*4 + 0x60680]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x5fe80]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x60280]
movzx ecx, byte [rdi + rax*4 + 0x5fe80]
xor r8d, dword [rdi + rcx*4 + 0x60e80]
mov dword [rbx + 0xa], r8d
dec r10
jne 0x14004ddb0
mov rdi, qword [rsp + 0x30]
mov eax, r11d
add rsp, 0x20
pop rbx
ret
Function at 0x14004e450
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rdi, rdx
mov rax, r9
mov r12, r9
cqo
mov rbx, r8
mov r13, rcx
and edx, 0xf
add rax, rdx
mov rbp, rax
and eax, 0xf
sub rax, rdx
sar rbp, 4
mov rsi, rax
test rax, rax
je 0x14004e49b
test rbp, rbp
jne 0x14004e498
xor eax, eax
jmp 0x14004e679
dec rbp
mov qword [rsp + 0x80], r14
mov r14, qword [rsp + 0xa0]
movups xmm0, xmmword [r14]
movups xmm1, xmm0
movups xmmword [rsp + 0x20], xmm0
test rbp, rbp
je 0x14004e522
mov qword [rsp + 0x88], r15
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [r13 + 4]
lea rcx, [r13 + 0xf8]
mov r9, rbx
mov r8, rdi
call fcn.14004d0e0
mov eax, dword [rsp + 0x20]
add rdi, 0x10
xor dword [rbx], eax
mov eax, dword [rsp + 0x24]
add rbx, 0x10
xor dword [rbx - 0xc], eax
mov eax, dword [rsp + 0x28]
xor dword [rbx - 8], eax
mov eax, dword [rsp + 0x2c]
xor dword [rbx - 4], eax
movups xmm0, xmmword [rdi - 0x10]
movups xmm1, xmm0
movups xmmword [rsp + 0x20], xmm0
dec rbp
jne 0x14004e4d0
mov r15, qword [rsp + 0x88]
test rsi, rsi
je 0x14004e66a
movups xmm0, xmmword [rdi]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rcx, [r13 + 0xf8]
movups xmmword [r14], xmm0
mov edx, dword [r13 + 4]
movups xmmword [rsp + 0x40], xmm0
call fcn.14004d0e0
xor r9d, r9d
test rsi, rsi
je 0x14004e635
cmp rsi, 0x10
jb 0x14004e5f9
lea r10, [rsi + 0xf]
lea rdx, [rsi + 0xf]
lea r8, [rbx + 0x10]
add r10, rdi
add rdx, rbx
lea rcx, [rdi + 0x10]
cmp r8, r10
ja 0x14004e587
cmp rdx, rcx
jae 0x14004e5f9
lea rax, [rsp + rsi + 0x2f]
cmp r8, rax
ja 0x14004e59b
lea r8, [rsp + 0x30]
cmp rdx, r8
jae 0x14004e5f9
lea rdx, [rsp + 0x30]
cmp rdx, r10
ja 0x14004e5aa
cmp rax, rcx
jae 0x14004e5f9
mov rax, rsi
mov rdx, rsi
lea r8, [rsp + 0x30]
and eax, 0xf
sub r8, rdi
sub rdx, rax
mov rax, rbx
sub rax, rdi
nop dword [rax]
nop dword [rax + rax]
movdqu xmm1, xmmword [rcx]
movdqu xmm0, xmmword [r8 + rcx - 0x10]
add r9, 0x10
lea rcx, [rcx + 0x10]
pxor xmm0, xmm1
movdqu xmmword [rax + rcx - 0x10], xmm0
movdqu xmmword [r8 + rcx - 0x20], xmm1
cmp r9, rdx
jb 0x14004e5d0
cmp r9, rsi
jae 0x14004e635
lea rax, [rsp + 0x30]
lea rcx, [rsp + 0x30]
mov r10, rbx
sub rdi, rax
sub r10, rcx
lea r8, [rsp + 0x30]
add r8, r9
inc r9
movzx eax, byte [r8 + rdi + 0x10]
movzx edx, al
xor dl, byte [r8]
mov byte [r8], al
mov byte [r8 + r10 + 0x10], dl
cmp r9, rsi
jb 0x14004e611
mov edx, dword [r13 + 4]
lea r8, [rsp + 0x30]
lea rcx, [r13 + 0xf8]
mov r9, rbx
call fcn.14004d0e0
mov eax, dword [rsp + 0x20]
xor dword [rbx], eax
mov eax, dword [rsp + 0x24]
xor dword [rbx + 4], eax
mov eax, dword [rsp + 0x28]
xor dword [rbx + 8], eax
mov eax, dword [rsp + 0x2c]
xor dword [rbx + 0xc], eax
jmp 0x14004e66e
movups xmmword [r14], xmm1
mov r14, qword [rsp + 0x80]
mov rax, r12
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401ec340]
mov dword [rax], 1
mov rax, qword [0x1401ec350]
mov dword [rax], 1
mov rax, qword [0x1401ec360]
mov dword [rax], 1
mov rax, qword [0x1401ec2c0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
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 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret