joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004fb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14000b0b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14000b0b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140005020
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14020c0a4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x1400051b0
mov rax, qword [0x14020c0a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14000506c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x1400050f5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140005050
mov rcx, rdi
call fcn.140005ec0
test rax, rax
mov r12, rax
je 0x140005202
mov rax, qword [0x14020c0a8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140006000
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14020c0a8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400051e5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400050ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140005160
add dword [0x14020c0a4], 1
cmp ebx, 8
jae 0x140005121
test bl, 4
jne 0x1400051c0
test ebx, ebx
je 0x140005116
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x1400051d4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140005116
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14000513a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x14020c0a8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400050ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004fb0
xor esi, esi
jmp 0x140005077
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140005116
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140005116
mov rax, qword [0x14020c0a8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140004fb0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140004fb0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x1400057d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14020c100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14020c0e0]
test rbx, rbx
je 0x140005824
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000581b
test rsi, rsi
je 0x14000581b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140005800
lea rcx, [0x14020c100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140005a50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140005cf0
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x14020c148]
test eax, eax
mov rdi, rcx
mov rsi, rdx
je 0x140005d80
test r8, r8
je 0x140005d31
lea rax, [0x14020cc30]
cmp r8, rax
je 0x140005d31
lea rdx, str..._.._src_mingw_w64_mingw_w64_crt_crt_tls_atexit.c
mov r8d, 0x46
lea rcx, str._dso__dso____dso_handle
call sub.msvcrt.dll__assert
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
test rax, rax
mov rbx, rax
je 0x140005d80
mov qword [rax], rdi
mov ecx, dword [0x140208460]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x140208460]
mov rdx, rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140005cf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140005cf0
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x14020c148]
test eax, eax
mov rdi, rcx
mov rsi, rdx
je 0x140005d80
test r8, r8
je 0x140005d31
lea rax, [0x14020cc30]
cmp r8, rax
je 0x140005d31
lea rdx, str..._.._src_mingw_w64_mingw_w64_crt_crt_tls_atexit.c
mov r8d, 0x46
lea rcx, str._dso__dso____dso_handle
call sub.msvcrt.dll__assert
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
test rax, rax
mov rbx, rax
je 0x140005d80
mov qword [rax], rdi
mov ecx, dword [0x140208460]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x140208460]
mov rdx, rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x140005ec0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140209b40]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140005f2f
mov rcx, r9
call fcn.140005d90
test eax, eax
je 0x140005f2f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x140005f2d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140005f24
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140005f2f
add rdx, 0x28
cmp rdx, r9
jne 0x140005f10
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x1400062b0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x14020c1e0], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x14020c1e8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140006300
lea rdx, [0x1400061c0]
mov ecx, eax
mov dword [0x14020c1d8], eax
call fcn.14000b660
test eax, eax
jne 0x140006308
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400062f7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x140006310
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140209ae0]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140006348
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400063b0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x1400063c0
mov esi, dword [0x14020c1d8]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140006430
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140006478
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140006337
mov rcx, rbx
call fcn.140006210
mov qword [rsi + r12*8 + 8], rax
jmp 0x140006337
call fcn.140006210
mov qword [rbx + 0x10], rax
jmp 0x140006337
mov r10d, dword [rsi]
test r10d, r10d
je 0x1400064da
mov r9d, dword [0x140208470]
test r9d, r9d
je 0x140006508
lock add dword [0x14020c1e0], 1
jne 0x14000653c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x1400064e7
mov eax, dword [rsi]
test eax, eax
je 0x140006351
lock sub dword [0x14020c1e0], 1
js 0x140006351
mov rcx, qword [0x14020c1e8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140006351
lea rcx, [r12 + 0x21]
mov edx, 8
call sub.msvcrt.dll_calloc
lea rdi, [r12 + 0x20]
test rax, rax
mov rsi, rax
je 0x140006563
mov qword [rax], rdi
mov ecx, dword [0x14020c1d8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14000638b
call r13
jmp 0x14000638b
lea rdi, [rbp + rbp]
mov rcx, rsi
lea rax, [r12 + 0x20]
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
test rax, rax
mov rsi, rax
je 0x140006563
mov qword [rax], rdi
lea rcx, [rax + rbp*8 + 8]
sub rdi, rbp
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x140006453
call fcn.1400062b0
mov dword [0x140208470], 1
mov edx, dword [rsi]
test edx, edx
jne 0x1400063dc
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140006351
mov rax, qword [0x14020c1d0]
lea r12, [rax + 1]
mov qword [0x14020c1d0], r12
mov qword [rbx + 0x10], r12
jmp 0x1400063f7
lock add dword [0x140208474], 1
je 0x1400064c1
mov r8d, dword [0x140208470]
lea rdi, [0x140208470]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
test r8d, r8d
jne 0x1400064d0
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140006530
jmp 0x1400064d0
mov rcx, qword [0x14020c1e8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400063ea
lock sub dword [0x14020c1e0], 1
jmp 0x1400063ea
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x140006580
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14000658a
mov qword [rcx + 8], r8
test r9, r9
je 0x140006594
cmp qword [rcx], rdx
je 0x140006598
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x1805aba03
Capabilities:
Encode data using xor

Disassembly:
add r11, 0xc
push 0xffffffffc40bfaad
xor ebx, ebx
test r9, r9
lea rsp, [rsp + 0x10]
je 0x180577295
mov edx, 0x170b05b5
shr dx, 0x68
push rsi
lea rdx, [0x180582ac0]
movzx esi, byte [rbp + riz]
xor esi, ebx
push 0xffffffffe581373e
and esi, 0xff
shr word [rsp], 0xc5
mov esi, dword [rdx + rsi*4]
shr ebx, 8
xor ebx, esi
neg dword [rsp + 1]
inc rbp
xor ebx, 0xcc04fa1f
dec r9
lea rsp, [rsp + 8]
jne 0x180577248
mov esi, 0x40191403
push rsi
mov rsi, qword [rsp + rsi - 0x401913fb]
lea rsp, [rsp + 0x10]
push 0xffffffff861d8d30
not word [rsp + 5]
not ebx
jmp 0x180599555
lea rsp, [rsp + 0x10]
jmp 0x1805932ff
push 0xffffffff89b2b390
mov dword [r11], ebx
not word [rsp + 4]
jmp 0x18057c52f
jmp 0x18057721b
Function at 0x1400d7f80
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
lea r8, [0x140004d80]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov edx, 0x64
mov dword [rsp + 0x28], 1
mov r8d, edx
mov dword [rsp + 0x20], 0x1f4
mov r9d, 0x35c
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_MoveWindow]
mov r9d, 2
mov r8b, 0xf0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
call fcn.140018d90
int3

Function at 0x140019e60
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 case.default.0x140019e81
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 0x140019eae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140019eb0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140019f09
test ecx, ecx
jle 0x140019ee9
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 0x140019f09
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140019f09
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
dec dword [rbp + rcx*4 + 5]
mov gs, ecx
add al, byte [rax]
lea rdx, str._PPN
lea rcx, [rsp + 0x20]
call 0x14004e4d0
lea rcx, [rsp + 0x20]
call 0x140046080
lea r8, [rsp + 0x20]
mov edx, 0xb
lea rcx, [0x14006f8b0]
call qword [0x1400930b8]
mov ecx, 1
call 0x1400257c0
lea r8, [0x14006f8a8]
lea rdx, [0x14006f8f8]
lea rcx, [rsp + 0x20]
call 0x14004e4d0
lea rcx, [rsp + 0x20]
call 0x140046080
lea r8, [rsp + 0x20]
mov edx, 0xb
lea rcx, str.PortBat_Location
call qword [0x1400930b8]
lea r8, [rsp + 0x20]
mov edx, 0xb
lea rcx, [0x14006f950]
call qword [0x1400930b8]
mov ecx, 2
call 0x1400257c0
lea r8, [0x14006f948]
lea rdx, [0x14006f9a0]
lea rcx, [rsp + 0x20]
call 0x14004e4d0
lea rcx, [rsp + 0x20]
call 0x140046080
lea r8, [rsp + 0x20]
mov edx, 0xb
lea rcx, str.ManuDate_
call qword [0x1400930b8]
lea r8, [rsp + 0x20]
mov edx, 0xb
lea rcx, str.PortBat_Device_Name
call qword [0x1400930b8]
mov ecx, 2
call 0x1400257c0
lea r8, [0x14006f9a4]
lea rdx, [0x14006fa50]
add al, byte [rax]
Function at 0x140019f30
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 0x140019f52
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140019f61
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 0x140019f84
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140019f86
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140019fc2
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 0x14001a05e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140019ffd
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 0x14001a03e
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 0x14001a05e
cmp rbx, rax
ja 0x14001a010
test rbx, rbx
je 0x14001a05e
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
add eax, 0x2e931
lea rdx, [0x14006f7b8]
lea rcx, [rsp + 0x20]
call 0x14004e4d0
lea rcx, [rsp + 0x20]
call 0x140046080
lea r8, [rsp + 0x20]
mov edx, 0xb
lea rcx, str._s____String____Read_Write_Processor_part_number_in_Type_4.________r_n
call qword [0x1400930b8]
mov ecx, 1
call 0x1400257c0
dec dword [rbp + rcx*4 + 5]
mov gs, ecx
add al, byte [rax]
Function at 0x14001a4c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140024040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001a4ed
xor eax, eax
jmp 0x14001a659
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001a527
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14001a527
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 0x14001a659
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001a64c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001a56a
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 0x14001a595
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 0x14001a651
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 0x14001a604
sub eax, 1
je 0x14001a604
cmp eax, 2
jne 0x14001a64c
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 0x14001a651
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14001a632
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 0x14001a64c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14001a651
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001bc50
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001a800
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140024040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001a8d3
cmp byte [rcx + 0x71], 0
je 0x14001a8d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001a8cf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001a894
sub eax, 1
je 0x14001a898
cmp eax, 2
jne 0x14001a8cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001bc50
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001a8c6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14001a8cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001a87c
xor al, al
jmp 0x14001a87c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001bc50
add rsp, 0x60
pop rbx
ret

Function at 0x14001c814
Capabilities:
Parse pe header

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

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x415266
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004311e0
xorps xmm15, xmm15
mov r14, qword [0x007302f0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x41512b
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x415140
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
nop
test rbx, rbx
jbe 0x415165
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x415179
cmp rbx, 0x1000
jae 0x415135
nop dword [rax]
jmp 0x4151e9
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x41518d
xor edx, edx
jmp 0x4151e0
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004311e0
xorps xmm15, xmm15
mov r14, qword [0x007302f0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop dword [rax]
test dl, dl
jne 0x41516f
jmp 0x415154
call fcn.00460880
xorps xmm15, xmm15
mov r14, qword [0x007302f0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00435780
lea rax, [0x00536277]
mov ebx, 0x18
call fcn.00436080
mov rax, qword [rsp + 0x38]
call fcn.00435d80
lea rax, [0x0053634f]
mov ebx, 0x19
call fcn.00436080
mov rax, qword [rsp + 0x30]
nop
call fcn.00435d80
call fcn.004359e0
call fcn.00435800
lea rax, [0x00538995]
mov ebx, 0x21
nop dword [rax + rax]
call fcn.00433e40
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045cce0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.004150c0