joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006f040
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14006f068
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14006f068
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14007a2ac
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 0x14007a2e3
call fcn.14007b08c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1400845d8
xor eax, eax
jmp 0x14007a371
mov rdx, r9
mov rcx, r8
call fcn.14007a394
mov rbx, rax
test rax, rax
je 0x14007a36e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14007a3f8]
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 0x14007a35b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007b0cc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14007a342
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14007a351
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400844c0
jmp 0x14007a36e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14007a36b
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 0x14007a4cc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14007a614
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14007a683
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007a683
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007a683
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007a683
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007a683
cmp dword [rcx + 0x84], 0xe
jbe 0x14007a683
cmp dword [rcx + 0xf8], 0
je 0x14007a683
mov ecx, ebx
call fcn.14007a54c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14007a7a8
nop
cmp dword [rbp + 0x20], 0
je 0x14007a6d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14007a5e0
int3
Function at 0x14007bdc8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140088320
sub rsp, rax
mov rax, qword [0x1400d2040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14007b484
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14007be17
mov rax, rbp
jmp 0x14007bf1f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xe0f80]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14007d2dc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xe0f80]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14007bf1b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007bf1b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14007d2dc
test rax, rax
js 0x14007bf1b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14007bf1b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14007bf0d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14007bf0d
cmp byte [rcx], 0xd
jne 0x14007bef3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14007bf02
cmp byte [rcx + 1], 0xa
jne 0x14007bf02
inc rcx
jmp 0x14007bf02
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd29a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14007bed5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14007bf1f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14006ef70
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008809c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400880b2
mov al, 1
jmp 0x140088112
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400880c3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140088110
mov ecx, dword [rcx + 0x18]
nop
call fcn.14007c8e4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140088110
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140088110
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140088110
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140088112
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140088a88
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400e0f80]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140088adf
cmp word [rdx], r13w
jne 0x140088adf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140088ae4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140088c09
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140088c2a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140088b1d
mov rdx, r9
mov word [rbx], cx
jmp 0x140088b44
cmp r9, r8
jae 0x140088b54
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140088afe
jmp 0x140088c09
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140088bfe
cmp dword [rsp + 0x80], esi
je 0x140088bfe
lea r8, [0x1400e0f80]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140088bd6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140088ba6
mov word [rbx], r13w
jmp 0x140088c06
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140088bb3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140088c06
cmp word [rsp + 0x70], r13w
jne 0x140088be3
cmp rbx, r14
je 0x140088ba0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14007d238
cmp word [rsp + 0x70], r13w
je 0x140088c09
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400e0f80]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140088c03
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140088c09
Function at 0x140088d28
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140088d58
xor eax, eax
jmp 0x140088e1b
mov rbp, rbx
cmp word [rax], si
je 0x140088d7d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140088d64
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140088d60
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140088c48
movsxd r14, eax
test eax, eax
jne 0x140088dbb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140088d51
mov rcx, r14
call fcn.14008501c
mov rdi, rax
test rax, rax
jne 0x140088dd4
xor ecx, ecx
call fcn.1400844c0
jmp 0x140088db0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140088c48
test eax, eax
jne 0x140088e05
mov rcx, rdi
call fcn.1400844c0
jmp 0x140088e0f
xor ecx, ecx
call fcn.1400844c0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140088e38
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140088ebf
mov rsi, rbx
cmp word [rax], bp
je 0x140088e7e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140088e68
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140088e64
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14008501c
mov rdi, rax
test rax, rax
je 0x140088eac
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14008fa20
mov rbp, rdi
xor ecx, ecx
call fcn.1400844c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008a7cc
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14007d238
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14007d238
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14008a91c
cmp rax, 0xffffffffffffffff
je 0x14008a91c
xor edi, edi
test rbp, rbp
jle 0x14008a8c7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140084eac
mov rbx, rax
test rax, rax
jne 0x14008a854
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14008a8bd
mov edx, 0x8000
mov ecx, r14d
call fcn.14007e380
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140089b04
cmp eax, 0xffffffff
je 0x14008a89d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14008a864
mov edx, r15d
mov ecx, r14d
call fcn.14007e380
jmp 0x14008a8bd
cmp byte [rsi + 0x38], dil
je 0x14008a8b4
cmp dword [rsi + 0x34], 5
jne 0x14008a8b4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14008a8bd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400844c0
jmp 0x14008a930
jns 0x14008a930
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14007d238
cmp rax, 0xffffffffffffffff
jne 0x14008a8e8
cmp byte [rsi + 0x30], dil
je 0x14008a930
mov edi, dword [rsi + 0x2c]
jmp 0x14008a930
mov ecx, r14d
call fcn.14007c8e4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14008a930
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14008a930
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14008a929
mov eax, dword [rsi + 0x2c]
jmp 0x14008a92e
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14007d238
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14008dee0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140074cb0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14008df6a
cmp byte [rbp - 0x21], r15b
je 0x14008df65
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14008dfa0
call fcn.14008295c
test eax, eax
jne 0x14008df8c
cmp byte [rbp - 0x21], r15b
je 0x14008df84
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14008dfa0
cmp byte [rbp - 0x21], r15b
je 0x14008df9d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14007dee4
test eax, eax
jne 0x14008e040
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140074cb0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14008dfdf
cmp byte [rbp - 0x21], r15b
je 0x14008e014
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14008e014
call fcn.14008295c
test eax, eax
jne 0x14008e000
cmp byte [rbp - 0x21], r15b
je 0x14008dff9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14008e014
cmp byte [rbp - 0x21], r15b
je 0x14008e011
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14007dee4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14008e040
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14008e043
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14008e051
mov rcx, rdi
call fcn.1400844c0
cmp byte [rbp + 0x3f], r15b
je 0x14008e060
mov rcx, qword [rbp + 0x27]
call fcn.1400844c0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x18000147c
Capabilities:
Enumerate process modules

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov ebp, r9d
mov r14, r8
mov r15d, edx
mov r12, rcx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, 0x9c40
xor edx, edx
mov rcx, rax
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], edi
mov rcx, rax
mov edx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x180001513
mov ecx, dword [rsp + 0x20]
shr ecx, 2
mov dword [rsp + 0x20], ecx
test ecx, ecx
je 0x18000150e
mov ecx, dword [rsi + rdi*4]
mov r8d, r15d
mov rdx, r12
call fcn.180001e28
mov ecx, dword [rsi + rdi*4]
mov r8d, ebp
mov rdx, r14
call fcn.180001e28
inc edi
cmp edi, dword [rsp + 0x20]
jb 0x1800014ea
mov edi, 1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x18000213c
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x148]
sub rsp, 0x248
mov ebx, 1
xor r14d, r14d
mov dword [rbp + 0x1a8], ebx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, 0x9c40
xor edx, edx
mov rcx, rax
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [rsp + 0x30], r14d
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x13880
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [rbp + 0x1a0], r14d
lea r8, [rsp + 0x30]
mov edx, edi
mov rcx, r15
mov r12, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x18000229b
mov eax, dword [rsp + 0x30]
xor edi, edi
shr eax, 2
mov dword [rsp + 0x30], eax
test eax, eax
je 0x18000229b
mov r8d, dword [r15 + rdi*4]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x18000228f
lea r9, [rbp + 0x1a0]
mov dword [rsp + 0x20], 3
mov r8d, 0x13880
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
test eax, eax
je 0x180002286
mov eax, dword [rbp + 0x1a0]
xor ebx, ebx
shr eax, 3
mov dword [rbp + 0x1a0], eax
test eax, eax
je 0x180002280
mov rdx, qword [r12 + rbx*8]
lea r8, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r9d, 0x200
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180002276
movzx edx, word [rbp - 0x80]
mov ecx, 0x7268
movzx eax, dx
sub ax, cx
cmp ax, 0xf
ja 0x180002276
mov ecx, 0x8801
bt ecx, eax
jb 0x1800022e3
inc ebx
cmp ebx, dword [rbp + 0x1a0]
jb 0x180002235
mov ebx, dword [rbp + 0x1a8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rsp + 0x30]
jb 0x1800021de
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rbp + 0x198]
mov dword [rax], r14d
mov eax, ebx
add rsp, 0x248
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rax, qword [rbp + 0x198]
cmp r14d, dword [rax]
jae 0x180002328
mov eax, dword [r15 + rdi*4]
mov r9d, 0x7277
mov r8, qword [rbp + 0x190]
mov ecx, r14d
add rcx, rcx
mov dword [r8 + rcx*8], eax
xor eax, eax
cmp dx, r9w
mov word [r8 + rcx*8 + 4], dx
cmove rax, qword [rbp - 0x7e]
inc r14d
mov qword [r8 + rcx*8 + 8], rax
jmp 0x180002280
xor ebx, ebx
mov dword [rbp + 0x1a8], ebx
jmp 0x180002286
Function at 0x140007140
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140007170
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x14000716f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140007175
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x14000716f
mov eax, 0
jmp 0x14000716f

