joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400387b0
Capabilities:
Copy file

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rcx, qword [rsp + 0x40]
call fcn.14001a4e0
test rax, rax
jne 0x1400387e2
mov rcx, qword [rsp + 0x48]
call fcn.14001a4e0
test rax, rax
je 0x1400387e9
xor eax, eax
jmp 0x1400388e0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 1
je 0x140038808
cmp dword [rsp + 0x24], 2
je 0x14003882b
cmp dword [rsp + 0x24], 3
je 0x140038821
jmp 0x140038849
mov rcx, qword [rsp + 0x48]
call fcn.140038120
test rax, rax
je 0x140038821
mov eax, 1
jmp 0x1400388e0
mov dword [rsp + 0x20], 1
jmp 0x140038891
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.1400386b0
test rax, rax
je 0x140038849
mov eax, 1
jmp 0x1400388e0
cmp dword [rsp + 0x50], 0
je 0x140038862
cmp dword [rsp + 0x50], 2
je 0x140038862
mov qword [rsp + 0x28], 0
jmp 0x14003886b
mov qword [rsp + 0x28], 1
mov r9d, 0x6d9
lea r8, [0x1401c20c0]
lea rdx, str.enOverrideMode__FCOM_OVERRIDE__enOverrideMode__FCOM_FAST
mov rcx, qword [rsp + 0x28]
call fcn.14001a290
mov dword [rsp + 0x20], 0
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140126bb0
test eax, eax
jne 0x1400388c9
mov rcx, qword [rsp + 0x40]
call fcn.140038120
test rax, rax
jne 0x1400388c2
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400388e0
mov eax, 1
jmp 0x1400388e0
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cdqe
add rsp, 0x30
pop rdi
ret
Function at 0x140039930
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
lea rdi, [rsp + 0x50]
mov ecx, 0x48
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x180]
call fcn.140007c60
mov r9d, 0x87a
lea r8, [0x1401c3050]
lea rdx, str.IsValidString__szCommandLine_
mov rcx, rax
call fcn.14001a290
mov rcx, qword [rsp + 0x180]
call fcn.14001a4e0
test rax, rax
je 0x1400399a2
xor eax, eax
jmp 0x140039af9
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1400c2630
mov dword [rsp + 0x60], 0x68
cmp qword [rsp + 0x190], 0
jl 0x1400399e8
mov eax, dword [rsp + 0x9c]
or eax, 1
mov dword [rsp + 0x9c], eax
movzx eax, word [rsp + 0x190]
mov word [rsp + 0xa0], ax
lea rcx, [rsp + 0x118]
call fcn.140044210
nop
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x118]
call fcn.140045b20
lea rcx, [rsp + 0x118]
call fcn.1400075c0
lea rcx, [rsp + 0xe8]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140039a89
mov qword [rsp + 0x158], 0
lea rcx, [rsp + 0x118]
call fcn.140006ab0
mov rax, qword [rsp + 0x158]
jmp 0x140039af9
cmp qword [rsp + 0x188], 0
je 0x140039aa9
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140039abc
mov edx, 0x1f4
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x160], 1
lea rcx, [rsp + 0x118]
call fcn.140006ab0
mov rax, qword [rsp + 0x160]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401c94d0]
call fcn.1400bf760
mov rax, rdi
add rsp, 0x170
pop rdi
ret
Function at 0x140039de0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov rcx, qword [rsp + 0x180]
call fcn.140007c60
mov r9d, 0x8ae
lea r8, [0x1401c31f0]
lea rdx, [0x1401c3250]
mov rcx, rax
call fcn.14001a290
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.1400068c0
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x140], rax
mov r8, qword [rsp + 0x140]
lea rdx, str.__select___
lea rcx, [rsp + 0x88]
call fcn.140058590
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x150], rax
lea r8, [0x1401c0094]
mov rdx, qword [rsp + 0x150]
lea rcx, [rsp + 0xe0]
call fcn.140058450
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x160], rax
mov rcx, qword [rsp + 0x160]
call fcn.140052100
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, str.explorer.exe
lea rdx, [0x1401c3290]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rcx, [rsp + 0xe0]
call fcn.140006b30
nop
lea rcx, [rsp + 0x88]
call fcn.140006b30
nop
lea rcx, [rsp + 0x30]
call fcn.140006b30
add rsp, 0x170
pop rdi
ret

