joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001255c
Capabilities:
Extract resource via kernel32 functions

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
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1800125c4
call fcn.18000a9ec
mov r8d, pe_nt_image_headers64
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1800125c4
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1800125e6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.180011f6c
mov esi, eax
test rdi, rdi
je 0x1800125e4
test rbx, rbx
je 0x1800125e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x180012dfc
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xa0], 0
jne 0x180012e3a
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x180012eee
call fcn.180009e6c
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x180012e59
mov ecx, 0x80004005
call fcn.180001ec0
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x40]
mov rcx, rdi
call fcn.18002b410
test eax, eax
je 0x180012ec1
cmp eax, 0xc
je 0x180012ebb
cmp eax, 0x16
je 0x180012eb5
cmp eax, 0x22
je 0x180012eb5
cmp eax, 0x50
je 0x180012ec1
call fcn.180008f08
int3
call fcn.180008f08
int3
call fcn.180008ec0
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x180012eec
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18002ab2c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x18002a9a0

Function at 0x18002c983
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18005ac70]
jne 0x1800296aa
rol rcx, 0x10
test cx, 0xffff
jne 0x1800296a6
repz ret
ror rcx, 0x10
jmp 0x18002c8dc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180060290]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x180060388]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18002c961
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180060290]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18002c983
mov rax, qword [rsp + 0x88]
mov qword [0x180060388], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180060328], rax
mov rax, qword [0x180060388]
mov qword [0x180060200], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180060310], rax
mov dword [0x1800601f0], 0xc0000409
mov dword [0x1800601f4], 1
mov rax, qword [0x18005ac70]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18005ac78]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180060288], eax
mov ecx, 1
call fcn.1800347ac
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800497a0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180060288], 0
jne 0x18002ca0a
mov ecx, 1
call fcn.1800347ac
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x18003582c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.18002ca30
xor ebx, ebx
mov rdi, rax
cmp qword [0x180060fd8], rbx
jne 0x180035932
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180035a07
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180035a07
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x18004b228]
mov rcx, rsi
mov qword [0x180060fd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x18004b210]
mov rcx, rsi
mov qword [0x180060fe0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x180060fe8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x180060ff8], rax
test rax, rax
je 0x180035929
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x180060ff0], rax
jmp 0x180035939
mov rax, qword [0x180060ff0]
jmp 0x180035940
mov rax, qword [0x180060ff0]
mov r11, qword [0x180060ff8]
cmp rax, rdi
je 0x1800359a8
cmp r11, rdi
je 0x1800359a8
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x180060ff8]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1800359a8
test rax, rax
je 0x1800359a8
call rsi
test rax, rax
je 0x1800359a2
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1800359a2
test byte [rsp + 0x38], 1
jne 0x1800359a8
bts ebp, 0x15
jmp 0x1800359e6
mov rcx, qword [0x180060fe0]
cmp rcx, rdi
je 0x1800359e6
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1800359e6
call rax
mov rbx, rax
test rax, rax
je 0x1800359e6
mov rcx, qword [0x180060fe8]
cmp rcx, rdi
je 0x1800359e6
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1800359e6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180060fd8]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180035a07
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180035a09
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400010af
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x140069fd4
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14006a061
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14006a061
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006a061
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14006a048
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14006a042
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14006a04a
add rdx, 0x28
jmp 0x14006a027
xor edx, edx
test rdx, rdx
jne 0x14006a053
xor al, al
jmp 0x14006a067
cmp dword [rdx + 0x24], 0
jge 0x14006a05d
xor al, al
jmp 0x14006a067
mov al, 1
jmp 0x14006a067
xor al, al
jmp 0x14006a067
add rsp, 0x18
ret

Function at 0x140001104
Capabilities:
Terminate process

Disassembly:
jmp 0x14006a940
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140001136
Capabilities:
Terminate process

Disassembly:
jmp 0x140069b88
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.1400011db
test al, al
je 0x140069a53
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.1400011b3
mov bl, al
mov ecx, dword [0x140127170]
cmp ecx, 1
je 0x140069a5e
test ecx, ecx
jne 0x140069989
mov dword [0x140127170], 1
lea rdx, [0x14006f660]
lea rcx, [0x14006f330]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x14006996a
mov eax, 0xff
jmp 0x140069a43
lea rdx, [0x14006f220]
lea rcx, [section..rdata]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x140127170], 2
jmp 0x140069991
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.14000119f
call fcn.140001154
mov rbx, rax
cmp qword [rax], 0
je 0x1400699c4
mov rcx, rax
call fcn.1400010af
test al, al
je 0x1400699c4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x14012b020]
call fcn.140001177
mov rbx, rax
cmp qword [rax], 0
je 0x1400699e6
mov rcx, rax
call fcn.1400010af
test al, al
je 0x1400699e6
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov rdi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rbx, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call fcn.140001131
mov ebx, eax
call fcn.14000113b
test al, al
je 0x140069a68
test sil, sil
jne 0x140069a1d
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.1400010a5
mov eax, ebx
jmp 0x140069a43
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.1400011a9
nop
mov ecx, 7
call fcn.1400011a9
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
int3
sub rsp, 0x28
call fcn.140001145
add rsp, 0x28
jmp 0x1400698fc

Function at 0x14000113b
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x14006a588
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006a5d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006a5d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006a5d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006a5d2
cmp dword [rcx + 0x84], 0xe
jbe 0x14006a5d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14006a5d4
xor al, al
add rsp, 0x28
ret
Function at 0x140002970
Capabilities:
Create process on windows
Self delete

Disassembly:
sub rsp, 0x168
mov rax, qword [0x140040058]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x30]
call fcn.140002b80
lea rcx, [rsp + 0x30]
call fcn.140003a70
nop
lea rcx, [rsp + 0x30]
call fcn.1400039f0
lea rdx, str.timeout__t_2
lea rcx, [rsp + 0x40]
call fcn.140005ac0
mov rcx, rax
call fcn.140004b80
lea rdx, str.attrib__h__s_.exe
lea rcx, [rsp + 0x40]
call fcn.140005ac0
mov rcx, rax
call fcn.140004b80
lea rdx, str.del_.exe__q__s__f
lea rcx, [rsp + 0x40]
call fcn.140005ac0
mov rcx, rax
call fcn.140004b80
lea rdx, str.attrib__h__s___userprofile_AppDataLocalLowMicrosoftiexplorekey.txt_
lea rcx, [rsp + 0x40]
call fcn.140005ac0
mov rcx, rax
call fcn.140004b80
lea rdx, str.del___userprofile_AppDataLocalLowMicrosoftiexplorekey.txt___q__s__f
lea rcx, [rsp + 0x40]
call fcn.140005ac0
mov rcx, rax
call fcn.140004b80
lea rdx, str.del__0__q__s__f
lea rcx, [rsp + 0x40]
call fcn.140005ac0
mov rcx, rax
call fcn.140004b80
lea rcx, [rsp + 0x30]
call fcn.1400039a0
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, str.del.bat
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
call fcn.140010884
int3
Function at 0x140003f10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x140003fa8
test r8, r8
jle 0x140003fa0
nop word [rax + rax]
mov rcx, rdi
call fcn.1400055b0
test rax, rax
jle 0x140003f7e
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.14000c060
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x140003f98
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140003fa0
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x140003f40
sub r14, rbx
mov rax, r14
jmp 0x140004026
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], r15
mov r9, qword [rax]
test r9, r9
je 0x140003fc1
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003fc3
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x14000401b
test ecx, ecx
jle 0x140003ffc
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.14000c060
mov rax, qword [rdi + 0x58]
add rbp, rsi
sub r14, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x14000401b
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000401b
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.140011abc
sub r14, rax
mov r15, qword [rsp + 0x40]
sub rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140004040
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140004062
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400040dc
mov rdi, r14
mov rcx, rbx
call fcn.1400055d0
test rax, rax
jle 0x1400040b4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14000c060
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400040cc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400040d4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140004076
sub r14, rdi
jmp 0x1400041bf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400040f3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400040f5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004127
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14000c060
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400041bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004162
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
cmp rbp, 0xfff
jbe 0x14000419d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14001252c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400041bc
cmp rbp, rax
ja 0x140004170
test rbp, rbp
je 0x1400041bc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14001252c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x1400045e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140040058]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000460d
xor eax, eax
jmp 0x140004753
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004647
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004647
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 0x140004753
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140004746
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000468a
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 0x140004699
movsx ecx, dil
jmp 0x1400046ed
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x140004707
sub eax, 1
je 0x140004707
cmp eax, 2
jne 0x140004746
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.1400108a8
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000474b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004734
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.140011abc
cmp rsi, rax
jne 0x140004746
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14000474b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000a190
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140008ae8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x140040058]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov edi, 0xffff
xor r14d, r14d
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x140008b2c
movzx eax, r14w
jmp 0x140008c61
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140008b68
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x140008b68
lea ecx, [r9 - 1]
mov dword [rax], ecx
movzx eax, si
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x140008c61
cmp qword [rcx + 0x80], r14
je 0x140008c5e
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140008ba6
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140008bcf
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.14001331c
cmp ax, di
je 0x140008c5e
movzx edi, si
jmp 0x140008c5e
lea r8, [rbp + 0xf]
mov word [rbp + 7], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp + 9]
lea r8, [rbp + 0x3f]
mov qword [rsp + 0x30], r8
lea r8, [rbp + 0x1f]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], r8
lea r8, [rbp + 7]
call qword [0x14002c370]
test eax, eax
je 0x140008c24
sub eax, 1
je 0x140008c24
cmp eax, 2
jne 0x140008c5e
movzx ecx, word [rbp + 7]
jmp 0x140008bb2
mov r14, qword [rbp + 0xf]
lea rax, [rbp + 0x1f]
sub r14, rax
je 0x140008c4e
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 0x1f]
mov r8, r14
mov edx, 1
call fcn.140011abc
cmp r14, rax
jne 0x140008c5e
lea rax, [rbp + 7]
mov byte [rbx + 0x72], 1
cmp qword [rbp + 0x17], rax
cmovne di, si
movzx eax, di
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14000a190
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14000ae54
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140010717
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010717
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010717
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010717
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010717
cmp dword [rcx + 0x84], 0xe
jbe 0x140010717
cmp dword [rcx + 0xf8], 0
je 0x140010717
mov ecx, ebx
call fcn.1400107b8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400105a8
cmp dword [rbp + 0x20], 0
je 0x140010764
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001076c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400106b0