joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18011a480
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, [0x1801258b0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180141cf0], rax
cmp qword [0x180141cf0], 0
je 0x18011a6a4
lea rdx, str.HidD_GetAttributes
mov rcx, qword [0x180141cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180141d00], rax
cmp qword [0x180141d00], 0
jne 0x18011a4d5
mov eax, 0xffffffff
jmp 0x18011a6ad
lea rdx, str.HidD_GetSerialNumberString
mov rcx, qword [0x180141cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180141d08], rax
cmp qword [0x180141d08], 0
jne 0x18011a504
mov eax, 0xffffffff
jmp 0x18011a6ad
lea rdx, str.HidD_GetManufacturerString
mov rcx, qword [0x180141cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180141d10], rax
cmp qword [0x180141d10], 0
jne 0x18011a533
mov eax, 0xffffffff
jmp 0x18011a6ad
lea rdx, str.HidD_GetProductString
mov rcx, qword [0x180141cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180141d18], rax
cmp qword [0x180141d18], 0
jne 0x18011a562
mov eax, 0xffffffff
jmp 0x18011a6ad
lea rdx, str.HidD_SetFeature
mov rcx, qword [0x180141cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180141d20], rax
cmp qword [0x180141d20], 0
jne 0x18011a591
mov eax, 0xffffffff
jmp 0x18011a6ad
lea rdx, str.HidD_GetFeature
mov rcx, qword [0x180141cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180141d28], rax
cmp qword [0x180141d28], 0
jne 0x18011a5c0
mov eax, 0xffffffff
jmp 0x18011a6ad
lea rdx, str.HidD_GetIndexedString
mov rcx, qword [0x180141cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180141d30], rax
cmp qword [0x180141d30], 0
jne 0x18011a5ef
mov eax, 0xffffffff
jmp 0x18011a6ad
lea rdx, [0x180125960]
mov rcx, qword [0x180141cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180141d38], rax
cmp qword [0x180141d38], 0
jne 0x18011a61e
mov eax, 0xffffffff
jmp 0x18011a6ad
lea rdx, str.HidD_FreePreparsedData
mov rcx, qword [0x180141cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180141d40], rax
cmp qword [0x180141d40], 0
jne 0x18011a64a
mov eax, 0xffffffff
jmp 0x18011a6ad
lea rdx, [0x180125990]
mov rcx, qword [0x180141cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180141d48], rax
cmp qword [0x180141d48], 0
jne 0x18011a676
mov eax, 0xffffffff
jmp 0x18011a6ad
lea rdx, [0x1801259a0]
mov rcx, qword [0x180141cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180141d50], rax
cmp qword [0x180141d50], 0
jne 0x18011a6a2
mov eax, 0xffffffff
jmp 0x18011a6ad
jmp 0x18011a6ab
mov eax, 0xffffffff
jmp 0x18011a6ad
xor eax, eax
add rsp, 0x28
ret
Function at 0x18011f6a8
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r9, rcx
mov eax, 0x5a4d
lea rdx, [0x180000000]
cmp word [0x180000000], ax
je 0x18011f6cf
xor eax, eax
mov r8d, dword [0x18000003c]
jmp 0x18011f6f1
movsxd r8, dword [0x18000003c]
xor eax, eax
cmp dword [r8 + rdx], 0x4550
jne 0x18011f6f1
mov r10d, 0x20b
cmp word [r8 + rdx + 0x18], r10w
sete al
test eax, eax
je 0x18011f753
sub r9, rdx
movsxd r10, r8d
add r10, rdx
xor edx, edx
movzx eax, word [r10 + 0x14]
lea rcx, [r10 + 0x18]
add rcx, rax
mov qword [rsp + 8], rcx
mov dword [rsp], edx
movzx eax, word [r10 + 6]
cmp edx, eax
jae 0x18011f739
mov r8d, dword [rcx + 0xc]
cmp r9, r8
jb 0x18011f731
mov eax, dword [rcx + 8]
add eax, r8d
cmp r9, rax
jb 0x18011f73b
inc edx
add rcx, 0x28
jmp 0x18011f70c
xor ecx, ecx
test rcx, rcx
jne 0x18011f744
xor eax, eax
jmp 0x18011f753
mov eax, dword [rcx + 0x24]
shr eax, 0x1f
not eax
and eax, 1
jmp 0x18011f753
add rsp, 0x18
ret
Function at 0x140d40058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140d401df
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 0x140d40089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d4006f
add dl, dl
jne 0x140d40096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d400f6
xor eax, eax
add dl, dl
jne 0x140d400a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d401ad
add dl, dl
jne 0x140d400b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d400c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d400d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d400dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d400ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d4007e
mov eax, 1
add dl, dl
jne 0x140d40106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d40113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d400fb
sub eax, ebx
mov ebx, 1
jne 0x140d4014c
mov ecx, 1
add dl, dl
jne 0x140d4012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d4013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d40123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d4007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d40168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d40175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d4015d
cmp eax, 0x7d00
jae 0x140d4019b
cmp eax, 0x500
jb 0x140d40196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d4007e
cmp eax, 0x7f
ja 0x140d4019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d4007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d401d2
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 0x140d4007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x7ff79de67110
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x7ff79de71008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x7ff79de671e3
cmp byte [rcx + 0x71], 0
je 0x7ff79de671e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x7ff79de671df
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 0x7ff79de671a4
sub eax, 1
je 0x7ff79de671a8
cmp eax, 2
jne 0x7ff79de671df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff79de6a270
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x7ff79de671d6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.ucrtbase.dll_fwrite]
cmp rdi, rax
jne 0x7ff79de671df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x7ff79de6718c
xor al, al
jmp 0x7ff79de6718c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff79de6a270
add rsp, 0x60
pop rbx
ret

Function at 0x7ff79de697ec
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, [0x7ff79de6c680]
mov r9d, 2
call qword [sym.imp.kernel32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.kernel32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x7ff79de69870
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x7ff79de6c580]
cmp byte [rcx + rax], 0
je 0x7ff79de69870
dec r8
sub rdx, 1
jne 0x7ff79de69856
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x7ff79de6ae2c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff79de6ae76
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff79de6ae76
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff79de6ae76
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff79de6ae76
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff79de6ae76
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x7ff79de6ae78
xor al, al
add rsp, 0x28
ret
Function at 0x180002950
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180002981
xor eax, eax
lea r8, [0x180001950]
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]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180002df0
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 0x180002e18
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 0x180002e3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180002e40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180002e99
test ecx, ecx
jle 0x180002e79
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 0x180002e99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180002e99
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 0x180002ec0
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 0x180002ee2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180002ef8
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 0x180002f14
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180002f16
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180002f52
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 0x180002fee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180002f8d
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 0x180002fce
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 0x180002fee
cmp rbx, rax
ja 0x180002fa0
test rbx, rbx
je 0x180002fee
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 0x180003410
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180015010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18000343d
xor eax, eax
jmp 0x18000359a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x180003468
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x180003468
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x18000359a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18000358d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1800034ab
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x1800034d6
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 0x180003592
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 0x180003545
sub eax, 1
je 0x180003545
cmp eax, 2
jne 0x18000358d
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 0x180003592
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180003573
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 0x18000358d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180003592
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180005ca0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180003aa0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180015010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180003b73
cmp byte [rcx + 0x71], 0
je 0x180003b73
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180003b6f
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 0x180003b34
sub eax, 1
je 0x180003b38
cmp eax, 2
jne 0x180003b6f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180005ca0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180003b66
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 0x180003b6f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180003b1c
xor al, al
jmp 0x180003b1c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180005ca0
add rsp, 0x60
pop rbx
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14006adc0]
mov dword [rax], 1
mov rax, qword [0x14006add0]
mov dword [rax], 1
mov rax, qword [0x14006ade0]
mov dword [rax], 1
mov rax, qword [0x14006adb0]
mov dword [rax], 1
mov rax, qword [0x14006ac30]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140005216
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x48], rax
lea rax, str.C:Userskira2.nimble_nim_nim_1.6.4lib_systemio.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.nimFrame_4
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x40], 8
lea rax, [0x140061800]
mov qword [rbp - 0x38], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x40], 9
lea rax, [0x140061800]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jge 0x140005355
mov qword [rbp - 0x40], 0x321
lea rax, str.C:Userskira2.nimble_nim_nim_1.6.4lib_systemio.nim
mov qword [rbp - 0x38], rax
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x28]
cmp rdx, rax
jb 0x1400052d7
mov rax, qword [rbp + 0x28]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
mov rax, qword [rbp - 8]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x20]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rbx, qword [rax]
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r8d, 0
mov rdx, rbx
mov rcx, rax
call sym.writeWindows__systemZio_205
mov qword [rbp - 0x40], 0xb
lea rax, [0x140061800]
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x58]
mov rax, qword [rbp - 8]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.nimAddInt_2
test al, al
je 0x140005348
call sym.raiseOverflow
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
jmp 0x140005295
nop
mov qword [rbp - 0x40], 0x327
lea rax, str.C:Userskira2.nimble_nim_nim_1.6.4lib_systemio.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x14], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x14006183e]
mov rcx, rax
call sym.fwrite
mov dword [rbp - 0x14], eax
mov qword [rbp - 0x40], 0x328
lea rax, str.C:Userskira2.nimble_nim_nim_1.6.4lib_systemio.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x18], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x18], eax
call sym.popFrame_4
nop
add rsp, 0x88
pop rbx
pop rbp
ret

Function at 0x140005bd6
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x20]
je 0x140005c37
mov rcx, qword [rbp + 0x10]
call sym.checkErr__systemZio_141
jmp 0x140005c38
nop
mov rax, qword [rbp - 8]
add rsp, 0x30
pop rbp
ret
Function at 0x140007244
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov dword [rbp - 0xc], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
cdqe
mov qword [rbp - 8], rax
mov rcx, qword [rbp + 0x10]
call sym.checkErr__systemZio_141
mov rax, qword [rbp - 8]
add rsp, 0x30
pop rbp
ret

Function at 0x14000919c
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 4], 0
cmp qword [rbp + 0x18], 0
je 0x1400091cb
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen_1
mov rdx, rax
jmp 0x1400091d0
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov dword [rbp - 4], eax
mov dword [rbp - 8], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 8], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400119f3
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp - 4], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov dword [rbp - 4], eax
mov dword [rbp - 8], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 8], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140015cd7
Capabilities:
Encode data using base64

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x10], 0
je 0x140015cff
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax]
jmp 0x140015d04
mov edx, 0
cmp qword [rbp + 0x18], 0
je 0x140015d14
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
jmp 0x140015d19
mov eax, 0
add rax, rdx
add rax, 1
mov rcx, rax
call sym.rawNewString
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rdx, qword [rbp + 0x10]
mov rcx, rax
call sym.appendString_1
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.appendString_1
mov rax, qword [rbp - 8]
lea rdx, [0x1400622b0]
mov rcx, rax
call sym.appendString_1
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.sysFatal__system_3113
nop