Function at 0x14003a320
Capabilities:
Get system information on windows

Disassembly:
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1401c9750]
call fcn.1400bf760
mov eax, edi
add rsp, 0x70
pop rdi
ret
Function at 0x14003b910
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa0]
call fcn.140007c60
mov r9d, 0xa1e
lea r8, [0x1401c3d20]
lea rdx, [0x1401c3d80]
mov rcx, rax
call fcn.14001a290
mov rcx, qword [rsp + 0xa8]
call fcn.140007c60
mov r9d, 0xa1f
lea r8, [0x1401c3da0]
lea rdx, [0x1401c3d08]
mov rcx, rax
call fcn.14001a290
mov edx, 1
mov rcx, qword [rsp + 0xb0]
call fcn.140041c50
mov r9d, 0xa20
lea r8, [0x1401c3e00]
lea rdx, [0x1401c3e60]
mov rcx, rax
call fcn.14001a290
mov rcx, qword [rsp + 0xa0]
call fcn.14001a4e0
test rax, rax
jne 0x14003b9ef
mov rcx, qword [rsp + 0xa8]
call fcn.14001a4e0
test rax, rax
jne 0x14003b9ef
mov qword [rsp + 0x78], 1
jmp 0x14003b9f8
mov qword [rsp + 0x78], 0
mov r9d, 0xa21
lea r8, [0x1401c3ea0]
lea rdx, [0x1401c3f00]
mov rcx, qword [rsp + 0x78]
call fcn.14001a290
mov rcx, qword [rsp + 0xb0]
call fcn.140007560
mov rcx, qword [rsp + 0xa0]
call fcn.140040f30
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14003ba44
xor eax, eax
jmp 0x14003bb38
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x74], 0
jne 0x14003bb04
cmp dword [rsp + 0x44], 3
jne 0x14003ba96
mov qword [rsp + 0x80], 1
jmp 0x14003baa2
mov qword [rsp + 0x80], 0
mov r9d, 0xa2d
lea r8, [0x1401c3f80]
lea rdx, str.dwType__REG_BINARY
mov rcx, qword [rsp + 0x80]
call fcn.14001a290
mov eax, dword [rsp + 0x64]
mov edx, eax
mov rcx, qword [rsp + 0xb0]
call fcn.1400448b0
lea rcx, [rsp + 0x64]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x74], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x74], 0
jne 0x14003bb24
mov qword [rsp + 0x88], 1
jmp 0x14003bb30
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x88]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400bf760
mov rax, rdi
add rsp, 0x90
pop rdi
ret
Function at 0x14003d200
Capabilities:
Print debug messages

Disassembly:
push rdi
sub rsp, 0x1a0
lea rdi, [rsp + 0x40]
mov ecx, 0x58
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x400
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rcx, [rsp + 0x68]
call fcn.140006910
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x178], rax
mov r9, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x40]
lea rdx, str.LastError__u_:__s
mov rcx, qword [rsp + 0x178]
call fcn.140056500
mov r8, rax
lea rdx, [0x1401c0674]
lea rcx, [rsp + 0xc0]
call fcn.140058590
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x188], rax
lea r8, [0x1401c038c]
mov rdx, qword [rsp + 0x188]
lea rcx, [rsp + 0x118]
call fcn.140058450
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x198], rax
mov rcx, qword [rsp + 0x198]
call fcn.140052100
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
lea rcx, [rsp + 0x118]
call fcn.140006b30
nop
lea rcx, [rsp + 0xc0]
call fcn.140006b30
nop
lea rcx, [rsp + 0x68]
call fcn.140006b30
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsp
lea rdx, [0x1401ca250]
call fcn.1400bf760
add rsp, 0x1a0
pop rdi
ret

Function at 0x14003ee90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x20]
mov ecx, 0x30
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x1402548e8]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x20], 0
lea rdx, [0x1401c1154]
mov rcx, qword [rsp + 0xf0]
call fcn.1401321d0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14003ef95
mov r9, qword [rsp + 0x28]
mov r8d, 0x40
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140133150
cmp rax, 0x40
jne 0x14003ef8b
xor r8d, r8d
mov edx, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0x28]
call fcn.140133d70
test eax, eax
jne 0x14003ef8b
mov r9, qword [rsp + 0x28]
mov r8d, 4
mov edx, 1
lea rcx, [rsp + 0x94]
call fcn.140133150
cmp rax, 4
jne 0x14003ef8b
cmp dword [rsp + 0x94], 0x4550
jne 0x14003ef8b
mov r9, qword [rsp + 0x28]
mov r8d, 2
mov edx, 1
lea rcx, [rsp + 0xb4]
call fcn.140133150
cmp rax, 2
jne 0x14003ef8b
movzx eax, word [rsp + 0xb4]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x28]
call fcn.140132650
mov rax, qword [rsp + 0x20]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401ca730]
call fcn.1400bf760
mov rax, rdi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400bfa50
add rsp, 0xe0
pop rdi
ret
Function at 0x140040b10
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x160
lea rdi, [rsp + 0x50]
mov ecx, 0x44
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x170]
call fcn.140007c60
mov r9d, 0x784
lea r8, [0x1401c2870]
lea rdx, str.IsValidString__szKeyName_
mov rcx, rax
call fcn.14001a290
mov rcx, qword [rsp + 0x178]
call fcn.140007c60
mov r9d, 0x785
lea r8, [0x1401c28f0]
lea rdx, str.IsValidString__szKeyValue_
mov rcx, rax
call fcn.14001a290
mov rcx, qword [rsp + 0x170]
call fcn.14001a4e0
test rax, rax
jne 0x140040bbf
mov rcx, qword [rsp + 0x178]
call fcn.14001a4e0
test rax, rax
jne 0x140040bbf
mov qword [rsp + 0x128], 1
jmp 0x140040bcb
mov qword [rsp + 0x128], 0
mov r9d, 0x787
lea r8, [0x1401c2970]
lea rdx, str.IsEmptyStr__szKeyName___FALSE__IsEmptyStr__szKeyValue___FALSE
mov rcx, qword [rsp + 0x128]
call fcn.14001a290
mov rcx, qword [rsp + 0x178]
call fcn.1400e1970
lea rax, [rax + rax + 2]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x170]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140040c89
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1401bfe64]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x78]
call fcn.1400068c0
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x138], rax
mov r8, qword [rsp + 0x170]
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0xd0]
call fcn.140058450
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x148], rax
mov rcx, qword [rsp + 0x148]
call fcn.140052100
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140040d47
mov dword [rsp + 0x150], 1
jmp 0x140040d52
mov dword [rsp + 0x150], 0
movzx eax, byte [rsp + 0x150]
mov byte [rsp + 0x74], al
lea rcx, [rsp + 0xd0]
call fcn.140006b30
nop
lea rcx, [rsp + 0x78]
call fcn.140006b30
movzx eax, byte [rsp + 0x74]
test eax, eax
je 0x140040dba
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1401bfedc]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsp
lea rdx, [0x1401cacf8]
call fcn.1400bf760
add rsp, 0x160
pop rdi
ret
Function at 0x140040de0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x30]
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.140007c60
mov r9d, 0x89c
lea r8, [0x1401c30d0]
lea rdx, str.IsValidString__szSubKey_
mov rcx, rax
call fcn.14001a290
mov r8d, 1
mov edx, 0x208
mov rcx, qword [rsp + 0xa0]
call fcn.1400319f0
mov r9d, 0x89d
lea r8, [0x1401c3150]
lea rdx, str.IsValidAddress___psRetData____260__sizeof__TCHAR____TRUE_
mov rcx, rax
call fcn.14001a290
xor eax, eax
mov rcx, qword [rsp + 0xa0]
mov word [rcx], ax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140040eab
xor eax, eax
jmp 0x140040eff
mov dword [rsp + 0x54], 0x208
lea r9, [rsp + 0x54]
mov r8, qword [rsp + 0xa0]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x140040edc
mov qword [rsp + 0x70], 1
jmp 0x140040ee5
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x68]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400bf760
mov rax, rdi
add rsp, 0x80
pop rdi
ret
Function at 0x1400433c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rcx, qword [rsp + 0x40]
call fcn.140043470
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140043456
cmp qword [rsp + 0x20], 0x11
je 0x140043408
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x140043408
mov rax, qword [rsp + 0x20]
bts rax, 0xd
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x10
je 0x14004342f
mov ecx, SafeArrayLock
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x14004342f
mov rax, qword [rsp + 0x20]
bts rax, 0xf
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x12
je 0x140043456
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetUBound
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x140043456
mov rax, qword [rsp + 0x20]
bts rax, 0xe
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

Function at 0x140046ee0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
cmp qword [rsp + 0x60], 0xffffffffffffffff
jl 0x140046f07
mov qword [rsp + 0x38], 1
jmp 0x140046f10
mov qword [rsp + 0x38], 0
mov r9d, 0x1fe
lea r8, [0x1401d2030]
lea rdx, str.npReadDataSize____1
mov rcx, qword [rsp + 0x38]
call fcn.14001a290
mov rcx, qword [rsp + 0x58]
call fcn.140007c60
mov r9d, 0x1ff
lea r8, [0x1401d20a0]
lea rdx, [0x1401d17a8]
mov rcx, rax
call fcn.14001a290
mov rcx, qword [rsp + 0x58]
call fcn.14001a4e0
test rax, rax
je 0x140046f6f
mov rax, 0xffffffffffffffff
jmp 0x140047059
mov qword [rsp + 0x20], 0xffffffffffffffff
lea rdx, [0x1401d0ac4]
mov rcx, qword [rsp + 0x58]
call fcn.1401321d0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14004704a
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x140046fd4
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.140133d70
mov rcx, qword [rsp + 0x28]
call fcn.140138380
cdqe
mov qword [rsp + 0x60], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.140133d70
cmp qword [rsp + 0x60], 0
jle 0x140047037
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call fcn.1400448b0
mov r9, qword [rsp + 0x28]
mov r8, qword [rsp + 0x60]
mov edx, 1
mov rcx, rax
call fcn.140133150
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x28]
call fcn.140137250
test eax, eax
jne 0x140047035
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.140044a20
mov rcx, qword [rsp + 0x28]
call fcn.140132650
mov rax, qword [rsp + 0x30]
jmp 0x140047059
jmp 0x140047040
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x28]
call fcn.140132650
mov rcx, qword [rsp + 0x50]
call fcn.140044c00
mov rax, qword [rsp + 0x20]
add rsp, 0x40
pop rdi
ret
Function at 0x140048270
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
lea rdi, [rsp + 0x20]
mov ecx, 0x8c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x260]
mov rax, qword [0x1402548e8]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov rax, qword [rsp + 0x260]
lea rcx, vtable.CPoolMem.0
mov qword [rax], rcx
mov rax, qword [rsp + 0x260]
cmp qword [rax + 8], 0
je 0x1400482d7
mov qword [rsp + 0x240], 1
jmp 0x1400482e3
mov qword [rsp + 0x240], 0
mov r9d, 0xb1
lea r8, [0x1401d51e0]
lea rdx, str.m_pbBufferBegin___NULL
mov rcx, qword [rsp + 0x240]
call fcn.14001a290
lea rax, [0x140259200]
lock dec qword [rax]
cmp qword [0x140259200], 0
je 0x14004833c
mov r8, qword [0x140259200]
lea rdx, [0x1401d4fa8]
lea rcx, [rsp + 0x30]
call fcn.140042d30
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x260]
call fcn.1400489d0
mov rax, qword [rsp + 0x260]
mov rcx, qword [rax + 8]
call fcn.140049540
nop
mov rax, qword [rsp + 0x260]
add rax, 0x50
mov rcx, rax
call fcn.1400110f0
mov rcx, rsp
lea rdx, [0x1401d7d50]
call fcn.1400bf760
nop
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400bfa50
add rsp, 0x250
pop rdi
ret

