joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bbcb0
Capabilities:
Parse credit card information
Resolve function by parsing pe exports

Disassembly:
mov rax, qword [rcx + 0xb8]
cmp qword [rcx + 0xb0], rax
je 0x4bbcf0
mov eax, dword [rcx + 0x88]
test eax, eax
je 0x4bbcd5
cmp eax, 2
je 0x4bbce0
cmp eax, 1
je 0x4bbce5
ret
jmp method.std::__detail::_Scanner_char_._M_scan_normal__
jmp method.std::__detail::_Scanner_char_._M_scan_in_bracket__
jmp method.std::__detail::_Scanner_char_._M_scan_in_brace__
mov dword [rcx + 0x90], 0x1b
ret
Function at 0x4bc280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 0xb0]
mov r8, qword [rcx + 0xb8]
mov rbx, rcx
cmp rax, r8
je 0x4bc498
mov r9, qword [rbx + 0xc0]
lea rcx, [rax + 1]
mov qword [rbx + 0xb0], rcx
movzx r10d, byte [rax]
mov r9, qword [r9 + 0x30]
test byte [r9 + r10*2], 8
jne 0x4bc350
cmp r10b, 0x2c
je 0x4bc330
test dword [rbx + 0x8c], 0x120
je 0x4bc460
cmp r8, rcx
je 0x4bc487
cmp r10b, 0x5c
jne 0x4bc487
cmp byte [rax + 1], 0x7d
jne 0x4bc487
mov dword [rbx + 0x88], 0
add rax, 2
mov dword [rbx + 0x90], 0xd
mov qword [rbx + 0xb0], rax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov dword [rbx + 0x90], 0x19
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r8, qword [rbx + 0xd0]
movsx edx, r10b
mov dword [rbx + 0x90], 0x1a
mov r9d, 1
lea r12, [rbx + 0xc8]
mov dword [rsp + 0x20], edx
xor edx, edx
mov rcx, r12
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_replace_aux_unsigned_long_long__unsigned_long_long__unsigned_long_long__char_
mov rax, qword [rbx + 0xb0]
cmp rax, qword [rbx + 0xb8]
je 0x4bc31d
mov rdx, qword [rbx + 0xc0]
movzx ecx, byte [rax]
mov rdx, qword [rdx + 0x30]
test byte [rdx + rcx*2], 8
je 0x4bc31d
lea r13, [rbx + 0xd8]
jmp 0x4bc3f4
mov byte [rax + rsi], bpl
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xd0], rdi
mov byte [rax + rsi + 1], 0
mov rax, qword [rbx + 0xb0]
cmp rax, qword [rbx + 0xb8]
je 0x4bc31d
mov rdx, qword [rbx + 0xc0]
movzx ecx, byte [rax]
mov rdx, qword [rdx + 0x30]
test byte [rdx + rcx*2], 8
je 0x4bc31d
lea rdx, [rax + 1]
mov rsi, qword [rbx + 0xd0]
mov qword [rbx + 0xb0], rdx
movzx ebp, byte [rax]
mov rax, qword [rbx + 0xc8]
lea rdi, [rsi + 1]
cmp rax, r13
je 0x4bc450
mov rdx, qword [rbx + 0xd8]
cmp rdi, rdx
jbe 0x4bc3b1
mov qword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r12
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_mutate_unsigned_long_long__unsigned_long_long__char_const__unsigned_long_long_
mov rax, qword [rbx + 0xc8]
jmp 0x4bc3b1
mov edx, 0xf
jmp 0x4bc420
cmp r10b, 0x7d
jne 0x4bc487
mov dword [rbx + 0x88], 0
mov dword [rbx + 0x90], 0xd
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [0x005171a0]
mov ecx, 7
call method.std.__throw_regex_error_std::regex_constants::error_type__char_const_
lea rdx, [0x00517168]
mov ecx, 6
call method.std.__throw_regex_error_std::regex_constants::error_type__char_const_
nop
nop
nop
nop
nop
nop
nop
Function at 0x4bcb90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0xb0]
mov rbx, rcx
mov rcx, qword [rcx + 0xb8]
cmp rax, rcx
je 0x4bcd5c
lea r8, [rax + 1]
mov qword [rbx + 0xb0], r8
movsx edx, byte [rax]
cmp dl, 0x2d
je 0x4bccd0
cmp dl, 0x5b
je 0x4bcc20
cmp dl, 0x5d
je 0x4bcc80
cmp dl, 0x5c
jne 0x4bcc92
test byte [rbx + 0x8c], 0x90
je 0x4bcc92
mov rcx, qword [rbx + 0xf0]
mov rax, qword [rbx + 0xe8]
add rcx, rbx
test al, 1
je 0x4bcc07
mov rdx, qword [rcx]
mov rax, qword [rdx + rax - 1]
call rax
mov byte [rbx + 0xa8], 0
add rsp, 0x30
pop rbx
ret
cmp rcx, r8
je 0x4bcd6d
movzx edx, byte [rax + 1]
cmp dl, 0x2e
je 0x4bcd11
cmp dl, 0x3a
je 0x4bcd50
cmp dl, 0x3d
je 0x4bcd40
mov r8, qword [rbx + 0xd0]
mov r9d, 1
xor edx, edx
mov dword [rbx + 0x90], 1
lea rcx, [rbx + 0xc8]
mov dword [rsp + 0x20], 0x5b
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_replace_aux_unsigned_long_long__unsigned_long_long__unsigned_long_long__char_
jmp 0x4bccbb
test byte [rbx + 0x8c], 0x10
jne 0x4bccf0
cmp byte [rbx + 0xa8], 0
je 0x4bccf0
mov r8, qword [rbx + 0xd0]
mov dword [rsp + 0x20], edx
xor edx, edx
mov r9d, 1
mov dword [rbx + 0x90], 1
lea rcx, [rbx + 0xc8]
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_replace_aux_unsigned_long_long__unsigned_long_long__unsigned_long_long__char_
mov byte [rbx + 0xa8], 0
add rsp, 0x30
pop rbx
ret
mov dword [rbx + 0x90], 0x1c
mov byte [rbx + 0xa8], 0
add rsp, 0x30
pop rbx
ret
mov dword [rbx + 0x90], 0xb
mov dword [rbx + 0x88], 0
mov byte [rbx + 0xa8], 0
add rsp, 0x30
pop rbx
ret
mov dword [rbx + 0x90], 0x10
lea rdx, [rax + 2]
mov rcx, rbx
mov qword [rbx + 0xb0], rdx
movsx edx, byte [rax + 1]
call method.std::__detail::_Scanner_char_._M_eat_class_char_
mov byte [rbx + 0xa8], 0
add rsp, 0x30
pop rbx
ret
mov dword [rbx + 0x90], 0x11
jmp 0x4bcd1b
mov dword [rbx + 0x90], 0xf
jmp 0x4bcd1b
lea rdx, [0x005171f8]
mov ecx, 4
call method.std.__throw_regex_error_std::regex_constants::error_type__char_const_
lea rdx, [0x00517230]
mov ecx, 4
call method.std.__throw_regex_error_std::regex_constants::error_type__char_const_
nop
nop
Function at 0x4bcd80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0xb0]
cmp rax, qword [rcx + 0xb8]
mov rbx, rcx
je 0x4bcee3
movsx ebp, byte [rax]
mov rdi, qword [rcx + 0xc0]
movzx r12d, bpl
mov esi, ebp
movsx edx, byte [rdi + r12 + 0x139]
test dl, dl
jne 0x4bcde5
mov rax, qword [rdi]
lea rcx, [method.std::ctype_char_.do_narrow_char__char__const]
mov edx, ebp
mov r9, qword [rax + 0x40]
mov eax, ebp
cmp r9, rcx
jne 0x4bced2
test al, al
je 0x4bcde5
mov byte [rdi + r12 + 0x139], al
mov rcx, qword [rbx + 0xa0]
call sym.strchr
test rax, rax
je 0x4bcdfb
cmp byte [rax], 0
jne 0x4bce70
mov eax, dword [rbx + 0x8c]
test al, 0x80
jne 0x4bcec0
test eax, 0x120
mov r8, qword [rbx + 0xd0]
lea rcx, [rbx + 0xc8]
je 0x4bce39
mov rdx, qword [rbx + 0xc0]
movzx eax, sil
mov rdx, qword [rdx + 0x30]
test byte [rdx + rax*2], 8
je 0x4bce39
cmp sil, 0x30
jne 0x4bcea0
mov dword [rsp + 0x20], ebp
mov r9d, 1
xor edx, edx
mov dword [rbx + 0x90], 1
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_replace_aux_unsigned_long_long__unsigned_long_long__unsigned_long_long__char_
add qword [rbx + 0xb0], 1
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8, qword [rbx + 0xd0]
mov dword [rsp + 0x20], ebp
mov r9d, 1
xor edx, edx
mov dword [rbx + 0x90], 1
lea rcx, [rbx + 0xc8]
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_replace_aux_unsigned_long_long__unsigned_long_long__unsigned_long_long__char_
jmp 0x4bce54
mov dword [rsp + 0x20], ebp
mov r9d, 1
xor edx, edx
mov dword [rbx + 0x90], 4
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_replace_aux_unsigned_long_long__unsigned_long_long__unsigned_long_long__char_
jmp 0x4bce54
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp method.std::__detail::_Scanner_char_._M_eat_escape_awk__
xor r8d, r8d
mov rcx, rdi
call r9
movsx edx, al
jmp 0x4bcdd9
lea rdx, [0x00512408]
mov ecx, 2
call method.std.__throw_regex_error_std::regex_constants::error_type__char_const_
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x4d5270
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1800012b0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r10, rax
mov eax, 0x5a4d
cmp word [r10], ax
jne 0x18000135e
movsxd rcx, dword [r10 + 0x3c]
add rcx, r10
cmp dword [rcx], 0x4550
jne 0x18000135e
movzx ebx, word [rcx + 0x14]
xor edx, edx
movzx r11d, word [rcx + 6]
add rbx, rcx
test r11d, r11d
je 0x18000135e
lea rdi, str..text
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rax + rax*4]
xor eax, eax
lea r9, [rcx*8]
lea r8, [r9 + rbx]
nop word [rax + rax]
movzx ecx, byte [rdi + rax]
inc rax
cmp cl, byte [r8 + rax + 0x17]
jne 0x180001357
cmp rax, 6
jne 0x180001330
mov eax, dword [rbx + r9 + 0x20]
mov ebx, dword [rbx + r9 + 0x24]
add rbx, r10
mov dword [rsp + 0x30], eax
jmp 0x180001360
inc edx
cmp edx, r11d
jl 0x180001310
xor ebx, ebx
mov esi, dword [rsp + 0x30]
lea rdx, [0x18000b0c4]
add rsi, rbx
mov r9d, 7
mov r8, rsi
mov rcx, rbx
call fcn.1800011d0
test rax, rax
je 0x1800013a4
mov edx, dword [rax + 0x15]
mov dword [rdx + rax + 0x1a], 0
mov edx, 0xefff
mov rax, qword gs:[0x30]
and word [rax + 0x17ee], dx
mov rbp, qword gs:[0x60]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x18000149b
lea rdx, str.RtlLeaveCriticalSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x110]
call rax
lea rdx, str.LdrFastFailInLoaderCallout
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180001401
mov ecx, dword [rax + 0x18]
mov dword [rcx + rax + 0x1d], 2
jmp 0x180001429
mov r9d, 0xa
lea rdx, [0x18000b0b8]
mov r8, rsi
mov rcx, rbx
call fcn.1800011d0
test rax, rax
je 0x180001429
mov ecx, dword [rax + 5]
mov dword [rcx + rax + 9], 2
lea rdx, str.LdrGetDllFullName
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x18000149b
mov r9d, 7
lea r8, [rax + 0x80]
lea rdx, [0x18000b0b0]
mov rcx, rax
call fcn.1800011d0
mov rcx, rax
test rax, rax
jne 0x180001482
lea r9d, [rax + 7]
mov rcx, rbx
lea r8, [rbx + 0x80]
lea rdx, [0x18000b0a8]
call fcn.1800011d0
mov rcx, rax
test rcx, rcx
je 0x18000149b
mov eax, dword [rcx + 3]
mov rcx, qword [rax + rcx + 7]
mov rax, qword [rcx + 0x98]
add qword [rax + 0x38], 2
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800020c0
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x18000b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov qword [r11 - 0x28], rdx
xor r14d, r14d
mov dword [r11 - 0x30], r14d
mov qword [r11 - 0x48], r14
mov qword [r11 - 0x50], r14
lea rax, [r11 - 0x30]
mov qword [r11 - 0x58], rax
xor r9d, r9d
xor edx, edx
lea r8d, [r14 + 1]
mov rcx, qword [rsi]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov ebp, dword [rsp + 0x48]
mov qword [rdi], r14
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
test rbp, rbp
je 0x180002191
cmp rbp, 0x1000
jb 0x180002169
lea rcx, [rbp + 0x27]
cmp rcx, rbp
jbe 0x180002224
call fcn.1800057d4
test rax, rax
je 0x180002162
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
jmp 0x180002174
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbp
call fcn.1800057d4
mov rcx, rax
mov qword [rdi], rcx
lea rax, [rcx + rbp]
mov qword [rdi + 0x10], rax
lea rbx, [rcx + rbp]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rdi + 8], rbx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rdi]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, qword [rsi]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x1800021f8
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1800021e8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000221d
mov rcx, r8
call fcn.1800057a0
mov qword [rsi], r14
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r14
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180005780
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.180001110
nop
int3
Function at 0x180004260
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 0x180004288
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 0x1800042ae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1800042b0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180004309
test ecx, ecx
jle 0x1800042e9
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 0x180004309
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180004309
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 0x180004330
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 0x180004352
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180004368
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 0x180004384
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180004386
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800043c2
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 0x18000445e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1800043fd
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 0x18000443e
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 0x18000445e
cmp rbx, rax
ja 0x180004410
test rbx, rbx
je 0x18000445e
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 0x1800048c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18000b040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1800048ed
xor eax, eax
jmp 0x180004a59
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180004927
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180004927
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 0x180004a59
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180004a4c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000496a
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 0x180004995
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 0x180004a51
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 0x180004a04
sub eax, 1
je 0x180004a04
cmp eax, 2
jne 0x180004a4c
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 0x180004a51
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180004a32
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 0x180004a4c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180004a51
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180005780
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180004da0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18000b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180004e73
cmp byte [rcx + 0x71], 0
je 0x180004e73
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180004e6f
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 0x180004e34
sub eax, 1
je 0x180004e38
cmp eax, 2
jne 0x180004e6f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180005780
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180004e66
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 0x180004e6f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180004e1c
xor al, al
jmp 0x180004e1c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180005780
add rsp, 0x60
pop rbx
ret
Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

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

Disassembly:
mov rax, qword [0x14000c008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000c008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000c008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000c008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret

Function at 0x1401313d8
Capabilities:
Encrypt data using aes mixcolumns step

Disassembly:
lea rsp, [rsp + 0x10]
je 0x140139c17
lea rdx, [0x140164268]
movzx ecx, byte [rdi]
xor ecx, eax
call fcn.1401485b7
push 0x492e3c98
not eax
mov dword [r8], eax
jmp 0x14016509f

Function at 0x1401485b7
Capabilities:
Encrypt data using aes mixcolumns step

Disassembly:
mov qword [rsp], 0xffffffffec0d1fba
shr eax, 8
xor eax, ecx
inc rdi
sal qword [rsp], 0x93
xor eax, 0x4da55a0c
mov qword [rsp], 0xfffffffff6082f1e
dec rbp
push 0xffffffffe28963ae
lea rsp, [rsp + 0x10]
jne 0x1401313ea
and ecx, 0xff
mov ecx, dword [rdx + rcx*4]
jmp 0x140139be2