joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140016f30]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001318
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
mov rsi, qword [0x140016f40]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x14000132f
mov eax, dword [rsi]
test eax, eax
je 0x140001390
mov dword [0x14001a008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x140001344
test edi, edi
je 0x140001365
mov rax, qword [0x140016eb0]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14000e0d0
mov rcx, qword [0x140016fc0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140016f20]
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.14000dee0
mov ebx, dword [0x14001a028]
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 [0x14001a020]
mov rbp, rax
test ebx, ebx
jle 0x1400013b0
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 0x140001280
add rbx, rbp
mov qword [rbx], 0
mov qword [0x14001a020], rbp
call fcn.14000dc00
call fcn.14000f460
mov r8, qword [0x14001a018]
mov ecx, dword [0x14001a028]
mov qword [rax], r8
mov rdx, qword [0x14001a020]
call fcn.14000dc20
mov ecx, dword [0x14001a00c]
mov dword [0x14001a010], eax
test ecx, ecx
je 0x1400013b8
mov edx, dword [0x14001a008]
test edx, edx
je 0x140001370
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140016f40]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call fcn.14000f500
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x140016f60]
mov rcx, qword [0x140016f50]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14001a010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140016f80]
mov rcx, qword [0x140016f70]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f1
mov rbx, rax
jmp 0x1400012b6
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x140001890
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rdx
lea rdx, [0x140011129]
mov rbx, rcx
call fcn.140004680
mov rbp, rax
test rax, rax
je 0x1400019c0
mov edx, dword [r12 + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rbx + 0x1000]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001998
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r13, rax
test rax, rax
je 0x1400019d6
cmp byte [r12 + 0x10], 1
je 0x140001968
mov rdi, rax
test rsi, rsi
jne 0x140001910
jmp 0x14000197d
add rdi, rbx
sub rsi, rbx
je 0x14000197d
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x140001908
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [r12 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov edx, dword [rax]
lea rcx, str.fread
call fcn.140002b10
mov rcx, r13
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r13d, r13d
jmp 0x14000197d
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.140001480
test eax, eax
jne 0x140001955
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rax, r13
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [r12 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov edx, dword [rax]
lea rcx, str.fseek
call fcn.140002b10
jmp 0x14000195d
lea rdx, [r12 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r13d, r13d
call fcn.140002a10
jmp 0x140001985
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rsp + 0x20], esi
lea r9, [r12 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
mov edx, dword [rax]
lea rcx, str.malloc
call fcn.140002b10
jmp 0x14000195d
Function at 0x140007910
Capabilities:
Create directory

Disassembly:
push r15
mov eax, 0x3038
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000ed00
sub rsp, rax
mov rsi, r8
mov r14, rcx
mov rcx, rdx
mov rbx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, rsi
mov rdi, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rax, [rdi + rax + 1]
cmp rax, 0xfff
ja 0x140007a11
mov dword [rsp + 0x20], 0x5c
lea rdi, [rsp + 0x30]
mov r9, rbx
lea r8, str._s_c
mov edx, 0x1000
mov rcx, rdi
mov r12d, 0x1000
lea r13, [rsp + 0x1030]
call fcn.14000f3a0
mov edx, 0x5c
mov rcx, rsi
movsxd rbp, eax
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
sub r12, rbp
mov r15, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add rbp, rdi
mov rbx, rax
test rax, rax
jne 0x1400079c6
jmp 0x140007a20
lea rcx, [rbx + 1]
mov edx, 0x5c
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
mov rbx, rax
test rax, rax
je 0x140007a20
mov qword [rsp + 0x20], rsi
mov r9d, ebx
mov rcx, rbp
mov rdx, r12
sub r9d, esi
lea r8, [0x140012e35]
call fcn.14000f3a0
mov rcx, rdi
call fcn.140004640
test eax, eax
jne 0x1400079b0
mov rdx, r13
mov rcx, rdi
mov r8d, 0x1000
call fcn.140008e60
mov rdx, qword [r14 + 0x3038]
mov rcx, r13
call r15
test eax, eax
jne 0x1400079b0
mov eax, 0xffffffff
jmp 0x140007a22
xor eax, eax
add rsp, 0x3038
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140007a40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.14000ed00
sub rsp, rax
mov rsi, rdx
lea rdx, [0x140012e3a]
call fcn.140004680
mov rbx, rax
test rax, rax
je 0x140007b2e
mov rcx, rsi
lea rdx, [0x140012e3d]
call fcn.140004680
mov rsi, rax
test rax, rax
je 0x140007b26
lea rdi, [rsp + 0x20]
jmp 0x140007acf
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov r8, rax
test rax, rax
je 0x140007b10
mov r9, rsi
mov edx, 1
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
test rax, rax
je 0x140007b00
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
jne 0x140007b00
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
test eax, eax
je 0x140007a90
xor edi, edi
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov eax, edi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
mov edi, 0xffffffff
jmp 0x140007add
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x140007adb
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
jmp 0x140007b08
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov edi, 0xffffffff
jmp 0x140007aed
Function at 0x140007b40
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rdi, r8
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x140007c30
xor edx, edx
mov r8d, 2
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140007c30
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
movsxd rbx, eax
cmp rbx, rdi
jb 0x140007c30
mov r15d, 1
sub r15, rdi
mov qword [rsp + 0x28], r15
mov r13d, 0x2000
cmp rbx, r13
cmovae r13, rbx
lea r14, [r13 - 0x2000]
sub rbx, r14
cmp rbx, rdi
jb 0x140007c30
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140007c30
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rax, rbx
jne 0x140007c30
mov rdx, qword [rsp + 0x28]
lea rbx, [rdx + rax]
jmp 0x140007c1a
lea r15, [rbx - 1]
mov r8, rdi
mov rdx, rbp
lea rcx, [rsi + r15]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
je 0x140007c50
mov rbx, r15
test rbx, rbx
jne 0x140007c00
lea rbx, [r14 + rdi - 1]
test r14, r14
jne 0x140007ba9
nop dword [rax]
xor ebx, ebx
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [r13 + rbx - 0x2001]
jmp 0x140007c32
Function at 0x140007c60
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
mov eax, 0x2288
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000ed00
sub rsp, rax
lea r8, str._s
mov edx, 0x1000
lea r14, [rsp + 0x280]
mov qword [rsp + 0x22d0], rcx
mov r9, rcx
mov rcx, r14
call fcn.14000f3e0
cmp eax, 0xfff
jg 0x140007dc8
lea rsi, [rsp + 0x30]
lea ebx, [rax - 1]
mov r12d, 0x1000
mov rcx, r14
mov rdx, rsi
sub r12d, ebx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140007dc8
movsxd rax, ebx
mov rdi, qword [sym.imp.KERNEL32.dll_FindNextFileW]
lea rbx, [rsp + 0x5c]
lea rbp, [0x140012e5a]
lea rax, [r14 + rax*2]
lea r15, [0x140012e5e]
mov qword [rsp + 0x20], rax
movsxd rax, r12d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x140007d60
mov rdx, r15
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x140007d60
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov r9, rbx
lea r8, [0x140012e64]
call fcn.14000f3e0
cmp eax, r12d
jge 0x140007d60
mov eax, dword [rsp + 0x30]
mov rcx, r14
test al, 0x10
je 0x140007da8
test ah, 4
je 0x140007d59
cmp dword [rsp + 0x54], 0xa000000c
je 0x140007dc0
call fcn.140007c60
nop
mov rdx, rsi
mov rcx, r13
call rdi
test eax, eax
jne 0x140007d03
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x22d0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
setne al
movzx eax, al
neg eax
add rsp, 0x2288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rsi
mov rcx, r13
call rdi
test eax, eax
jne 0x140007d03
jmp 0x140007d6c
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140007d60
mov eax, 0xffffffff
jmp 0x140007d8e

Function at 0x140008050
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x4028
push rbx
call fcn.14000ed00
sub rsp, rax
xor r8d, r8d
xor edx, edx
call fcn.140008e60
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub eax, 1
cmp eax, 0xffe
ja 0x1400080c8
lea rsi, [rsp + 0x2020]
mov r8d, 0x1000
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub eax, 1
cmp eax, 0xffe
ja 0x1400080c8
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140008d60
add rsp, 0x4028
pop rbx
pop rsi
ret
xor eax, eax
add rsp, 0x4028
pop rbx
pop rsi
ret
Function at 0x140008ba0
Capabilities:
Enumerate process modules

Disassembly:
push r15
mov eax, 0x4048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000ed00
sub rsp, rax
mov rbp, rcx
mov dword [rsp + 0x3c], 0
lea rbx, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov r9, rbx
mov rcx, rax
mov rsi, rax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x140008bf0
mov r12d, dword [rsp + 0x3c]
test r12d, r12d
jne 0x140008c08
add rsp, 0x4048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, r12d
mov edx, 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov rdi, rax
test rax, rax
je 0x140008bf0
mov r9, rbx
mov r8d, r12d
mov rdx, rax
mov rcx, rsi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
jne 0x140008c50
mov rcx, rdi
add rsp, 0x4048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.api_ms_win_crt_heap_l1_1_0.dll_free
lea r14, [rsp + 0x2040]
lea rcx, [rbp + 0x2022]
mov r8d, 0x1000
mov rdx, r14
call fcn.140008e60
test rax, rax
je 0x140008c32
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x3c]
shr eax, 3
je 0x140008c32
mov rbx, rdi
mov r15, rdi
lea rbp, [rsp + 0x40]
xor r13d, r13d
lea r12d, [rax*8]
add r12, rdi
nop word cs:[rax + rax]
nop dword [rax]
mov rdx, qword [r15]
mov r9d, 0x1000
mov r8, rbp
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x140008ceb
mov r8, qword [rsp + 0x28]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140008ceb
mov rdx, qword [r15]
movsxd rax, r13d
add r13d, 1
mov qword [rdi + rax*8], rdx
add r15, 8
cmp r15, r12
jne 0x140008cb0
test r13d, r13d
je 0x140008c32
movsxd r13, r13d
mov r12, qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r13, [rdi + r13*8]
jmp 0x140008d1d
add rbx, 8
cmp r13, rbx
je 0x140008c32
mov rdx, qword [rbx]
mov r9d, 0x1000
mov r8, rbp
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x140008d10
xor r14d, r14d
jmp 0x140008d44
test eax, eax
je 0x140008d10
add r14d, 1
mov rcx, qword [rbx]
call r12
cmp r14d, 0x20
jne 0x140008d40
jmp 0x140008d10
Function at 0x14000def0
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.14000f350
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x14000df60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001d394]
mov rbx, rcx
test esi, esi
jle 0x14000e090
mov rax, qword [0x14001d398]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000dfab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000e035
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000df90
mov rcx, rbx
call fcn.14000ea20
mov rdi, rax
test rax, rax
je 0x14000e0b2
mov rax, qword [0x14001d398]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000eb60
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001d398]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000e097
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000e02e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000e040
add dword [0x14001d394], 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 [0x14001d398]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000e02e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000def0
nop dword [rax]
xor esi, esi
jmp 0x14000dfb8
mov rax, qword [0x14001d398]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000def0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000def0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14000e660
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001d400]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001d3e0]
test rbx, rbx
je 0x14000e6c4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000e6bb
test eax, eax
jne 0x14000e6bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e6a0
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 0x14000ea20
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000eaa0
Capabilities:
Parse pe header

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

Function at 0x14000eb60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140016e80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000eb7f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000eb88
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400110a0
Capabilities:
Encode data using base64 via winapi
Terminate process

Disassembly:
jmp 0x1400141b0
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x14003416c]
call fcn.14001166d
nop
mov rax, qword [rbp + 0x110]
mov dword [rax], 0x3f40
mov rax, qword [rbp + 0x110]
movsxd rax, dword [rax]
mov qword [rbp + 0xd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0xd8]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 8]
mov r8d, 0x40000001
mov edx, dword [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x140014285
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CryptBinaryToStringA_failed_with_error_code__d
call fcn.1400112e9
nop
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov qword [rbp + 8], 0
mov ecx, 0xffffffff
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov rax, qword [rbp + 8]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1400110d7
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
jmp 0x140019aa0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x210
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x238]
mov rax, qword [0x14002e040]
xor rax, rbp
mov qword [rbp + 0x1e8], rax
lea rcx, [0x140034548]
call fcn.14001166d
nop
mov dword [rbp + 4], 1
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov byte [rbp + 0x64], 0
lea rax, [rbp + 0xb0]
lea rcx, [0x1400299d0]
mov rdi, rax
mov rsi, rcx
mov ecx, WSAGetLastError
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
mov dword [rbp + 0x84], eax
mov eax, 1
imul rax, rax, 0x24
lea rax, [rbp + rax + 0xb0]
mov r8d, 4
lea rdx, [rbp + 0x84]
mov rcx, rax
call fcn.140011311
nop
mov eax, 1
imul rax, rax, 3
movzx eax, byte [rbp + rax + 0xb0]
mov byte [rbp + 0x64], al
movsx eax, byte [rbp + 0x64]
add eax, 4
xor r9d, r9d
mov r8d, eax
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp + 0x210]
call fcn.1400116a9
mov dword [rbp + 0x24], eax
xor r9d, r9d
mov r8d, 0x2000
mov rdx, qword [rbp + 0x218]
mov rcx, qword [rbp + 0x210]
call fcn.1400111f9
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400282a0]
call fcn.140011582
mov eax, edi
mov rcx, qword [rbp + 0x1e8]
xor rcx, rbp
call fcn.140011307
lea rsp, [rbp + 0x1f0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011203
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
jmp 0x14001ae20
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x210
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x238]
mov rax, qword [0x14002e040]
xor rax, rbp
mov qword [rbp + 0x1e8], rax
lea rcx, [0x140034548]
call fcn.14001166d
nop
mov dword [rbp + 4], 1
mov dword [rbp + 0x44], 0
mov dword [rbp + 0x64], 0
mov byte [rbp + 0xa4], 0
lea rax, [rbp + 0xd0]
lea rcx, [0x140029970]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x4a
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x64], eax
movzx eax, word [rbp + 0x64]
mov word [rbp + 0x84], ax
mov eax, 1
imul rax, rax, 0x1e
lea rax, [rbp + rax + 0xd0]
mov r8d, 2
lea rdx, [rbp + 0x84]
mov rcx, rax
call fcn.140011311
nop
mov eax, 1
imul rax, rax, 2
lea rax, [rbp + rax + 0xd0]
mov r8d, 2
mov rdx, rax
lea rcx, [rbp + 0x24]
call fcn.140011311
nop
mov eax, 1
imul rax, rax, 3
movzx eax, byte [rbp + rax + 0xd0]
mov byte [rbp + 0xa4], al
movsx eax, byte [rbp + 0xa4]
add eax, 4
xor r9d, r9d
mov r8d, eax
lea rdx, [rbp + 0xd0]
mov rcx, qword [rbp + 0x210]
call fcn.1400116a9
mov dword [rbp + 0x44], eax
xor r9d, r9d
mov r8d, 0x2000
mov rdx, qword [rbp + 0x218]
mov rcx, qword [rbp + 0x210]
call fcn.1400111f9
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.140011582
mov eax, edi
mov rcx, qword [rbp + 0x1e8]
xor rcx, rbp
call fcn.140011307
lea rsp, [rbp + 0x1f0]
pop rdi
pop rsi
pop rbp
ret