joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004e654
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx], edi
jbe 0x14004e6f6
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14004e800]
and dword [rsp + 0x20], 0
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x14004e6cc
lea rdx, str.CreateThread_failed
lea rcx, [0x14009bb78]
call fcn.14001e07c
lea rcx, [0x14009bb78]
call fcn.14001e3bc
lea edx, [rsi + 2]
lea rcx, [0x14009bb78]
call fcn.14001e050
mov qword [rbx + rdi*8 + 8], rsi
inc dword [rbx + 0x208]
mov edx, dword [0x1400a7110]
test edx, edx
je 0x14004e6ec
mov rcx, qword [rbx + rdi*8 + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc edi
cmp edi, dword [rbx]
jb 0x14004e670
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14005da4c
Capabilities:
Parse pe header

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

Function at 0x140065db8
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140065b8c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140065b8c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140065b8c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140065b8c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140065b8c
cmp dword [rcx + 0x84], 0xe
jbe 0x140065b8c
cmp dword [rcx + 0xf8], esi
je 0x140065b8c
mov ecx, r14d
call fcn.140065cd4
mov ecx, 2
call fcn.140069ca8
nop
cmp byte [0x1400a7b20], 0
jne 0x140065c56
mov r15d, 1
mov eax, r15d
xchg dword [0x1400a7b10], eax
test ebx, ebx
jne 0x140065bff
mov rdi, qword [0x14008b948]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400a7b18]
cmp rcx, rax
je 0x140065bf6
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140020880]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400a7c88]
jmp 0x140065c0b
cmp ebx, r15d
jne 0x140065c11
lea rcx, [0x1400a7ca0]
call fcn.140067840
nop
test ebx, ebx
jne 0x140065c28
lea rdx, [0x1400736a0]
lea rcx, [0x140073680]
call fcn.140067b40
lea rdx, [0x1400736b0]
lea rcx, [0x1400736a8]
call fcn.140067b40
movzx eax, byte [0x1400a7b20]
test esi, esi
cmove eax, r15d
mov byte [0x1400a7b20], al
jmp 0x140065c56
mov ecx, 2
call fcn.140069d08
test esi, esi
jne 0x140065c6d
mov ecx, r14d
call fcn.140065c88
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140065b1c
Function at 0x140002c70
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 fcn.140009960
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140009960
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002ce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400100a4]
mov rbx, rcx
test esi, esi
jle 0x140002e10
mov rax, qword [0x1400100a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002db5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d10
mov rcx, rbx
call fcn.140003730
mov rdi, rax
test rax, rax
je 0x140002e32
mov rax, qword [0x1400100a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003870
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400100a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002dae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002dc0
add dword [0x1400100a4], 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 [0x1400100a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002dae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c70
nop dword [rax]
xor esi, esi
jmp 0x140002d38
mov rax, qword [0x1400100a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c70
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c70
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400033a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140010100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400100e0]
test rbx, rbx
je 0x1400033fc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400033f3
test rsi, rsi
je 0x1400033f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400033d8
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 0x140003730
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400037b0
Capabilities:
Parse pe header

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

Function at 0x140003870
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000cea0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000388f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003898
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001f00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
mov qword [rdi + 0x30], rax
jne 0x140001f4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
mov qword [rdi + 0x38], rax
jne 0x140001f9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 0x30]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov rcx, rdi
mov qword [rdi + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
lea rax, [rsp + 0x60]
lea r8, [0x140001c70]
xor esi, esi
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov r11, rax
mov qword [rdi + 0x28], rax
jne 0x14000200d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 0x30]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x38]
mov qword [rdi + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
mov qword [rdi + 0x38], rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rax, qword [rdi + 0x30]
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea ecx, [r8 + 2]
or r9d, 0xffffffff
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x14000208d
mov rcx, qword [rdi + 0x28]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x38]
mov qword [rdi + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x50]
mov rcx, rdi
mov qword [rdi + 0x38], rsi
mov qword [rdi + 0x28], rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
mov qword [rdi + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x140002bc0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x290
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140127190]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.1400cb010
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8023
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x140002c58
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], rbp
mov word [rbx + 8], bp
xor r8d, r8d
lea rdx, [0x1400f04f8]
mov rcx, rbx
call fcn.1400a4380
mov rax, rbx
jmp 0x140002d71
mov edx, 7
mov qword [rsp + 0x60], rdx
mov r8, rbp
mov qword [rsp + 0x58], rbp
mov word [rsp + 0x48], bp
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rsi, rcx
movabs rax, 0x7ffffffffffffffe
cmp rcx, rax
jbe 0x140002ca5
call fcn.14009c5b0
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
cmp rdx, rsi
jae 0x140002cbe
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1400a3b30
mov rdx, qword [rsp + 0x60]
jmp 0x140002cdc
test rsi, rsi
jne 0x140002cdc
mov qword [rsp + 0x58], rbp
lea rax, [rsp + 0x48]
cmp rdx, 8
cmovae rax, qword [rsp + 0x48]
mov word [rax], bp
jmp 0x140002d1e
test rsi, rsi
je 0x140002d1e
lea rcx, [rsp + 0x48]
cmp rdx, 8
cmovae rcx, qword [rsp + 0x48]
lea rdi, [rsi + rsi]
add rdx, rdx
mov r9, rdi
lea r8, [rsp + 0x70]
call fcn.1400c9e10
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
mov word [rdi + rax], bp
mov r8d, 0x19
lea rdx, str.ASMSoftwareBlackBox1.0
lea rcx, [rsp + 0x40]
call fcn.140001b10
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], rbp
mov word [rbx + 8], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400a4180
nop
cmp qword [rsp + 0x60], 8
jb 0x140002d6e
mov rcx, qword [rsp + 0x48]
call fcn.1400c9d50
mov rax, rbx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400caf00
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400053c0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xe0
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1400cb010
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor ecx, ecx
mov qword [rsp + 0x40], rax
xor eax, eax
mov dword [rsp + 0x70], WSAGetLastError
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x430
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140005445
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0xe0
pop rbx
ret
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140005455
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140005465
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0xe0
pop rbx
ret
Function at 0x140006120
Capabilities:
Enumerate process modules

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x250
mov rax, qword [0x140127190]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov edi, ecx
mov rcx, rdx
mov rbx, rdx
call fcn.140005b40
mov r8d, edi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
mov rbp, rax
jne 0x14000616d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400062ee
lea r9, [rsp + 0x28]
lea rdx, [rsp + 0x20]
mov r8d, 8
mov rcx, rax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x1400061a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1400062ee
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x30]
mov r9d, 0x104
mov rcx, rbp
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x140006189
mov rdx, qword [rbx + 0x20]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x30]
mov qword [rsp + 0x280], rsi
repne scasw ax, word [rdi]
cmp rdx, 8
not rcx
lea rsi, [rcx - 1]
jb 0x1400061ee
mov rax, qword [rbx + 8]
lea rdi, [rbx + 8]
jmp 0x1400061f5
lea rdi, [rbx + 8]
mov rax, rdi
lea rcx, [rsp + 0x30]
cmp rcx, rax
jb 0x140006246
cmp rdx, 8
jb 0x14000620a
mov rcx, qword [rdi]
jmp 0x14000620d
mov rcx, rdi
mov rax, qword [rbx + 0x18]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x30]
cmp rcx, rax
jbe 0x140006246
cmp rdx, 8
jb 0x140006228
mov rdi, qword [rdi]
lea r8, [rsp + 0x30]
mov r9, rsi
mov rdx, rbx
sub r8, rdi
mov rcx, rbx
sar r8, 1
call fcn.1400a4180
jmp 0x1400062db
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
jbe 0x14000625a
call fcn.14009c5b0
mov rax, qword [rbx + 0x20]
cmp rax, rsi
jae 0x14000628e
mov r8, qword [rbx + 0x18]
mov rdx, rsi
mov rcx, rbx
call fcn.1400a3b30
test rsi, rsi
je 0x1400062db
mov rdx, qword [rbx + 0x20]
mov qword [rsp + 0x288], r12
cmp rdx, 8
jb 0x1400062a7
mov rcx, qword [rdi]
jmp 0x1400062aa
test rsi, rsi
jne 0x140006272
cmp rax, 8
mov qword [rbx + 0x18], rsi
jb 0x1400062a0
mov rdi, qword [rdi]
mov word [rdi], 0
jmp 0x1400062db
mov rcx, rdi
lea r12, [rsi + rsi]
lea r8, [rsp + 0x30]
add rdx, rdx
mov r9, r12
call fcn.1400c9e10
cmp qword [rbx + 0x20], 8
mov qword [rbx + 0x18], rsi
jb 0x1400062cc
mov rdi, qword [rdi]
mov word [r12 + rdi], 0
mov r12, qword [rsp + 0x288]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x280]
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400caf00
add rsp, 0x250
pop rdi
pop rbp
pop rbx
ret
Function at 0x140006310
Capabilities:
Enumerate process modules

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x1060
call fcn.1400ebe00
sub rsp, rax
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x10a0], rbx
mov qword [rsp + 0x10a8], rbp
mov rax, qword [0x140127190]
xor rax, rsp
mov qword [rsp + 0x1058], rax
mov r12, rdx
mov r13, rcx
mov byte [rdx], 0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea r8, [rsp + 0x20]
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x140006385
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140006477
mov ebp, dword [rsp + 0x20]
shr ebp, 2
mov edi, r14d
je 0x140006470
lea rsi, [rsp + 0x30]
nop
nop
mov qword [rsp + 0x1050], 7
mov qword [rsp + 0x1048], r14
mov word [rsp + 0x1038], 0
lea rdx, [rsp + 0x1030]
mov ecx, dword [rsi]
call fcn.140006120
test eax, eax
je 0x1400063eb
cmp qword [rsp + 0x1050], 8
jb 0x14000643f
mov rcx, qword [rsp + 0x1038]
call fcn.1400c9d50
jmp 0x14000643f
lea rbx, [rsp + 0x1038]
cmp qword [rsp + 0x1050], 8
cmovae rbx, qword [rsp + 0x1038]
mov rcx, r13
call fcn.1400057b0
mov rdx, rax
mov rcx, rbx
call fcn.1400cb920
test eax, eax
jne 0x140006427
cmp qword [rsp + 0x1048], 0
jne 0x14000644f
cmp qword [rsp + 0x1050], 8
jb 0x14000643f
mov rcx, qword [rsp + 0x1038]
call fcn.1400c9d50
add edi, 1
add rsi, 4
cmp edi, ebp
jae 0x140006470
jmp 0x1400063a0
mov byte [r12], 1
cmp qword [rsp + 0x1050], 8
jb 0x14000646c
mov rcx, qword [rsp + 0x1038]
call fcn.1400c9d50
xor eax, eax
jmp 0x140006477
mov byte [r12], 0
xor eax, eax
mov rcx, qword [rsp + 0x1058]
xor rcx, rsp
call fcn.1400caf00
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140022230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r12d, ecx
movzx r13d, dx
lea rcx, [0x14012b4d0]
xor r14d, r14d
xor edx, edx
mov rbx, r14
call fcn.14009c24c
lea ebp, [r14 + 1]
test rax, rax
mov rsi, rax
je 0x140022346
nop
nop
test rbx, rbx
jne 0x140022346
mov eax, r12d
lea edx, [rbx + 6]
movzx r9d, r13w
shr eax, 4
mov rcx, rsi
add ax, 1
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
mov rdi, rax
jne 0x1400222b4
mov rbx, r14
jmp 0x140022329
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400222ca
mov rbx, r14
jmp 0x140022324
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
jne 0x1400222e0
mov rbx, r14
jmp 0x140022324
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rbx
and ecx, 0xf
jbe 0x140022312
nop
nop
cmp rbx, r11
jae 0x140022317
add ecx, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140022300
cmp rbx, r11
jb 0x14002231c
mov rbx, r14
jmp 0x140022324
cmp word [rbx], r14w
cmove rbx, r14
test rbx, rbx
jne 0x140022367
lea rcx, [0x14012b4d0]
mov edx, ebp
call fcn.14009c24c
add ebp, 1
test rax, rax
mov rsi, rax
jne 0x140022280
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
mov rax, rsi
jmp 0x140022348

Function at 0x140022380
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov rsi, rcx
mov ecx, r8d
mov ebx, r8d
mov rbp, rdx
call fcn.14009c750
mov rcx, qword [rbp]
cmp rax, rcx
mov rdi, rax
je 0x1400223bc
call fcn.1400cb100
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
mov qword [rbp], rdi
mov qword [rbp + 8], rbx
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x140022406
nop
nop
test eax, eax
je 0x14002242d
cmp eax, ebx
je 0x140022410
sub ebx, eax
cdqe
xor r9d, r9d
add rdi, rax
mov r8d, ebx
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1400223e0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x140022412
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov eax, 0x277e
jmp 0x140022412
Function at 0x140022440
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140127190]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x1400f1630]
mov rbx, rcx
mov qword [rcx], rax
mov rcx, qword [rcx + 0x1a0]
cmp rcx, 0xffffffffffffffff
je 0x1400224b8
mov edx, 1
call qword [sym.imp.WS2_32.dll_shutdown]
nop
nop
mov rcx, qword [rbx + 0x1a0]
mov r9d, 8
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140022480
mov rcx, qword [rbx + 0x1a0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x1a0], 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400caf00
add rsp, 0x40
pop rbx
ret

Function at 0x1400224e0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
add rcx, 0x10
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
lea rax, [0x1400f1698]
mov qword [rbx], rax
lea rax, [0x1400f1678]
mov qword [rbx + 8], rax
lea rax, [0x1400f1630]
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x1d8], 0xffffffffffffffff
lea rdx, [rbx + 0x40]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
nop
lea rcx, [rbx + 0x1e0]
call fcn.14004cb20
nop
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x1400225a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x140127190]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
lea rax, [0x1400f1698]
mov qword [rcx], rax
lea rax, [0x1400f1678]
mov qword [rcx + 8], rax
add rcx, 0x1e0
call fcn.14004cb90
nop
lea rax, [0x1400f1630]
mov qword [rbx + 0x38], rax
mov rcx, qword [rbx + 0x1d8]
cmp rcx, 0xffffffffffffffff
je 0x140022648
mov edx, 1
call qword [sym.imp.WS2_32.dll_shutdown]
nop
nop
mov r9d, 8
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x28]
mov rcx, qword [rbx + 0x1d8]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140022610
mov rcx, qword [rbx + 0x1d8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x1d8], 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400caf00
add rsp, 0x50
pop rbx
ret