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

Disassembly:
cld
pop r11
jmp 0xb09c9d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xb09cad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xb09c95
lea eax, [rcx + 1]
jmp 0xb09cbb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xb09cce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xb09cb4
sub eax, 3
jb 0xb09cee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xb09d3d
sar eax, 1
movsxd rbp, eax
jb 0xb09d24
jmp 0xb09cfc
add ebx, ebx
jne 0xb09cfa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xb09d24
inc ecx
add ebx, ebx
jne 0xb09d0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xb09d24
call r11
adc ecx, ecx
add ebx, ebx
jne 0xb09d1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xb09d0c
add ecx, 2
jmp 0xb09d29
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00b09c52
jmp 0xb09c9d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x315e00
mov dl, 0x23
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xb09d89
cmp rsi, rcx
jae 0xb09d91
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xb09d70
cmp al, 0x8f
ja 0xb09d70
cmp byte [rsi - 2], 0xf
je 0xb09d76
sub al, 0xe8
cmp al, 1
ja 0xb09d5a
cmp rsi, rcx
jae 0xb09d91
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xb09d60
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xb09d91
lodsb al, byte [rsi]
jmp 0xb09d70
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x6f2000]
mov eax, dword [rdi]
or eax, eax
je 0xb09dee
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x717684]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xb09d9e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xb09de8
mov qword [rbx], rax
add rbx, 8
jmp 0xb09dbe
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xb09e28
cmp al, 0xef
ja 0xb09e1a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xb09dfa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0xb09e09
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xb09e7c
sub rsp, 0xffffffffffffff80
jmp 0x707070
Function at 0x140004110
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
sub rsp, 0xc8
mov qword [rsp + 0xb8], rdx
mov qword [rsp + 0xb0], rcx
mov rcx, qword [rsp + 0xb8]
call fcn.140004390
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xb8]
call fcn.1400043b0
xor r8d, r8d
mov edx, r8d
mov qword [rsp + 0xa0], rax
mov r8, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xb0]
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jne 0x14000419f
mov byte [rsp + 0xc7], 0
jmp 0x140004376
xor eax, eax
mov ecx, eax
mov r9, qword [rsp + 0xa0]
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0x98]
mov r10, qword [rsp + 0xb0]
mov qword [rsp + 0x60], rcx
mov rcx, r10
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp eax, 0
jne 0x1400041f0
mov byte [rsp + 0xc7], 0
jmp 0x140004376
lea rcx, [0x1400457c8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jne 0x140004221
mov byte [rsp + 0xc7], 0
jmp 0x140004376
mov rcx, qword [rsp + 0x90]
lea rdx, [0x1400457d5]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x80]
mov rdx, rax
call fcn.1400043c0
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x58], rax
call fcn.1400043e0
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jne 0x14000427c
mov byte [rsp + 0xc7], 0
jmp 0x140004376
mov rax, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x50], rax
call fcn.1400043f0
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x48], rax
call fcn.140004410
xor r8d, r8d
mov ecx, r8d
xor r8d, r8d
mov rdx, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x40]
mov dword [rsp + 0x3c], r8d
mov r8, r9
mov r9, rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140004317
mov byte [rsp + 0xc7], 0
jmp 0x140004376
mov rcx, qword [rsp + 0x78]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 0xffffffff
jne 0x140004343
mov byte [rsp + 0xc7], 0
jmp 0x140004376
xor eax, eax
mov r8d, eax
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xb0]
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp eax, 0
jne 0x14000436e
int3
mov byte [rsp + 0xc7], 1
mov al, byte [rsp + 0xc7]
and al, 1
movzx eax, al
add rsp, 0xc8
ret
Function at 0x140004420
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.1400043c0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
call fcn.140004530
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx r9d, word [rax]
cmp r9d, 0x5a4d
je 0x140004488
mov byte [rsp + 0x77], 0
jmp 0x140004521
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.1400043c0
mov rcx, qword [rsp + 0x50]
movsxd r8, dword [rcx + 0x3c]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.140004540
lea rcx, [rsp + 0x38]
call fcn.140004590
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1400044e0
mov rax, qword [rsp + 0x48]
cmp dword [rax], 0x4550
je 0x1400044ea
mov byte [rsp + 0x77], 0
jmp 0x140004521
cmp qword [rsp + 0x60], 0
je 0x140004503
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
cmp qword [rsp + 0x68], 0
je 0x14000451c
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov byte [rsp + 0x77], 1
mov al, byte [rsp + 0x77]
and al, 1
movzx eax, al
add rsp, 0x78
ret
Function at 0x14000dbf0
Capabilities:
Get storage device properties

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x78], 0xfffffffffffffffe
mov qword [rbp + 0x68], rdx
mov qword [rbp + 0x60], rcx
mov rdx, qword [rbp + 0x60]
lea rax, [rbp + 0x30]
mov rcx, rax
mov qword [rbp - 0x20], rax
call fcn.140003e20
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp - 0x20]
mov qword [rbp - 0x28], rax
call fcn.14000e9d0
jmp 0x14000dc3a
lea rcx, [rbp + 0x30]
call fcn.1400040e0
lea rcx, [rbp + 0x50]
call fcn.14000ead0
test al, 1
jne 0x14000dc64
mov byte [rbp + 0x77], 0
mov dword [rbp + 0x2c], 1
jmp 0x14000ddfa
mov qword [rbp + 0x20], 0
mov dword [rbp + 0x10], 0
mov dword [rbp + 0x14], 0
mov rax, rsp
lea rcx, [rbp + 0x20]
mov qword [rax + 0x20], rcx
mov qword [rax + 0x30], 0
mov dword [rax + 0x28], 8
lea rcx, [rbp + 0x50]
mov edx, 0x2d1400
lea r8, [rbp + 0x10]
mov r9d, recv
call fcn.14000eaf0
mov dword [rbp - 0x2c], eax
jmp 0x14000dcb4
mov eax, dword [rbp - 0x2c]
cmp eax, 0
jge 0x14000dcd0
mov byte [rbp + 0x77], 0
mov dword [rbp + 0x2c], 1
jmp 0x14000ddfa
mov eax, dword [rbp + 0x24]
mov ecx, eax
mov qword [rbp + 8], rcx
mov rcx, qword [rbp + 8]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
call rdx
mov qword [rbp - 0x38], rax
jmp 0x14000dcef
mov rax, qword [rbp - 0x38]
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14000dd12
mov byte [rbp + 0x77], 0
mov dword [rbp + 0x2c], 1
jmp 0x14000ddfa
mov rcx, qword [rbp]
mov r8, qword [rbp + 8]
xor eax, eax
mov dl, al
call sub.VCRUNTIME140.dll_memset
mov r9d, dword [rbp + 8]
mov rcx, qword [rbp]
mov r8, rsp
mov dword [r8 + 0x28], r9d
mov qword [r8 + 0x20], rcx
mov qword [r8 + 0x30], 0
lea rcx, [rbp + 0x50]
mov edx, 0x2d1400
lea r8, [rbp + 0x10]
mov r9d, recv
mov qword [rbp - 0x40], rax
call fcn.14000ebd0
mov dword [rbp - 0x44], eax
jmp 0x14000dd62
mov eax, dword [rbp - 0x44]
cmp eax, 0
jge 0x14000dd7e
mov byte [rbp + 0x77], 0
mov dword [rbp + 0x2c], 1
jmp 0x14000ddfa
mov rax, qword [rbp]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov ecx, dword [rax]
mov edx, ecx
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 8]
mov ecx, dword [rax + 0x18]
mov edx, ecx
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 8]
mov rdx, qword [rbp + 0x68]
mov r8, qword [rax + 0x20]
mov qword [rdx + 0x60], r8
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x50], xmm1
movups xmmword [rdx + 0x40], xmm0
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp + 0x68]
call fcn.140005080
jmp 0x14000ddd6
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp + 0x68]
add rax, 0x20
mov rcx, rax
call fcn.140005080
jmp 0x14000ddef
mov byte [rbp + 0x77], 1
mov dword [rbp + 0x2c], 1
lea rcx, [rbp + 0x50]
call fcn.14000ecb0
mov al, byte [rbp + 0x77]
and al, 1
movzx eax, al
add rsp, 0x100
pop rbp
ret
Function at 0x140012740
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x28], 0
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov r8d, 0x40
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp eax, 0
je 0x1400127b5
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, 1
and al, 1
movzx eax, al
add rsp, 0x48
ret

Function at 0x1400127d0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x48], 0
mov rcx, rdx
mov qword [rsp + 0x40], rdx
call fcn.140002a10
mov rcx, qword [rsp + 0x50]
mov rdx, rax
mov r8d, 0x40
lea r9, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp eax, 0
je 0x14001287c
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rcx
mov rcx, rax
call fcn.1400029f0
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
call fcn.140002a10
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov r8, rax
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x2c], r8d
call fcn.140002a10
mov rcx, qword [rsp + 0x50]
mov rdx, rax
mov r8d, dword [rsp + 0x2c]
lea r9, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, 1
and al, 1
movzx eax, al
add rsp, 0x58
ret
Function at 0x140015270
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0x178
xor eax, eax
mov qword [rsp + 0x168], rcx
mov qword [rsp + 0x160], 0
lea rcx, [rsp + 0x30]
mov edx, eax
mov r8d, 0x130
mov dword [rsp + 0x28], eax
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x30], 0x130
mov ecx, 2
mov edx, dword [rsp + 0x28]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x160], rax
cmp qword [rsp + 0x160], 0
jne 0x1400152e8
mov dword [rsp + 0x174], 0
jmp 0x140015396
mov rcx, qword [rsp + 0x160]
lea rdx, [rsp + 0x30]
call sub.KERNEL32.dll_Process32First
cmp eax, 0
jne 0x140015321
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x174], 0
jmp 0x140015396
jmp 0x140015326
mov rcx, qword [rsp + 0x168]
call fcn.140005d90
lea rcx, [rsp + 0x30]
add rcx, 0x2c
mov rdx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
cmp eax, 0
jne 0x14001535d
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x2c], eax
jmp 0x14001537d
jmp 0x140015362
mov rcx, qword [rsp + 0x160]
lea rdx, [rsp + 0x30]
call sub.KERNEL32.dll_Process32Next
cmp eax, 0
jne 0x140015326
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x2c]
mov dword [rsp + 0x174], edx
mov eax, dword [rsp + 0x174]
add rsp, 0x178
ret
Function at 0x1400195c0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
sub rsp, 0x70
mov rax, rcx
xor r10d, r10d
mov r11d, r10d
xor r10d, r10d
mov rsi, rcx
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x60], dl
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], r8
mov r8, rcx
mov qword [rsp + 0x38], rcx
mov rcx, r8
mov edx, r10d
mov r8d, 0x40
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r11
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
add rax, 0x10
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
call fcn.1400196f0
xor r10d, r10d
mov edx, r10d
lea rcx, [0x140045b12]
mov qword [rsp + 0x20], rax
call fcn.140019720
mov rcx, qword [rax]
mov rdx, qword [rsp + 0x20]
mov qword [rdx], rcx
mov rax, qword [rax + 8]
mov qword [rdx + 8], rax
mov rcx, qword [rsp + 0x38]
mov edx, 4
call fcn.1400196f0
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rcx]
mov qword [rax], rdx
mov rcx, qword [rcx + 8]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0x38]
mov edx, 8
call fcn.1400196f0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx]
mov qword [rax], rdx
mov rcx, qword [rcx + 8]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0x38]
mov edx, recv
call fcn.1400196f0
xor edx, edx
mov rcx, rax
mov r8d, 8
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x38]
mov edx, recv
call fcn.1400196f0
mov rcx, qword [rsp + 0x58]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
add rsp, 0x70
pop rsi
ret
Function at 0x140021920
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x40], 0
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x23], 0
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x28], 0
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x480], 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
call fcn.140025bf0
mov dword [rsp + 0x2c], 0
cmp dword [rsp + 0x2c], 0x100
jae 0x1400219e9
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x24], 8
jae 0x1400219c4
xor eax, eax
mov ecx, dword [rsp + 0x28]
shr ecx, 1
mov edx, dword [rsp + 0x28]
and edx, 1
sub eax, edx
and eax, 0xedb88320
xor ecx, eax
mov dword [rsp + 0x28], ecx
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
jmp 0x14002198c
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rsp + 0x2c]
mov r8d, edx
mov dword [rcx + r8*4 + 0x78], eax
mov eax, dword [rsp + 0x2c]
add eax, 1
mov dword [rsp + 0x2c], eax
jmp 0x14002196e
add rsp, 0x38
ret
Function at 0x1400345b0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub rsp, 0x20
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x14], edx
mov qword [rsp + 8], rcx
mov dword [rsp + 4], 0
mov eax, dword [rsp + 0x14]
or eax, 0x100
mov dword [rsp + 0x14], eax
xor eax, eax
mov ecx, dword [rsp + 0x14]
and ecx, 1
mov dword [rsp], ecx
mov ecx, dword [rsp + 0x14]
shr ecx, 1
mov dword [rsp + 0x14], ecx
mov rdx, qword [rsp + 0x18]
mov r8, qword [rsp + 8]
mov ecx, dword [rsp + 0x14]
mov r9d, ecx
movzx ecx, word [r8 + r9*2]
sub eax, dword [rsp]
and eax, 0x7ff
xor ecx, eax
shr ecx, 4
mov eax, ecx
mov r8d, eax
mov eax, dword [rdx + r8*4]
add eax, dword [rsp + 4]
mov dword [rsp + 4], eax
cmp dword [rsp + 0x14], 2
jae 0x1400345d7
mov eax, dword [rsp + 4]
add rsp, 0x20
ret
Function at 0x140036f00
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
xor edx, edx
mov qword [rsp + 0x1c8], rcx
mov word [rsp + 0x1c6], 0x202
lea rax, [rsp + 0x28]
mov rcx, rax
mov r8d, 0x198
mov qword [rsp + 0x20], rax
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x202
mov rdx, qword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0
je 0x140036f59
mov byte [rsp + 0x1d7], 0
jmp 0x140036f61
mov byte [rsp + 0x1d7], 1
mov al, byte [rsp + 0x1d7]
and al, 1
movzx eax, al
add rsp, 0x1d8
ret

Function at 0x1400370a0
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], 0xffffffffffffffff
mov byte [rsp + 0x3f], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140037163
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 0xc]
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 8]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x140037107
jmp 0x140037163
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx + 0x20]
mov rcx, qword [rsp + 0x40]
mov r8d, eax
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x140037146
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140037150
mov byte [rsp + 0x3f], 1
jmp 0x140037163
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x30], rax
jmp 0x1400370c6
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test byte [rsp + 0x3f], 1
je 0x140037186
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
mov al, byte [rsp + 0x3f]
and al, 1
movzx eax, al
add rsp, 0x58
ret
Function at 0x14003c530
Capabilities:
Enumerate process modules

Disassembly:
push rbp
sub rsp, 0x3a0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x318], 0xfffffffffffffffe
mov rax, rcx
mov qword [rbp + 0x310], rcx
mov qword [rbp + 0x308], rdx
mov qword [rbp + 0x300], 0
mov byte [rbp + 0x2ff], 0
mov qword [rbp + 0x18], rcx
mov qword [rbp + 0x10], rax
call fcn.1400059c0
xor r8d, r8d
lea rcx, [rbp + 0xc0]
mov edx, 0x238
mov qword [rbp + 8], rdx
mov dl, r8b
mov r8, qword [rbp + 8]
mov qword [rbp], rax
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbp + 0x308]
mov r8, qword [sym.imp.KERNEL32.dll_GetProcessId]
mov qword [rbp - 8], rax
call r8
mov dword [rbp - 0xc], eax
jmp 0x14003c5bb
mov eax, dword [rbp - 0xc]
mov dword [rbp + 0xbc], eax
mov dword [rbp + 0xc0], 0x238
mov edx, dword [rbp + 0xbc]
mov ecx, 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp - 0x18], rax
jmp 0x14003c5e7
mov rax, qword [rbp - 0x18]
mov qword [rbp + 0x300], rax
mov rcx, qword [rbp + 0x300]
lea rdx, [rbp + 0xc0]
call sub.KERNEL32.dll_Module32First
mov dword [rbp - 0x1c], eax
jmp 0x14003c60d
mov eax, dword [rbp - 0x1c]
cmp eax, 0
jne 0x14003c644
mov rcx, qword [rbp + 0x300]
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x14003c62e
mov byte [rbp + 0x2ff], 1
mov dword [rbp + 0xb8], 1
jmp 0x14003c7a3
jmp 0x14003c649
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp + 0x58]
xor r8d, r8d
call fcn.14003c940
jmp 0x14003c661
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x78]
call fcn.14003c980
jmp 0x14003c673
lea rcx, [rbp + 0x78]
lea rdx, [rbp + 0x98]
call fcn.14003c9f0
jmp 0x14003c688
lea rcx, [rbp + 0x78]
call fcn.14003ca50
lea rcx, [rbp + 0x58]
call fcn.14003ca50
mov rcx, qword [rbp + 0x18]
call fcn.14003ca70
mov qword [rbp - 0x28], rax
jmp 0x14003c6ac
mov rax, qword [rbp - 0x28]
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x98]
call fcn.140004df0
jmp 0x14003c6c9
mov rcx, qword [rbp + 0x50]
lea rax, [rbp + 0x30]
mov rdx, rax
mov qword [rbp - 0x30], rax
call fcn.140004030
mov rcx, qword [rbp - 0x30]
mov qword [rbp - 0x38], rax
call fcn.1400040e0
mov rdx, qword [rbp + 0xd8]
lea rax, [rbp + 0x28]
mov rcx, rax
mov qword [rbp - 0x40], rax
call fcn.1400043c0
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x48], rax
call fcn.1400043e0
mov rcx, qword [rbp + 0x50]
mov qword [rcx + 0x20], rax
mov r8d, dword [rbp + 0xe0]
mov edx, r8d
lea rax, [rbp + 0x20]
mov rcx, rax
mov qword [rbp - 0x50], rax
call fcn.1400043f0
mov rcx, qword [rbp - 0x50]
mov qword [rbp - 0x58], rax
call fcn.1400043e0
mov rcx, qword [rbp + 0x50]
mov qword [rcx + 0x28], rax
lea rcx, [rbp + 0x98]
call fcn.1400040e0
mov rcx, qword [rbp + 0x300]
lea rdx, [rbp + 0xc0]
call sub.KERNEL32.dll_Module32Next
mov dword [rbp - 0x5c], eax
jmp 0x14003c76c
mov eax, dword [rbp - 0x5c]
cmp eax, 0
jne 0x14003c649
mov rcx, qword [rbp + 0x300]
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x14003c78d
mov byte [rbp + 0x2ff], 1
mov dword [rbp + 0xb8], 1
jmp 0x14003c7a3
test byte [rbp + 0x2ff], 1
jne 0x14003c7b9
mov rcx, qword [rbp + 0x18]
call fcn.140005d40
mov rax, qword [rbp + 0x10]
add rsp, 0x3a0
pop rbp
ret
Function at 0x140040670
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rbp - 0x10], rcx
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x28], rax
call fcn.140012890
jmp 0x140040698
mov qword [rbp - 0x18], recv
mov rdx, qword [rbp - 0x18]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 0x40
call rax
mov qword [rbp - 0x30], rax
jmp 0x1400406c4
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x1400406fa
xor edx, edx
mov rcx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x28]
mov r8, qword [rbp - 0x18]
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x20]
add rsp, 0x50
pop rbp
ret

Function at 0x140041b20
Capabilities:
Create thread

Disassembly:
sub rsp, 0x98
mov rax, qword [rsp + 0xc0]
and r9b, 1
mov byte [rsp + 0x96], r9b
mov qword [rsp + 0x88], r8
mov qword [rsp + 0x80], rdx
mov dword [rsp + 0x7c], ecx
cmp dword [rsp + 0x7c], 0
jne 0x140041b67
mov byte [rsp + 0x97], 0
jmp 0x140041caa
xor edx, edx
mov qword [rsp + 0x70], 0
mov r8d, dword [rsp + 0x7c]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x70], rax
cmp rax, 0
jne 0x140041b9e
mov byte [rsp + 0x97], 0
jmp 0x140041caa
cmp qword [rsp + 0x70], 0
jne 0x140041bb7
mov byte [rsp + 0x97], 0
jmp 0x140041caa
mov rax, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x58], rax
call fcn.1400043c0
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x50], rax
call fcn.140004410
xor r8d, r8d
mov ecx, r8d
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x48], rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x48]
mov r9, qword [rsp + 0x48]
mov dword [rsp + 0x44], r8d
mov r8, r9
mov r9, rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140041c4f
mov byte [rsp + 0x97], 0
jmp 0x140041caa
cmp qword [rsp + 0xc0], 0
je 0x140041c6e
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xc0]
mov qword [rcx], rax
test byte [rsp + 0x96], 1
je 0x140041ca2
mov rcx, qword [rsp + 0x68]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x140041ca2
mov byte [rsp + 0x97], 0
jmp 0x140041caa
mov byte [rsp + 0x97], 1
mov al, byte [rsp + 0x97]
and al, 1
movzx eax, al
add rsp, 0x98
ret

Function at 0x140042980
Capabilities:
Parse pe header

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