joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a9170
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400a9318
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400a91d5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400a91d5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400a91d5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400a920c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400a9262
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a9262
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a9262
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a9262
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a9262
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400a8c20
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400a92c4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400853a0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400a8ff0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400a9310
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400853a0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400aaa80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140132ac0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400aab15
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400aab76
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400853a0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400bdfc0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400aac31
sub ecx, 1
je 0x1400aaca4
sub ecx, 1
je 0x1400aabe0
cmp ecx, 1
je 0x1400aabc3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400c36bc]
call fcn.1400853a0
jmp 0x1400aaca4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400aa7b0
test eax, eax
je 0x1400aaca4
jmp 0x1400aab4a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400aaca4
sub rax, rsi
cmp rax, rbp
jae 0x1400aaca4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140085520
jmp 0x1400aaca4
cmp r8d, 4
jle 0x1400aaca4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400aaca4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400852c0
mov esi, eax
test eax, eax
je 0x1400aac83
mov edx, 5
mov rcx, rbx
call fcn.1400ab770
mov eax, esi
jmp 0x1400aab4a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140093ba0
mov rcx, r14
call fcn.140093e80
test eax, eax
je 0x1400aab48
mov edx, 5
mov rcx, rbx
call fcn.1400ab770
mov eax, Ordinal_46
jmp 0x1400aab4a
Function at 0x1400bda40
Capabilities:
Authenticate hmac
Encode data using xor

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

Function at 0x1400bec78
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400becc2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400becc2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400becc2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400becc2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400becc2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400becc4
xor al, al
add rsp, 0x28
ret
Function at 0x140002218
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x14003c280]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rdi, rcx
lea rcx, [rsp + 0x24]
call fcn.140002e3c
mov rcx, rax
call fcn.1400023c4
mov r8, rax
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140002ca0
mov rcx, rax
call fcn.140002738
mov rcx, rax
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.1400027b4
cmp rbx, 0xffffffffffffffff
jne 0x140002297
xor al, al
jmp 0x1400023a0
lea rdx, [rbp - 0x24]
lea rcx, [rsp + 0x70]
call fcn.1400027fc
nop
lea rcx, [rsp + 0x20]
call fcn.140002e64
mov rcx, rax
call fcn.140002410
mov r8, rax
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140002ca0
nop
lea r8, [rsp + 0x70]
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140002d68
nop
lea rcx, [rsp + 0x50]
call fcn.1400027b4
lea rcx, [rsp + 0x70]
test byte [rbp - 0x50], 0x10
je 0x14000232e
lea rdx, [0x140036518]
call fcn.140002e84
test al, al
jne 0x140002353
lea rcx, [rsp + 0x28]
call fcn.140002e8c
mov rcx, rax
call fcn.1400023c4
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140002e84
test al, al
jne 0x140002353
lea rcx, [rbp - 0x70]
call fcn.140002218
jmp 0x14000234f
lea rdx, [0x14003efe8]
call fcn.140002eb4
test al, al
jne 0x14000238a
lea rdx, [0x14003f008]
lea rcx, [rsp + 0x70]
call fcn.140002eb4
test al, al
jne 0x14000238a
lea rcx, [rbp - 0x70]
call fcn.1400027b4
nop
lea rcx, [rsp + 0x70]
call fcn.1400027b4
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140002297
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140002290
lea rcx, [rbp - 0x70]
call fcn.1400027b4
nop
lea rcx, [rsp + 0x70]
call fcn.1400027b4
mov al, 1
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14000f950
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140006e4c
Capabilities:
Check for debugger via api

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14003c280]
xor rax, rsp
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rsp + 0x20], 0
setne al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000f950
add rsp, 0x38
ret
Function at 0x1400074a0
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x1a0
mov rax, qword [0x14003c280]
xor rax, rsp
mov qword [rsp + 0x190], rax
xor edx, edx
lea ecx, [rdx + 2]
call fcn.14000937c
mov rbx, rax
test rax, rax
jne 0x1400074f0
lea rcx, [rsp + 0x20]
mov byte [0x14003efa8], 1
call fcn.140008014
mov rcx, rax
call fcn.140002410
mov rdx, rax
call fcn.1400027ac
jmp 0x1400074f6
cmp rbx, 0xffffffffffffffff
je 0x140007549
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x130
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140007549
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x38]
call fcn.1400027fc
mov rcx, rax
call fcn.140007128
test al, al
jne 0x140007564
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140007510
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14000f950
add rsp, 0x1a0
pop rbx
ret
lea rcx, [rsp + 0x28]
mov byte [0x14003efa8], 1
call fcn.140008034
mov rcx, rax
call fcn.1400019a0
mov rdx, rax
call fcn.1400027ac
mov al, 1
jmp 0x14000754b

Function at 0x1400077c0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14003c280]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, rcx
mov qword [rsp + 0x40], rcx
xor ecx, ecx
call fcn.14000779c
xor edi, edi
jmp 0x140007872
mov r8d, 0x100
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextA]
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], dil
jne 0x140007819
lea rdx, [rsp + 0x50]
add rdx, rax
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140008528
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.1400027fc
mov rdx, rbp
mov rcx, rax
call fcn.140007ab4
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.1400027b4
cmp rbx, 0xffffffffffffffff
jne 0x14000787c
lea edx, [rbx + 3]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
mov rsi, rax
jne 0x1400077fc
jmp 0x1400078a1
mov dil, 1
mov byte [0x14003efa8], dil
lea rcx, [rsp + 0x20]
call fcn.1400085d4
mov rcx, rax
call fcn.140007740
mov rdx, rax
call fcn.1400027ac
nop
mov rcx, rbp
call fcn.1400027b4
mov al, dil
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000f950
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000b190
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x14003f16c]
mov ebx, edi
test ecx, ecx
je 0x14000b2cb
mov rax, qword [0x14003f160]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x14000b1e8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x14000b1c0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x14000b2cb
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.14000b510
mov r8d, dword [0x14003f16c]
cmp ebx, r8d
jae 0x14000b258
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x14003f160]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x14000b251
mov edx, esi
mov ecx, ebx
call fcn.14000b400
mov edi, eax
test eax, eax
jne 0x14000b258
mov r8d, dword [0x14003f16c]
inc ebx
cmp ebx, r8d
jb 0x14000b220
cmp qword [rsp + 0x20], 0
je 0x14000b2cb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x14000b2b7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x14000b2a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x14000b280
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x14003d478]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000b400
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x14003f160]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b464
mov eax, 0xa
jmp 0x14000b4f7
test esi, esi
je 0x14000b486
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x14000b4a9
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x14000b4a9
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x14000b4a2
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x14000b4a9
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14000b510
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14003c280]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000b63a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x14000b631
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x14000b614
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x14000b614
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x14000b614
mov rdx, qword [rbx]
test rdx, rdx
jne 0x14000b5d2
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x14003d478]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x14000b631
jmp 0x14000b607
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x14000b607
mov rcx, qword [0x14003d478]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x14000b631
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x14000b580
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x14000b693
cmp dword [rbx + 0xc], esi
jbe 0x14000b693
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x14000b68c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.14000ba00
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x14000b650
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000f950
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000bbb0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x14000bc1f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x14000bc08
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x14000bbfc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x14000bbd0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x14003d478]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000bce0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x14000bd20
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x14003f150]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x14000bd5e
cmp rsi, r14
jb 0x14000bd56
cmp rsi, r15
jae 0x14000bd56
cmp qword [rsi + 8], 0
jne 0x14000bf27
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14000bd41
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x14000bdf2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x14000bde9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000bde9
cmp dword [rsp + 0x70], 0x10000
je 0x14000be6b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x14000bde9
sub rbx, rbp
cmp rbx, r14
jae 0x14000bdb0
test rsi, rsi
jne 0x14000bed0
cmp rdi, r15
ja 0x14000bf0f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x14000bf0f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000bf0f
cmp dword [rsp + 0x70], 0x10000
je 0x14000bea1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x14000be22
jmp 0x14000bf0f
test rbx, rbx
je 0x14000bde9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x14000bed0
cmp rbx, r14
jae 0x14000bd90
jmp 0x14000bdf2
test rdi, rdi
je 0x14000bf0f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x14000bed0
cmp rdi, r15
jbe 0x14000be00
jmp 0x14000bf0f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x14000bee0
mov rax, qword [0x14003f150]
mov qword [rsi], rax
mov qword [0x14003f150], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x1400107f0
Capabilities:
Parse pe header

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

Function at 0x140016558
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14001658f
call fcn.140016fdc
mov dword [rax], 0x16
call fcn.140016a58
xor eax, eax
jmp 0x14001661d
mov rdx, r9
mov rcx, r8
call fcn.1400164f4
mov rbx, rax
test rax, rax
je 0x14001661a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140016420]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140016607
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140016f50
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400165ee
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400165fd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14001d084
jmp 0x14001661a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140016617
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14001a00c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019e08

Function at 0x14001fde0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001fdf6
mov al, 1
jmp 0x14001fe56
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001fe07
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001fe54
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400246c0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001fe54
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001fe54
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001fe54
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001fe56
xor al, al
add rsp, 0x20
pop rbx
ret