joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427a70
Capabilities:
Hash data using murmur3

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x427d17
sub rsp, 0x38
mov qword [rsp + 0x30], rbp
lea rbp, [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
movzx ebx, byte [rdx + 0x63]
cmp bl, 1
jne 0x427bb3
movzx ebx, word [rdx + 0x60]
mov word [rsp + 0x16], bx
test bx, bx
jne 0x427bdb
mov rsi, qword [rsp + 0x40]
mov edi, dword [rsi + 0x18]
cmp dword [rdx + 0x58], edi
jne 0x427bdb
mov rbx, qword [rsi + 0x98]
sub rbx, qword [rdx + 0x20]
mov qword [rsi + 0x98], rbx
nop
nop
mov rbx, qword [rdx + 0x18]
nop
movabs rdi, 0x800000000000
lea rax, [rbx + rdi]
mov rdi, rax
shr rax, 0x2a
cmp rax, 0x40
jae 0x427bd1
lea rcx, [0x00841148]
mov rax, qword [rcx + rax*8]
shr rdi, 0x16
and rdi, 0xfffff
mov rcx, qword [rax + rdi*8]
test byte [rcx], al
test byte [rax], al
mov rax, rbx
shr rbx, 0x10
and rbx, 0x3f
movzx edi, byte [rcx + rbx + 0x21000]
shr rax, 0xd
and rax, 7
btr edi, eax
mov byte [rcx + rbx + 0x21000], dil
movzx eax, byte [rsp + 0x50]
test al, al
je 0x427b61
mov rax, qword [rdx + 0x20]
shl rax, 0xd
sub qword [0x00858f68], rax
movzx eax, byte [rsp + 0x51]
test al, al
je 0x427b79
mov rax, qword [rdx + 0x20]
shl rax, 0xd
add qword [0x00858f60], rax
mov byte [rdx + 0x63], 3
mov qword [rsp], rsi
mov qword [rsp + 8], rdx
call fcn.00425b90
mov rax, qword [rsp + 0x40]
test byte [rax], al
add rax, 8
mov qword [rsp], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 8], rax
call fcn.0041ea30
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
cmp bl, 2
jne 0x427cfd
cmp word [rdx + 0x60], 0
jne 0x427ce4
mov rsi, qword [rsp + 0x40]
jmp 0x427b49
mov ecx, 0x40
call fcn.0045bd30
mov eax, dword [rdx + 0x58]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x18]
mov qword [rsp + 0x20], rcx
mov rbx, qword [rdx + 0x18]
mov qword [rsp + 0x18], rbx
call fcn.00431970
lea rax, [0x006cecbd]
mov qword [rsp], rax
mov qword [rsp + 8], 0x1c
call fcn.00432320
mov rax, qword [rsp + 0x48]
mov qword [rsp], rax
call fcn.004322d0
lea rax, [0x006c8236]
mov qword [rsp], rax
mov qword [rsp + 8], 5
call fcn.00432320
mov rax, qword [rsp + 0x18]
mov qword [rsp], rax
call fcn.004321b0
lea rax, [0x006c9606]
mov qword [rsp], rax
mov qword [rsp + 8], 0xc
call fcn.00432320
movzx eax, word [rsp + 0x16]
mov qword [rsp], rax
call fcn.00432030
lea rax, [0x006c8f07]
mov qword [rsp], rax
mov qword [rsp + 8], 0xa
call fcn.00432320
mov rax, qword [rsp + 0x28]
mov qword [rsp], rax
call fcn.00432030
lea rax, [0x006c7dca]
mov qword [rsp], rax
mov qword [rsp + 8], 1
call fcn.00432320
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
call fcn.00432030
call fcn.00431c10
call fcn.00431a00
lea rax, [0x006d0c80]
mov qword [rsp], rax
mov qword [rsp + 8], 0x23
call fcn.00430f60
lea rax, [0x006d224b]
mov qword [rsp], rax
mov qword [rsp + 8], 0x29
call fcn.00430f60
lea rax, [0x006d2222]
mov qword [rsp], rax
mov qword [rsp + 8], 0x29
call fcn.00430f60
nop
call fcn.00459300
jmp fcn.00427a70
Function at 0x44a8e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x44aaae
sub rsp, 0x68
mov qword [rsp + 0x60], rbp
lea rbp, [rsp + 0x60]
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x44aa68
mov ecx, dword [rax + 0x18]
mov qword [rsp], rax
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 8], rdx
mov dword [rsp + 0x10], ecx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], 0
movzx ebx, byte [rsp + 0x88]
mov byte [rsp + 0x28], bl
call fcn.0044a1b0
movsxd rax, dword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x70]
mov edx, dword [rcx + 0x1c]
mov qword [rsp], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 8], rcx
mov dword [rsp + 0x10], edx
mov rdx, qword [rsp + 0x80]
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x20], 0
movzx edx, byte [rsp + 0x88]
mov byte [rsp + 0x28], dl
call fcn.0044a1b0
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
jne 0x44a9dc
lea rax, [0x006c7dd4]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 1
mov dword [rsp + 0xa0], 0
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
cmp eax, 0xffffffff
je 0x44a9ac
mov rdx, qword [rsp + 0x78]
mov rbx, qword [rdx + 0x38]
mov rsi, qword [rdx + 0x30]
cmp rcx, rbx
jge 0x44a9ac
mov rdi, qword [rdx + 8]
mov rdx, qword [rdx]
jae 0x44aaa2
mov ebx, dword [rsi + rcx*4]
cmp rbx, rdi
jae 0x44aa98
mov dword [rsp + 0x3c], eax
lea rax, [rdx + rbx]
mov qword [rsp + 0x48], rax
mov qword [rsp], rax
call fcn.004483f0
mov rax, qword [rsp + 8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0xa0], eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
lea rax, [0x006c7dd4]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 1
mov dword [rsp + 0xa0], 0
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov eax, ebx
mov rcx, rdi
call fcn.0045bd20
mov rax, rcx
mov rcx, rbx
call fcn.0045bd20
nop
call fcn.00459300
jmp fcn.0044a8e0
Function at 0x44ab40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x44aca2
sub rsp, 0x68
mov qword [rsp + 0x60], rbp
lea rbp, [rsp + 0x60]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0x14]
mov qword [rsp], rax
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 8], rdx
mov dword [rsp + 0x10], ecx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x18], rcx
mov rbx, qword [rsp + 0x88]
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 1
call fcn.0044a1b0
mov eax, dword [rsp + 0x30]
test eax, 7
jne 0x44abc2
mov dword [rsp + 0x90], eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 8], rcx
call fcn.0044a770
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x10]
mov qword [rsp + 0x58], rcx
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rdx]
mov qword [rsp + 0x48], rbx
movsxd rdx, dword [rdx + 0x14]
mov qword [rsp + 0x40], rdx
call fcn.00431970
lea rax, [0x006ca87f]
mov qword [rsp], rax
mov qword [rsp + 8], 0x10
call fcn.00432320
mov rax, qword [rsp + 0x58]
mov qword [rsp], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 8], rax
call fcn.00432320
call fcn.00431bc0
mov rax, qword [rsp + 0x48]
mov qword [rsp], rax
call fcn.004321b0
call fcn.00431bc0
mov rax, qword [rsp + 0x80]
mov qword [rsp], rax
call fcn.004321b0
call fcn.00431bc0
mov rax, qword [rsp + 0x40]
mov qword [rsp], rax
call fcn.004321b0
call fcn.00431bc0
mov eax, dword [rsp + 0x3c]
movsxd rcx, eax
mov qword [rsp], rcx
call fcn.00432140
call fcn.00431c10
call fcn.00431a00
mov eax, dword [rsp + 0x3c]
jmp 0x44abb1
call fcn.00459300
jmp fcn.0044ab40
Function at 0x4516e0
Capabilities:
Access peb ldr_data

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4517c0
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x18], xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [0x00458bb0]
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.004591b0
mov rax, qword [rsp + 8]
mov qword [rsp + 0x88], rax
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
call fcn.00459300
jmp fcn.004516e0
Function at 0x46cd00
Capabilities:
Encode data using base64

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rdx + 8]
lea rsi, [rbx + 0x2e]
neg rsi
imul rsi, rsi, 0x1c
movabs rax, 0x5816058160581606
mov rcx, rdx
imul rsi
sar rsi, 0x3f
sar rdx, 5
sub rdx, rsi
lea rsi, [rdx + 0x15c]
sar rsi, 0x3f
shr rsi, 0x3d
lea rdx, [rsi + rdx]
lea rdx, [rdx + 0x15c]
sar rdx, 3
cmp rdx, 0x57
jae 0x46cddb
lea rsi, [rdx + rdx*2]
lea rdi, [0x0064fbe0]
mov r8, qword [rdi + rsi*8 + 8]
lea r9, [r8 + rbx]
lea r9, [r9 + 0x40]
cmp r9, 0xffffffffffffffc4
jge 0x46cd84
inc rdx
jmp 0x46cd5b
cmp r9, 0xffffffffffffffe0
jle 0x46cd8f
dec rdx
jmp 0x46cd5b
mov rbx, qword [rdi + rsi*8]
mov rax, qword [rcx]
mov rsi, rdx
mul rbx
shr rax, 0x3f
add rdx, rax
mov qword [rcx], rdx
mov rdx, qword [rcx + 8]
lea rdx, [rdx + r8]
lea rdx, [rdx + 0x40]
mov qword [rcx + 8], rdx
mov rcx, rsi
shl rsi, 3
lea rdx, [rsi - 0x15c]
neg rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rax, rdx
mov ecx, 0x57
call fcn.0045bd20
nop
int3
Function at 0x595020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rbx, [0x0082fba0]
mov rbp, rcx
mov r12, rdx
mov rsi, r8
mov eax, dword [rbp + 0x28]
xor edi, edi
test eax, eax
jle 0x5950b2
nop dword [rax + rax]
mov r9d, edi
xor r9d, 1
cmp edi, 2
cmovge r9d, edi
movsxd r9, r9d
shl r9, 5
add r9, qword [rbp + 0x20]
test rsi, rsi
je 0x59508e
mov r8, qword [r9]
xor ecx, ecx
jmp 0x59507d
movzx edx, byte [rbx + rdx]
cmp byte [rbx + rax], dl
jne 0x5950aa
add rcx, 1
movzx eax, byte [rsi + rcx]
movzx edx, byte [r8 + rcx]
cmp eax, edx
jne 0x595070
test eax, eax
jne 0x595079
mov rcx, qword [r9 + 0x18]
xor r8d, r8d
mov rdx, r12
add rcx, 8
call fcn.0058b0e0
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x595118
add edi, 1
cmp dword [rbp + 0x28], edi
jg 0x595048
mov eax, 0x73
lea rcx, str.sqlite_master
jmp 0x5950d7
cdqe
movzx eax, byte [rbx + rax]
cmp byte [rbx + rdx], al
jne 0x595116
movzx eax, byte [rcx + 1]
add rcx, 1
add r12, 1
movzx edx, byte [r12]
cmp edx, eax
jne 0x5950c0
test edx, edx
jne 0x5950cb
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x20]
test rsi, rsi
je 0x595111
test rax, rax
je 0x595118
mov rdx, rax
mov rcx, rsi
call fcn.00594fb0
test eax, eax
jne 0x595116
lea r12, str.sqlite_temp_master
jmp 0x59503a
test rax, rax
je 0x595105
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x59ad20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movsxd rbp, dword [rdx]
mov rbx, rbp
mov r12, rcx
mov rcx, r8
movzx r8d, byte [r8]
mov r13, rdx
lea rdi, [r12 + rbp]
test r8b, r8b
je 0x59ad8d
mov eax, r8d
mov rsi, rcx
lea r10, [0x0082faa0]
xor edx, edx
nop word [rax + rax]
movzx r9d, al
test byte [r10 + r9], 6
jne 0x59ad6f
cmp al, 0x5f
jne 0x59ad7e
movzx eax, byte [rsi + 1]
add rsi, 1
add edx, 1
test al, al
jne 0x59ad60
movzx eax, r8b
test byte [r10 + rax], 4
je 0x59ae20
mov byte [rdi], 0x22
add ebx, 1
movzx eax, byte [rcx]
mov r8d, 1
movsxd rbp, ebx
lea rdi, [r12 + rbp]
test al, al
jne 0x59adc1
jmp 0x59ae08
movzx eax, byte [rcx + 1]
add rcx, 1
mov ebx, edx
test al, al
je 0x59adeb
movsxd rbp, ebx
lea edx, [rbx + 1]
mov byte [r12 + rbp], al
movsxd rdi, edx
add rdi, r12
cmp byte [rcx], 0x22
jne 0x59adb0
add rcx, 1
mov byte [rdi], 0x22
add ebx, 2
movzx eax, byte [rcx]
movsxd rbp, ebx
lea rdi, [r12 + rbp]
test al, al
jne 0x59adbe
test r8d, r8d
jne 0x59ae08
mov byte [rdi], 0
mov dword [r13], ebx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
add ebx, 1
mov byte [rdi], 0x22
movsxd rdi, ebx
add rdi, r12
jmp 0x59adf0
mov dword [rsp + 0x2c], 0x3b
cmp edx, 1
jle 0x59ae60
lea r8, [rsp + 0x2c]
call fcn.0059ac00
cmp dword [rsp + 0x2c], 0x3b
jne 0x59ad8d
cmp byte [rsi], 0
jne 0x59ad8d
movzx eax, byte [rcx]
test al, al
je 0x59adf0
xor r8d, r8d
jmp 0x59adc1
cmp byte [rsi], 0
setne al
xor edx, 1
and edx, 1
or al, dl
jne 0x59ad8d
mov eax, r8d
xor r8d, r8d
jmp 0x59adc1
Function at 0x5a49d0
Capabilities:
Create thread

Disassembly:
mov rax, qword [rcx + 0x48]
test rax, rax
je 0x5a4a00
mov r8d, dword [rax + 0x20]
test r8d, r8d
je 0x5a49f8
mov r8, rcx
mov rcx, qword [rax]
lea rdx, [0x005a4b90]
jmp fcn.005920e0
jmp fcn.005a48b0
xor eax, eax
ret
Function at 0x626b40
Capabilities:
Reference sql statements

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
lea r9, str.sqlite_master
mov dword [rsp + 0x28], r8d
mov esi, r8d
mov rbx, rdx
mov r8, rdx
mov qword [rsp + 0x20], rdx
lea rdx, str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
mov r12, rcx
call fcn.00622eb0
test esi, esi
je 0x626b80
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r9, rbx
lea r8, str.sqlite_master
lea rdx, str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop r12
jmp fcn.00622eb0
Function at 0x62c4f0
Capabilities:
Reference sql statements

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rax, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov esi, edx
mov r13, r8
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov rbp, r9
mov qword [rsp + 0x48], rax
movsxd rax, edx
lea rdi, [rcx + rax*8]
cmp qword [rdi + 0x28], 0
je 0x62c590
mov ecx, dword [rbx + 0x40]
test ecx, ecx
je 0x62c548
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rdi + 0x28]
mov r8, r13
mov edx, 1
mov rcx, r12
call fcn.005b9230
mov rcx, r12
call fcn.0060a5c0
cmp eax, 0x65
je 0x62c5b0
cmp eax, 0x64
je 0x62c5e0
mov rcx, r12
call fcn.005e8e60
mov edx, dword [rbx + 0x40]
test edx, edx
jne 0x62c534
mov dword [rbx + 0x40], eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdx, qword [rsp + rax*8 + 0x40]
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
call fcn.006225c0
mov qword [rdi + 0x28], rax
jmp 0x62c52d
test esi, esi
lea rdx, str.__parent
mov r9, rbp
mov r8, r13
lea rax, str.__rowid
mov rcx, rbx
cmove rax, rdx
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov qword [rsp + 0x20], rax
call fcn.005d2b80
jmp 0x62c56e
xor edx, edx
mov rcx, r12
call fcn.005a3c00
mov r9, rax
cmp rbp, rax
je 0x62c56e
test esi, esi
lea rdx, str.__parent
mov r8, r13
mov rcx, rbx
lea rax, str.__rowid
mov qword [rsp + 0x30], rbp
cmove rax, rdx
mov qword [rsp + 0x28], r13
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov qword [rsp + 0x20], rax
call fcn.005d2b80
jmp 0x62c56e
Function at 0x640520
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x0085abf0], rax
test rax, rax
je 0x640555
lea rcx, [0x0085ac00]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 2
call qword [fcn.00642300]
mov r8d, 0x3d
mov edx, 1
lea rcx, [0x0082ff20]
mov r9, rax
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop

Function at 0x640de0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00642300
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00642300
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x640e50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x0085b234]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x640ff8
mov rax, qword [0x0085b238]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x640e9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x640f27
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x640e80
mov rcx, r12
call fcn.00641bb0
mov rbp, rax
test rax, rax
je 0x641032
mov rax, qword [0x0085b238]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00641ce0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0085b238]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x641041
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x640f20
sub eax, 4
and eax, 0xfffffffb
jne 0x640fb0
add dword [0x0085b234], 1
cmp ebx, 8
jae 0x640f58
test bl, 4
jne 0x641000
test ebx, ebx
je 0x640f49
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x641020
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x640f49
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x640f8a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x0085b238]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x640f20
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00640de0
nop dword [rax]
xor edi, edi
jmp 0x640ea7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x640f49
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x640f49
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00640de0
mov rax, qword [0x0085b238]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00640de0
nop
nop dword [rax]
Function at 0x641820
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0085b520]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0085b500]
test rbx, rbx
je 0x641874
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x64186b
test r12, r12
je 0x64186b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x641850
lea rcx, [0x0085b520]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x641bb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x008303d0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x641c29
mov rcx, r10
call fcn.00641a80
test eax, eax
je 0x641c29
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x641c26
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x641c1d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x641c29
add r8, 0x28
cmp r8, r9
jne 0x641c08
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x180001830
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x4a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov r8d, 0x104
mov qword [rsp + 0x20], 0x104
lea rdx, [rsp + 0x280]
xor ecx, ecx
call fcn.180006884
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800018f3
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1800018ea
nop dword [rax]
lea rcx, [rsp + 0x6c]
lea r8, [rsp + 0x280]
sub r8, rcx
movzx edx, word [rcx]
movzx eax, word [rcx + r8]
sub edx, eax
jne 0x1800018d4
add rcx, 2
test eax, eax
jne 0x1800018c0
mov rcx, rbx
test edx, edx
je 0x18000190e
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800018b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1800029a0
add rsp, 0x4a0
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x1800018f5

