joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001280
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x180015228]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rax, qword [str.ShellDesktopSwitchEvent]
mov rdi, rcx
lea rcx, [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [0x180011e28]
mov esi, edx
mov qword [rcx + 8], rax
mov rax, qword [0x180011e30]
lea r9, [rsp + 0x50]
mov qword [rcx + 0x10], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1800012f2
test rbx, rbx
je 0x1800012fb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsi + rdi - 0x20]
mov rcx, rdi
call fcn.180001180
test eax, eax
jne 0x1800014ba
lea rdx, str.Application
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov rdi, rax
test rax, rax
je 0x1800014b6
lea rcx, str.msi.dll
lea rbx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, [rsp + 0x48]
mov rcx, rdi
mov qword [0x180016a78], rax
call qword [sym.imp.ADVAPI32.dll_GetOldestEventLogRecord]
xor r8d, r8d
lea r11, [rsp + 0x44]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x28], rax
lea edx, [r8 + 5]
mov rcx, rdi
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.ADVAPI32.dll_ReadEventLogA]
test eax, eax
je 0x1800014ad
xor esi, esi
nop dword [rax]
cmp dword [rsp + 0x40], esi
jbe 0x18000146f
nop word [rax + rax]
lea rcx, [rbx + 0x38]
lea rdx, str.MsiInstaller
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x180001458
cmp dword [rbx + 0x14], 0x3f6
jne 0x180001458
mov rdx, qword [0x180016a78]
mov r9d, 0x409
lea rax, [rsp + 0x270]
mov qword [rsp + 0x30], rsi
lea r8d, [r9 - 0x13]
mov ecx, 0x800
mov dword [rsp + 0x28], 0x200
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
movzx r11d, word [rbx + 0x18]
sub r11d, 1
je 0x18000144c
sub r11d, 1
je 0x180001443
sub r11d, 2
je 0x18000143a
sub r11d, 4
je 0x180001431
cmp r11d, 8
je 0x180001428
lea rcx, str.Unknown___n
jmp 0x180001453
lea rcx, str.EVENTLOG_AUDIT_FAILURE___n
jmp 0x180001453
lea rcx, str.EVENTLOG_AUDIT_SUCCESS___n
jmp 0x180001453
lea rcx, str.EVENTLOG_INFORMATION_TYPE___n
jmp 0x180001453
lea rcx, str.EVENTLOG_WARNING_TYPE___n
jmp 0x180001453
lea rcx, str.EVENTLOG_ERROR_TYPE___n
call fcn.180003134
mov ecx, dword [rsp + 0x40]
sub ecx, dword [rbx]
mov dword [rsp + 0x40], ecx
mov eax, dword [rbx]
add rbx, rax
test ecx, ecx
jne 0x1800013a0
lea rax, [rsp + 0x44]
xor r8d, r8d
lea r9, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
lea edx, [r8 + 5]
mov qword [rsp + 0x28], rax
mov rcx, rdi
lea rbx, [rsp + 0x70]
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.ADVAPI32.dll_ReadEventLogA]
test eax, eax
jne 0x180001390
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
xor eax, eax
jmp 0x1800014bf
mov eax, 1
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.180002dd0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800014f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x180015228]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov edi, r8d
mov rsi, rdx
call fcn.1800029f0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
call fcn.1800029a4
mov rcx, rax
call fcn.1800035e0
lea rcx, [0x180016a80]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x28]
call fcn.1800029f0
mov r11, qword [rsp + 0x28]
sub r11, qword [rsp + 0x20]
cmp r11, 2
jge 0x18000156f
xor ecx, ecx
call fcn.180003550
int3
mov qword [rsp + 0x188], rbp
xor ebp, ebp
mov qword [rsp + 0x190], r12
mov qword [rsp + 0x198], r13
mov rcx, rbx
mov eax, ebp
nop
mov byte [rcx], al
inc eax
inc rcx
cmp eax, 0x100
jl 0x180001590
mov r8d, ebp
lea r9, [rsp + 0x50]
nop word [rax + rax]
mov eax, r8d
inc r8d
inc r9
cdq
idiv edi
cmp r8d, 0x100
movsxd rax, edx
movzx ecx, byte [rax + rsi]
mov byte [r9 - 1], cl
jl 0x1800015b0
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea r10, [rsp + 0x50]
lea r11, [rsp + 0x51]
lea rdi, [rsp + 0x52]
lea rsi, [rsp + 0x53]
sub r10, rbx
sub r11, rbx
sub rdi, rbx
mov r12, rbx
sub rsi, rbx
mov r13d, 0x40
nop word [rax + rax]
movzx r9d, byte [r12]
movzx eax, byte [r10 + r12]
add r12, 4
add eax, ebp
add eax, r9d
cdq
movzx edx, dl
add eax, edx
movzx eax, al
sub eax, edx
movsxd r8, eax
movzx eax, byte [r11 + r12 - 4]
movzx ecx, byte [r8 + rbx]
add eax, r8d
mov byte [r12 - 4], cl
mov byte [r8 + rbx], r9b
movzx r9d, byte [r12 - 3]
add eax, r9d
cdq
movzx edx, dl
add eax, edx
movzx eax, al
sub eax, edx
movsxd r8, eax
movzx eax, byte [rdi + r12 - 4]
movzx ecx, byte [r8 + rbx]
add eax, r8d
mov byte [r12 - 3], cl
mov byte [r8 + rbx], r9b
movzx r9d, byte [r12 - 2]
add eax, r9d
cdq
movzx edx, dl
add eax, edx
movzx eax, al
sub eax, edx
movsxd r8, eax
movzx eax, byte [rsi + r12 - 4]
movzx ecx, byte [r8 + rbx]
add eax, r8d
mov byte [r12 - 2], cl
mov byte [r8 + rbx], r9b
movzx r9d, byte [r12 - 1]
add eax, r9d
cdq
movzx edx, dl
add eax, edx
movzx eax, al
sub eax, edx
sub r13, 1
movsxd rbp, eax
movzx ecx, byte [rbp + rbx]
mov byte [r12 - 1], cl
mov byte [rbp + rbx], r9b
jne 0x180001620
mov r13, qword [rsp + 0x198]
mov r12, qword [rsp + 0x190]
mov rbp, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180002dd0
add rsp, 0x160
pop rdi
pop rsi
pop rbx
ret
Function at 0x180003550
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.180007824
nop
cmp dword [0x180016bf0], 1
je 0x1800034fc
mov dword [0x180016bec], 1
mov byte [0x180016be8], r12b
test ebx, ebx
jne 0x1800034e8
mov rcx, qword [0x180018c48]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1800034d5
mov rcx, qword [0x180018c40]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x180003474
call fcn.1800064e0
cmp qword [rdi], rax
jne 0x180003474
jmp 0x18000345a
cmp rdi, rsi
jb 0x1800034d5
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1800064e0
mov qword [rdi], rax
call rbx
mov rcx, qword [0x180018c48]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x180018c40]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x1800034b3
cmp r13, rax
je 0x1800034d3
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x18000345a
lea rdx, [0x180011458]
lea rcx, [0x180011440]
call fcn.1800032a4
lea rdx, [0x180011468]
lea rcx, [0x180011460]
call fcn.1800032a4
nop
test r12d, r12d
je 0x18000350b
mov ecx, 8
call fcn.180007724
test r12d, r12d
jne 0x180003536
mov dword [0x180016bf0], 1
lea ecx, [r12 + 8]
call fcn.180007724
mov ecx, r15d
call fcn.180003238
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x1800033c4

Function at 0x18000355c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1800033c4
Function at 0x180006fd3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180015228]
jne 0x180002dea
rol rcx, 0x10
test cx, 0xffff
jne 0x180002de6
repz ret
ror rcx, 0x10
jmp 0x180006f2c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180016da0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x180016e98]
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 0x180006fb1
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, [0x180016da0]
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 0x180006fd3
mov rax, qword [rsp + 0x88]
mov qword [0x180016e98], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180016e38], rax
mov rax, qword [0x180016e98]
mov qword [0x180016d10], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180016e20], rax
mov dword [0x180016d00], 0xc0000409
mov dword [0x180016d04], 1
mov rax, qword [0x180015228]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180015230]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180016d98], eax
mov ecx, 1
call fcn.180009d70
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180012100]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180016d98], 0
jne 0x18000705a
mov ecx, 1
call fcn.180009d70
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 0x18000be78
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.1800064e0
xor ebx, ebx
mov rdi, rax
cmp qword [0x1800179a0], rbx
jne 0x18000bf7e
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x18000c053
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000c053
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800179a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800179a8], 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 [0x1800179b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1800179c0], rax
test rax, rax
je 0x18000bf75
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1800179b8], rax
jmp 0x18000bf85
mov rax, qword [0x1800179b8]
jmp 0x18000bf8c
mov rax, qword [0x1800179b8]
mov r11, qword [0x1800179c0]
cmp rax, rdi
je 0x18000bff4
cmp r11, rdi
je 0x18000bff4
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1800179c0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x18000bff4
test rax, rax
je 0x18000bff4
call rsi
test rax, rax
je 0x18000bfee
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18000bfee
test byte [rsp + 0x38], 1
jne 0x18000bff4
bts ebp, 0x15
jmp 0x18000c032
mov rcx, qword [0x1800179a8]
cmp rcx, rdi
je 0x18000c032
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18000c032
call rax
mov rbx, rax
test rax, rax
je 0x18000c032
mov rcx, qword [0x1800179b0]
cmp rcx, rdi
je 0x18000c032
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18000c032
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800179a0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18000c053
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x18000c055
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 0x140002890
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 0x1400028b8
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 0x1400028de
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400028e0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002939
test ecx, ecx
jle 0x140002919
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 0x140002939
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002939
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 0x140002960
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 0x140002982
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002998
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 0x1400029b4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400029b6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400029f2
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 0x140002a8e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002a2d
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 0x140002a6e
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 0x140002a8e
cmp rbx, rax
ja 0x140002a40
test rbx, rbx
je 0x140002a8e
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 0x140002ef0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002f1d
xor eax, eax
jmp 0x140003089
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002f57
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002f57
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 0x140003089
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000307c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002f9a
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 0x140002fc5
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 0x140003081
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 0x140003034
sub eax, 1
je 0x140003034
cmp eax, 2
jne 0x14000307c
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 0x140003081
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003062
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 0x14000307c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003081
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004500
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003520
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400035f3
cmp byte [rcx + 0x71], 0
je 0x1400035f3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400035ef
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 0x1400035b4
sub eax, 1
je 0x1400035b8
cmp eax, 2
jne 0x1400035ef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004500
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400035e6
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 0x1400035ef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000359c
xor al, al
jmp 0x14000359c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004500
add rsp, 0x60
pop rbx
ret

