joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007af3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001fa50]
jne 0x14000626a
rol rcx, 0x10
test cx, 0xffff
jne 0x140006266
repz ret
ror rcx, 0x10
jmp 0x140007a4c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140062c50]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140062d48]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140007ad1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140062c50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140007af3
mov rax, qword [rsp + 0x88]
mov qword [0x140062d48], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140062ce8], rax
mov rax, qword [0x140062d48]
mov qword [0x140062bc0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140062cd0], rax
mov dword [0x140062bb0], 0xc0000409
mov dword [0x140062bb4], 1
mov rax, qword [0x14001fa50]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001fa58]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140062c48], eax
mov ecx, 1
call fcn.140007a44
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001d568]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140062c48], 0
jne 0x140007b7a
mov ecx, 1
call fcn.140007a44
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140008044
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
cmp qword [0x140063250], 0
je 0x140008084
cmp dword [0x140063258], 0
jne 0x140008084
xor eax, eax
test eax, eax
jne 0x140008068
mov dword [0x140063258], 1
call qword [0x140063250]
xor eax, eax
test eax, eax
jne 0x14000807e
cmp qword [rsp + 0x40], 0
jne 0x1400080a3
xor eax, eax
test eax, eax
jne 0x14000808c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140009954
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov dword [rsp + 0x60], 0xffffffff
xor eax, eax
test eax, eax
jne 0x140009968
mov r8d, 0x50
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.140001c90
mov dword [rsp + 0xb0], 0x50
lea rax, [0x140007f24]
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0xb4], 0x4000
lea rax, [0x140060e48]
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_RegisterClassExA]
movzx eax, ax
test eax, eax
jne 0x1400099d7
xor eax, eax
test eax, eax
jne 0x1400099cc
jmp 0x140009b77
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140060e60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [rsp + 0x100], rax
cmp qword [rsp + 0x100], 0
jne 0x140009a4e
xor eax, eax
test eax, eax
jne 0x140009a43
jmp 0x140009b5e
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400097c4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x168], rax
cmp qword [rsp + 0x168], 0
jne 0x140009a9e
xor eax, eax
test eax, eax
jne 0x140009a87
call qword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
mov dword [rsp + 0x60], eax
jmp 0x140009b50
mov dword [rsp + 0x20], 0x4ff
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x168]
mov ecx, 1
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x170], eax
cmp dword [rsp + 0x170], 0
je 0x140009b0a
cmp dword [rsp + 0x170], 1
je 0x140009b14
cmp dword [rsp + 0x170], 0x102
je 0x140009b08
cmp dword [rsp + 0x170], 0xffffffff
je 0x140009afe
jmp 0x140009b4b
mov dword [rsp + 0x60], 0xfffffffd
jmp 0x140009b50
jmp 0x140009a9e
mov dword [rsp + 0x60], 0
jmp 0x140009b50
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x78]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140009b4b
lea rcx, [rsp + 0x78]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x78]
call qword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x140009b14
jmp 0x140009a9e
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.USER32.dll_DestroyWindow]
xor edx, edx
lea rcx, str.DummyWindowClass
call qword [sym.imp.USER32.dll_UnregisterClassA]
test eax, eax
jne 0x140009b77
xor eax, eax
test eax, eax
jne 0x140009b71
mov eax, dword [rsp + 0x60]
add rsp, 0x188
ret
Function at 0x14000fcc4
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov r8d, 0x105
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14000fcfe
xor eax, eax
jmp 0x14000fe1a
xor eax, eax
test eax, eax
jne 0x14000fcfe
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x168], rax
cmp qword [rsp + 0x168], 0xffffffffffffffff
jne 0x14000fd56
xor eax, eax
test eax, eax
jne 0x14000fd49
xor eax, eax
jmp 0x14000fe1a
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rsp + 0x160], rax
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x160], 0xffffffffffffffff
jne 0x14000fdab
xor eax, eax
test eax, eax
jne 0x14000fda1
xor eax, eax
jmp 0x14000fe1a
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14000fdf2
xor eax, eax
test eax, eax
jne 0x14000fdda
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000fe1a
mov rcx, qword [rsp + 0x188]
mov rax, qword [rsp + 0x160]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x190]
mov rax, qword [rsp + 0x40]
mov qword [rcx], rax
mov eax, 1
add rsp, 0x178
ret

Function at 0x14000fe64
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp + 8], 0x811c9dc5
mov qword [rsp], 0
jmp 0x14000fe90
mov rax, qword [rsp]
add rax, 1
mov qword [rsp], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp], rax
jae 0x14000fec4
mov rcx, qword [rsp]
mov rax, qword [rsp + 0x20]
add rax, rcx
movzx ecx, byte [rax]
mov eax, dword [rsp + 8]
xor eax, ecx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
imul eax, eax, 0x1000193
mov dword [rsp + 8], eax
jmp 0x14000fe84
mov eax, dword [rsp + 8]
add rsp, 0x18
ret
Function at 0x140010604
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x38]
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x38]
movzx eax, word [rax + 0x14]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0
jmp 0x140010668
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
add rax, 0x28
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jge 0x140010798
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x10], 0
jne 0x140010713
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jle 0x14001070e
movsxd rdx, dword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov r9d, 4
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400106dc
xor eax, eax
jmp 0x14001079d
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0xc]
mov rax, qword [rsp + 0x38]
add rax, rcx
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x28]
mov dword [rcx + 8], eax
movsxd r8, dword [rsp + 0x30]
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.140001c90
jmp 0x14001064f
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 0x10]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov r9d, 4
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14001074e
xor eax, eax
jmp 0x14001079d
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0xc]
mov rax, qword [rsp + 0x38]
add rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x10]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x14]
mov rdx, qword [rsp + 0x60]
add rdx, rax
mov rcx, qword [rsp + 0x28]
call fcn.140001790
mov r11, qword [rsp + 0x40]
mov eax, dword [rsp + 0x28]
mov dword [r11 + 8], eax
jmp 0x14001064f
mov eax, 1
add rsp, 0x58
ret
Function at 0x14001a714
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x28
xor eax, eax
mov word [rsp + 0x18], ax
mov qword [rsp + 0x10], 0
mov qword [rsp + 8], 0
mov qword [rsp], 0
cmp dword [rsp + 0x40], 0
je 0x14001a837
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x38]
add rax, rcx
mov qword [rsp], rax
mov rax, qword [rsp]
movzx ecx, word [rax + 0x14]
mov rax, qword [rsp]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x30], eax
jae 0x14001a794
mov eax, dword [rsp + 0x30]
jmp 0x14001a91a
xor eax, eax
mov word [rsp + 0x18], ax
jmp 0x14001a7ab
movzx eax, word [rsp + 0x18]
add ax, 1
mov word [rsp + 0x18], ax
movzx ecx, word [rsp + 0x18]
mov rax, qword [rsp]
movzx eax, word [rax + 6]
cmp ecx, eax
jge 0x14001a832
movzx ecx, word [rsp + 0x18]
imul rcx, rcx, 0x28
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + rcx + 0xc]
cmp dword [rsp + 0x30], eax
jb 0x14001a82d
movzx ecx, word [rsp + 0x18]
imul rcx, rcx, 0x28
movzx edx, word [rsp + 0x18]
imul rdx, rdx, 0x28
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + rcx + 0xc]
mov rcx, qword [rsp + 0x10]
add eax, dword [rcx + rdx + 0x10]
cmp dword [rsp + 0x30], eax
jae 0x14001a82d
movzx ecx, word [rsp + 0x18]
imul rcx, rcx, 0x28
mov rax, qword [rsp + 0x10]
mov ecx, dword [rax + rcx + 0xc]
mov eax, dword [rsp + 0x30]
sub eax, ecx
movzx edx, word [rsp + 0x18]
imul rdx, rdx, 0x28
mov rcx, qword [rsp + 0x10]
add eax, dword [rcx + rdx + 0x14]
jmp 0x14001a91a
jmp 0x14001a79d
jmp 0x14001a918
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x38]
add rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
movzx ecx, word [rax + 0x14]
mov rax, qword [rsp + 8]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x30], eax
jae 0x14001a87c
mov eax, dword [rsp + 0x30]
jmp 0x14001a91a
xor eax, eax
mov word [rsp + 0x18], ax
jmp 0x14001a893
movzx eax, word [rsp + 0x18]
add ax, 1
mov word [rsp + 0x18], ax
movzx ecx, word [rsp + 0x18]
mov rax, qword [rsp + 8]
movzx eax, word [rax + 6]
cmp ecx, eax
jge 0x14001a918
movzx ecx, word [rsp + 0x18]
imul rcx, rcx, 0x28
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + rcx + 0xc]
cmp dword [rsp + 0x30], eax
jb 0x14001a913
movzx ecx, word [rsp + 0x18]
imul rcx, rcx, 0x28
movzx edx, word [rsp + 0x18]
imul rdx, rdx, 0x28
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + rcx + 0xc]
mov rcx, qword [rsp + 0x10]
add eax, dword [rcx + rdx + 0x10]
cmp dword [rsp + 0x30], eax
jae 0x14001a913
movzx ecx, word [rsp + 0x18]
imul rcx, rcx, 0x28
mov rax, qword [rsp + 0x10]
mov ecx, dword [rax + rcx + 0xc]
mov eax, dword [rsp + 0x30]
sub eax, ecx
movzx edx, word [rsp + 0x18]
imul rdx, rdx, 0x28
mov rcx, qword [rsp + 0x10]
add eax, dword [rcx + rdx + 0x14]
jmp 0x14001a91a
jmp 0x14001a885
xor eax, eax
add rsp, 0x28
ret
Function at 0x14001a934
Capabilities:
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0x811c9dc5
cmp qword [rsp + 0x20], 0
je 0x14001a958
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax]
test eax, eax
jne 0x14001a95d
mov eax, dword [rsp]
jmp 0x14001a9c0
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax]
cmp eax, 0x5f
jne 0x14001a978
mov rax, qword [rsp + 0x20]
add rax, 1
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax]
test eax, eax
je 0x14001a9bd
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax]
cmp eax, 0x40
je 0x14001a9bd
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rax]
mov eax, dword [rsp]
xor eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
imul eax, eax, 0x1000193
mov dword [rsp], eax
mov rax, qword [rsp + 0x20]
add rax, 1
mov qword [rsp + 0x20], rax
jmp 0x14001a978
mov eax, dword [rsp]
add rsp, 0x18
ret
Function at 0x14001ac70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0xa8], 0
jne 0x14001aca0
lea rax, [rsp + 0x60]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x58], rax
xor eax, eax
test eax, eax
jne 0x14001acea
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x14001ae7f
xor eax, eax
test eax, eax
jne 0x14001acff
mov qword [rsp + 0x58], 0
cmp dword [0x1400631ec], 0
jne 0x14001ad8b
cmp qword [0x1400631f0], 0
jne 0x14001ad81
lea rcx, str.NTDLL.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.RtlCreateUserThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400631f0], rax
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.GetThreadId
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400631f8], rax
cmp qword [0x1400631f0], 0
je 0x14001ad7b
xor eax, eax
test eax, eax
jne 0x14001ad73
jmp 0x14001ad81
xor eax, eax
test eax, eax
jne 0x14001ad7b
mov dword [0x1400631ec], 1
cmp qword [0x1400631f0], 0
je 0x14001ae74
cmp qword [0x1400631f8], 0
je 0x14001ae74
xor eax, eax
test eax, eax
jne 0x14001ada7
mov eax, dword [rsp + 0xa0]
and eax, 4
cmp eax, 4
jne 0x14001adc6
mov dword [rsp + 0x64], 1
jmp 0x14001adce
mov dword [rsp + 0x64], 0
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x54], eax
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x54]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [0x1400631f0]
mov dword [rsp + 0x50], eax
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test eax, eax
jne 0x14001ae3b
cmp dword [rsp + 0x50], 0
jne 0x14001ae72
cmp qword [rsp + 0xa8], 0
je 0x14001ae72
mov rcx, qword [rsp + 0x58]
call qword [0x1400631f8]
mov r11d, eax
mov rax, qword [rsp + 0xa8]
mov dword [rax], r11d
xor eax, eax
test eax, eax
jne 0x14001ae6c
jmp 0x14001ae7f
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x58]
add rsp, 0x78
ret
Function at 0x14001ae8c
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, 0x100000
mov rcx, qword [rsp + 0x60]
call fcn.14001ac70
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14001af25
xor eax, eax
test eax, eax
jne 0x14001aefb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._INJECT__inject_via_remotethread:_CreateRemoteThread_failed_GetLastError___d
mov rcx, qword [0x140020958]
mov rcx, qword [rcx]
call qword [0x140020938]
jmp 0x14001af7f
xor eax, eax
test eax, eax
jne 0x14001af25
xor eax, eax
test eax, eax
jne 0x14001af2b
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x14001af6f
xor eax, eax
test eax, eax
jne 0x14001af47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._INJECT__inject_via_remotethread:_ResumeThread_failed_GetLastError___d
mov rcx, qword [0x140020958]
mov rcx, qword [rcx]
call qword [0x140020938]
jmp 0x14001af7f
xor eax, eax
test eax, eax
jne 0x14001af6f
xor eax, eax
test eax, eax
jne 0x14001aec4
cmp qword [rsp + 0x38], 0
je 0x14001af9a
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x40], 0
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x140001750
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
lea rcx, [rcx + 0x70]
lea rdx, [0x140011129]
call fcn.1400041d0
test rax, rax
mov rbp, rax
je 0x140001880
mov edx, dword [r12 + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rbx]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001860
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
mov r13, rax
je 0x140001896
cmp byte [r12 + 0x10], 1
je 0x140001840
test rsi, rsi
mov rdi, rax
jne 0x1400017d8
jmp 0x140001820
add rdi, rbx
sub rsi, rbx
je 0x140001820
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
cmp rsi, rbx
mov rcx, rdi
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x1400017d0
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002c20
mov rcx, r13
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r13d, r13d
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.140001490
test eax, eax
je 0x140001820
jmp 0x140001815
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002c20
jmp 0x14000181d
lea rdx, [r12 + 0x12]
xor r13d, r13d
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002aa0
jmp 0x140001828
lea r8, [r12 + 0x12]
mov r9d, esi
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140002c20
jmp 0x14000181d
Function at 0x140001960
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [rcx + 0x5074], 1
mov rsi, rcx
mov rbx, rdx
jne 0x140001b60
cmp byte [rdx + 0x11], 0x6e
je 0x140001a80
lea r13, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, r13
call fcn.1400080d0
test rax, rax
mov r12, rax
je 0x140001b76
lea rcx, [rsi + 0x70]
lea rdx, [0x140011129]
call fcn.1400041d0
test rax, rax
mov rbp, rax
je 0x140001af0
mov edx, dword [rbx + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rsi]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001b40
cmp byte [rbx + 0x10], 1
je 0x140001aa0
mov ecx, 0x2000
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
mov rdi, rax
je 0x140001b8e
mov esi, dword [rbx + 0xc]
test rsi, rsi
jne 0x140001a36
jmp 0x140001b10
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
test rax, rax
je 0x140001b20
sub rsi, rbx
je 0x140001b10
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
cmp rsi, rbx
mov rcx, rdi
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x140001a10
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov r8, r13
lea rcx, str.fread
call fcn.140002c20
mov esi, 0xffffffff
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x140001ab3
call fcn.1400018c0
test eax, eax
mov esi, eax
js 0x140001ad8
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r9d, r9d
mov r8, r12
mov rdx, rbx
mov rcx, rbp
call fcn.140001490
mov esi, eax
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [rbx + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002aa0
jmp 0x140001a8b
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov rdx, r13
mov esi, 0xffffffff
call fcn.140002aa0
jmp 0x140001abb
xor esi, esi
jmp 0x140001a76
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov r8, r13
lea rcx, str.fwrite
call fcn.140002c20
jmp 0x140001a71
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov r8, r13
lea rcx, str.fseek
call fcn.140002c20
mov esi, 0xffffffff
jmp 0x140001ab3
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
call fcn.140002aa0
mov esi, 0xffffffff
jmp 0x140001a8b
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov r8, r13
lea rcx, str.fopen
call fcn.140002c20
jmp 0x140001b6c
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
mov r8, r13
lea rcx, str.malloc
call fcn.140002c20
jmp 0x140001b56