joyce8/EMBER2024-capa huggingface dataset:
Function at 0x110dc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x2b0
mov rax, qword [0x00016500]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov r12, r9
mov rbp, r8
mov rsi, rdx
mov ebx, ecx
mov rax, cr8
xor edi, edi
cmp al, dil
je 0x1111f
lea eax, [rdi + 1]
jmp 0x11276
mov r13d, 0x200
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8, r13
call fcn.00015420
xor r9d, r9d
sub ebx, 1
mov rdx, r13
lea rcx, [rsp + 0xa0]
je 0x111a5
sub ebx, 0x1000
mov eax, dword [rsi + 0xa]
je 0x11174
xor r8d, r8d
rol eax, 0x10
mov dword [rsp + 0x38], eax
lea rax, str.RegistryMACHINESystemCurrentControlSetVip22Dumps
mov qword [rsp + 0x30], rax
lea rax, [0x000159d0]
jmp 0x11191
rol eax, 0x10
xor r8d, r8d
mov dword [rsp + 0x38], eax
lea rax, str.RegistryMACHINESystemCurrentControlSetVip22Dumps
mov qword [rsp + 0x30], rax
lea rax, [0x00015890]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
call fcn.00010590
jmp 0x111cd
lea rax, str.RegistryMACHINESystemCurrentControlSetVip22Dumps
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea rax, [0x000159f0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
call fcn.00010590
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x88]
lea r8, [rsp + 0x48]
lea rcx, [rsp + 0x40]
mov edx, 0x20006
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x48], 0x30
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x60], 0x240
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, edi
mov ebx, eax
jl 0x1126e
lea rcx, [rsp + 0x78]
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r11d, dword [rsp + 0x300]
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x28], r11d
lea rdx, [rsp + 0x78]
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp ebx, edi
setl dil
mov eax, edi
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.00015300
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2b0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14da0
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x110
mov rax, qword [0x00016500]
xor rax, rsp
mov qword [rsp + 0x100], rax
and dword [rsp + 0x20], 0
and dword [rsp + 0x24], 0
mov rbx, r8
mov dword [rsp + 0x28], 0x67452301
mov dword [rsp + 0x2c], 0xefcdab89
mov dword [rsp + 0x30], 0x98badcfe
mov dword [rsp + 0x34], 0x10325476
test edx, edx
jle 0x14dfc
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.00014b8c
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.00014c58
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.00015300
add rsp, 0x110
pop rbx
ret
Function at 0x1e988
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r9b, byte [rcx + 1]
mov dil, byte [rcx + 2]
mov r11b, byte [rcx]
shr dil, 7
mov al, r9b
mov rbx, rcx
shr al, 5
not dil
and al, 1
and dil, 1
mov byte [rcx + 0xa], al
jne 0x1e9cd
not r11b
and dword [rsp + 0x50], 0
mov esi, 0x1f
mov r10b, byte [rsp + 0x50]
lea edx, [rsi - 0x1b]
and r9b, sil
mov al, r10b
mov cl, r9b
shl al, 2
add cl, cl
not cl
and cl, 2
mov r10b, cl
or r10b, al
mov al, r9b
shr r9b, 1
and al, 1
or r10b, al
sub rdx, 1
jne 0x1e9e2
mov bpl, r10b
xor r12d, r12d
mov byte [rsp + 0x50], r10b
not bpl
or r13d, 0xffffffff
lea r14d, [rdx + 0x18]
mov byte [rsp + 0x52], bpl
mov r15d, 0xfe
lea rax, [r14 - 0x10]
mov r8d, r13d
dec r13d
sar rax, 2
and r8d, 7
and rax, r15
mov cl, r8b
mov dl, byte [rax + rbx + 2]
mov rax, r14
inc r14
shr dl, cl
mov ecx, r12d
sar rax, 2
and dl, 1
and rax, r15
xor dl, r9b
shl dl, cl
mov cl, r8b
xor r10b, dl
mov dl, byte [rax + rbx + 2]
shr dl, cl
mov ecx, r12d
inc r12d
and dl, 1
xor dl, r9b
shl dl, cl
xor bpl, dl
cmp r13d, 0xfffffff7
jg 0x1ea2a
and dword [rbx + 0xb], 0
movzx r12d, r11b
xor r13d, r13d
mov r14d, r12d
mov byte [rsp + 0x51], r10b
mov byte [rsp + 0x53], bpl
shl r14d, 3
mov r15, rsi
mov dword [rbx + 0xf], r14d
mov ebp, 0xc
mov rdx, rbx
mov ecx, esi
call fcn.0001e8cc
sub rbp, 1
mov r11d, eax
jne 0x1eaab
mov eax, dword [rsp + 0x50]
mov rcx, r15
dec r15
sar rcx, 2
and ecx, 0xfe
movzx edx, byte [rcx + rbx + 2]
mov ecx, 0xff
sub cl, sil
and ecx, 7
shr edx, cl
mov ecx, esi
shr eax, cl
xor edx, eax
movzx eax, r11b
xor edx, esi
and edx, 1
xor edx, eax
lea eax, [r13 + r13]
mov r13d, edx
or r13d, eax
sub esi, 1
jns 0x1eaa2
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
movzx eax, dil
lea ecx, [r12 + r12]
mov dword [rbx + 0xb], r13d
or ecx, eax
add ecx, ecx
or ecx, eax
add ecx, ecx
or ecx, eax
mov dword [rbx + 0xf], ecx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400010e0
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xa0
mov rax, qword [0x14007e018]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [r11 - 0x18], rbp
lea eax, [rdx + 1]
mov qword [r11 - 0x28], r12
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
xor r12d, r12d
mov qword [r11 - 0x30], r14
mov r14, r9
mov qword [r11 - 0x38], r15
mov r15, qword [rsp + 0xd0]
mov rbp, rcx
xor edx, edx
mov qword [r11 - 0x58], r12
lea r9d, [r12 + 1]
mov qword [r11 - 0x50], r12
lea rcx, [r11 - 0x58]
mov qword [r11 - 0x60], r12
xor dil, dil
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140001261
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140001261
lea rcx, str.12345
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x48]
lea rdx, str.12345
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov r8, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov r9d, 0x800000
mov edx, 0x6801
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x140001261
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x88], rsi
mov esi, dword [rsp + 0x40]
inc esi
mov ecx, esi
call fcn.14003f38c
mov rbx, rax
test rax, rax
je 0x140001251
mov r8d, dword [rsp + 0x40]
mov rdx, rbp
mov rcx, rax
call fcn.140036bb0
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], esi
lea r8d, [r12 + 1]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x140001249
mov eax, dword [rsp + 0x40]
mov rdx, rbx
mov dword [r15], eax
mov r8d, eax
mov rcx, qword [r14]
call fcn.140036bb0
mov dil, 1
mov rcx, rbx
call fcn.14003f378
mov rbx, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x90]
test rcx, rcx
je 0x140001288
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rsp + 0x48], r12
mov rcx, qword [rsp + 0x58]
mov r12, qword [rsp + 0x80]
test rcx, rcx
je 0x1400012a0
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400012b2
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movzx eax, dil
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140034cb0
add rsp, 0xa0
pop rdi
ret
Function at 0x140001650
Capabilities:
Send icmp echo request

Disassembly:
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x60
lea rcx, str.104.143.36.19
mov ebp, r8d
call qword [sym.imp.WS2_32.dll_inet_addr]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x140001693
lea rcx, str.invalid_IP_address_n
call fcn.140001080
mov eax, 1
mov rbp, qword [rsp + 0x88]
add rsp, 0x60
pop r14
ret
mov qword [rsp + 0x70], rbx
call qword [sym.imp.IPHLPAPI.DLL_IcmpCreateFile]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400016de
lea rcx, str._tUnable_to_open_handle._n
call fcn.140001080
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.IcmpCreatefile_returned_error:__ld_n
call fcn.140001080
lea eax, [rbx + 2]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x88]
add rsp, 0x60
pop r14
ret
mov qword [rsp + 0x78], rsi
lea esi, [rbp + 0x30]
mov ecx, esi
mov qword [rsp + 0x80], rdi
call fcn.14003f38c
mov rdi, rax
test rax, rax
jne 0x140001709
lea rcx, str._tUnable_to_allocate_memory_for_reply_buffer_n
jmp 0x140001851
mov dword [rsp + 0x50], 0x3e8
lea rax, [0x1400819e0]
mov dword [rsp + 0x48], esi
xor r9d, r9d
mov qword [rsp + 0x40], rdi
xor r8d, r8d
mov qword [rsp + 0x38], 0
xor edx, edx
mov word [rsp + 0x30], bp
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.IPHLPAPI.DLL_IcmpSendEcho2]
mov ebp, eax
test eax, eax
je 0x140001810
mov ebx, dword [rdi]
lea rdx, str.104.143.36.19
lea rcx, str._tSent_icmp_message_to__s_n
call fcn.140001080
cmp ebp, 1
jbe 0x14000177e
lea rsi, str._tInformation_from_the_first_response:_n
lea rcx, str._tReceived__ld_icmp_message_responses_n
jmp 0x14000178c
lea rsi, str._tInformation_from_this_response:_n
lea rcx, str._tReceived__ld_icmp_message_response_n
mov edx, ebp
call fcn.140001080
mov rcx, rsi
call fcn.140001080
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, str._t__Received_from__s_n
call fcn.140001080
mov edx, dword [rdi + 4]
lea rcx, str._t__Status___ld
call fcn.140001080
mov ecx, dword [rdi + 4]
sub ecx, 0x2afa
je 0x1400017f1
sub ecx, 1
je 0x1400017e8
cmp ecx, 7
je 0x1400017df
lea rcx, [0x140074060]
jmp 0x1400017f8
lea rcx, str._Request_timed_out__n
jmp 0x1400017f8
lea rcx, str._Destination_host_was_unreachable__n
jmp 0x1400017f8
lea rcx, str._Destination_Network_was_unreachable__n
call fcn.140001080
mov edx, dword [rdi + 8]
lea rcx, str._t__Roundtrip_time___ld_milliseconds_n
call fcn.140001080
xor eax, eax
jmp 0x14000185b
lea rcx, str.Call_to_IcmpSendEcho2_failed._n
call fcn.140001080
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 0x2af9
je 0x14000184a
cmp ecx, 9
je 0x140001841
mov edx, eax
lea rcx, str._tExtended_error_returned:__ld_n
call fcn.140001080
jmp 0x140001856
lea rcx, str._tRequest_timed_out_n
jmp 0x140001851
lea rcx, str._tReplyBufferSize_too_small_n
call fcn.140001080
mov eax, 1
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x88]
add rsp, 0x60
pop r14
ret
Function at 0x14002b520
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140015f1a
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140015efd
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140015ee8

Function at 0x140035868
Capabilities:
Parse pe header

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

Function at 0x14003f670
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14003f503
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003f503
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003f503
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003f503
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003f503
cmp dword [rcx + 0x84], 0xe
jbe 0x14003f503
cmp dword [rcx + 0xf8], 0
je 0x14003f503
mov ecx, ebx
call fcn.14003f5a4
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14003f394
cmp dword [rbp + 0x20], 0
je 0x14003f550
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003f558
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003f49c
Function at 0x1400111fe
Capabilities:
Terminate process

Disassembly:
jmp 0x1400135a0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400148f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014910
xor al, al
jmp 0x140014991
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014923
xor al, al
jmp 0x140014991
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001494d
xor al, al
jmp 0x140014991
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014961
xor al, al
jmp 0x140014991
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014973
xor al, al
jmp 0x140014991
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001498f
xor al, al
jmp 0x140014991
mov al, 1
add rsp, 0x38
ret
Function at 0x1400127e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113ac
movzx eax, al
test eax, eax
jne 0x140012800
mov ecx, 7
call fcn.14001132a
nop
mov byte [rsp + 0x20], 0
call fcn.14001133e
mov byte [rsp + 0x21], al
cmp dword [0x14001eb18], 1
jne 0x140012824
mov ecx, 7
call fcn.14001132a
nop
jmp 0x14001287c
cmp dword [0x14001eb18], 0
jne 0x140012877
mov dword [0x14001eb18], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111a4
test eax, eax
je 0x140012858
mov eax, 0xff
jmp 0x140012981
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011334
mov dword [0x14001eb18], 2
jmp 0x14001287c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011316
call fcn.1400112a8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400128d9
mov rcx, qword [rsp + 0x30]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x1400128d9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140024020]
nop
call fcn.1400112da
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001290d
mov rcx, qword [rsp + 0x38]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x14001290d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001136b
nop
call fcn.140012a30
mov dword [rsp + 0x28], eax
call fcn.140011285
movzx eax, al
test eax, eax
jne 0x14001292c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001293b
call fcn.140011375
nop
xor edx, edx
mov cl, 1
call fcn.14001114a
mov eax, dword [rsp + 0x28]
jmp 0x140012981
add rsp, 0x68
ret
Function at 0x140003f30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov byte [rsp + 0x10], dl
push rdi
sub rsp, 0x50
cmp byte [rcx + 0x40], 0
movzx esi, dl
mov rdi, rcx
je 0x140003fd9
mov rax, qword [0x1400b7960]
mov qword [rsp + 0x38], 1
test rax, rax
jne 0x140003f80
xor r8d, r8d
lea ecx, [rax + 1]
mov edx, 0x100000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400b7960], rax
xor edx, edx
mov qword [rsp + 0x30], 2
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov rbx, rax
mov qword [rsp + 0x40], rax
mov byte [rax], sil
mov byte [rax + 1], 0
call fcn.140011c30
mov rcx, qword [0x1400b7960]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rax, qword [rcx + 0x18]
cmp rax, 1
jne 0x14000400f
mov rcx, qword [rcx]
lea r9, [0x1400b7970]
xor esi, esi
lea rdx, [rsp + 0x68]
mov r8d, eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [rsi + 1]
mov rcx, rdi
call fcn.140004a30
jmp 0x140004084
test rax, rax
jne 0x14000403e
lea edx, [rax + 1]
call fcn.140004a30
mov rcx, qword [rdi]
lea r9, [0x1400b7970]
xor esi, esi
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140004084
mov rbx, qword [rcx + 0x10]
xor r8d, r8d
shr rbx, 1
mov rdx, rbx
call fcn.140004c50
mov rcx, qword [rdi]
lea r9, [0x1400b7970]
xor esi, esi
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rdi + 0x10]
mov r8b, 1
and edx, 1
mov rcx, rdi
add rdx, rbx
call fcn.140004c50
cmp dword [rdi + 0x4c], 0
je 0x1400040a1
movzx edx, word [0x1400b7a08]
mov rcx, qword [rdi]
mov word [rdi + 0x42], dx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov dword [rdi + 0x4c], esi
mov rbx, qword [rsp + 0x60]
mov rax, rdi
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140004130
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
cmp byte [rcx + 0x40], 0
mov rsi, rdx
mov rdi, rcx
je 0x140004245
movaps xmm0, xmmword [rdx]
mov rax, qword [0x1400b7960]
movaps xmmword [rsp + 0x30], xmm0
psrldq xmm0, 8
movq rbx, xmm0
mov qword [rsp + 0x48], rbx
test rax, rax
jne 0x14000418f
xor r8d, r8d
lea ecx, [rax + 1]
mov edx, 0x100000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400b7960], rax
inc rbx
xor edx, edx
mov r8, rbx
mov qword [rsp + 0x40], rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8, qword [rsp + 0x30]
mov rsi, rax
mov qword [rsp + 0x50], rax
cmp rax, r8
je 0x140004221
test rbx, rbx
je 0x140004221
mov rdx, rbx
xor ebp, ebp
shr rdx, 3
test rdx, rdx
je 0x1400041f1
mov r9, r8
mov rcx, rax
sub r9, rax
mov rbp, rdx
nop word [rax + rax]
mov rax, qword [rcx + r9]
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x1400041e0
lea rbp, [rbp*8]
cmp rbp, rbx
jae 0x140004221
sub r8, rsi
lea rcx, [rsi + rbp]
sub rbx, rbp
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rbx, 1
jne 0x140004210
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140011c30
mov rcx, qword [0x1400b7960]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14000430a
mov rax, qword [rcx + 0x18]
cmp rax, 1
jne 0x14000427b
mov r8d, dword [rdx + 8]
lea r9, [0x1400b7970]
mov rdx, qword [rdx]
xor ebp, ebp
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rsi + 8]
mov rcx, rdi
call fcn.140004a30
jmp 0x1400042ed
test rax, rax
jne 0x1400042a9
mov rdx, qword [rdx + 8]
call fcn.140004a30
mov r8d, dword [rsi + 8]
lea r9, [0x1400b7970]
mov rdx, qword [rsi]
xor ebp, ebp
mov rcx, qword [rdi]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400042ed
mov rbx, qword [rcx + 0x10]
xor r8d, r8d
shr rbx, 1
mov rdx, rbx
call fcn.140004c50
mov r8d, dword [rsi + 8]
lea r9, [0x1400b7970]
mov rdx, qword [rsi]
xor ebp, ebp
mov rcx, qword [rdi]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rdi + 0x10]
mov r8b, 1
and edx, 1
mov rcx, rdi
add rdx, rbx
call fcn.140004c50
cmp dword [rdi + 0x4c], 0
je 0x14000430a
movzx edx, word [0x1400b7a08]
mov rcx, qword [rdi]
mov word [rdi + 0x42], dx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov dword [rdi + 0x4c], ebp
mov rbx, qword [rsp + 0x70]
mov rax, rdi
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400045d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x40], 0
mov rsi, rdx
mov rdi, rcx
je 0x1400045f9
call fcn.140011c30
mov rax, rdi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rcx + 0x18]
cmp rax, 1
jne 0x140004635
mov r8d, dword [rdx + 8]
lea r9, [0x1400b7970]
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rsi + 8]
mov rcx, rdi
call fcn.140004a30
jmp 0x1400046b7
test rax, rax
jne 0x140004666
mov rdx, qword [rdx + 8]
call fcn.140004a30
mov r8d, dword [rsi + 8]
lea r9, [0x1400b7970]
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400046b7
mov qword [rsp + 0x40], rbx
xor r8d, r8d
mov rbx, qword [rcx + 0x10]
shr rbx, 1
mov rdx, rbx
call fcn.140004c50
mov r8d, dword [rsi + 8]
lea r9, [0x1400b7970]
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rdi + 0x10]
mov r8b, 1
and edx, 1
mov rcx, rdi
add rdx, rbx
call fcn.140004c50
mov rbx, qword [rsp + 0x40]
cmp dword [rdi + 0x4c], 0
je 0x1400046d8
movzx edx, word [0x1400b7a08]
mov rcx, qword [rdi]
mov word [rdi + 0x42], dx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov dword [rdi + 0x4c], 0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
add rsp, 0x30
pop rdi
ret