joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027c84
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b594
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b594
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027dd4
cmp rax, 0xffffffffffffffff
je 0x140027dd4
xor edi, edi
test rbp, rbp
jle 0x140027d7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dea8
mov rbx, rax
test rax, rax
jne 0x140027d0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027d75
mov edx, 0x8000
mov ecx, r14d
call fcn.140018f00
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c270
cmp eax, 0xffffffff
je 0x140027d55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d1c
mov edx, r15d
mov ecx, r14d
call fcn.140018f00
jmp 0x140027d75
cmp byte [rsi + 0x38], dil
je 0x140027d6c
cmp dword [rsi + 0x34], 5
jne 0x140027d6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027d75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019c58
jmp 0x140027de8
jns 0x140027de8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b594
cmp rax, 0xffffffffffffffff
jne 0x140027da0
cmp byte [rsi + 0x30], dil
je 0x140027de8
mov edi, dword [rsi + 0x2c]
jmp 0x140027de8
mov ecx, r14d
call fcn.140017a2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027de8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027de8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027de1
mov eax, dword [rsi + 0x2c]
jmp 0x140027de6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b594
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140028ee0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028f08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028f08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140006708
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x140007088]
test rax, rax
je 0x140006752
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006752
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006752
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006752
cmp dword [rcx + 0x84], 0xe
jbe 0x140006752
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006754
xor al, al
add rsp, 0x28
ret
Function at 0x1400111e0
Capabilities:
Terminate process

Disassembly:
jmp 0x140014f30
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001125d
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012d40
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012d60
xor al, al
jmp 0x140012de1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012d73
xor al, al
jmp 0x140012de1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012d9d
xor al, al
jmp 0x140012de1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012db1
xor al, al
jmp 0x140012de1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012dc3
xor al, al
jmp 0x140012de1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012ddf
xor al, al
jmp 0x140012de1
mov al, 1
add rsp, 0x38
ret
Function at 0x1800010c9
Capabilities:
Delete file

Disassembly:
push word [rsp + 1]
mov qword [rsp + 4], rbx
lea rsp, [rsp + 2]
jmp 0x1800010fa

Function at 0x1800010df
Capabilities:
Delete file

Disassembly:
nop
add rsp, 0x28
ret
call fcn.1800010c9
lea rsp, [rsp + 0x10]
nop
call fcn.18000128c
js 0x180001119
mov esi, 0xc5ca28d9
je 0x18000115f
mov ds, word [rcx]
lea rsp, [rsp + 0x10]
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_atanf]
pushfq
push qword [rsp + 7]
jmp 0x1800010e4
push rsi
mov word [rsp], ax
lea rsp, [rsp + 2]
jmp 0x1800010c3
fstp qword [rsi + rdi*4 + 0x3c]
sal byte [rbp - 0x74766fbc], cl
jmp 0x18000947c

Function at 0x180001260
Capabilities:
Delete file

Disassembly:
jmp 0x180001270
jmp 0x180001152
bswap rcx
jmp 0x1800011b6
sub rsp, 0x1d
lea rsp, [rsp + 0x18]
sub rsp, 0x1d
jmp 0x180001211
lea rcx, str.netbios.dll
pushfq
lea rsp, [rsp + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1800011a0
mov qword [rsp + 1], r15
lea rsp, [rsp + 2]
lea rsp, [rsp + 0x20]
cmp eax, 0
call fcn.1800011e1
lea rsp, [rsp + 8]
jne 0x18000113c
jmp 0x180001126
push rcx
call fcn.1800012b1
push word [rsp + 3]
lea rsp, [rsp + 6]
jmp 0x18000129a
lea rsp, [rsp + 8]
mov qword [rsp + 0x70], rax
jmp 0x18000124a

Function at 0x180002100
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x40], r8
mov dword [rsp + 0x3c], edx
mov qword [rsp + 0x30], rcx
mov eax, dword [rsp + 0x3c]
sub eax, 1
jne 0x180002148
jmp 0x18000211d
xor eax, eax
mov r9d, eax
lea r8, [0x180001f50]
xor eax, eax
mov rcx, r9
mov rdx, r9
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x48
ret

Function at 0x180009d44
Capabilities:
Log keystrokes via polling

Disassembly:
lea rsp, [rsp + 6]
jmp 0x180009d85
lea rsp, [rsp + 8]
jne 0x18000941c
lea rcx, [rax*8]
mov ecx, 0x12
jmp 0x180009d6f

Function at 0x180009fdf
Capabilities:
Log keystrokes via polling

Disassembly:
push bp
mov word [rsp], si
push word [rsp]
jmp 0x18000a17f
pushfq
jmp 0x18000a01f
lea rsp, [rsp + 8]
cmp eax, 0
jmp 0x18000a47f
push r11w
mov byte [rsp + 8], bl
lea rsp, [rsp + 2]
jmp 0x180009fc9
lea rsp, [rsp + 8]
mov ecx, 0x46
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
call fcn.18000a009
pop qword [rsp + 0x12]
lea rsp, [rsp + 4]
jmp 0x18000a09a
lea rsp, [rsp + 0x10]
xor al, 0xff
clc
and al, 1
call fcn.18000a007
lea rsp, [rsp + 8]
cmp eax, 0
call 0x18000a07e
adc ebp, ebx
cmp eax, 0x44058af5
movabs al, byte [0x84110ff31eebffff]
and al, 0xf0
add al, byte [rax]
add cl, ch
add dword [rax + rax], 0
mov ah, byte [0x1e48de8f1]
and al, 0x28
lea rsp, [rsp + 0x28]
and eax, 1
call 0x18000a070
xor al, 0xff
sub rsp, 0x12
pop qword [rsp]
lea rsp, [rsp + 2]
jmp 0x18000a0da
lea rsp, [rsp + 8]
and al, 1
push r13
jmp 0x18000a1ab
lea rsp, [rsp + 2]
mov al, byte [0x1800040ca]
sub rsp, 0xe
mov byte [rsp + 5], r10b
push word [rsp + 6]
jmp 0x18000a061
lea rsp, [rsp + 4]
mov ecx, 0x50
call fcn.18000a125
sub rsp, 0x17
call fcn.18000a317
lea rsp, [rsp + 8]
mov byte [0x1800040cb], al
jmp 0x1800094a8
je 0x1800094d0
sub rsp, 3
add rsp, 0
push word [rsp + 1]
add rsp, 3
jmp 0x18000a0f1
Function at 0x18000ba2f
Capabilities:
Log keystrokes via polling

Disassembly:
cmovs ecx, dword [rbp - 0x14f8db9c]
and al, 0x4d
fsubr qword [rdi]
and ebx, ebp
jmp 0x18000ba17
lea rsp, [rsp + 8]
jne 0x1800096f2
je 0x18000ba5d
jbe 0x18000ba20
lea rsp, [rsp + 8]
jne 0x1800096f2
je 0x18000ba5d
jbe 0x18000ba20
jo 0x18000ba57
loop 0x18000ba93
mov ah, 0x27
mov bh, 0xd2
and dword [rsi + 0x572435da], eax
add eax, ebp
sar bh, cl
invalid

Function at 0x18000bb52
Capabilities:
Log keystrokes via polling

