joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4536e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45378f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [sym.runtime.callers.func1]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call sym.runtime.systemstack.abi0
xorps xmm15, xmm15
mov r14, qword [0x00585688]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp sym.runtime.callers

Function at 0x45ccc0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x0058546b], 0
je 0x45ccce
jmp sym.aeshashbody
jmp sym.runtime.memhashFallback

Function at 0x45cce0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x0058546b], 0
je 0x45ccf5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp sym.aeshashbody
jmp sym.runtime.strhashFallback

Function at 0x45cd00
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x0058546b], 0
je 0x45cd35
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005859e0]
aesenc xmm0, xmmword [0x005859f0]
aesenc xmm0, xmmword [0x00585a00]
movq rax, xmm0
ret
jmp sym.runtime.memhash32Fallback

Function at 0x45cd40
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x0058546b], 0
je 0x45cd76
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005859e0]
aesenc xmm0, xmmword [0x005859f0]
aesenc xmm0, xmmword [0x00585a00]
movq rax, xmm0
ret
jmp sym.runtime.memhash64Fallback

Function at 0x45e640
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rdx, 2
jmp sym.sigtramp

Function at 0x45ea40
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x45ea74
mov rcx, 0x28
jmp 0x45ea7f
shl rcx, 3
add rcx, 0x1480
mov qword [0x00585688], rcx
pop rbp
ret
Function at 0x474120
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4741ea
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x00585688]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x4741cf
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x0048bae0]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x4741be
mov edi, 1
lea rsi, [0x0048bae0]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004bf3f8]
lea rsi, [0x004bed08]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString
Function at 0x14001134d
Capabilities:
Terminate process

Disassembly:
jmp 0x140017d90
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]
add rsp, 0x28
ret

Function at 0x14001141a
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400190e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019100
xor al, al
jmp 0x140019181
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140019113
xor al, al
jmp 0x140019181
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 0x14001913d
xor al, al
jmp 0x140019181
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140019151
xor al, al
jmp 0x140019181
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140019163
xor al, al
jmp 0x140019181
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001917f
xor al, al
jmp 0x140019181
mov al, 1
add rsp, 0x38
ret
Function at 0x1400019f8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r13d, r13d
mov r15, rdx
mov rdi, rcx
mov r12d, r9d
mov r14d, r8d
mov esi, r13d
lea edx, [r13 + 0x41]
lea ecx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140001b3f
lea ebp, [r13 + 7]
cmp r14d, ebp
jb 0x140001a5a
mov edx, r14d
lea rcx, str.ERROR_kull_m_bUsYlIght_request_create___count_u__max_is_7__n
call fcn.14000bdb4
cmp r14d, ebp
cmovb ebp, r14d
mov r10d, r13d
mov esi, 1
test ebp, ebp
je 0x140001b09
lea r9, [r15 + 2]
movzx edx, byte [r9 - 2]
mov cl, dl
mov al, dl
or al, 0x10
and cl, 0xf0
movzx eax, al
lea ecx, [r10*8 + 2]
cmove edx, eax
lea eax, [r10*8 + 1]
mov byte [rax + rbx], dl
mov al, byte [r9 - 1]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 3]
mov al, byte [r9]
lea r9, [r9 + 8]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 4]
mov al, byte [r9 - 7]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 5]
mov al, byte [r9 - 6]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 6]
mov al, byte [r9 - 5]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 7]
mov al, byte [r9 - 4]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 8]
mov al, byte [r9 - 3]
add r10d, esi
mov byte [rcx + rbx], al
cmp r10d, ebp
jb 0x140001a72
or word [rbx + 0x3d], 0xffff
lea rdx, [rbx + 1]
mov dword [rbx + 0x39], 0xff550404
movzx ecx, r13w
mov r8d, 0x3e
movzx eax, byte [rdx]
add rdx, rsi
add cx, ax
sub r8, rsi
jne 0x140001b24
movzx eax, cx
mov byte [rbx + 0x40], cl
shr ax, 8
mov byte [rbx + 0x3f], al
test esi, esi
je 0x140001be6
jmp 0x140001bd4
mov ebp, r13d
test rdi, rdi
je 0x140001bb6
mov rcx, qword [rdi + 0x78]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001bb6
movzx r9d, word [rdi + 0x2a]
mov r8d, Ordinal_69
cmp r9d, r8d
jb 0x140001ba5
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r13
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
test eax, eax
jne 0x140001bc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rdi + 8]
lea rcx, str.ERROR_kull_m_bUsYlIght_device_send_raw____device__u__WriteFile__0x_08x__n
mov r8d, eax
call fcn.14000bdb4
jmp 0x140001bc5
mov edx, dword [rdi + 8]
lea rcx, str.ERROR_kull_m_bUsYlIght_device_send_raw____device__u__Size_is_not_valide__siz___u__max___u__n
call fcn.14000bdb4
jmp 0x140001bc5
mov edx, dword [rdi + 8]
lea rcx, str.ERROR_kull_m_bUsYlIght_device_send_raw____device__u__Invalid_Device_Busy_Handle_n
call fcn.14000bdb4
and esi, ebp
test r12d, r12d
je 0x140001bd1
mov rdi, qword [rdi]
jmp 0x140001bd4
mov rdi, r13
test rdi, rdi
jne 0x140001b4c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x40]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140002128
Capabilities:
Get common file path

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 r14
sub rsp, 0x70
mov rbp, rcx
mov edx, 0x338
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400022f0
and dword [rbx + 0x1c], 0
lea r14, [rax + 8]
and dword [rbx + 0x20], 0
mov eax, 0x4000000
mov dword [r14], eax
mov r8, rbp
mov dword [rbx + 0xc], eax
xor edx, edx
mov eax, SQLGetData
mov rcx, r14
mov word [rbx + 0x28], ax
call fcn.140001fb0
test eax, eax
je 0x1400022d2
lea rsi, [rbx + 0x22a]
mov edi, 0x100
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1400022de
mov ecx, edi
mov rax, rsi
cmp byte [rax], 0
je 0x1400021c7
inc rax
sub rcx, 1
jne 0x1400021b9
test rcx, rcx
je 0x1400021d4
mov rax, rdi
sub rax, rcx
jmp 0x1400021d6
xor eax, eax
test rcx, rcx
je 0x1400022de
lea rcx, [rax + rsi]
sub rdi, rax
je 0x140002219
lea rdx, [rax + 0x7ffffeff]
add rdx, rdi
lea rax, [0x1400fbad8]
sub rax, rcx
test rdx, rdx
je 0x140002219
mov r8b, byte [rax + rcx]
test r8b, r8b
je 0x140002219
mov byte [rcx], r8b
dec rdx
inc rcx
sub rdi, 1
jne 0x1400021fc
test rdi, rdi
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
je 0x1400022de
mov qword [rsp + 0x60], rbp
lea rax, [0x140001ecc]
mov qword [rsp + 0x58], r14
lea rdi, [rbx + 0x32c]
mov qword [rsp + 0x50], rax
lea r9, [0x140001d30]
lea rax, [0x140001e98]
mov rcx, rdi
mov qword [rsp + 0x48], rax
lea r8, [0x140001d20]
lea rax, [0x140001e60]
mov qword [rsp + 0x40], rax
lea rdx, [fcn.140001d1c]
lea rax, [fcn.140001e2c]
mov qword [rsp + 0x38], rax
lea rax, [0x140001df4]
mov qword [rsp + 0x30], rax
lea rax, [0x140001dbc]
mov qword [rsp + 0x28], rax
lea rax, [fcn.140001d38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Cabinet.dll_FCICreate]
mov qword [rbx], rax
test rax, rax
jne 0x1400022de
mov ecx, dword [rdi]
call fcn.1400020ac
mov edx, dword [rdi]
lea rcx, str.ERROR_kull_m_cabinet_create___FCICreate_failed_with_error_code__d:__S_n
mov r8, rax
call fcn.14000bdb4
jmp 0x1400022de
lea rcx, str.ERROR_kull_m_cabinet_create___Failed_to_initialize_the_cabinet_information_structure._n
call fcn.14000bdb4
cmp qword [rbx], 0
jne 0x1400022f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rax
lea r11, [rsp + 0x70]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140009728
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r14d, dword [rcx + 0x1c]
mov eax, 0x8004
mov rbx, rcx
xor esi, esi
cmp r14d, 0x8009
mov r13, rdx
cmove r14d, eax
mov ecx, r14d
call fcn.1400048c8
mov ecx, dword [rbx + 0x28]
call fcn.1400049ec
mov ecx, dword [rbx + 0x28]
mov edi, eax
call fcn.140004958
lea ecx, [rsi + 0x40]
lea r15d, [rax + rdi]
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x140009941
mov dword [rsp + 0x40], 1
lea r12d, [rsi + 0x10]
mov dword [rsp + 0x38], r15d
lea r9, [rbx + 0x34]
mov qword [rsp + 0x30], rax
lea r15d, [rsi + 0x14]
mov eax, dword [rbx + 0x20]
mov r8d, r15d
mov dword [rsp + 0x28], eax
mov rdx, r13
mov ecx, r14d
mov dword [rsp + 0x20], r12d
call fcn.140003f68
test eax, eax
je 0x140009938
mov ecx, dword [rbx + 0x28]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0xa0]
mov r8d, edi
mov rdx, rbp
mov qword [rsp + 0x20], rax
call fcn.140004618
test eax, eax
je 0x140009924
mov rcx, qword [rsp + 0xa0]
lea r13d, [rsi + 1]
mov edx, r13d
lea r8, [rdi + rbp]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x1400098f9
mov edx, dword [rbx + 0x54]
lea ecx, [rsi + 0x40]
mov dword [rsp + 0xb0], edx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400098f9
mov r8d, dword [rsp + 0xb0]
mov rcx, rax
mov rdx, qword [rbx + 0x4c]
call fcn.1400c49c0
mov rcx, qword [rsp + 0xa0]
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1400098f0
mov r14d, dword [rbx + 0x2c]
mov rdx, rdi
mov rcx, qword [rsp + 0xc0]
cmp r14d, r15d
cmovb r15d, r14d
mov r8d, r15d
call fcn.1400c49c0
mov ebx, dword [rbx + 0x30]
lea rdx, [r14 + rdi]
mov rcx, qword [rsp + 0xb8]
cmp ebx, r12d
cmovb r12d, ebx
mov r8d, r12d
call fcn.1400c49c0
mov esi, r13d
add ebx, 0xfffffff0
je 0x1400098f0
xor edx, edx
test ebx, ebx
je 0x1400098f0
test esi, esi
je 0x1400098f0
xor ecx, ecx
mov eax, edx
add rax, r14
cmp byte [rax + rdi + 0x10], cl
cmove ecx, esi
add edx, r13d
mov esi, ecx
cmp edx, ebx
jb 0x1400098d5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x50]
call fcn.140003d14
test eax, eax
jne 0x140009938
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_dpapi_unprotect_crEdHiSt_entry_with_shaDerivedkey___kull_m_crypto_close_hprov_delete_container__0x_08x__n
jmp 0x140009931
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_dpapi_unprotect_crEdHiSt_entry_with_shaDerivedkey___kull_m_crypto_hkey_session__0x_08x__n
mov edx, eax
call fcn.14000bdb4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0xa8]
mov eax, esi
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400099ac
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
xor edx, edx
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
lea ecx, [rbx + 0x40]
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x140009a0a
test edi, edi
je 0x140009a01
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, eax
lea eax, [rdi - 1]
cmp ecx, eax
jne 0x140009a01
mov ebx, 1
jmp 0x140009a0a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140009afc
Capabilities:
Encode data using base64 via winapi
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
xor r9d, r9d
cmp dword [0x14015ca28], ebx
mov ebp, r8d
mov r14, rdx
mov dword [rax + 0x20], ebx
mov r15, rcx
mov esi, ebx
je 0x140009bd7
lea rax, [rax + 0x20]
mov edx, ebp
lea r8d, [rbx + 1]
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x140009c3a
mov edx, dword [rsp + 0x78]
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140009c3a
lea rax, [rsp + 0x78]
mov r9, rdi
lea r8d, [rbx + 1]
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov esi, eax
test eax, eax
je 0x140009bcc
mov rdx, r15
lea rcx, str._n_nBase64_of_file_:__s_n_n
call fcn.14000bdb4
cmp dword [rsp + 0x78], ebx
jbe 0x140009bc0
mov ecx, ebx
movzx edx, word [rdi + rcx*2]
lea rcx, [0x140104e90]
call fcn.14000bdb4
inc ebx
cmp ebx, dword [rsp + 0x78]
jb 0x140009ba6
lea rcx, str._n
call fcn.14000bdb4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140009c3a
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140009c3a
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rbx
mov r8d, ebp
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140009c31
cmp ebp, dword [rsp + 0x78]
jne 0x140009c31
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14000b418
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
lea rax, [0x14015ca30]
mov rdi, rdx
mov qword [r11 - 0x28], rbx
mov rdx, qword [rcx + 8]
mov rsi, rcx
mov qword [r11 - 0x20], rax
mov rbp, r8
mov ecx, dword [rdx]
test ecx, ecx
je 0x14000b565
sub ecx, 1
je 0x14000b4ee
sub ecx, 2
je 0x14000b4bf
cmp ecx, 3
jne 0x14000b63f
mov rax, qword [rdi + 8]
cmp dword [rax], ebx
jne 0x14000b513
cmp qword [rsi], rbx
je 0x14000b497
mov rcx, qword [rdx + 8]
xor r9d, r9d
mov edx, dword [rsi]
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x14000b63f
mov rax, qword [rsi + 8]
lea r9, [rsp + 0x70]
mov rdx, qword [rdi]
mov r8d, ebp
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
jmp 0x14000b63f
mov rax, qword [rdi + 8]
cmp dword [rax], ebx
jne 0x14000b513
mov rcx, qword [rdx + 8]
mov r9d, ebp
mov dword [rsp + 0x30], ebx
mov edx, 0x22c187
mov qword [rsp + 0x28], rbx
mov r8, qword [rdi]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rsi
call fcn.14000a1ac
jmp 0x14000b4b8
mov rax, qword [rdi + 8]
cmp dword [rax], ebx
jne 0x14000b513
mov rcx, qword [rdx + 8]
mov r9, rbp
mov r8, qword [rdi]
mov rdx, qword [rsi]
mov qword [rsp + 0x20], rbx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x14000b4b8
mov rdx, rbp
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000b63f
mov r8, rbp
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.14000b418
test eax, eax
je 0x14000b555
mov r8, rbp
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14000b418
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000b63f
mov rdx, qword [rdi + 8]
mov ecx, dword [rdx]
test ecx, ecx
je 0x14000b62f
sub ecx, 1
je 0x14000b60f
sub ecx, 1
je 0x14000b5f5
sub ecx, 1
je 0x14000b5d3
cmp ecx, 3
jne 0x14000b63f
mov rcx, qword [rdx + 8]
xor r9d, r9d
mov edx, dword [rdi]
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x14000b63f
mov rax, qword [rdi + 8]
lea r9, [rsp + 0x70]
mov rdx, qword [rsi]
mov r8d, ebp
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x14000b4b8
mov rcx, qword [rdx + 8]
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], ebx
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov edx, 0x22c183
jmp 0x14000b4dc
mov rcx, qword [rdx + 8]
mov r9, rbp
mov r8, qword [rdi]
mov rdx, qword [rsi]
mov rcx, qword [rcx]
call fcn.14000bb64
jmp 0x14000b4b8
mov rcx, qword [rdx + 8]
mov r9, rbp
mov r8, qword [rsi]
mov rdx, qword [rdi]
mov qword [rsp + 0x20], rbx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
jmp 0x14000b4b8
mov rdx, qword [rdi]
mov rcx, qword [rsi]
call fcn.1400c49c0
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140082864
Capabilities:
Set console window title

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 r14
mov eax, 0x20020
call fcn.1400e1ac0
sub rsp, rax
xor r14d, r14d
movsxd rbx, ecx
mov rsi, rdx
mov edi, r14d
lea ecx, [r14 + 1]
call fcn.1400c8cf4
mov rcx, rax
call fcn.1400c92ac
mov ebp, 0x40000
mov ecx, eax
mov edx, ebp
call fcn.1400c90d4
lea ecx, [r14 + 2]
mov dword [0x14015d318], eax
call fcn.1400c8cf4
mov rcx, rax
call fcn.1400c92ac
mov ecx, eax
mov edx, ebp
call fcn.1400c90d4
mov dword [0x14015d310], eax
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, 0xfde9
mov dword [0x14015d314], eax
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea rcx, str.windows_2.2.0_x64__oe.eo_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea edx, [r14 + 1]
lea rcx, [0x140082a88]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea ecx, [r14 + 1]
call fcn.140082a9c
mov rbp, rbx
cmp rbx, 1
jle 0x140082962
lea ebx, [r14 + 1]
cmp edi, 0xc000010a
je 0x1400829fe
cmp edi, 0xc000004b
je 0x1400829f2
mov rdx, qword [rsi + rbx*8]
lea rcx, str._nwindows_commandline____s_n
call fcn.14000bdb4
mov rcx, qword [rsi + rbx*8]
call fcn.140082b98
inc rbx
mov edi, eax
cmp rbx, rbp
jl 0x140082922
jmp 0x1400829f2
cmp edi, 0xc000004b
je 0x1400829fe
lea rcx, str._nwindows_
call fcn.14000bdb4
xor ecx, ecx
call fcn.1400c8cf4
mov rcx, rax
call fcn.1400c8f30
xor ecx, ecx
call fcn.1400c8cf4
mov r8, rax
lea rcx, [rsp + 0x20]
mov edx, 0xffff
call fcn.1400d3c80
test rax, rax
je 0x1400829f2
lea rcx, [rsp + 0x20]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1400829b0
test rax, rax
je 0x1400829f2
cmp word [rsp + 0x20], 0xa
je 0x1400829f2
cmp word [rsp + rax*2 + 0x1e], 0xa
jne 0x1400829d5
mov word [rsp + rax*2 + 0x1e], r14w
lea rdx, [rsp + 0x20]
lea rcx, [0x140112148]
call fcn.14000bf68
lea rcx, [rsp + 0x20]
call fcn.140082b98
mov edi, eax
cmp edi, 0xc000010a
jne 0x140082962
mov ecx, edi
call fcn.140082a08
int3

Function at 0x140082a08
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
xor ecx, ecx
call fcn.140082a9c
xor edx, edx
lea rcx, [0x140082a88]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ecx, 1
call fcn.1400c8cf4
mov rcx, rax
call fcn.1400c92ac
mov edx, dword [0x14015d318]
mov ecx, eax
call fcn.1400c90d4
mov ecx, 2
call fcn.1400c8cf4
mov rcx, rax
call fcn.1400c92ac
mov edx, dword [0x14015d310]
mov ecx, eax
call fcn.1400c90d4
mov ecx, dword [0x14015d314]
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
xor ecx, ecx
cmp ebx, 0xc000004b
jne 0x140082a81
call qword [sym.imp.KERNEL32.dll_ExitThread]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140082b98
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov edi, 0xc0000001
test rcx, rcx
je 0x140082c3f
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
je 0x140082c3f
mov edx, ebp
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140082c3f
mov r8d, ebp
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp ebp, eax
je 0x140082c05
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rax
test rbx, rbx
je 0x140082c3f
cmp word [rbx], 0x21
je 0x140082c2b
cmp word [rbx], 0x2a
je 0x140082c20
mov rcx, rbx
call fcn.140082c58
jmp 0x140082c34
lea rcx, [rbx + 2]
call fcn.1400aa430
jmp 0x140082c34
lea rcx, [rbx + 2]
call fcn.14009a23c
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret