joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e450
Capabilities:
Get hostname

Disassembly:
mov rcx, qword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x140030750
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x14004f028]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rsi, rcx
mov rdx, rcx
lea rcx, str.___Invoking_RpcRemoteFindFirstPrinterChangeNotificationEx_with_target_path:__ws_r_n
call fcn.140001550
mov dword [rsp + 0x70], 0x10
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
lea r9, [rsp + 0x88]
lea r8, str._hs
mov edx, 0x104
mov rcx, rax
call fcn.140001bc0
xor r14d, r14d
mov qword [rsp + 0x68], r14
lea rdi, [rsp + 0x78]
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0x38], r14d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, rbx
xor r8d, r8d
lea edx, [r14 + 1]
lea rcx, [0x14003d640]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
mov qword [rsp + 0x50], rax
test eax, eax
jne 0x140030883
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 0x100
mov r9, qword [rsp + 0x68]
xor r8d, r8d
lea edx, [rax + 0x41]
lea rcx, [0x14003d640]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
mov qword [rsp + 0x58], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea edx, [r14 + 0x1d]
lea rcx, [0x14003d640]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
mov qword [rsp + 0x60], rax
jmp 0x140030892
mov edx, eax
lea rcx, str._MS_RPRN______RpcOpenPrinter_failed__d_n
call fcn.140001550
nop
xor eax, eax
jmp 0x140030896
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140030a10
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400305c0
Capabilities:
Get hostname

Disassembly:
mov rcx, qword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x1400305c0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x14004f028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rsi, rcx
mov rdx, rcx
lea rcx, str.___Invoking_RpcRemoteFindFirstPrinterChangeNotification_with_target_path:__ws_r_n
call fcn.140001550
mov dword [rsp + 0x78], 0x10
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
lea r9, [rsp + 0x90]
lea r8, str._hs
mov edx, 0x104
mov rcx, rax
call fcn.140001bc0
xor r14d, r14d
mov qword [rsp + 0x70], r14
lea rdi, [rsp + 0x80]
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0x38], r14d
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, rbx
xor r8d, r8d
lea edx, [r14 + 1]
lea rcx, [0x14003d640]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
mov rdi, rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x14003070b
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 0x100
mov r9, qword [rsp + 0x70]
xor r8d, r8d
lea edx, [rax + 0x3e]
lea rcx, [0x14003d640]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
mov qword [rsp + 0x60], rax
mov edi, eax
mov dword [rsp + 0x50], eax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea edx, [r14 + 0x1d]
lea rcx, [0x14003d640]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
mov qword [rsp + 0x68], rax
jmp 0x140030719
mov edx, eax
lea rcx, str.RpcOpenPrinter_failed__d_n
call fcn.140001550
jmp 0x140030721
mov eax, edi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140030a10
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140030750
Capabilities:
Get hostname

Disassembly:
mov rcx, qword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x140030750
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x14004f028]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rsi, rcx
mov rdx, rcx
lea rcx, str.___Invoking_RpcRemoteFindFirstPrinterChangeNotificationEx_with_target_path:__ws_r_n
call fcn.140001550
mov dword [rsp + 0x70], 0x10
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
lea r9, [rsp + 0x88]
lea r8, str._hs
mov edx, 0x104
mov rcx, rax
call fcn.140001bc0
xor r14d, r14d
mov qword [rsp + 0x68], r14
lea rdi, [rsp + 0x78]
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0x38], r14d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, rbx
xor r8d, r8d
lea edx, [r14 + 1]
lea rcx, [0x14003d640]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
mov qword [rsp + 0x50], rax
test eax, eax
jne 0x140030883
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 0x100
mov r9, qword [rsp + 0x68]
xor r8d, r8d
lea edx, [rax + 0x41]
lea rcx, [0x14003d640]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
mov qword [rsp + 0x58], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea edx, [r14 + 0x1d]
lea rcx, [0x14003d640]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
mov qword [rsp + 0x60], rax
jmp 0x140030892
mov edx, eax
lea rcx, str._MS_RPRN______RpcOpenPrinter_failed__d_n
call fcn.140001550
nop
xor eax, eax
jmp 0x140030896
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140030a10
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x1400318f4
Capabilities:
Parse pe header

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

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

Function at 0x1400025e4
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x180093990
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xa28
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1c2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa48]
mov rax, qword [0x18010e1a8]
xor rax, rbp
mov qword [rbp + 0x9f8], rax
lea rcx, [0x18012129d]
call fcn.180042508
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
lea rax, [rbp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
xor edx, edx
mov ecx, 2
call fcn.180041130
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x180093a18
xor eax, eax
jmp 0x180093a88
mov dword [rbp + 0x50], 0x238
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 8]
call fcn.180041658
test eax, eax
je 0x180093a74
lea rax, [rbp + 0x2b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x438
rep stosb byte [rdi], al
mov rdx, qword [rbp + 0xa28]
lea rcx, [rbp + 0x50]
call qword [rbp + 0xa20]
test eax, eax
jne 0x180093a61
mov dword [rbp + 0x24], 1
jmp 0x180093a72
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 8]
call fcn.180041ffe
test eax, eax
jne 0x180093a43
jmp 0x180093a7b
mov dword [rbp + 0x24], 0
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x24]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.180041edc
mov rax, rdi
mov rcx, qword [rbp + 0x9f8]
xor rcx, rbp
call fcn.18004118a
lea rsp, [rbp + 0xa08]
pop rdi
pop rbp
ret
Function at 0x180040da7
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x18007b3c0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0xa58
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1ce
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0xa78]
mov rax, qword [0x18010e1a8]
xor rax, rbp
mov qword [rbp + 0xa28], rax
lea rcx, [0x18012129d]
call fcn.180042508
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0xffffffffffffffff
lea rax, [rbp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x438
rep stosb byte [rdi], al
mov dword [rbp + 0x4a4], 0
jmp 0x18007b44f
mov eax, dword [rbp + 0x4a4]
inc eax
mov dword [rbp + 0x4a4], eax
cmp dword [rbp + 0x4a4], 0xa
jge 0x18007b4b3
mov edx, dword [rbp + 0xa50]
mov ecx, dword [rbp + 0xa68]
call fcn.180041130
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
jne 0x18007b4af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x4c4], eax
mov r8d, dword [rbp + 0x4c4]
mov edx, dword [rbp + 0xa50]
lea rcx, str.CreateToolhelp32Snapshot__u_____0x_08x_r_n
call fcn.18004050a
cmp dword [rbp + 0x4c4], 0x18
jne 0x18007b4af
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18007b441
jmp 0x18007b4b3
cmp qword [rbp + 0x28], 0xffffffffffffffff
jne 0x18007b4d3
mov edx, dword [rbp + 0xa50]
lea rcx, str.Couldnt_create_toolhelp_dump_of_modules_in_process__u_r_n
call fcn.18004050a
xor eax, eax
jmp 0x18007b571
mov dword [rbp + 0x50], 0x438
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.1800416cb
test eax, eax
je 0x18007b51c
mov rdx, qword [rbp + 0xa60]
lea rcx, [rbp + 0x50]
call qword [rbp + 0xa58]
test eax, eax
jne 0x18007b509
mov dword [rbp + 4], 1
jmp 0x18007b51a
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.180040532
test eax, eax
jne 0x18007b4eb
jmp 0x18007b55d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x4e4], eax
xor r9d, r9d
mov r8d, 0x104
lea rdx, [rbp + 0x510]
mov ecx, dword [rbp + 0x4e4]
call fcn.1800428b9
mov r8d, dword [rbp + 0x4e4]
lea rdx, [rbp + 0x510]
lea rcx, str.Module32First_failed._Error:__s__d__r_n
call fcn.18004050a
cmp qword [rbp + 0x28], 0
je 0x18007b56e
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.180041edc
mov rax, rdi
mov rcx, qword [rbp + 0xa28]
xor rcx, rbp
call fcn.18004118a
lea rsp, [rbp + 0xa38]
pop rdi
pop rbp
ret
Function at 0x1800410d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x1800aeb80
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x18012122b]
call fcn.180042508
mov rdx, qword [rbp + 0x188]
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x1800aebcf
xor eax, eax
jmp 0x1800aec7a
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1800aebeb
xor eax, eax
jmp 0x1800aec7a
mov rdx, qword [rbp + 0x188]
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov eax, dword [rbp + 0x190]
and eax, 0xf
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jbe 0x1800aec59
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 8], rax
jae 0x1800aec59
mov rax, qword [rbp + 8]
movzx eax, word [rax]
mov rcx, qword [rbp + 8]
lea rax, [rcx + rax*2 + 2]
mov qword [rbp + 8], rax
mov eax, dword [rbp + 0x84]
dec eax
mov dword [rbp + 0x84], eax
jmp 0x1800aec22
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 8], rax
jb 0x1800aec67
xor eax, eax
jmp 0x1800aec7a
mov rax, qword [rbp + 8]
movzx eax, word [rax]
test eax, eax
jne 0x1800aec76
xor eax, eax
jmp 0x1800aec7a
mov rax, qword [rbp + 8]
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x180041441
Capabilities:
Terminate process

Disassembly:
jmp 0x1800bd4c0
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]
add rsp, 0x28
ret
Function at 0x180041536
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x180091800
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x18012129c]
call fcn.180042508
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
je 0x18009184b
mov eax, dword [rbp + 4]
and eax, 0x10
test eax, eax
jne 0x18009184b
mov dword [rbp + 0xd4], 1
jmp 0x180091855
mov dword [rbp + 0xd4], 0
mov eax, dword [rbp + 0xd4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x180041630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x1800483c0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x180121003]
call fcn.180042508
movzx eax, word [rbp + 0x148]
mov r8, qword [rbp + 0x150]
mov edx, eax
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x180048419
xor eax, eax
jmp 0x180048470
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x180048439
xor eax, eax
jmp 0x180048470
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x180048452
xor eax, eax
jmp 0x180048470
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [rbp + 0x158]
mov dword [rcx], eax
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x180041b8f
Capabilities:
Read file on windows

Disassembly:
jmp 0x180082d80
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x18012129d]
call fcn.180042508
mov rax, qword [rbp + 0x128]
mov rcx, qword [rax]
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x180082ddb
mov rdx, qword [rbp + 0x120]
lea rcx, [0x1800f0548]
call fcn.18004050a
xor eax, eax
jmp 0x180082e46
mov rdx, qword [rbp + 0x130]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.ucrtbased.dll__wfopen]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x180082e11
mov rdx, qword [rbp + 0x120]
lea rcx, [0x1800f0580]
call fcn.18004050a
xor eax, eax
jmp 0x180082e46
mov r9, qword [rbp + 0x28]
mov rax, qword [rbp + 0x128]
mov r8, qword [rax]
mov edx, 1
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fread]
mov rcx, qword [rbp + 0x128]
mov qword [rcx], rax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fclose]
mov rax, qword [rbp + 8]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x18004204e
Capabilities:
Get file attributes