Function at 0x1400483a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140048410
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400483f0
mov r9d, 0xc8
lea r8, [0x1401d5250]
lea rdx, [0x1401d4d64]
xor ecx, ecx
call fcn.14001a290
mov ecx, 0xffffffff
call fcn.140122a10
mov rax, qword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

Function at 0x140048630
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.1400486a0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14004868a
mov r9d, 0xd4
lea r8, [0x1401d52c0]
lea rdx, [0x1401d4fe4]
xor ecx, ecx
call fcn.14001a290
mov ecx, 0xffffffff
call fcn.140122a10
mov rax, qword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x1400489d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x470
lea rdi, [rsp + 0x40]
mov ecx, 0x10c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x480]
mov rax, qword [0x1402548e8]
xor rax, rsp
mov qword [rsp + 0x468], rax
mov rax, qword [rsp + 0x480]
cmp qword [rax + 0x40], 0
jne 0x140048a25
xorps xmm0, xmm0
movss dword [rsp + 0x460], xmm0
jmp 0x140048a56
mov rax, qword [rsp + 0x480]
cvtsi2ss xmm0, qword [rax + 0x48]
mulss xmm0, dword [0x1401d7df8]
mov rax, qword [rsp + 0x480]
cvtsi2ss xmm1, qword [rax + 0x40]
divss xmm0, xmm1
movss dword [rsp + 0x460], xmm0
cvtss2sd xmm0, dword [rsp + 0x460]
movsd qword [rsp + 0x30], xmm0
mov rax, qword [rsp + 0x480]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x480]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x480]
mov r9, qword [rax + 0x28]
mov rax, qword [rsp + 0x480]
mov r8, qword [rax + 0x38]
lea rdx, [0x1401d58b0]
lea rcx, [rsp + 0x50]
call fcn.140042d30
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rsp
lea rdx, [0x1401d7db0]
call fcn.1400bf760
mov rcx, qword [rsp + 0x468]
xor rcx, rsp
call fcn.1400bfa50
add rsp, 0x470
pop rdi
ret

Function at 0x140049380
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
cmp qword [rsp + 0x40], 0
jle 0x14004939d
mov qword [rsp + 0x28], 1
jmp 0x1400493a6
mov qword [rsp + 0x28], 0
mov r9d, 0x38
lea r8, [0x1401d4c00]
lea rdx, [0x1401d4c58]
mov rcx, qword [rsp + 0x28]
call fcn.14001a290
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14004940c
mov r9d, 0x41
lea r8, [0x1401d4c70]
lea rdx, [0x1401d4c64]
xor ecx, ecx
call fcn.14001a290
mov ecx, 0xffffffff
call fcn.140122a10
lea rax, [0x140259200]
lock inc qword [rax]
mov rax, qword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x140049b30
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
cmp qword [rsp + 0x68], 0
jl 0x140049b5c
mov qword [rsp + 0x30], 1
jmp 0x140049b65
mov qword [rsp + 0x30], 0
mov r9d, 0xd6
lea r8, [0x1401d8340]
lea rdx, str.npStackSize___0
mov rcx, qword [rsp + 0x30]
call fcn.14001a290
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x28]
test rax, rax
je 0x140049b9b
mov eax, 1
jmp 0x140049c95
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x28], 1
mov rax, qword [rsp + 0x50]
cmp qword [rax + 8], 0
je 0x140049be1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cdqe
mov r9d, 0xde
lea r8, [0x1401d83f0]
lea rdx, str.::CloseHandle__m_handle_
mov rcx, rax
call fcn.14001a290
mov rax, qword [rsp + 0x50]
add rax, 0x18
mov rcx, rax
call fcn.14004c5c0
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x30], rcx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x38], rcx
cmp qword [rsp + 0x58], 0
jne 0x140049c31
lea rax, [0x140049f20]
mov qword [rsp + 0x38], rax
jmp 0x140049c3d
lea rax, [0x140049e70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
add rax, 0x10
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 8], 0
jne 0x140049c90
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x28], 0
xor eax, eax
jmp 0x140049c95
mov eax, 1
add rsp, 0x40
pop rdi
ret