joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402a651c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1403e15b0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1402a6573
cmp word [rdx], r13w
jne 0x1402a6573
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1402a6578
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1402a669d
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1402a66be
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1402a65b1
mov rdx, r9
mov word [rbx], cx
jmp 0x1402a65d8
cmp r9, r8
jae 0x1402a65e8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1402a6592
jmp 0x1402a669d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1402a6692
cmp dword [rsp + 0x80], esi
je 0x1402a6692
lea r8, [0x1403e15b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1402a666a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1402a663a
mov word [rbx], r13w
jmp 0x1402a669a
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1402a6647
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1402a669a
cmp word [rsp + 0x70], r13w
jne 0x1402a6677
cmp rbx, r14
je 0x1402a6634
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1402a2048
cmp word [rsp + 0x70], r13w
je 0x1402a669d
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1403e15b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1402a6697
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1402a669d
Function at 0x1402ad3b8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1402ad3ce
mov al, 1
jmp 0x1402ad42e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1402ad3df
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1402ad42c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1402b0e00
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1402ad42c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1402ad42c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1402ad42c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1402ad42e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1402affb8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1402affd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14029cc8c
or eax, 0xffffffff
jmp 0x1402affda
xor eax, eax
add rsp, 0x28
ret
Function at 0x1402b2698
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1402b26c8
xor eax, eax
jmp 0x1402b278b
mov rbp, rbx
cmp word [rax], si
je 0x1402b26ed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1402b26d4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1402b26d0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1402aea7c
movsxd r14, eax
test eax, eax
jne 0x1402b272b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1402b26c1
mov rcx, r14
call fcn.1402aac24
mov rdi, rax
test rax, rax
jne 0x1402b2744
xor ecx, ecx
call fcn.1402a9ca4
jmp 0x1402b2720
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1402aea7c
test eax, eax
jne 0x1402b2775
mov rcx, rdi
call fcn.1402a9ca4
jmp 0x1402b277f
xor ecx, ecx
call fcn.1402a9ca4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1402b27a8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1402b282f
mov rsi, rbx
cmp word [rax], bp
je 0x1402b27ee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1402b27d8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1402b27d4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1402aac24
mov rdi, rax
test rax, rax
je 0x1402b281c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14027d780
mov rbp, rdi
xor ecx, ecx
call fcn.1402a9ca4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1402b5904
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1402ac408
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1402b59a5
cmp ebx, dword [rsp + 0x30]
je 0x1402b599e
test esi, esi
je 0x1402b599e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1402b5979
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1402b5986
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1402b5963
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1402b598a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1402b59a7
mov eax, 1
jmp 0x1402b59a7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1402b5dec
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1402a2048
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1402a2048
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1402b5f3c
cmp rax, 0xffffffffffffffff
je 0x1402b5f3c
xor edi, edi
test rbp, rbp
jle 0x1402b5ee7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1402a9c2c
mov rbx, rax
test rax, rax
jne 0x1402b5e74
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1402b5edd
mov edx, 0x8000
mov ecx, r14d
call fcn.1402a2d5c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1402a78d4
cmp eax, 0xffffffff
je 0x1402b5ebd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1402b5e84
mov edx, r15d
mov ecx, r14d
call fcn.1402a2d5c
jmp 0x1402b5edd
cmp byte [rsi + 0x38], dil
je 0x1402b5ed4
cmp dword [rsi + 0x34], 5
jne 0x1402b5ed4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1402b5edd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1402a9ca4
jmp 0x1402b5f50
jns 0x1402b5f50
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1402a2048
cmp rax, 0xffffffffffffffff
jne 0x1402b5f08
cmp byte [rsi + 0x30], dil
je 0x1402b5f50
mov edi, dword [rsi + 0x2c]
jmp 0x1402b5f50
mov ecx, r14d
call fcn.1402b0e00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1402b5f50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1402b5f50
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1402b5f49
mov eax, dword [rsi + 0x2c]
jmp 0x1402b5f4e
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1402a2048
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1402b9c38
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1403a1b88]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1402b9c82
call fcn.14029ccf8
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14029cd18
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14029cb0c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140279b70
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1402b9c8d
lea eax, [rbx + 1]
jmp 0x1402b9c6f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1402b9c6d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1402b9c6f
Function at 0x1402b9e8c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140293d9c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1402b9f16
cmp byte [rbp - 0x21], r15b
je 0x1402b9f11
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1402b9f4c
call fcn.1402aa000
test eax, eax
jne 0x1402b9f38
cmp byte [rbp - 0x21], r15b
je 0x1402b9f30
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1402b9f4c
cmp byte [rbp - 0x21], r15b
je 0x1402b9f49
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14029f33c
test eax, eax
jne 0x1402b9fec
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140293d9c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1402b9f8b
cmp byte [rbp - 0x21], r15b
je 0x1402b9fc0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1402b9fc0
call fcn.1402aa000
test eax, eax
jne 0x1402b9fac
cmp byte [rbp - 0x21], r15b
je 0x1402b9fa5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1402b9fc0
cmp byte [rbp - 0x21], r15b
je 0x1402b9fbd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14029f33c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1402b9fec
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1402b9fef
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1402b9ffd
mov rcx, rdi
call fcn.1402a9ca4
cmp byte [rbp + 0x3f], r15b
je 0x1402ba00c
mov rcx, qword [rbp + 0x27]
call fcn.1402a9ca4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1402baf00
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1402baf28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1402baf28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001134d
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140017df0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017e10
xor al, al
jmp 0x140017e91
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017e23
xor al, al
jmp 0x140017e91
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 0x140017e4d
xor al, al
jmp 0x140017e91
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017e61
xor al, al
jmp 0x140017e91
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017e73
xor al, al
jmp 0x140017e91
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140017e8f
xor al, al
jmp 0x140017e91
mov al, 1
add rsp, 0x38
ret
Function at 0x140001070
Capabilities:
Create pipe
Write file on windows
Write pipe

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp dword [rsp + 0xd0], 0
mov r13, r9
mov r12, r8
mov qword [rsp + 0x40], rdx
mov r15d, ecx
mov edi, 0x1000
je 0x1400010f2
mov rbp, qword [r9]
mov r14, qword [r8]
mov rbx, rbp
mov rsi, r14
sub rsi, rbp
nop dword [rax]
mov rcx, qword [rsi + rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x1400010c0
mov rcx, r14
call fcn.140008790
mov rcx, rbp
call fcn.140008790
mov edi, 0x2000
mov eax, 8
mov rbx, 0xffffffffffffffff
mul rdi
cmovo rax, rbx
mov rcx, rax
call fcn.1400087a4
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, 8
mul rdi
cmovo rax, rbx
mov rcx, rax
call fcn.1400087a4
mov rbp, rax
xor eax, eax
mov ebx, eax
sub r14, rbp
mov rsi, rbp
nop word [rax + rax]
mov qword [rsp + 0x38], rax
lea rcx, str..pipeinnocent
mov dword [rsp + 0x30], eax
xor r8d, r8d
mov dword [rsp + 0x28], r15d
mov r9d, 0xff
mov dword [rsp + 0x20], r15d
lea edx, [r8 + 3]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [r14 + rsi], rax
xor r9d, r9d
xor eax, eax
lea rcx, str..pipeinnocent
mov qword [rsp + 0x30], rax
mov edx, 0xc0000000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 3
lea r8d, [rax + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdx, qword [rsp + 0x40]
lea r9, [rsp + 0x50]
mov rcx, rax
mov qword [rsi], rax
mov r8d, r15d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400011e9
inc rbx
add rsi, 8
mov eax, 0
cmp rbx, rdi
jl 0x140001140
mov rax, qword [rsp + 0x48]
mov qword [r12], rax
xor eax, eax
mov qword [r13], rbp
jmp 0x140001202
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_writeFile_payloadMid__d
call fcn.140001010
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002230
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001db0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rax, qword [0x140022a30]
mov ebx, r9d
mov esi, dword [rsp + 0xd0]
mov r10, r8
xor r15d, r15d
mov qword [rsp + 0x58], rax
xor eax, eax
mov dword [rsp + 0x50], r15d
mov rbp, rdx
mov qword [rsp + 0x70], rax
mov r14, rcx
mov dword [rsp + 0x40], 1
mov rcx, qword [0x140022a38]
xorps xmm0, xmm0
xor r9d, r9d
mov dword [rsp + 0x48], esi
mov r8d, ebx
mov dword [rsp + 0x4c], r15d
mov rdx, r10
mov qword [rsp + 0x20], r15
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140001e3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140001f30
mov edx, 0x80
mov qword [rsp + 0xb8], rdi
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rdx - 0x7c]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x140001e71
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140001f28
movaps xmm0, xmmword [rsp + 0x40]
lea r8, [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
lea rdx, [rsp + 0x50]
mov qword [rax + 0x20], rbp
mov r9d, ebx
mov dword [rax + 0x28], ebx
mov eax, 0xc02
mov word [rdi], ax
mov dword [rdi + 4], 0x80
mov byte [rdi + 0x2c], 1
mov dword [rdi + 8], 1
mov qword [r14 + rsi*8], rdi
mov rcx, qword [0x140023c78]
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r15
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_BuildIoRingReadFile]
mov ebx, eax
test eax, eax
jne 0x140001f12
mov rcx, qword [0x140023c78]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SubmitIoRing]
mov ebx, eax
test eax, eax
jne 0x140001f12
mov rcx, qword [0x140023c78]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_PopIoRingCompletion]
mov ebx, eax
test eax, eax
jne 0x140001f12
mov ebx, dword [rsp + 0x68]
mov edx, 0x80
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, ebx
mov rdi, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002230
add rsp, 0x80
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002c24
Capabilities:
Parse pe header

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

Function at 0x1400094c8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400092c4
Function at 0x14000e920
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000e950
xor eax, eax
jmp 0x14000ea13
mov rbp, rbx
cmp word [rax], si
je 0x14000e975
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000e95c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000e958
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000e840
movsxd r14, eax
test eax, eax
jne 0x14000e9b3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000e949
mov rcx, r14
call fcn.14000af9c
mov rdi, rax
test rax, rax
jne 0x14000e9cc
xor ecx, ecx
call fcn.14000a324
jmp 0x14000e9a8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000e840
test eax, eax
jne 0x14000e9fd
mov rcx, rdi
call fcn.14000a324
jmp 0x14000ea07
xor ecx, ecx
call fcn.14000a324
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140012d3c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140012d52
mov al, 1
jmp 0x140012db2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140012d63
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140012db0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000f240
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140012db0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140012db0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140012db0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140012db2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140013df0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000cdd4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140013e7a
cmp byte [rbp - 0x21], r15b
je 0x140013e75
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140013eb0
call fcn.14000a574
test eax, eax
jne 0x140013e9c
cmp byte [rbp - 0x21], r15b
je 0x140013e94
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140013eb0
cmp byte [rbp - 0x21], r15b
je 0x140013ead
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000cf8c
test eax, eax
jne 0x140013f50
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000cdd4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140013eef
cmp byte [rbp - 0x21], r15b
je 0x140013f24
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140013f24
call fcn.14000a574
test eax, eax
jne 0x140013f10
cmp byte [rbp - 0x21], r15b
je 0x140013f09
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140013f24
cmp byte [rbp - 0x21], r15b
je 0x140013f21
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000cf8c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140013f50
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140013f53
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140013f61
mov rcx, rdi
call fcn.14000a324
cmp byte [rbp + 0x3f], r15b
je 0x140013f70
mov rcx, qword [rbp + 0x27]
call fcn.14000a324
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400164e0
Capabilities:
Parse pe header

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