Disassembly:
jmp 0x180089c10
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x178]
mov rax, qword [0x18010e1a8]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x18012129d]
call fcn.180042508
cmp qword [rbp + 0x148], 0
je 0x180089c7a
cmp qword [rbp + 0x150], 0
jne 0x180089caf
mov eax, dword [0x18010d0bc]
inc eax
lea rcx, str.lpModuleName__lpModuleInf
mov qword [rsp + 0x20], rcx
lea r9, str.GetProcessModuleInformation
mov r8d, eax
lea rdx, str.D:code_rdp.allJKSDKGlobalMdl.cpp
mov ecx, 2
call fcn.180042873
cmp eax, 1
jne 0x180089caf
int3
xor eax, eax
test eax, eax
jne 0x180089c66
cmp dword [rbp + 0x158], 0
jne 0x180089d07
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x20
test eax, eax
je 0x180089d07
mov dx, 0x5c
mov rcx, qword [rbp + 0x148]
call fcn.180041eff
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x180089d07
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x148], rax
mov eax, dword [rbp + 0x140]
mov dword [rbp + 0x28], eax
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x38], rax
mov eax, dword [rbp + 0x158]
mov dword [rbp + 0x40], eax
mov eax, dword [rbp + 0x160]
mov dword [rbp + 0x44], eax
mov r9d, dword [rbp + 0x160]
lea r8, [rbp + 0x28]
lea rdx, [0x18007b620]
mov ecx, dword [rbp + 0x140]
call fcn.180040da7
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1800e2640]
call fcn.180041edc
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.18004118a
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x180042616
Capabilities:
Print debug messages

Disassembly:
jmp 0x1800b8218
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.180041bee
and qword [rdi + 0x50], 0
lea rax, [0x180000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x1800f9318]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.180041108
test eax, eax
jne 0x1800b82af
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1800b82af
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1800b82a8
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x180111308], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x180050410
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1c8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1e8]
mov rax, qword [0x18010e1a8]
xor rax, rbp
mov qword [rbp + 0x188], rax
lea rcx, [0x1801210c7]
call fcn.180042508
mov r8d, 0xf8
xor edx, edx
mov rcx, qword [rbp + 0x1c0]
call fcn.180041bee
mov rax, qword [rbp + 0x1b8]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x18005049a
mov ecx, 0x57
call fcn.180040b9f
xor eax, eax
jmp 0x1800505a5
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x28]
call fcn.180041bee
mov r9d, 0x30
lea r8, [rbp + 0x28]
mov rdx, qword [rbp + 0x1b8]
mov rcx, qword [rbp + 0x1b0]
call fcn.180040726
test rax, rax
jne 0x1800504d4
xor eax, eax
jmp 0x1800505a5
mov qword [rsp + 0x20], 0
mov r9d, 0x40
lea r8, [rbp + 0x80]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x1b0]
call fcn.180041554
test eax, eax
jne 0x180050505
xor eax, eax
jmp 0x1800505a5
movzx eax, word [rbp + 0x80]
cmp eax, 0x5a4d
jne 0x18005052b
mov eax, dword [rbp + 0xbc]
cmp rax, qword [rbp + 0x40]
ja 0x18005052b
mov eax, dword [rbp + 0xbc]
cmp rax, 0x40
jae 0x180050539
mov ecx, 0xc1
call fcn.180040b9f
xor eax, eax
jmp 0x1800505a5
movsxd rax, dword [rbp + 0xbc]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], 0
mov r9d, 0xf8
mov r8, qword [rbp + 0x1c0]
mov rdx, rax
mov rcx, qword [rbp + 0x1b0]
call fcn.180041554
test eax, eax
jne 0x180050577
xor eax, eax
jmp 0x1800505a5
mov rax, qword [rbp + 0x1c0]
cmp dword [rax], 0x4550
je 0x180050594
mov ecx, 0xc1
call fcn.180040b9f
xor eax, eax
jmp 0x1800505a5
movsxd rax, dword [rbp + 0xbc]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.180041edc
mov rax, rdi
mov rcx, qword [rbp + 0x188]
xor rcx, rbp
call fcn.18004118a
lea rsp, [rbp + 0x198]
pop rdi
pop rbp
ret
Function at 0x1800654d0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x40]
lea rcx, [0x1801210f9]
call fcn.180042508
mov qword [rbp + 8], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xffffffffffffffff
je 0x18006559d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x1000002
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x180065593
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 8]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x1800bbf00
Capabilities:
Hash data with crc32

Disassembly:
mov r8d, ecx
lea r9, [0x1800fa0a0]
shr r8d, 8
movzx ecx, cl
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx edx, r8b
shr r8d, 8
xor r8d, dword [r9 + rdx*4]
mov eax, r8d
ret