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

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

Function at 0x1400a5060
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, [0x1400ac045]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x1400a50b5
mov rdi, rax
lea rdx, [0x1400ac066]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400a50b5
mov rsi, rax
lea rdx, [0x1400ac074]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400a50b5
mov r14, rax
xor edi, edi
jmp 0x1400a513d
lea rcx, [0x1400ac000]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x1400a51a9
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400a51a9
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400a51a9
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400a51a9
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x1400a51a9
mov r14, qword [rsp + 0x20]
movzx eax, byte [0x1400c76f0]
mov ecx, 0x18
mov edx, 8
call fcn.1400468e0
test rax, rax
je 0x1400a51ab
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x1400c7738], rbx
je 0x1400a519c
mov rsi, rax
cmp qword [rbx], 0
je 0x1400a5186
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.1400468f0
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2
mov ecx, 8
mov edx, 0x18
call fcn.140051d30
int3
Function at 0x140004b40
Capabilities:
Enumerate processes
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140022070]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ecx, dword [0x14001e3f0]
mov rbp, qword [str.quake]
mov dword [rsp + 0x268], ecx
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rdi, rax
xor esi, esi
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140004c22
mov qword [rsp + 0x290], rbx
movzx ebx, word [rsp + 0x268]
nop word [rax + rax]
lea rax, [rsp + 0x4c]
or rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], si
jne 0x140004bd0
lea rcx, [rsp + 0x4c]
inc rdx
call fcn.140006bdc
cmp qword [rsp + 0x4c], rbp
jne 0x140004bf4
cmp word [rsp + 0x54], bx
je 0x140004c08
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140004bc0
jmp 0x140004c1a
lea rcx, str.Find_Quake_r_n
mov esi, 1
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbx, qword [rsp + 0x290]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400065a0
lea r11, [rsp + 0x280]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140006480
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x140024b70], 0
jne 0x1400064aa
lea rcx, [0x140024ba0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [0x140006400]
mov qword [0x140024c18], rax
mov edx, 0x20
lea ecx, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x1400064c6
add rsp, 0x30
pop rbx
ret
lea rax, [rsp + 0x48]
lea rdx, str.SOFTWAREFortemedia
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000652f
lea rcx, [rsp + 0x40]
lea rax, [rbx + 0x10]
lea rdx, str.TraceFlag
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x140024ba0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rbx + 0x10]
bt eax, 0x1e
jae 0x14000655c
btr eax, 0x1e
mov dword [rbx + 0x10], eax
lea rax, [0x140006410]
mov qword [0x140024c18], rax
jmp 0x140006569
lea rcx, str.FMAPP:_Debug_function_is_disable_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
inc dword [0x140024b70]
lea rcx, [0x140024ba0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x140007640
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400074a8
Function at 0x140012d68
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x140012d94
call fcn.1400071a8
mov dword [rax], 0x16
call fcn.140007df8
jmp 0x140012e9a
mov eax, dword [rcx + 0x18]
test al, 0x83
je 0x140012e9a
test al, 0x40
jne 0x140012e9a
test al, 2
je 0x140012db6
or eax, 0x20
mov dword [rcx + 0x18], eax
jmp 0x140012e9a
or eax, 1
mov dword [rcx + 0x18], eax
test eax, 0x10c
jne 0x140012dca
call fcn.14000fca8
jmp 0x140012dd1
mov rax, qword [rcx + 0x10]
mov qword [rcx], rax
mov rcx, rdi
call fcn.14000f28c
mov r8d, dword [rdi + 0x24]
mov rdx, qword [rdi + 0x10]
mov ecx, eax
call fcn.140013130
mov dword [rdi + 8], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140012e89
test byte [rdi + 0x18], 0x82
jne 0x140012e57
mov rcx, rdi
call fcn.14000f28c
cmp eax, 0xffffffff
je 0x140012e42
mov rcx, rdi
call fcn.14000f28c
cmp eax, 0xfffffffe
je 0x140012e42
mov rcx, rdi
call fcn.14000f28c
mov rcx, rdi
lea rsi, [0x140024500]
movsxd rbx, eax
sar rbx, 5
call fcn.14000f28c
and eax, 0x1f
imul rax, rax, 0x58
add rax, qword [rsi + rbx*8]
jmp 0x140012e49
lea rax, [0x140022b70]
mov al, byte [rax + 8]
and al, 0x82
cmp al, 0x82
jne 0x140012e57
bts dword [rdi + 0x18], 0xd
cmp dword [rdi + 0x24], 0x200
jne 0x140012e76
test byte [rdi + 0x18], 8
je 0x140012e76
test dword [rdi + 0x18], 0x400
jne 0x140012e76
mov dword [rdi + 0x24], 0x1000
mov rcx, qword [rdi]
add dword [rdi + 8], 0xfffffffe
movzx eax, word [rcx]
add rcx, 2
mov qword [rdi], rcx
jmp 0x140012e9f
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [rdi + 0x18], eax
and dword [rdi + 8], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x428730
Capabilities:
Hash data using murmur3

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4289d7
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 0x428873
movzx ebx, word [rdx + 0x60]
mov word [rsp + 0x16], bx
test bx, bx
jne 0x42889b
mov rsi, qword [rsp + 0x40]
mov edi, dword [rsi + 0x18]
cmp dword [rdx + 0x58], edi
jne 0x42889b
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 0x428891
lea rcx, [0x00f416f0]
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 0x428821
mov rax, qword [rdx + 0x20]
shl rax, 0xd
sub qword [0x00f5df08], rax
movzx eax, byte [rsp + 0x51]
test al, al
je 0x428839
mov rax, qword [rdx + 0x20]
shl rax, 0xd
add qword [0x00f5df00], rax
mov byte [rdx + 0x63], 3
mov qword [rsp], rsi
mov qword [rsp + 8], rdx
call fcn.00426730
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.0041f4f0
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
cmp bl, 2
jne 0x4289bd
cmp word [rdx + 0x60], 0
jne 0x4289a4
mov rsi, qword [rsp + 0x40]
jmp 0x428809
mov ecx, Ordinal_66
call fcn.0045dca0
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.00432b40
lea rax, [0x00b1f978]
mov qword [rsp], rax
mov qword [rsp + 8], 0x1c
call fcn.004334f0
mov rax, qword [rsp + 0x48]
mov qword [rsp], rax
call fcn.004334a0
lea rax, [0x00b0d995]
mov qword [rsp], rax
mov qword [rsp + 8], 5
call fcn.004334f0
mov rax, qword [rsp + 0x18]
mov qword [rsp], rax
call fcn.00433380
lea rax, [0x00b12f5c]
mov qword [rsp], rax
mov qword [rsp + 8], 0xc
call fcn.004334f0
movzx eax, word [rsp + 0x16]
mov qword [rsp], rax
call fcn.00433200
lea rax, [0x00b11cb0]
mov qword [rsp], rax
mov qword [rsp + 8], 0xa
call fcn.004334f0
mov rax, qword [rsp + 0x28]
mov qword [rsp], rax
call fcn.00433200
lea rax, [0x00b0c9cd]
mov qword [rsp], rax
mov qword [rsp + 8], 1
call fcn.004334f0
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
call fcn.00433200
call fcn.00432de0
call fcn.00432bd0
lea rax, [0x00b25364]
mov qword [rsp], rax
mov qword [rsp + 8], 0x23
call fcn.00432130
lea rax, [0x00b28fed]
mov qword [rsp], rax
mov qword [rsp + 8], Ordinal_48
call fcn.00432130
lea rax, [0x00b28fc4]
mov qword [rsp], rax
mov qword [rsp + 8], Ordinal_48
call fcn.00432130
nop
call fcn.0045b270
jmp fcn.00428730
Function at 0x44c140
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x44c30e
sub rsp, 0x68
mov qword [rsp + 0x60], rbp
lea rbp, [rsp + 0x60]
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x44c2c8
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.0044ba10
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.0044ba10
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
jne 0x44c23c
lea rax, [0x00b0c9d9]
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 0x44c20c
mov rdx, qword [rsp + 0x78]
mov rbx, qword [rdx + 0x38]
mov rsi, qword [rdx + 0x30]
cmp rcx, rbx
jge 0x44c20c
mov rdi, qword [rdx + 8]
mov rdx, qword [rdx]
jae 0x44c302
mov ebx, dword [rsi + rcx*4]
cmp rbx, rdi
jae 0x44c2f8
mov dword [rsp + 0x3c], eax
lea rax, [rdx + rbx]
mov qword [rsp + 0x48], rax
mov qword [rsp], rax
call fcn.00449c50
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, [0x00b0c9d9]
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.0045dc90
mov rax, rcx
mov rcx, rbx
call fcn.0045dc90
nop
call fcn.0045b270
jmp fcn.0044c140
Function at 0x44c3a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x44c502
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.0044ba10
mov eax, dword [rsp + 0x30]
test eax, 7
jne 0x44c422
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.0044bfd0
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.00432b40
lea rax, [0x00b160ea]
mov qword [rsp], rax
mov qword [rsp + 8], 0x10
call fcn.004334f0
mov rax, qword [rsp + 0x58]
mov qword [rsp], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 8], rax
call fcn.004334f0
call fcn.00432d90
mov rax, qword [rsp + 0x48]
mov qword [rsp], rax
call fcn.00433380
call fcn.00432d90
mov rax, qword [rsp + 0x80]
mov qword [rsp], rax
call fcn.00433380
call fcn.00432d90
mov rax, qword [rsp + 0x40]
mov qword [rsp], rax
call fcn.00433380
call fcn.00432d90
mov eax, dword [rsp + 0x3c]
movsxd rcx, eax
mov qword [rsp], rcx
call fcn.00433310
call fcn.00432de0
call fcn.00432bd0
mov eax, dword [rsp + 0x3c]
jmp 0x44c411
call fcn.0045b270
jmp fcn.0044c3a0
Function at 0x4532b0
Capabilities:
Access peb ldr_data

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x453390
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, [0x0045ab20]
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.0045b120
mov rax, qword [rsp + 8]
mov qword [rsp + 0x88], rax
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
call fcn.0045b270
jmp fcn.004532b0
Function at 0x8956d0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [0x00f5f650], rax
je 0x895705
lea rcx, [0x00f5f660]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 2
call qword [fcn.00897930]
mov r8d, Ordinal_66
mov edx, 1
lea rcx, str.runtime:_failed_to_create_runtime_initialization_wait_event._n
mov r9, rax
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop

Function at 0x896720
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00f5fc84]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x8968a8
mov rax, qword [0x00f5fc88]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x89676c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x8967f5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x896750
mov rcx, rbx
call fcn.008973c0
test rax, rax
mov r12, rax
je 0x8968dd
mov rax, qword [0x00f5fc88]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.008974f0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, reloc.WIBUCM64.dll_Ordinal_48
add rcx, rax
mov rax, qword [0x00f5fc88]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x8968c0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x8967ee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x896850
add dword [0x00f5fc84], 1
cmp edi, 8
jae 0x896823
test dil, 4
jne 0x896894
test edi, edi
je 0x896818
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x8968af
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x896818
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x89683c
jmp 0x896818
add rsi, qword [0x00f5fc88]
mov r8d, Ordinal_66
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x8967ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.008979a0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x896818
xor esi, esi
jmp 0x896777
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x896818
mov rax, qword [0x00f5fc88]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.008979a0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.008979a0
nop
nop dword [rax]
Function at 0x897030
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00f5ff60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00f5ff40]
test rbx, rbx
je 0x897084
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 0x89707b
test rsi, rsi
je 0x89707b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x897060
lea rcx, [0x00f5ff60]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x8973c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00f36a40]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x89742d
mov rcx, r8
call fcn.008972a0
test eax, eax
je 0x89742d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x89742d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x897424
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x89742f
add rax, 0x28
cmp rax, r9
jne 0x897410
xor eax, eax
add rsp, 0x28
ret

Function at 0x8979a0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
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.00897930
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.00897930
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x14001120d
Capabilities:
Terminate process

Disassembly:
jmp 0x140013420
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011294
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014770
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014790
xor al, al
jmp 0x140014811
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400147a3
xor al, al
jmp 0x140014811
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400147cd
xor al, al
jmp 0x140014811
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400147e1
xor al, al
jmp 0x140014811
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400147f3
xor al, al
jmp 0x140014811
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001480f
xor al, al
jmp 0x140014811
mov al, 1
add rsp, 0x38
ret
Function at 0x140011361
Capabilities:
Create process on windows

Disassembly:
jmp 0x140011820
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
mov rax, qword [0x14001e700]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x1400250a2]
call fcn.1400113a7
nop
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rbp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov edx, 0x68
lea rcx, [rbp + 0x10]
call fcn.1400112a8
nop
mov edx, 0x18
lea rcx, [rbp + 0x98]
call fcn.1400112a8
nop
mov dword [rbp + 0x10], 0x68
lea rax, [rbp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.C:WindowsSystem32mstsc.exe
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140011924
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateProcess_error:_d_n
call fcn.1400111a4
nop
mov edx, dword [rbp + 0xa8]
lea rcx, str.Create_Process_Success_the_PID_is:_d_n
call fcn.1400111a4
nop
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x98]
mov qword [rax], rcx
mov rax, qword [rbp + 0x1a8]
mov rcx, qword [rbp + 0xa0]
mov qword [rax], rcx
mov rax, qword [rbp + 0x1b0]
mov ecx, dword [rbp + 0xa8]
mov dword [rax], ecx
lea rcx, [rbp - 0x50]
lea rdx, [0x14001acc0]
call fcn.14001132f
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.1400111bd
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret