joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800069f4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rcx, str.8PU0THP1pTlUP9
call fcn.1800057ac
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call rax
lea rcx, str.qP_n0THP
call fcn.1800057ac
xor edi, edi
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x20], rdi
mov rcx, rbx
lea r8d, [rdi + 2]
call rax
mov eax, 0x5a4d
cmp word [rsp + 0x58], ax
je 0x180006a53
xor eax, eax
jmp 0x180006ae3
lea rcx, str.8PU0THP1pTlUP9
call fcn.1800057ac
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 0x3c]
call rax
lea rcx, str.qP_n0THP
call fcn.1800057ac
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rdi
mov r8d, 4
lea rdx, [rsp + 0x68]
mov rcx, rbx
call rax
lea rcx, str.8PU0THP1pTlUP9
call fcn.1800057ac
mov edx, dword [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call rax
lea rcx, str.qP_n0THP
call fcn.1800057ac
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rdi
mov r8d, 4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call rax
cmp dword [rsp + 0x30], 0x4550
sete dil
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180006fec
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2cf0]
mov eax, 0x2df0
call fcn.180010180
sub rsp, rax
mov rax, qword [0x18004c110]
xor rax, rsp
mov qword [rbp + 0x2ce8], rax
mov r14, r8
movzx ebx, dx
movzx edi, cx
xor edx, edx
mov r8d, 0x17e
lea rcx, [rsp + 0x32]
call fcn.1800110b0
xor esi, esi
lea rcx, [rbp + 0x2cb0]
xor edx, edx
mov dword [rsp + 0x20], esi
lea r15d, [rsi + 0x32]
mov r8d, r15d
call fcn.1800110b0
movzx eax, word [0x18004ea24]
mov edx, r15d
movzx ecx, bl
shl cx, 8
mov word [rsp + 0x30], ax
movzx eax, dil
or cx, ax
mov word [rsp + 0x32], cx
lea rcx, [rbp + 0x2cb0]
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x1800070ad
lea rcx, str.dPU7pvUjGl_SP
call fcn.1800057ac
lea rcx, [rbp + 0x2cb0]
call rax
test rax, rax
je 0x1800070ad
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rsp + 0x34], eax
lea rcx, str.FPUcn_XUP9vBlhp
mov dword [rsp + 0x20], 0x2c00
call fcn.1800057ac
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0xb0]
call rax
test eax, eax
jne 0x180007113
lea rbx, [rbp + 0xb0]
lea edi, [rax + 6]
lea rcx, [rbx + 0x198]
mov r8, rdi
lea rdx, [rsp + 0x38]
call fcn.1800118a0
test eax, eax
jne 0x1800070ff
mov rbx, qword [rbx]
test rbx, rbx
je 0x180007113
jmp 0x1800070dd
lea rdx, [rbx + 0x198]
mov r8, rdi
lea rcx, [rsp + 0x38]
call fcn.180010c60
lea rcx, str.FPUIpSXwUP9u_SPO
mov dword [rsp + 0x20], r15d
call fcn.1800057ac
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x3e]
call rax
lea rcx, [rbp + 8]
call fcn.180006178
mov r8, r14
lea rcx, [rbp - 0x5e]
mov rdx, r15
call fcn.180017dc0
mov r9d, 0x180
lea r8, [rsp + 0x30]
mov edx, 2
lea rcx, [0x180051000]
call fcn.180005354
test eax, eax
setne sil
mov eax, esi
mov rcx, qword [rbp + 0x2ce8]
xor rcx, rsp
call fcn.18000fa50
mov rbx, qword [rsp + 0x2e38]
add rsp, 0x2df0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180007a64
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1960]
mov eax, 0x1a60
call fcn.180010180
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1a98], rbx
mov qword [rsp + 0x1aa0], rsi
mov rax, qword [0x18004c110]
xor rax, rsp
mov qword [rbp + 0x1950], rax
mov rbx, rcx
mov r12d, 1
movzx esi, r12w
lea rdx, str.wlRlprl
lea rcx, [rsp + 0x40]
call fcn.180005648
nop
lea eax, [r12 + 0x6d]
cmp ax, word [rbx]
jne 0x180007b6d
lea rcx, [rbx + 2]
call fcn.180014f24
mov ebx, eax
lea rcx, str.bXPl19poPvv
call fcn.1800057ac
mov r8d, ebx
xor edx, edx
mov ecx, 0x100001
call rax
mov rbx, rax
test rax, rax
je 0x180007b63
and dword [rsp + 0x20], 0
lea rcx, str.FPUWgTUIpnP19poPvv
call fcn.1800057ac
lea rdx, [rsp + 0x20]
mov rcx, rbx
call rax
lea rcx, str.CP9STl_UP19poPvv
call fcn.1800057ac
mov edx, dword [rsp + 0x20]
mov rcx, rbx
call rax
test eax, eax
je 0x180007b4c
lea rcx, str.O_TU0p98TldHPbjePoU
call fcn.1800057ac
or edx, 0xffffffff
mov rcx, rbx
call rax
cmp rbx, 0xffffffffffffffff
je 0x180007b63
lea rcx, str.IHpvPE_lnHP
call fcn.1800057ac
mov rcx, rbx
call rax
mov edx, 2
jmp 0x180007cdd
lea r8, [rsp + 0x24]
mov edx, 0x1000
lea rcx, [rbp + 0x150]
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x180007b8f
mov edx, r12d
jmp 0x180007cdd
mov eax, dword [rsp + 0x24]
shr eax, 2
test eax, eax
je 0x180007cda
lea r15, [rbx + 2]
lea rdi, [rbp + 0x150]
mov r14d, eax
lea rcx, [rsp + 0x40]
call fcn.18000583c
mov rdx, rax
lea rcx, [rbp + 0x1150]
call fcn.180017e8c
lea rcx, str.bXPl19poPvv
call fcn.1800057ac
mov r8d, dword [rdi]
xor edx, edx
mov ecx, 0x410
call rax
mov rbx, rax
test rax, rax
je 0x180007c32
lea r9, [rsp + 0x28]
mov r8d, 8
lea rdx, [rsp + 0x30]
mov rcx, rax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x180007c1b
mov r9d, 0x400
lea r8, [rbp + 0x1150]
mov rdx, qword [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_K32GetModuleBaseNameW
cmp rbx, 0xffffffffffffffff
je 0x180007c32
lea rcx, str.IHpvPE_lnHP
call fcn.1800057ac
mov rcx, rbx
call rax
mov rdx, r15
lea rcx, [rbp + 0x1150]
call fcn.180017ea8
test eax, eax
jne 0x180007ccd
lea rcx, str.bXPl19poPvv
call fcn.1800057ac
mov r8d, dword [rdi]
xor edx, edx
mov ecx, 0x100001
call rax
mov rbx, rax
test rax, rax
je 0x180007ccd
and dword [rsp + 0x20], 0
lea rcx, str.FPUWgTUIpnP19poPvv
call fcn.1800057ac
lea rdx, [rsp + 0x20]
mov rcx, rbx
call rax
lea rcx, str.CP9STl_UP19poPvv
call fcn.1800057ac
mov edx, dword [rsp + 0x20]
mov rcx, rbx
call rax
test eax, eax
je 0x180007cb6
mov esi, 2
lea rcx, str.O_TU0p98TldHPbjePoU
call fcn.1800057ac
or edx, 0xffffffff
mov rcx, rbx
call rax
cmp rbx, 0xffffffffffffffff
je 0x180007ccd
lea rcx, str.IHpvPE_lnHP
call fcn.1800057ac
mov rcx, rbx
call rax
add rdi, 4
sub r14, r12
jne 0x180007bac
movzx edx, si
lea rcx, [0x180051000]
call fcn.180004a0c
mov ebx, eax
lea rcx, [rsp + 0x40]
call fcn.180005698
mov eax, ebx
mov rcx, qword [rbp + 0x1950]
xor rcx, rsp
call fcn.18000fa50
lea r11, [rsp + 0x1a60]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x180008130
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, str.I9P_UPC79P_n
call fcn.1800057ac
and qword [rsp + 0x28], 0
lea r8, [fcn.180008fb8]
and dword [rsp + 0x20], 0
mov r9, rbx
xor edx, edx
xor ecx, ecx
call rax
mov rbx, rax
test rax, rax
je 0x180008180
lea rcx, str.IHpvPE_lnHP
call fcn.1800057ac
mov rcx, rbx
call rax
mov edx, 2
jmp 0x180008185
mov edx, 1
lea rcx, [0x180051000]
add rsp, 0x30
pop rbx
jmp fcn.180004a0c

Function at 0x180008198
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, dword [0x18004fa5c]
mov rdx, rcx
lea rcx, [0x18004fa50]
mov r8d, 0x15a8
call fcn.180010c60
lea rcx, [0x18004facc]
mov dword [0x18004fa5c], ebx
call fcn.1800143a4
cmp rax, 3
jae 0x1800081e2
lea rcx, [0x180051040]
call fcn.18000583c
mov r8, rax
jmp 0x1800081e9
lea r8, [0x18004facc]
mov ebx, 0x400
lea rcx, [0x18004f230]
mov edx, ebx
call fcn.180017dc0
lea rcx, [0x1800502cc]
call fcn.1800143a4
cmp rax, 3
jae 0x180008227
lea rcx, str.FPUCPSX1_U7O
call fcn.1800057ac
lea rdx, [0x18004ea30]
mov ecx, ebx
call rax
jmp 0x180008267
lea r8, [0x1800502cc]
mov rdx, rbx
lea rcx, [0x18004ea30]
call fcn.180017dc0
lea rdx, [0x180029990]
lea rcx, [0x18004ea30]
call qword [sym.imp.SHLWAPI.dll_StrTrimW]
lea r8, [0x18002996c]
mov rdx, rbx
lea rcx, [0x18004ea30]
call fcn.180017d40
lea r8, [0x18004f230]
mov rdx, rbx
lea rcx, [0x18004facc]
call fcn.180017dc0
lea r8, [0x18004ea30]
mov rdx, rbx
lea rcx, [0x1800502cc]
call fcn.180017dc0
mov edx, 2
lea rcx, [0x180051000]
add rsp, 0x20
pop rbx
jmp fcn.180004a0c

Function at 0x180008668
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, str.8PU0THPcUU9TjwUPvO
call fcn.1800057ac
mov edx, dword [rdi + 0x1018]
lea rcx, [rdi + 0x800]
call rax
lea rcx, [0x180051000]
mov edx, 1
test eax, eax
je 0x1800086a5
mov edx, 2
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.180004a0c
Function at 0x18000a314
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x9d0]
sub rsp, 0xad0
mov rax, qword [0x18004c110]
xor rax, rsp
mov qword [rbp + 0x9c0], rax
mov rdi, r8
mov qword [rsp + 0x38], rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
xor edx, edx
lea rcx, [rbp + 0x3b0]
mov r8d, 0x208
call fcn.1800110b0
mov ebx, 1
test rdi, rdi
je 0x18000a390
mov rcx, rdi
call fcn.1800143a4
cmp rax, rbx
jne 0x18000a390
xor r9d, r9d
mov dword [rsp + 0x20], 4
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.18000ad00
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp + 0x3b0]
call fcn.180017e8c
lea rdx, [0x18002996c]
lea rcx, [rbp + 0x3b0]
call fcn.180017e28
mov rdx, rdi
lea rcx, [rbp + 0x3b0]
call fcn.180017e28
lea rdx, [0x18002a2d8]
lea rcx, [rbp + 0x3b0]
call fcn.180017e28
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18000a3f8
xor eax, eax
jmp 0x18000a58e
mov byte [rsp + 0x30], bl
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x18000a56b
lea rdx, [0x180029970]
lea rcx, [rsp + 0x7c]
call fcn.180017e54
test eax, eax
je 0x18000a4ac
lea rdx, [0x180029974]
lea rcx, [rsp + 0x7c]
call fcn.180017e54
test eax, eax
je 0x18000a4ac
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x208
call fcn.1800110b0
test byte [rsp + 0x50], 0x10
je 0x18000a4bd
mov rdx, rdi
lea rcx, [rbp + 0x1a0]
call fcn.180017e28
lea rdx, [0x18002996c]
lea rcx, [rbp + 0x1a0]
call fcn.180017e28
lea rdx, [rsp + 0x7c]
lea rcx, [rbp + 0x1a0]
call fcn.180017e28
mov rdx, qword [rsp + 0x38]
lea r8, [rbp + 0x1a0]
mov rcx, qword [rsp + 0x40]
call fcn.18000a314
test eax, eax
je 0x18000a3f1
mov al, byte [rsp + 0x30]
test al, al
je 0x18000a583
jmp 0x18000a3fc
xor edx, edx
lea rcx, [rbp + 0x5c0]
mov r8d, 0x400
call fcn.1800110b0
mov rdx, rdi
lea rcx, [rbp + 0x1a0]
call fcn.180017e8c
lea rdx, [0x18002996c]
lea rcx, [rbp + 0x1a0]
call fcn.180017e28
lea rdx, [rsp + 0x7c]
lea rcx, [rbp + 0x1a0]
call fcn.180017e28
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp + 0x5c0]
call fcn.180017e8c
lea rdx, [0x18002996c]
lea rcx, [rbp + 0x5c0]
call fcn.180017e28
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp + 0x5c0]
call fcn.180017e28
mov rcx, qword [rsp + 0x40]
lea r8, [rbp + 0x5c0]
xor r9d, r9d
mov dword [rsp + 0x20], 2
lea rdx, [rbp + 0x1a0]
call fcn.18000ad00
test eax, eax
jne 0x18000a3f1
jmp 0x18000a4ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x18000a581
xor al, al
mov byte [rsp + 0x30], al
jmp 0x18000a4b0
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rbp + 0x9c0]
xor rcx, rsp
call fcn.18000fa50
mov rbx, qword [rsp + 0xb08]
add rsp, 0xad0
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000b4e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r11, rdx
mov r9d, ecx
test rdx, rdx
jne 0x18000b4f9
xor eax, eax
jmp 0x18000b56d
lea rdi, [0x180029b60]
not r9d
cmp r8, 8
jb 0x18000b542
mov r10, r8
shr r10, 3
imul rax, r10, 0xfffffffffffffff8
add r8, rax
mov ebx, 8
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
inc r11
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
sub rbx, 1
jne 0x18000b51c
sub r10, 1
jne 0x18000b517
test r8, r8
je 0x18000b567
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
inc r11
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
sub r8, 1
jne 0x18000b547
not r9d
mov eax, r9d
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x18000c9bc
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

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
movsxd r14, edx
mov rsi, r8
lea r8, str.bad_pack_level
mov rbx, rcx
lea eax, [r14 - 1]
cmp eax, 7
setbe dl
call fcn.18000a5b0
xor edi, edi
mov dword [rbx + 0x6afc0], edi
cmp dword [rbx + 0x6afb8], edi
jne 0x18000ca18
mov dword [rbx + 0x6afc0], 1
mov dword [rbx + 0x6afb8], 0x10000
lea rcx, [rbx + 0x4afb8]
mov dword [rbx + 0x6afb4], edi
xor edx, edx
mov r8d, 0x1fffc
call fcn.1800110b0
lea rdx, [0x180029af0]
mov ebp, 2
movzx eax, word [rdx + r14*8 + 2]
mov dword [rbx + 0x6afe0], eax
movzx eax, word [rdx + r14*8]
mov dword [rbx + 0x6afe4], eax
movzx eax, word [rdx + r14*8 + 4]
mov dword [rbx + 0x6afe8], eax
movzx eax, word [rdx + r14*8 + 6]
mov dword [rbx + 0x6afdc], eax
cmp r14d, ebp
jg 0x18000ca78
or word [rsi], 4
jmp 0x18000ca81
cmp r14d, 8
jl 0x18000ca81
or word [rsi], bp
lea rsi, [rbx + 0x1afb8]
mov dword [rbx + 0x6afcc], edi
mov rdx, rsi
mov dword [rbx + 0x6afbc], edi
mov r8d, 0x10000
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_recv]
mov dword [rbx + 0x6afd8], eax
lea ecx, [rax - 1]
cmp ecx, 0xfffffffd
ja 0x18000caeb
mov dword [rbx + 0x6afd4], edi
cmp eax, 0x106
jae 0x18000cac6
mov rcx, rbx
call fcn.18000c0bc
mov dword [rbx + 0x6afc4], edi
movzx eax, byte [rsi]
inc rsi
shl edi, 5
xor edi, eax
and edi, 0x7fff
mov dword [rbx + 0x6afc4], edi
sub rbp, 1
jne 0x18000cacc
jmp 0x18000caf6
mov qword [rbx + 0x6afd4], 1
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 0x18000db80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x78], 0
mov rbp, rdx
mov rdi, rcx
je 0x18000dbe9
mov eax, dword [rcx + 0x84]
mov esi, dword [rcx + 0x80]
cmp eax, esi
jae 0x18000dc2a
sub esi, eax
mov edx, eax
cmp esi, r8d
cmova esi, r8d
add rdx, qword [rcx + 0x78]
mov r8d, esi
mov rcx, rbp
call fcn.180010c60
mov ecx, dword [rdi + 0x60]
mov rdx, rbp
add dword [rdi + 0x84], esi
add dword [rdi + 0x5c], esi
mov r8d, esi
call fcn.18000b4e0
mov dword [rdi + 0x60], eax
mov eax, esi
jmp 0x18000dc2c
mov rcx, qword [rcx + 0x68]
test rcx, rcx
je 0x18000dc23
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000dc2a
mov ebx, dword [rsp + 0x40]
mov rdx, rbp
add dword [rdi + 0x5c], ebx
mov r8d, ebx
mov ecx, dword [rdi + 0x60]
call fcn.18000b4e0
mov dword [rdi + 0x60], eax
mov eax, ebx
jmp 0x18000dc2c
mov dword [rdi + 0x14], 0x1000000
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x18000e1b4
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
cmp qword [rcx + 0x20], 0
mov r14, rdx
mov edi, r8d
mov rbx, rcx
je 0x18000e29c
mov esi, dword [rcx + 0x28]
mov eax, dword [rcx + 0x2c]
add esi, edi
cmp esi, eax
jb 0x18000e283
add eax, eax
cmp eax, esi
cmova esi, eax
and qword [r11 - 0x20], 0
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
or rcx, 0xffffffffffffffff
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbp, rax
test rax, rax
jne 0x18000e225
mov eax, 0x300
jmp 0x18000e2cc
movsxd rax, esi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0xf001f
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
test rax, rax
jne 0x18000e254
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000e21b
mov r8d, dword [rbx + 0x2c]
mov rcx, rax
mov rdx, qword [rbx + 0x20]
call fcn.180010c60
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbx + 0x2c], esi
mov qword [rbx + 0x20], r15
mov qword [rbx + 8], rbp
mov ecx, dword [rbx + 0x28]
mov r8, rdi
add rcx, qword [rbx + 0x20]
mov rdx, r14
call fcn.180010c60
add dword [rbx + 0x28], edi
mov eax, edi
jmp 0x18000e2cc
mov rcx, qword [rcx]
test rcx, rcx
je 0x18000e2c3
and dword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x50]
jmp 0x18000e2cc
mov dword [rbx + 0x14], 0x1000000
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x18000f8fc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rcx, str.8PUAl7_lnHPnWgoPXUTpl0THUP9
mov rdi, r8
mov ebx, edx
call fcn.1800057ac
lea rcx, [0x180005984]
call rax
lea rcx, str.8PUW99p96pnP
call fcn.1800057ac
mov ecx, 0x8003
call rax
cmp ebx, 1
jne 0x18000f966
mov rdx, rdi
lea rcx, [0x180051260]
call fcn.180017e8c
and qword [rsp + 0x28], 0
lea r8, [0x18000f678]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x18000fcf0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x18000fd81
movsxd rax, dword [0x18000003c]
lea rdx, [0x180000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x18000fd81
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000fd81
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 0x18000fd65
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x18000fd5f
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x18000fd67
add rdx, 0x28
jmp 0x18000fd44
xor edx, edx
test rdx, rdx
jne 0x18000fd70
xor al, al
jmp 0x18000fd87
test dword [rdx + 0x24], 0x80000000
je 0x18000fd7d
xor al, al
jmp 0x18000fd87
mov al, 1
jmp 0x18000fd87
xor al, al
jmp 0x18000fd87
add rsp, 0x18
ret
Function at 0x180002750
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x180002778
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x18000279e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1800027a0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1800027f9
test ecx, ecx
jle 0x1800027d9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1800027f9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1800027f9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x180002820
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180002842
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180002858
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180002874
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180002876
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800028b2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18000294e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1800028ed
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x18000292e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x18000294e
cmp rbx, rax
ja 0x180002900
test rbx, rbx
je 0x18000294e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x180002db0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800bd040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180002ddd
xor eax, eax
jmp 0x180002f49
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180002e17
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180002e17
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x180002f49
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180002f3c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180002e5a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180002e85
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180002f41
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180002ef4
sub eax, 1
je 0x180002ef4
cmp eax, 2
jne 0x180002f3c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180002f41
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180002f22
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x180002f3c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180002f41
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180077760
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret