joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003738
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140009470]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140002774
xor ebx, ebx
cmp qword [0x14000a8f8], rbx
mov rdi, rax
jne 0x14000384b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140003922
lea rdx, str.MessageBoxU
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140003922
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14000a8f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopur
mov rcx, rsi
mov qword [0x14000a900], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetEserObkectInforyationW
mov rcx, rsi
mov qword [0x14000a908], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14000a918], rax
test rax, rax
je 0x140003842
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14000a910], rax
jmp 0x140003852
mov rax, qword [0x14000a910]
jmp 0x140003859
mov rax, qword [0x14000a910]
mov r11, qword [0x14000a918]
cmp rax, rdi
je 0x1400038c0
cmp r11, rdi
je 0x1400038c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14000a918]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400038c0
test rax, rax
je 0x1400038c0
call rsi
test rax, rax
je 0x1400038ba
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400038ba
test byte [rsp + 0x40], 1
jne 0x1400038c0
bts ebp, 0x15
jmp 0x140003900
mov rcx, qword [0x14000a900]
cmp rcx, rdi
je 0x140003900
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140003900
call rax
mov rbx, rax
test rax, rax
je 0x140003900
mov rcx, qword [0x14000a908]
cmp rcx, rdi
je 0x140003900
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140003900
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14000a8f8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140003922
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140003924
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140003b70
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004fab
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140009470]
jne 0x140003b8a
rol rcx, 0x10
test cx, 0xffff
jne 0x140003b86
repz ret
ror rcx, 0x10
jmp 0x140004f04
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000a9f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14000aae8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.140005d9a
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140004f89
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, [0x14000a9f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call fcn.140005d94
jmp 0x140004fab
mov rax, qword [rsp + 0x88]
mov qword [0x14000aae8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000aa88], rax
mov rax, qword [0x14000aae8]
mov qword [0x14000a960], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000aa70], rax
mov dword [0x14000a950], 0xc0000409
mov dword [0x14000a954], 1
mov rax, qword [0x140009470]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140009478]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000a9e8], eax
mov ecx, 1
call fcn.140004eb4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140007370]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000a9e8], 0
jne 0x140005032
mov ecx, 1
call fcn.140004eb4
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 0x140009cc8
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140009d59
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140009d59
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009d59
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140009d3d
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140009d37
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140009d3f
add rdx, 0x28
jmp 0x140009d1c
xor edx, edx
test rdx, rdx
jne 0x140009d48
xor al, al
jmp 0x140009d5f
test dword [rdx + 0x24], 0x80000000
je 0x140009d55
xor al, al
jmp 0x140009d5f
mov al, 1
jmp 0x140009d5f
xor al, al
jmp 0x140009d5f
add rsp, 0x18
ret
Function at 0x140011546
Capabilities:
Terminate process

Disassembly:
jmp 0x1400210e0
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 0x14001169f
Capabilities:
Parse pe header

Disassembly:
jmp 0x140021c10
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140021c30
xor al, al
jmp 0x140021cb1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140021c43
xor al, al
jmp 0x140021cb1
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 0x140021c6d
xor al, al
jmp 0x140021cb1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140021c81
xor al, al
jmp 0x140021cb1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140021c93
xor al, al
jmp 0x140021cb1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140021caf
xor al, al
jmp 0x140021cb1
mov al, 1
add rsp, 0x38
ret
Function at 0x14000ef90
Capabilities:
Set registry value

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb8], 0xfffffffffffffffe
mov dword [rbp + 0xc], r9d
mov qword [rbp + 0x10], r8
mov qword [rbp + 0x18], rdx
mov rax, rcx
mov rcx, qword [rbp + 0x18]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x100]
mov rdx, qword [rbp + 0xf8]
mov r10d, dword [rbp + 0xf0]
mov dword [rbp + 0x34], r10d
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], r8
mov dword [rbp + 0x94], r9d
mov byte [rbp + 0x7f], 0
mov byte [rbp + 0x7f], 1
call fcn.14000f1d0
mov qword [rbp + 0x38], rdx
mov qword [rbp + 0x40], rax
jmp 0x14000f013
mov rax, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x40]
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x58]
call fcn.14000f6f0
mov qword [rbp], rax
jmp 0x14000f032
mov rcx, qword [rbp + 0x10]
mov byte [rbp + 0x7f], 0
call fcn.140018260
mov qword [rbp - 0x10], rdx
mov qword [rbp - 8], rax
jmp 0x14000f049
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 8]
mov qword [rbp + 0x68], rcx
mov qword [rbp + 0x70], rax
lea rcx, [rbp + 0x68]
call fcn.14000f6a0
mov qword [rbp - 0x18], rax
jmp 0x14000f068
lea rcx, [rbp + 0x48]
call fcn.14000f5f0
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], rax
jmp 0x14000f07b
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x20]
mov qword [rbp + 0x98], 0
mov qword [rbp + 0xa0], 0
mov qword [rbp + 0xb0], 0
mov rax, qword [rbp + 0xb0]
mov qword [rbp + 0xa8], rax
mov r8, qword [rbp + 0xa8]
call fcn.14000f4c0
mov qword [rbp - 0x30], rax
jmp 0x14000f0c4
lea rcx, [rbp + 0x48]
call fcn.14000f5f0
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x38], rax
jmp 0x14000f0d7
mov rdx, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x38]
xor r8d, r8d
call fcn.14000f400
mov dword [rbp - 0x44], eax
jmp 0x14000f0ec
mov r9d, dword [rbp + 0x34]
mov r8d, dword [rbp + 0xc]
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp]
mov r10, qword [rbp - 0x30]
mov r11d, dword [rbp - 0x44]
mov rax, rsp
mov dword [rax + 0x28], r11d
mov qword [rax + 0x20], r10
mov rax, qword [sym.imp.advapi32.dll_RegSetValueExW]
call rax
mov dword [rbp - 0x48], eax
jmp 0x14000f11d
mov edx, dword [rbp - 0x48]
mov rcx, qword [rbp + 0x20]
call fcn.14000f760
jmp 0x14000f12b
mov rax, qword [rbp + 0x28]
add rsp, 0x140
pop rbp
ret
Function at 0x1400126a0
Capabilities:
Initialize winhttp library

Disassembly:
push rbp
sub rsp, 0xf0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x68], 0xfffffffffffffffe
mov qword [rbp - 0x18], r9
mov qword [rbp - 0x10], r8
mov dword [rbp - 8], edx
mov eax, dword [rbp + 0xa0]
mov dword [rbp - 4], eax
mov qword [rbp + 0x48], rcx
mov dword [rbp + 0x54], edx
mov qword [rbp + 0x58], r8
mov qword [rbp + 0x60], r9
mov byte [rbp + 0x47], 0
mov byte [rbp + 0x46], 0
mov byte [rbp + 0x47], 1
mov byte [rbp + 0x46], 1
call fcn.140011a40
mov qword [rbp], rdx
mov qword [rbp + 8], rax
jmp 0x1400126fa
mov rax, qword [rbp]
mov rcx, qword [rbp + 8]
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x10]
call fcn.140013fa0
mov qword [rbp - 0x20], rax
jmp 0x140012719
mov rcx, qword [rbp - 0x10]
mov byte [rbp + 0x47], 0
call fcn.140011a40
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x28], rax
jmp 0x140012730
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x20]
call fcn.140013fa0
mov qword [rbp - 0x38], rax
jmp 0x14001274f
mov rcx, qword [rbp - 0x18]
mov byte [rbp + 0x46], 0
call fcn.140011a40
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], rax
jmp 0x140012766
mov rax, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x40]
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rax
lea rcx, [rbp + 0x30]
call fcn.140013fa0
mov qword [rbp - 0x50], rax
jmp 0x140012785
mov r9, qword [rbp - 0x50]
mov r8, qword [rbp - 0x38]
mov edx, dword [rbp - 8]
mov rcx, qword [rbp - 0x20]
mov r10d, dword [rbp - 4]
mov rax, rsp
mov dword [rax + 0x20], r10d
mov rax, qword [sym.imp.winhttp.dll_WinHttpOpen]
call rax
mov qword [rbp - 0x58], rax
jmp 0x1400127ae
mov rax, qword [rbp - 0x58]
add rsp, 0xf0
pop rbp
ret
Function at 0x140012860
Capabilities:
Prepare http request

Disassembly:
push rbp
push rsi
sub rsp, 0x148
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xc0], 0xfffffffffffffffe
mov qword [rbp + 0x10], r9
mov qword [rbp + 0x18], r8
mov qword [rbp + 0x20], rdx
mov rax, rcx
mov rcx, qword [rbp + 0x20]
mov qword [rbp + 0x28], rax
mov edx, dword [rbp + 0x110]
mov dword [rbp + 0x34], edx
mov rdx, qword [rbp + 0x108]
mov qword [rbp + 0x38], rdx
mov rdx, qword [rbp + 0x100]
mov qword [rbp + 0x40], rdx
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rcx
mov qword [rbp + 0xb0], r8
mov qword [rbp + 0xb8], r9
mov byte [rbp + 0x9f], 0
mov byte [rbp + 0x9e], 0
mov byte [rbp + 0x9d], 0
mov byte [rbp + 0x9f], 1
mov byte [rbp + 0x9e], 1
mov byte [rbp + 0x9d], 1
call fcn.140018260
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x50], rax
jmp 0x140012907
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x50]
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x58]
call fcn.140013fa0
mov qword [rbp + 8], rax
jmp 0x140012926
mov rcx, qword [rbp + 0x18]
mov byte [rbp + 0x9f], 0
call fcn.140018260
mov qword [rbp - 8], rdx
mov qword [rbp], rax
jmp 0x140012940
mov rax, qword [rbp - 8]
mov rcx, qword [rbp]
mov qword [rbp + 0x68], rcx
mov qword [rbp + 0x70], rax
lea rcx, [rbp + 0x68]
call fcn.140013fa0
mov qword [rbp - 0x10], rax
jmp 0x14001295f
mov rcx, qword [rbp + 0x10]
mov byte [rbp + 0x9e], 0
call fcn.140011a40
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], rax
jmp 0x140012979
mov rax, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x18]
mov qword [rbp + 0x78], rcx
mov qword [rbp + 0x80], rax
lea rcx, [rbp + 0x78]
call fcn.140013fa0
mov qword [rbp - 0x28], rax
jmp 0x14001299b
mov rcx, qword [rbp + 0x40]
mov byte [rbp + 0x9d], 0
call fcn.140018260
mov qword [rbp - 0x38], rdx
mov qword [rbp - 0x30], rax
jmp 0x1400129b5
mov rax, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x30]
mov qword [rbp + 0x88], rcx
mov qword [rbp + 0x90], rax
lea rcx, [rbp + 0x88]
call fcn.140013fa0
mov qword [rbp - 0x40], rax
jmp 0x1400129dd
mov r9, qword [rbp - 0x28]
mov r8, qword [rbp - 0x10]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x28]
mov r10, qword [rbp - 0x40]
mov r11, qword [rbp + 0x38]
mov esi, dword [rbp + 0x34]
mov rax, rsp
mov dword [rax + 0x30], esi
mov qword [rax + 0x28], r11
mov qword [rax + 0x20], r10
mov rax, qword [sym.imp.winhttp.dll_WinHttpOpenRequest]
call rax
mov qword [rbp - 0x48], rax
jmp 0x140012a15
mov rax, qword [rbp - 0x48]
add rsp, 0x148
pop rsi
pop rbp
ret

Function at 0x140013800
Capabilities:
Receive http response

Disassembly:
sub rsp, 0x68
mov dword [rsp + 0x2c], r9d
mov rax, r8
mov r8d, dword [rsp + 0x2c]
mov qword [rsp + 0x30], rax
mov rax, rdx
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, rcx
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov r9, qword [rsp + 0x90]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdx
mov dword [rsp + 0x64], r8d
call qword [sym.imp.winhttp.dll_WinHttpReadData]
mov rcx, qword [rsp + 0x40]
mov edx, eax
call fcn.140014410
mov rax, qword [rsp + 0x48]
add rsp, 0x68
ret
Function at 0x140013a00
Capabilities:
Receive http response

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x28], r8
mov rax, rdx
mov rdx, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, rcx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdx
call qword [sym.imp.winhttp.dll_WinHttpReceiveResponse]
mov rcx, qword [rsp + 0x38]
mov edx, eax
call fcn.140014410
mov rax, qword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x140045590
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140045620
jmp 0x14004560f
jae 0x1400456e0
cmp r8, 0x201
jae 0x140045620
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140045678
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14004564f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140069a50
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1400456a1
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140045748
mov r8d, r14d
cmp r15, r8
jne 0x140045600
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14004576b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14004560f
jmp 0x140045620
cmp rsi, r8
jb 0x140045785
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140048930
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140045731
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1400032c0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140045719
jmp 0x140045731
lea rcx, [0x140074368]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14006a760
jmp 0x14004579a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14006acb0
ud2
Function at 0x14004c610
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.140068f20
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov rbx, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfec], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r14, [rbp + 0xfec]
mov qword [rbp + 0xfc8], r14
lea r15, [0x1400530e0]
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0xfb0]
mov rcx, rbx
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x14004c801
mov r12, qword [sym.imp.kernel32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov r13, qword [sym.imp.kernel32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], rbx
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfec], 0
je 0x14004c6d7
cmp dword [rbp + 0xff0], 0
jne 0x14004c816
mov eax, dword [rbp + 0xff4]
test rax, rax
je 0x14004c816
cmp eax, 0x1000
ja 0x14004c861
xor ebx, ebx
nop word cs:[rax + rax]
cmp rbx, rax
ja 0x14004c846
lea rdx, [rbx + rbp]
add rdx, 0xffffffffffffffb0
mov rdi, rax
mov r8d, eax
sub r8d, ebx
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call r13
test eax, eax
je 0x14004c809
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfec], 0
je 0x14004c780
cmp dword [rbp + 0xff0], 0
jne 0x14004c80f
mov eax, dword [rbp + 0xff4]
add rbx, rax
mov rax, rdi
cmp rbx, rdi
jne 0x14004c720
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rbx, qword [rbp + 0xfe0]
mov rcx, rbx
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x14004c6d7
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x14004c816
call qword [sym.imp.kernel32.dll_GetLastError]
mov rbx, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, rbx
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rbx
mov qword [rbp + 0xfd0], rax
mov rdx, rax
call fcn.14006ad30
jmp 0x14004c87c
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfd0], rax
mov rcx, rax
call fcn.14006acb0
ud2
Function at 0x1400507d0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140076398]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140050814
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140050873
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140050882
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400508ba
cmp eax, 0x103
je 0x1400508c4
test eax, eax
js 0x14005089f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400508ba
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400485e0
mov rcx, rax
call fcn.14003fb70
mov ecx, 7
int 0x29
ud2
Function at 0x140050930
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140076398]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140050974
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400509da
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140050a11
test eax, eax
js 0x1400509eb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140050a04
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400485e0
mov rcx, rax
call fcn.14003fb70
mov ecx, 7
int 0x29
ud2

Function at 0x1400514d0
Capabilities:
Set current directory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
add rdx, rcx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], rdx
mov word [rbp - 0x28], 0
lea rcx, [rbp - 0x20]
lea rdx, [rbp - 0x38]
call fcn.140044b00
mov rdx, qword [rbp - 0x10]
cmp rdx, qword [rbp - 0x18]
jne 0x140051519
lea rcx, [rbp - 0x20]
call fcn.1400447e0
mov rdx, qword [rbp - 0x10]
mov rsi, qword [rbp - 0x20]
mov word [rsi + rdx*2], 0
mov rcx, rsi
call qword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x140051557
xor edi, edi
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x14005154c
add rdx, rdx
mov r8d, 2
mov rcx, rsi
call fcn.1400032c0
mov rax, rdi
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rdx, qword [rbp - 0x18]
test rdx, rdx
jne 0x14005153b
jmp 0x14005154c

Function at 0x140052480
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x128
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x90], xmm6
mov qword [rbp + 0x88], 0xfffffffffffffffe
mov qword [rbp + 0x38], rcx
mov byte [rbp + 0x85], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x34], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
mov rbx, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x18], rax
nop