Disassembly:
push r15w
push word [rsp + 1]
lea rsp, [rsp + 3]
lea rsp, [rsp + 1]
jmp 0x18000cb3a
call fcn.18000bc3f
xchg ecx, eax
invalid
jmp 0x18000941c
jmp 0x18000970f
pop word [rsp + 1]
mov byte [rsp + 4], r11b
push word [rsp + 2]
jmp 0x18000bbb1
lea rsp, [rsp + 0x10]
cwde
pushfq
mov qword [rsp], r15
push word [rsp + 3]
jmp 0x18000bbf8
lea rsp, [rsp + 8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
push rsi
push qword [rsp + 7]
jmp 0x18000bb9b
cmp eax, 0
push rbx
push qword [rsp + 2]
pop word [rsp + 9]
jmp 0x18000bc83
lea rsp, [rsp + 8]
lea rsp, [rsp + 2]
and eax, 0x8000
cmc
jmp 0x18000bbe2
lea rsp, [rsp + 6]
lea rsp, [rsp + 8]
je 0x18000970f
jne 0x1800096f2
lea rsp, [rsp + 8]
call fcn.180009a11
xchg dl, cl
xchg rdx, rax
bswap eax
jmp 0x18000bde3
mov ecx, 4
bswap rdx
mov edx, 6
clc
jmp 0x18000bd1b
add rax, 0xc
bsr dx, di
mov r8b, byte [0x1800040cb]
jmp 0x18000bcc8
test r8b, 1
call fcn.18000bcd8
xchg dl, cl
mov rax, qword [rax + riz + 0x2910]
xchg dx, cx
neg rdx
mov edx, dword [rsp]
jmp 0x18000bcf4
bswap rax
mov rax, qword [rsp + 0x300]
mov dl, r10b
not ecx
mov cx, r15w
jmp 0x18000bdb0
movss dword [rax], xmm0
jmp 0x180009725
mov cx, word [rsp]
mov cl, 0x72
mov rcx, qword [rsp]
jmp 0x18000cb4f
mov rax, qword [0x1800040c0]
bswap edx
bswap edx
mov rdx, qword [rsp + 0x330]
jmp 0x18000cb24
mov rcx, qword [rsp + 0x328]
call fcn.18000cb86
fist word [rbx - 0x3d]
cmpsb byte [rsi], byte [rdi]
push rbp
mov cl, 0x56
rol dword [rax + 0x448b4843], 0x24
push rax
jmp 0x18000c9fa

Function at 0x18000bc18
Capabilities:
Log keystrokes via polling

Disassembly:
push bx
mov word [rsp], cx
mov word [rsp], r8w
lea rsp, [rsp + 2]
jne 0x1800096f2
je 0x18000973d
mov qword [rsp], r14
lea rsp, [rsp + 8]
cmp eax, 0
jmp 0x18000bb35
Function at 0x180002410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push r14
sub rsp, 0x38
movzx eax, byte [rcx + 1]
mov r8b, 1
add rax, rcx
cmp byte [rax], 0
je 0x180002445
cmp r8b, dl
je 0x180002445
movzx ecx, byte [rax + 1]
inc rax
test cl, cl
jne 0x180002427
movzx ecx, byte [rax + 1]
inc rax
inc r8b
test cl, cl
jne 0x180002427
xor esi, esi
cmp byte [rax], sil
mov r14d, esi
cmovne r14, rax
test r14, r14
je 0x180002545
mov qword [rsp + 0x60], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [r14 + rdi], sil
jne 0x180002466
test rdi, rdi
je 0x180002540
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov r13d, 0x61
mov qword [rsp + 0x20], r15
nop word [rax + rax]
movsx ebp, byte [r14 + rsi]
mov rdx, rsi
mov rax, qword [0x180017298]
and edx, 7
mov ecx, ebp
movzx ebx, byte [rdx + rax]
xor ebx, ebp
mov r15d, ebx
mov r12d, ebx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalpha]
mov ecx, ebp
test eax, eax
je 0x1800024f2
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isupper]
test eax, eax
mov ebx, 0x41
mov eax, 0x51eb851f
cmove ebx, r13d
mul r12d
shr edx, 3
imul eax, edx, 0x19
sub ebx, eax
add ebx, r12d
jmp 0x180002514
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
test eax, eax
je 0x18000251b
mov eax, 0xcccccccd
mul ebx
mov eax, 0x30
shr edx, 3
lea ecx, [rdx + rdx*4]
add ecx, ecx
sub eax, ecx
add ebx, eax
and bl, 0x7f
mov byte [r14 + rsi], bl
inc rsi
cmp rsi, rdi
jb 0x1800024a0
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
add rsp, 0x38
pop r14
pop rsi
ret

Function at 0x180003790
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800037b8
xor eax, eax
lea r8, [0x180002d70]
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 eax, 1
add rsp, 0x38
ret
Function at 0x180003b60
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 0x180003b88
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 0x180003bae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180003bb0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180003c09
test ecx, ecx
jle 0x180003be9
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 0x180003c09
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180003c09
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 0x180003c30
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 0x180003c52
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180003c68
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 0x180003c84
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180003c86
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180003cc2
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 0x180003d5e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180003cfd
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 0x180003d3e
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 0x180003d5e
cmp rbx, rax
ja 0x180003d10
test rbx, rbx
je 0x180003d5e
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 0x1800041c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800163c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1800041ed
xor eax, eax
jmp 0x180004359
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180004227
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180004227
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 0x180004359
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18000434c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000426a
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 0x180004295
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 0x180004351
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 0x180004304
sub eax, 1
je 0x180004304
cmp eax, 2
jne 0x18000434c
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 0x180004351
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180004332
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 0x18000434c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180004351
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18000c9a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180004a10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov r15, rdx
mov rbx, rcx
je 0x180004ab1
mov rdi, r8
test r8, r8
jle 0x180004aa9
lea rsi, [rcx + 0x58]
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x180004a83
mov rax, qword [rsi]
movsxd rdx, dword [rax]
test edx, edx
jle 0x180004a83
cmp rdi, rdx
mov rbp, rdi
cmovge rbp, rdx
mov rdx, r15
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x40]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180004aa1
mov rax, qword [rbx]
mov rcx, rbx
movzx edx, byte [r15]
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180004aa9
dec rdi
lea rsi, [rbx + 0x58]
mov ebp, 1
add r15, rbp
test rdi, rdi
jg 0x180004a44
sub r14, rdi
mov rax, r14
jmp 0x180004b29
mov rax, qword [rcx + 0x40]
mov rsi, r14
mov r9, qword [rax]
test r9, r9
je 0x180004ac8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180004aca
xor ecx, ecx
movsxd rdi, ecx
test r14, r14
jle 0x180004b23
test ecx, ecx
jle 0x180004b03
cmp r14, rdi
mov rcx, r9
cmovl rdi, r14
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x58]
add r15, rdi
sub r14, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x40]
movsxd rax, edi
add qword [rcx], rax
test r14, r14
jle 0x180004b23
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x180004b23
mov r8, r14
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub r14, rax
sub rsi, r14
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x180004b50
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x180004b74
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x180004c02
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180004bd0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x180004bd0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180004bed
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180004bf5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x180004b91
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x180004ce2
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x180004c19
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180004c1b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180004c4d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180004cdf
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180004c88
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 rsi, 0xfff
jbe 0x180004cbf
mov r9, qword [rbx + 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 rsi, rax
cmp rax, 0xfff
jne 0x180004cdf
cmp rsi, rax
ja 0x180004c91
test rsi, rsi
je 0x180004cdf
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x180004ff0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1800163c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180005020
xor eax, eax
jmp 0x1800051b2
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18000505a
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18000505a
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 0x1800051b2
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xb0], rsi
je 0x1800051a5
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000509d
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 0x1800050d8
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov edx, 1
mov byte [rsp + 0x58], dil
mov r8d, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 1
mov ecx, 0xffffffff
cmove ecx, edi
mov eax, ecx
jmp 0x1800051aa
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 + 0x80]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x60]
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 0x18000515d
sub eax, 1
je 0x18000515d
cmp eax, 2
jne 0x1800051a5
movzx eax, byte [rsp + 0x50]
lea rcx, [rsp + 0x58]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, edx
mov byte [rsp + 0x58], al
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 1
mov ecx, 0xffffffff
cmove ecx, edi
mov eax, ecx
jmp 0x1800051aa
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
sub rsi, rax
je 0x18000518b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x60]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1800051a5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1800051aa
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18000c9a0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret