joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001dfb0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rsi, [rcx + 0x40]
xor edx, edx
lea rdi, [rcx + 0x20]
mov rcx, rsi
call fcn.14000ef00
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
jb 0x14001dff3
mov rdx, qword [rdi]
lea r8, [0x14001def0]
mov rcx, rsi
call fcn.140007530
mov rbx, rax
test rax, rax
je 0x14001e0df
mov rcx, rax
call fcn.140013450
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x20]
mov rcx, qword [rbx + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getsockname]
movzx ecx, word [rsp + 0x2a]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp qword [rdi + 0x18], 0x10
mov rcx, rdi
movzx r8d, ax
jb 0x14001e04e
mov rcx, qword [rdi]
lea rdx, [0x1400885a4]
call fcn.140015050
cmp qword [rdi + 0x18], 0x10
jb 0x14001e064
mov rdi, qword [rdi]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x14001e070
mov rax, qword [reloc.WS2_32.dll_ntohs]
cmp rbx, rax
ja 0x14001e0b4
cmp rax, 0x10
mov qword [0x1400baa48], rbx
lea r14, [0x1400baa38]
mov r8, rbx
cmovae r14, qword [0x1400baa38]
mov rdx, rdi
mov rcx, r14
call fcn.14004c3b0
mov byte [r14 + rbx], 0
jmp 0x14001e0d0
mov r9, rdi
lea rcx, [0x1400baa38]
xor r8d, r8d
mov rdx, rbx
call fcn.1400152b0
nop dword [rax]
mov edx, 0x64
mov rcx, rsi
call fcn.14000f0a0
jmp 0x14001e0d0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14003fb10
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14001e620
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov byte [rcx + 0x68], 0
mov qword [rcx + 0x10], rax
mov rbx, rcx
mov dword [rcx], 0x67452301
mov rax, rdx
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
cmp qword [rdx + 0x18], 0x10
jb 0x14001e65b
mov rax, qword [rdx]
mov r8, qword [rdx + 0x10]
mov rdx, rax
call fcn.140020510
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14001e670
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov byte [rcx + 0x68], 0
mov qword [rcx + 0x10], rax
mov rbx, rcx
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
call fcn.140020510
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400209b0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x4a0
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rsp + 0x490], rax
xor ebp, ebp
mov qword [rsp + 0x30], rdx
cmp qword [rdx + 0x18], 0x10
mov rsi, r8
mov rbx, rdx
mov word [rsp + 0x488], bp
mov r8, rdx
jb 0x1400209f3
mov r8, qword [rdx]
xor edx, edx
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x280]
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
test rax, rax
jne 0x140020a35
mov rcx, rbx
call fcn.1400154e0
jmp 0x140020ace
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140020a80
nop
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140020a7a
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140020a50
jmp 0x140020a80
mov eax, dword [rsp + 0x48]
mov dword [rsi], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140020abf
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140020aba
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140020af1
mov rcx, r8
call fcn.14003f74c
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], bpl
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.14003fb10
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x4a0
pop rdi
pop rsi
pop rbp
ret
call fcn.140062acc
int3
Function at 0x14002a3d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
push rsi
sub rsp, 0x458
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14002a40d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14002a40d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [rsi]
test ax, ax
je 0x14002a51e
mov qword [rsp + 0x480], rbp
mov rcx, rsi
mov qword [rsp + 0x450], rdi
mov rdi, rsi
nop
cmp ax, 0x2f
je 0x14002a43c
cmp ax, 0x5c
jne 0x14002a43f
mov rdi, rcx
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14002a430
xor ebp, ebp
cmp rdi, rsi
je 0x14002a494
sub rdi, rsi
lea rcx, [rsp + 0x230]
sar rdi, 1
mov rdx, rsi
add rdi, rdi
mov r8, rdi
call fcn.14004c3b0
cmp rdi, 0x208
jae 0x14002a538
lea rdx, [rsp + 0x230]
mov word [rsp + rdi + 0x230], bp
mov rcx, rbx
call fcn.14002a3d0
mov word [rsp + 0x20], bp
test rbx, rbx
je 0x14002a4c0
lea rcx, [rsp + 0x20]
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14002a4b0
lea rcx, [rsp + 0x20]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], bp
lea rcx, [rcx + 2]
jne 0x14002a4d0
xor edx, edx
nop dword [rax]
movzx eax, word [rsi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x14002a4e0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14002a50e
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rbp, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x450]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14003fb10
add rsp, 0x458
pop rsi
pop rbx
ret
call fcn.14003f890
int3
Function at 0x14002acc0
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push r13
push r14
sub rsp, 0x50
cmp qword [rcx], 0
mov ebp, r9d
mov r13, rdx
mov r14, rcx
jne 0x14002aeaf
cmp dword [rcx + 8], 0xffffffff
jne 0x14002aeaf
mov qword [rsp + 0x70], rbx
lea rbx, [rcx + 0x250]
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14002ad10
movzx ecx, word [r14 + rax*2 + 0x24e]
cmp cx, 0x5c
je 0x14002ad48
cmp cx, 0x2f
je 0x14002ad48
sub rbx, 2
cmp word [rbx + 2], 0
lea rbx, [rbx + 2]
jne 0x14002ad35
mov eax, dword [0x14008c430]
mov dword [rbx], eax
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r15
cmp ebp, 1
jne 0x14002ada5
mov r9d, ebp
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14002adb6
mov eax, 0x2000000
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x78]
mov r15, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop r13
pop rbp
ret
lea eax, [rbp - 2]
cmp eax, 1
jbe 0x14002adb6
mov ecx, 0x10000
mov eax, ecx
jmp 0x14002ad7f
xor edi, edi
xor r12b, r12b
xor r15b, r15b
mov esi, edi
cmp ebp, 1
je 0x14002ae0e
cmp ebp, 2
jne 0x14002ae2c
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002ae09
mov ecx, 0x200
mov eax, ecx
jmp 0x14002ad7f
mov r15b, 1
jmp 0x14002ae11
mov rsi, r13
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne r12b
mov ecx, gethostbyname
call fcn.14003fb30
lea ecx, [rbp - 1]
mov rbx, rax
cmp ecx, 1
jbe 0x14002ae60
mov word [rax], 0x100
mov byte [rax + 0x18], dil
mov qword [rax + 0x20], r13
mov eax, dword [rsp + 0x80]
mov dword [rbx + 0x28], eax
mov dword [rbx + 0x2c], edi
mov dword [rbx + 0x14], edi
jmp 0x14002ae92
mov byte [rax], 1
mov byte [rax + 0x18], r15b
mov byte [rax + 1], r12b
mov qword [rax + 8], rsi
mov byte [rax + 0x10], dil
mov dword [rax + 0x14], edi
test r12b, r12b
je 0x14002ae92
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbx + 0x14], eax
mov rcx, rbx
call fcn.14002e030
test rax, rax
mov qword [r14], rax
mov ecx, 0x200
cmove edi, ecx
mov eax, edi
jmp 0x14002ad7f
mov eax, 0x1000000
add rsp, 0x50
pop r14
pop r13
pop rbp
ret
Function at 0x14002db40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r10d, edx
mov rdi, r9
imul r10d, r8d
mov rsi, rdx
cmp byte [r9], 0
mov r11, rcx
je 0x14002db98
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002db92
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x30]
jmp 0x14002dbce
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
sub ecx, edx
mov qword [rsp + 0x40], rbx
lea eax, [rdx + r10]
cmp eax, dword [r9 + 0x28]
cmovbe ecx, r10d
add rdx, qword [r9 + 0x20]
mov ebx, ecx
mov r8d, ecx
mov rcx, r11
call fcn.14004c3b0
add dword [rdi + 0x2c], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
xor edx, edx
div rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14003fb10
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x14002dbf0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x14002dbfb
xor eax, eax
ret
lea r11, [0x14008bc90]
not ecx
cmp r8d, 8
jb 0x14002dcd1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x14002dc20
test r8d, r8d
je 0x14002dcfd
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x14002dce0
not ecx
mov eax, ecx
ret
Function at 0x14002de10
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x14002e016
cmp dword [rcx + 0x1c], 0
je 0x14002e016
cmp qword [rcx + 0x80], 0
je 0x14002de3f
call fcn.14002dd10
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.14002e700
test eax, eax
je 0x14002de66
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.14005f49c
mov rbx, rax
test rax, rax
jne 0x14002de8c
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call fcn.14005f49c
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0x6c], ecx
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
test rax, rax
jne 0x14002ded2
mov rcx, rbx
call fcn.14005f488
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, dword [rdi + 0x40]
mov ecx, dword [rdi + 0x38]
mov dword [rbx + 0x78], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x94], eax
mov dword [rbx + 0x64], ebp
mov dword [rbx + 0x74], ebp
mov dword [rbx + 0x90], ecx
mov dword [rbx + 0x24], ebp
test ecx, ecx
je 0x14002df21
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.14002c0f0
test eax, eax
jne 0x14002df21
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
movzx ecx, byte [rdi + 0x34]
mov dword [rbx + 0x7c], eax
and cl, 1
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
mov eax, dword [rdi + 0x34]
shr eax, 3
mov byte [rbx + 0x98], cl
test al, 1
je 0x14002df4d
movzx eax, byte [rdi + 0x3d]
jmp 0x14002df51
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
neg cl
mov dword [rbx + 0x9c], 0x12345678
sbb eax, eax
mov dword [rbx + 0xa0], 0x23456789
and eax, 0xc
mov dword [rbx + 0xa4], 0x34567890
mov dword [rbx + 0xa8], eax
test rsi, rsi
je 0x14002dfea
lea r8, [0x14008bc90]
nop
movzx eax, byte [rsi]
test al, al
je 0x14002dfea
mov edx, dword [rbx + 0x9c]
xor rax, rdx
movzx ecx, al
shr edx, 8
xor edx, dword [r8 + rcx*4]
mov ecx, dword [rbx + 0xa4]
movzx eax, dl
add eax, dword [rbx + 0xa0]
mov dword [rbx + 0x9c], edx
imul edx, eax, 0x8088405
movzx eax, cl
shr ecx, 8
inc edx
mov dword [rbx + 0xa0], edx
shr rdx, 0x18
xor rax, rdx
xor ecx, dword [r8 + rax*4]
mov dword [rbx + 0xa4], ecx
add rsi, 1
jne 0x14002df90
mov eax, dword [rsp + 0x58]
mov ecx, dword [rdi + 0x7c]
add eax, 0x1e
add ecx, eax
mov dword [rbx + 0x10], ebp
mov rbp, qword [rsp + 0x20]
xor eax, eax
mov dword [rbx + 0x60], ecx
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14002f120
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp byte [rcx], 0
mov r14, rdx
mov qword [rsp + 0x70], rbp
mov rbx, rcx
mov qword [rsp + 0x78], rsi
mov esi, 1
je 0x14002f183
lea rdi, [rcx + 0x10]
mov qword [rsp + 0x20], 0
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x34]
mov r8d, esi
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002f17d
mov byte [rdi], sil
mov ebp, dword [rsp + 0x34]
jmp 0x14002f1b4
mov edi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rdi + 1]
cmp eax, ecx
jbe 0x14002f194
mov esi, ecx
sub esi, edi
mov rdx, rdi
mov r8d, esi
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x30]
mov ebp, esi
call fcn.14004c3b0
lea eax, [rdi + rsi]
mov dword [rbx + 0x2c], eax
lea rdi, [rbx + 0x10]
mov rsi, qword [rsp + 0x78]
cmp ebp, 1
mov rbp, qword [rsp + 0x70]
jne 0x14002f1e3
movzx eax, byte [rsp + 0x30]
mov dword [r14], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14003fb10
add rsp, 0x40
pop r14
pop rdi
pop rbx
ret
cmp byte [rbx], 0
je 0x14002f1cb
cmp byte [rdi], 0
je 0x14002f1cb
mov eax, 0xffffffff
jmp 0x14002f1cd
Function at 0x140037800
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov ebp, r9d
movsxd r13, r8d
mov rsi, rdx
mov r15, rcx
xor ebx, ebx
call fcn.140038230
mov r8d, ebp
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x1400379c8
mov rcx, rax
mov qword [rsp + 0x60], r12
call fcn.140038160
test eax, eax
mov r12d, ebx
mov edi, 1
mov rcx, r14
cmovne r12d, edi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x14003787d
mov eax, ebx
jmp 0x1400378bd
movsxd rax, dword [rsi + 0x3c]
mov ecx, 0x5a4d
cmp word [rsi], cx
je 0x14003788f
mov eax, ebx
jmp 0x1400378bd
cmp dword [rax + rsi], 0x4550
je 0x14003789c
mov eax, ebx
jmp 0x1400378bd
movzx ecx, word [rax + rsi + 4]
mov eax, 0x200
cmp cx, ax
je 0x1400378b9
mov eax, 0x8664
cmp cx, ax
je 0x1400378b9
mov eax, ebx
jmp 0x1400378bd
mov eax, edi
mov edi, ebx
cmp eax, r12d
mov r12, qword [rsp + 0x60]
jne 0x1400379c8
test edi, edi
jne 0x14003795e
mov ebx, dword [rsp + 0x80]
call fcn.140038230
mov r8d, ebp
xor edx, edx
mov ecx, 0x428
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x1400379c8
test ebx, ebx
jne 0x140037913
mov edx, ebp
mov rcx, r15
call fcn.140037e50
mov ebx, eax
test eax, eax
je 0x1400379c8
xor edx, edx
mov r8d, ebx
lea ecx, [rdx + 0x1a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1400379c8
mov r9, rsi
mov dword [rsp + 0x20], r13d
mov r8, rax
mov rdx, r14
mov rcx, r15
call fcn.140037bf0
mov rcx, r14
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
setne al
jmp 0x1400379ca
mov edi, dword [rsp + 0x80]
call fcn.140038230
mov r8d, ebp
xor edx, edx
mov ecx, 0x428
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x1400379c1
test edi, edi
jne 0x140037996
mov edx, ebp
mov rcx, r15
call fcn.140037e50
mov edi, eax
test eax, eax
je 0x1400379c1
xor edx, edx
mov r8d, edi
lea ecx, [rdx + 0x1a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
test rax, rax
je 0x1400379c1
mov r9, rsi
mov dword [rsp + 0x20], r13d
mov r8, rax
mov rdx, r14
mov rcx, r15
call fcn.1400379f0
mov ebx, eax
test ebx, ebx
setne al
jmp 0x1400379ca
xor al, al
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x1400379f0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xb50
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rsp + 0xb40], rax
mov eax, dword [0x1400bc0d0]
lea rcx, [rsp + 0x330]
movups xmm0, xmmword [0x1400bc0c0]
mov dword [rsp + 0x320], eax
mov rdi, r8
movzx eax, byte [0x1400bc0d4]
mov rsi, rdx
lea rdx, [0x1400bb870]
mov byte [rsp + 0x324], al
mov r8d, 0x809
mov r15, r9
movups xmmword [rsp + 0x310], xmm0
call fcn.14004c3b0
movsxd r14, dword [rsp + 0xba0]
mov r9d, 0x3000
xor edx, edx
mov dword [rsp + 0x20], 4
mov rcx, rsi
lea eax, [r14 + 0x81e]
movsxd rbp, eax
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
je 0x140037bc1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Wow64SuspendThread]
cmp eax, 0xffffffff
je 0x140037bc1
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x10000b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x140037bb8
lea eax, [rbx + 0x81e]
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x313], eax
lea r8, [rsp + 0x310]
lea eax, [rbx + 0x15]
mov r9d, reloc.WS2_32.dll_setsockopt
mov dword [rsp + 0x318], eax
mov rdx, rbx
mov eax, dword [rsp + 0xf8]
mov rcx, rsi
sub eax, ebx
sub eax, 0x15
mov dword [rsp + 0x321], eax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140037bb8
lea rdx, [rbx + 0x15]
mov qword [rsp + 0x20], 0
mov r9d, 0x809
lea r8, [rsp + 0x330]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140037bb8
mov r9, r14
mov qword [rsp + 0x20], 0
lea rdx, [rbx + 0x81e]
mov r8, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140037bb8
lea rax, [rsp + 0x30]
mov r9d, 0x20
mov r8, rbp
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140037bb8
lea rdx, [rsp + 0x40]
mov dword [rsp + 0xf8], ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x140037bb8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x140037bc3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov rcx, qword [rsp + 0xb40]
xor rcx, rsp
call fcn.14003fb10
mov rbx, qword [rsp + 0xb80]
add rsp, 0xb50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140037bf0
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r15
mov eax, 0x1378
call fcn.14003fab0
sub rsp, rax
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rsp + 0x1360], rax
movups xmm0, xmmword [0x1400bc080]
mov eax, dword [0x1400bc0b8]
mov rbx, r8
movups xmm1, xmmword [0x1400bc090]
mov dword [rsp + 0x548], eax
lea rcx, [rsp + 0x550]
movzx eax, word [0x1400bc0bc]
mov rsi, rdx
movups xmmword [rsp + 0x510], xmm0
mov word [rsp + 0x54c], ax
lea rdx, [0x1400baa60]
movups xmm0, xmmword [0x1400bc0a0]
movzx eax, byte [0x1400bc0be]
mov r8d, 0xe04
movups xmmword [rsp + 0x520], xmm1
mov r12, r9
mov byte [rsp + 0x54e], al
movsd xmm1, qword [0x1400bc0b0]
movups xmmword [rsp + 0x530], xmm0
movsd qword [rsp + 0x540], xmm1
call fcn.14004c3b0
movsxd r13, dword [rsp + 0x13d0]
mov r9d, 0x3000
xor edx, edx
mov dword [rsp + 0x20], 4
mov rcx, rsi
lea eax, [r13 + 0xe43]
movsxd r15, eax
mov r8, r15
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x140037e43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x140037e43
mov qword [rsp + 0x13b0], rbp
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x1370], r14
mov dword [rsp + 0x70], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140037e36
mov rax, qword [rsp + 0x138]
lea rbp, [rdi + 0xe43]
lea r14, [rdi + 0x3f]
mov qword [rsp + 0x520], rbp
mov r9d, 0x3f
mov qword [rsp + 0x52a], r14
lea r8, [rsp + 0x510]
mov qword [rsp + 0x544], rax
mov rdx, rdi
mov qword [rsp + 0x20], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140037e36
mov r9d, 0xe04
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x550]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140037e36
mov r9, r13
mov qword [rsp + 0x20], 0
mov r8, r12
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140037e36
lea rax, [rsp + 0x30]
mov r9d, 0x20
mov r8, r15
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140037e36
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x138], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov rbp, qword [rsp + 0x13b0]
mov r14, qword [rsp + 0x1370]
mov rcx, qword [rsp + 0x1360]
xor rcx, rsp
call fcn.14003fb10
add rsp, 0x1378
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
jmp 0x140037e05
xor eax, eax
jmp 0x140037e15