Function at 0x140004e80
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004eca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004eca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004eca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004eca
cmp dword [rcx + 0x84], 0xe
jbe 0x140004eca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004ecc
xor al, al
add rsp, 0x28
ret
Function at 0x1400a0120
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov qword [rsp + 8], 0
jmp 0x1400a014f
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 4
jae 0x1400a0193
mov rax, qword [rsp + 8]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp]
xor rcx, rax
mov rax, rcx
mov qword [rsp], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp]
imul rcx, rax
mov rax, rcx
mov qword [rsp], rax
jmp 0x1400a0142
mov rax, qword [rsp]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
add rsp, 0x28
ret
Function at 0x1400a47f0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret
Function at 0x1400af780
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x1400af7de
mov dl, 1
call fcn.1400a6420
mov rax, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1400a6420
mov eax, ebx
jmp 0x1400af822
cmp ebx, 2
ja 0x1400af820
mov r9, qword [rdi + 0x668]
lea rdx, [0x1400f7b30]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400af840
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x1401270c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
jne 0x1400af883
cmp qword [rcx + 0x678], 0
je 0x1400af960
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.1400a4bf0
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400af8b1
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x1400af8f8
cmp byte [rdi + 0x1597], 0
jne 0x1400af8f8
lea rdx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400af8e0
mov byte [rdi + 0x1597], 1
cmp byte [rdi + 0xf1e], 0
je 0x1400af958
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x1400af9b3
cmp qword [rdi + 0x718], 0
mov byte [rsp + rbx + 0x30], 0
je 0x1400af979
mov dl, 1
mov rcx, rdi
call fcn.1400a6420
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.1400a6420
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400e4260
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x668]
lea rcx, [0x1400f7b30]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1400af958
call fcn.1400e4784
int3