Function at 0x1400077f0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400077a0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140010df0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.140019930
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.140019930
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 0x140010e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140594a94]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140010ff0
mov rax, qword [0x140594a98]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x140010eac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140010f35
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140010e90
mov rcx, rdi
call fcn.1400119c0
test rax, rax
mov r12, rax
je 0x140011042
mov rax, qword [0x140594a98]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140011b00
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140594a98]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140011025
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140010f2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140010fa0
add dword [0x140594a94], 1
cmp ebx, 8
jae 0x140010f61
test bl, 4
jne 0x140011000
test ebx, ebx
je 0x140010f56
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140011014
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140010f56
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x140010f7a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x140594a98]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140010f2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140010df0
xor esi, esi
jmp 0x140010eb7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140010f56
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140010f56
mov rax, qword [0x140594a98]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140010df0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140010df0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140011610
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140594b00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140594ae0]
test rbx, rbx
je 0x140011664
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14001165b
test rsi, rsi
je 0x14001165b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140011640
lea rcx, [0x140594b00]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400119c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14058f5b0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140011a2f
mov rcx, r9
call fcn.140011890
test eax, eax
je 0x140011a2f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x140011a2d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140011a24
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140011a2f
add rdx, 0x28
cmp rdx, r9
jne 0x140011a10
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001bd70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14058b0a0]
jmp 0x1400127f0

Function at 0x14001bd80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14058b0a0]
jmp 0x1400127f0