Function at 0x180001930
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov edi, ecx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800019a2
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180001999
mov rcx, rbx
cmp dword [rsp + 0x28], edi
je 0x1800019c5
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180001981
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1800029a0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x1800019a4
Function at 0x1800019e0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push rdi
sub rsp, 0x170
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rax, rdx
mov rdi, rcx
test rcx, rcx
jne 0x180001a10
mov eax, 1
jmp 0x180001b86
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x180001a3d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
jmp 0x180001b86
cmp eax, 0x104
jbe 0x180001a57
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 3
jmp 0x180001b86
mov qword [rsp + 0x190], rbx
lea rcx, str.kernel32.dll
mov qword [rsp + 0x168], rbp
mov qword [rsp + 0x160], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.LoadLibraryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, 0xffffffffffffffff
mov rbp, rax
lea rax, [rsp + 0x40]
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], 0
jne 0x180001aa0
inc r8
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x180001ae1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 4
jmp 0x180001b6e
lea rax, [rsp + 0x40]
nop word [rax + rax]
cmp byte [rax + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x180001af0
lea r9, [rbx + 1]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rdi
test eax, eax
jne 0x180001b2d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 5
jmp 0x180001b6e
mov qword [rsp + 0x30], 0
mov r9, rbp
mov dword [rsp + 0x28], 0
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rdi
test rax, rax
jne 0x180001b66
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 6
jmp 0x180001b6e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbp, qword [rsp + 0x168]
mov rbx, qword [rsp + 0x190]
mov rsi, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1800029a0
add rsp, 0x170
pop rdi
ret