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

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1800bf55a
xor eax, eax
jmp 0x1800bf640
cmp qword [rcx + 0x68], 0
je 0x1800bf56b
call fcn.1800068f0
jmp 0x1800bf640
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1800bf582
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800bf584
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800bf5b6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1800f19f0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1800bf63a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1800bf5ed
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1800bf616
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1800d22f0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1800bf63a
cmp rsi, rbx
ja 0x1800bf5f4
test rsi, rsi
je 0x1800bf63a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1800d22f0
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1800cd594
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1800c1020
sub rsp, rax
mov rax, qword [0x1801300c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800d9614
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800cd5e3
mov rax, rbp
jmp 0x1800cd6eb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x22b0f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800d9b18
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x22b0f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800cd6e7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800cd6e7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800d9b18
test rax, rax
js 0x1800cd6e7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800cd6e7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800cd6d9
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800cd6d9
cmp byte [rcx], 0xd
jne 0x1800cd6bf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800cd6ce
cmp byte [rcx + 1], 0xa
jne 0x1800cd6ce
inc rcx
jmp 0x1800cd6ce
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1304f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800cd6a1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800cd6eb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800c0060
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800d2764
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1800d279b
call fcn.1800ca424
mov dword [rax], 0x16
call fcn.1800ca844
xor eax, eax
jmp 0x1800d2829
mov rdx, r9
mov rcx, r8
call fcn.1800d2700
mov rbx, rax
test rax, rax
je 0x1800d2826
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1800d262c]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1800d2813
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800ca398
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1800d27fa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1800d2809
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1800d9158
jmp 0x1800d2826
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800d2823
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800d4fc8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1800d5037
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800d5037
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800d5037
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800d5037
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800d5037
cmp dword [rcx + 0x84], 0xe
jbe 0x1800d5037
cmp dword [rcx + 0xf8], 0
je 0x1800d5037
mov ecx, ebx
call fcn.1800d50e8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1800d4ec4
nop
cmp dword [rbp + 0x20], 0
je 0x1800d5085
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800d5090
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800d4fc8
Function at 0x1800d9bc4
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, [0x18022b0f0]
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 0x1800d9c1b
cmp word [rdx], r13w
jne 0x1800d9c1b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800d9c20
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800d9d45
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800d9d66
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800d9c59
mov rdx, r9
mov word [rbx], cx
jmp 0x1800d9c80
cmp r9, r8
jae 0x1800d9c90
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 0x1800d9c3a
jmp 0x1800d9d45
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 0x1800d9d3a
cmp dword [rsp + 0x80], esi
je 0x1800d9d3a
lea r8, [0x18022b0f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800d9d12
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800d9ce2
mov word [rbx], r13w
jmp 0x1800d9d42
mov ecx, 0xd
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 0x1800d9cef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800d9d42
cmp word [rsp + 0x70], r13w
jne 0x1800d9d1f
cmp rbx, r14
je 0x1800d9cdc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800d9b20
cmp word [rsp + 0x70], r13w
je 0x1800d9d45
mov ecx, 0xd
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, [0x18022b0f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800d9d3f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800d9d45
Function at 0x1800dd400
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800dd416
mov al, 1
jmp 0x1800dd476
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800dd427
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800dd474
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800e5c68
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800dd474
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800dd474
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800dd474
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800dd476
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800de428
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x1800de489
test byte [rbx + 6], 0xf
jne 0x1800de47c
xor edi, edi
cmp word [rbx + 4], di
jne 0x1800de47c
cmp word [rbx + 2], di
jne 0x1800de47c
cmp word [rbx], di
jne 0x1800de47c
lea esi, [rdi + 1]
jmp 0x1800de481
mov esi, 2
movzx eax, si
jmp 0x1800de681
xor edi, edi
test cx, cx
jne 0x1800de4a4
mov rcx, rbx
call fcn.1800e83b4
movzx ecx, ax
cmp di, ax
jl 0x1800de67e
movsx edx, cx
test esi, esi
jle 0x1800de4d4
sub ebp, edx
cmp ebp, esi
jg 0x1800de4d4
movsd xmm0, qword [0x180100640]
cmp word [rbx + 6], di
jge 0x1800de4c6
xorps xmm0, xmmword [0x180114c60]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x1800de681
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x1800de501
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x1800de681
movzx r15d, r11w
lea ebp, [rsi - 1]
and r11w, 0xf
mov r13d, 0x8000
mov r12d, 0x10
and r15w, r13w
or r11w, r12w
add ebp, edx
cmp ebp, 0xffffffcb
jl 0x1800de673
test ebp, ebp
jns 0x1800de673
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x1800de596
movzx edx, word [rbx + 4]
mov eax, 0xfff0
movzx r8d, word [rbx + 2]
sub ax, bp
shr ax, 4
add ax, si
movzx ecx, ax
movzx eax, cx
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], r8w
movzx r8d, dx
movzx edx, r11w
mov r11d, edi
sub rcx, rsi
jne 0x1800de568
mov word [rbx + 4], dx
mov word [rbx + 2], r8w
neg bp
je 0x1800de615
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x1800de62b
jne 0x1800de64a
test byte [rbx], sil
je 0x1800de64a
add word [rbx], si
jne 0x1800de64a
add word [rbx + 2], si
jne 0x1800de64a
add word [rbx + 4], si
jne 0x1800de64a
add r11w, si
mov word [rbx + 6], r11w
jmp 0x1800de4f9
cmp r11w, r15w
jne 0x1800de4f9
cmp word [rbx + 4], di
jne 0x1800de4f9
cmp word [rbx + 2], di
jne 0x1800de4f9
movzx eax, word [rbx]
neg ax
sbb ax, ax
jmp 0x1800de681
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800e2170
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 0x1800e21a0
xor eax, eax
jmp 0x1800e2263
mov rbp, rbx
cmp word [rax], si
je 0x1800e21c5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800e21ac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800e21a8
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.1800e0888
movsxd r14, eax
test eax, eax
jne 0x1800e2203
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800e2199
mov rcx, r14
call fcn.1800dc340
mov rdi, rax
test rax, rax
jne 0x1800e221c
xor ecx, ecx
call fcn.1800d9158
jmp 0x1800e21f8
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.1800e0888
test eax, eax
jne 0x1800e224d
mov rcx, rdi
call fcn.1800d9158
jmp 0x1800e2257
xor ecx, ecx
call fcn.1800d9158
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 0x1800e517c
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.1800d748c
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 0x1800e521d
cmp ebx, dword [rsp + 0x30]
je 0x1800e5216
test esi, esi
je 0x1800e5216
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800e51f1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800e51fe
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800e51db
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800e5202
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800e521f
mov eax, 1
jmp 0x1800e521f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800e9cf8
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.1800d9b20
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800d9b20
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800e9e48
cmp rax, 0xffffffffffffffff
je 0x1800e9e48
xor edi, edi
test rbp, rbp
jle 0x1800e9df3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800d6ee4
mov rbx, rax
test rax, rax
jne 0x1800e9d80
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800e9de9
mov edx, 0x8000
mov ecx, r14d
call fcn.1800e9b7c
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.1800dbc34
cmp eax, 0xffffffff
je 0x1800e9dc9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800e9d90
mov edx, r15d
mov ecx, r14d
call fcn.1800e9b7c
jmp 0x1800e9de9
cmp byte [rsi + 0x38], dil
je 0x1800e9de0
cmp dword [rsi + 0x34], 5
jne 0x1800e9de0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800e9de9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800d9158
jmp 0x1800e9e5c
jns 0x1800e9e5c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800d9b20
cmp rax, 0xffffffffffffffff
jne 0x1800e9e14
cmp byte [rsi + 0x30], dil
je 0x1800e9e5c
mov edi, dword [rsi + 0x2c]
jmp 0x1800e9e5c
mov ecx, r14d
call fcn.1800e5c68
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800e9e5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1800e9e5c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800e9e55
mov eax, dword [rsi + 0x2c]
jmp 0x1800e9e5a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800d9b20
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 0x1800ea540
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800ea568
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800ea568
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400026f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140346cb0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x30], r8b
mov rdi, rdx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x40
mov rdx, rdi
mov rbx, rax
lea rax, [rsp + 0x34]
lea r8d, [r9 - 0x3f]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea r8, [rsp + 0x30]
mov r9d, 1
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x18], 0x10
jb 0x140002787
mov rcx, qword [rsi]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsi + 0x10], 0
mov eax, edi
mov byte [rsi], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400104e0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400027c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140346cb0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], r8w
mov rdi, rdx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x40
mov rdx, rdi
mov rbx, rax
lea rax, [rsp + 0x34]
lea r8d, [r9 - 0x3e]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea r8, [rsp + 0x30]
mov r9d, 2
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x18], 0x10
jb 0x140002858
mov rcx, qword [rsi]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsi + 0x10], 0
mov eax, edi
mov byte [rsi], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400104e0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002890
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140346cb0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], r8d
mov rdi, rdx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x40
mov rdx, rdi
mov rbx, rax
lea rax, [rsp + 0x30]
lea r8d, [r9 - 0x3c]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea r8, [rsp + 0x34]
mov r9d, 4
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x18], 0x10
jb 0x140002927
mov rcx, qword [rsi]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsi + 0x10], 0
mov eax, edi
mov byte [rsi], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400104e0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x140002960
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140346cb0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
movss dword [rsp + 0x34], xmm2
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x40
mov rdx, rdi
mov rbx, rax
lea rax, [rsp + 0x30]
lea r8d, [r9 - 0x3c]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea r8, [rsp + 0x34]
mov r9d, 4
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x18], 0x10
jb 0x1400029f8
mov rcx, qword [rsi]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsi + 0x10], 0
mov eax, edi
mov byte [rsi], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400104e0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140346cb0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
movsd qword [rsp + 0x38], xmm2
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x40
mov rdx, rdi
mov rbx, rax
lea rax, [rsp + 0x30]
lea r8d, [r9 - 0x38]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea r8, [rsp + 0x38]
mov r9d, 8
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x18], 0x10
jb 0x140002ac8
mov rcx, qword [rsi]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsi + 0x10], 0
mov eax, edi
mov byte [rsi], 0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400104e0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140002b00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140346cb0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r8
mov rdi, rdx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x40
mov rdx, rdi
mov rbx, rax
lea rax, [rsp + 0x30]
lea r8d, [r9 - 0x38]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea r8, [rsp + 0x38]
mov r9d, 8
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x18], 0x10
jb 0x140002b97
mov rcx, qword [rsi]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsi + 0x10], 0
mov eax, edi
mov byte [rsi], 0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400104e0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret