joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005df20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [rcx]
mov rbx, rcx
mov rax, qword [r8 + 0x1e0]
cmp dword [rax + 0x20], 0
je 0x18005df55
mov r8d, reloc.WS2_32.dll_listen
mov dword [rcx + 0x81c], 0xd
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.18005e060
mov eax, dword [r8 + 0xe68]
bt eax, 0xe
jae 0x18005df6e
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.18005ea90
bt eax, 0x11
jae 0x18005e009
mov rcx, qword [rcx + 0x7e8]
test rcx, rcx
jne 0x18005dfc3
mov r8, qword [r8 + 0xbe8]
test r8, r8
jne 0x18005dfa6
bt eax, 0xd
lea r8, str.LIST
lea rax, str.NLST
cmovb r8, rax
lea rcx, [rbx + 0x760]
lea rdx, str.PRET__s
call fcn.18006c590
test eax, eax
je 0x18005dff9
add rsp, 0x20
pop rbx
ret
mov r8, rcx
lea rcx, [rbx + 0x760]
bt eax, 0x1d
jae 0x18005dfe9
lea rdx, str.PRET_STOR__s
call fcn.18006c590
test eax, eax
je 0x18005dff9
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.18006c590
test eax, eax
jne 0x18005e013
mov dword [rbx + 0x81c], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.18005ea00
add rsp, 0x20
pop rbx
ret

Function at 0x18005e350
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 0
je 0x18005e39d
cmp qword [rcx + 0x7e8], 0
je 0x18005e39d
add rcx, 0x760
lea rdx, str.REST__d
xor r8d, r8d
call fcn.18006c590
test eax, eax
jne 0x18005e3a7
mov dword [rbx + 0x81c], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.18005df20
add rsp, 0x20
pop rbx
ret

Function at 0x18005e530
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x760
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 1
jne 0x18005e57c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x18005e57c
lea rdx, str.SIZE__s
call fcn.18006c590
test eax, eax
jne 0x18005e589
mov dword [rbx + 0x81c], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18005e350
add rsp, 0x20
pop rbx
ret

Function at 0x18005e590
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rdx, qword [rcx]
mov r9, rcx
mov ecx, dword [rdx + 0xe68]
bt ecx, 0x1c
jae 0x18005e5ee
cmp qword [r9 + 0x7e8], 0
je 0x18005e5ee
movsx eax, byte [r9 + 0x80c]
shr ecx, 0xb
not cl
and ecx, 1
shl ecx, 3
or ecx, 0x41
cmp eax, ecx
je 0x18005e5ee
mov rax, qword [rdx + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov rcx, r9
mov dword [rax + 0x20], 1
mov edx, dword [rdx + 0xe68]
shr edx, 0xb
and dl, 1
jmp fcn.18005cd70
mov rcx, r9
jmp fcn.18005e530
Function at 0x18005e600
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rsi, rcx
mov rcx, qword [rcx]
mov edi, r8d
cmp eax, 0x64
jb 0x18005e644
lea rdx, str.Couldnt_set_desired_mode
call fcn.180039870
lea eax, [rbx + 0x11]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
cmp edx, 0xc8
je 0x18005e65b
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.1800399f0
mov qword [rsp + 0x48], rbp
cmp edi, 0x13
jne 0x18005e672
mov rcx, rsi
call fcn.18005e530
jmp 0x18005e7cf
cmp edi, 0x14
jne 0x18005e7b1
mov rbp, qword [rsi]
mov rax, qword [rbp + 0x1e0]
mov rdi, qword [rax + 0x10]
mov rax, rbx
mov qword [rsp + 0x40], rbx
cmp dword [rbp + 0xb80], 2
jne 0x18005e709
test rdi, rdi
je 0x18005e709
cmp byte [rdi], al
je 0x18005e709
mov edx, Ordinal_50
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x18005e704
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdi + rax], bl
jne 0x18005e6c0
cmp byte [rax + rdi - 1], 0x2f
je 0x18005e6df
mov edx, Ordinal_50
mov rcx, rdi
call sub.VCRUNTIME140.dll_strrchr
sub rax, rdi
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x40]
mov r8, rax
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov rcx, rbp
call fcn.18004e960
test eax, eax
jne 0x18005e7cf
mov rax, qword [rsp + 0x40]
mov rdx, qword [rbp + 0xbe8]
test rdx, rdx
jne 0x18005e731
test dword [rbp + 0xe68], 0x2000
lea rcx, str.NLST
lea rdx, str.LIST
cmovne rdx, rcx
test rax, rax
lea r8, [0x180083eb0]
mov r9, r8
lea rcx, [0x18007cbc4]
cmovne r8, rcx
cmovne r9, rax
lea rcx, [0x180078028]
call fcn.18003cbc0
mov rbp, rax
test rax, rax
jne 0x18005e771
mov rcx, qword [rsp + 0x40]
call qword [fcn.180071623]
lea ebx, [rbp + 0x1b]
jmp 0x18005e7d1
lea rcx, [rsi + 0x760]
mov r8, rbp
lea rdx, [0x18007cb2c]
call fcn.18006c590
mov rcx, qword [rsp + 0x40]
mov edi, eax
call qword [fcn.180071623]
mov rcx, rbp
call qword [fcn.180071623]
test edi, edi
je 0x18005e7a5
mov ebx, edi
jmp 0x18005e7d1
mov dword [rsi + 0x81c], 0x1f
jmp 0x18005e7d1
cmp edi, 0x15
jne 0x18005e7bc
lea r8d, [rdi - 8]
jmp 0x18005e7c5
cmp edi, 0x16
jne 0x18005e7d1
lea r8d, [rdi - 8]
mov dl, 1
mov rcx, rsi
call fcn.18005e060
mov ebx, eax
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18006bdf0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x40
mov rbp, r8
mov rsi, rdx
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x18006be10
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x50], rdi
cmp rbx, rax
ja 0x18006bf34
test rbx, rbx
je 0x18006be42
lea rcx, [rbx + rbx]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
jmp 0x18006be4f
lea rcx, [0x180083eb0]
call qword [case.0x18002f369.0]
mov rdi, rax
test rax, rax
je 0x18006bf34
xor ecx, ecx
test rbx, rbx
je 0x18006be84
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rsi]
mov byte [rdi + rcx*2], al
mov byte [rdi + rcx*2 + 1], 0
inc rcx
cmp rcx, rbx
jb 0x18006be70
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x18006bf1f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x18006bf12
mov rcx, qword [rsp + 0x30]
lea r8d, [rbx + rbx]
xor r9d, r9d
mov dword [rsp + 0x68], reloc.WS2_32.dll_recv
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
mov r8, rbp
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, rdi
mov dword [rbp + 0x10], eax
mov byte [rbp + 0x14], al
call qword [fcn.180071623]
xor eax, eax
jmp 0x18006bf39
mov eax, reloc.WLDAP32.dll_Ordinal_27
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
Function at 0x18006bf50
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x180093010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, r8
mov dword [rbp - 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000000
mov rsi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x18006c087
movzx edx, byte [rdi + 1]
movzx ecx, byte [rdi]
movzx eax, dl
movzx r8d, byte [rdi + 5]
shr al, 1
mov byte [rbp - 0x1c], cl
shl cl, 7
or al, cl
shl dl, 6
movzx ecx, byte [rdi + 2]
mov byte [rbp - 0x1b], al
movzx eax, cl
shr al, 2
or al, dl
shl cl, 5
movzx edx, byte [rdi + 3]
mov byte [rbp - 0x1a], al
movzx eax, dl
shr al, 3
or al, cl
shl dl, 4
movzx ecx, byte [rdi + 4]
mov byte [rbp - 0x19], al
movzx eax, cl
shr al, 4
or al, dl
shl cl, 3
mov byte [rbp - 0x18], al
movzx eax, r8b
shr al, 5
or al, cl
shl r8b, 2
movzx ecx, byte [rdi + 6]
mov byte [rbp - 0x17], al
movzx eax, cl
add cl, cl
shr al, 6
or al, r8b
mov byte [rbp - 0x15], cl
mov qword [rsp + 0xa0], r14
lea rcx, [rbp - 0x1c]
xor r14d, r14d
mov byte [rbp - 0x16], al
mov dword [rbp - 0x28], 0x208
mov dword [rbp - 0x24], 0x6601
mov dword [rbp - 0x20], 8
lea edx, [r14 + 8]
call fcn.18006fcd0
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea r8d, [r14 + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
lea rdx, [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov r14, qword [rsp + 0xa0]
test eax, eax
jne 0x18006c08b
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x18006c0d0
mov rax, qword [rsi]
xor r9d, r9d
mov rcx, qword [rbp - 0x30]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800250a0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x180071490
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1800714d2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x180071519
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x180071572
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x180071530
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1800715b3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x18008200a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x18008200b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x180071580
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140001000
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x18
cmp dword [0x140005050], 0
jne 0x1400011e0
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x18]
mov r9, qword [rcx + 0x10]
mov rax, qword [r9 + 0x30]
test rax, rax
je 0x1400011ea
mov r8, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r8 + 0x88]
test ecx, ecx
je 0x14000106e
lea rdx, [r8 + rcx]
mov ecx, dword [r8 + rcx + 0xc]
mov eax, dword [rcx + r8]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x14000106e
mov eax, dword [rcx + r8 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x14000107a
mov r9, qword [r9]
mov rax, qword [r9 + 0x30]
test rax, rax
jne 0x140001031
test rdx, rdx
je 0x1400011ea
mov qword [rsp + 0x20], rbx
mov ebx, dword [rdx + 0x18]
mov qword [rsp + 0x28], rbp
mov ebp, dword [rdx + 0x24]
mov qword [rsp + 0x30], rsi
add rbp, r8
mov esi, dword [rdx + 0x20]
mov qword [rsp + 0x38], rdi
add rsi, r8
mov qword [rsp + 0x10], r12
mov r12d, 0x775a
mov qword [rsp + 8], r14
mov r14d, dword [rdx + 0x1c]
add r14, r8
mov qword [rsp], r15
xor edx, edx
lea r15, [0x140005050]
nop word [rax + rax]
lea eax, [rbx - 1]
mov r10d, dword [rsi + rax*4]
mov ebx, eax
add r10, r8
mov edi, eax
cmp word [r10], r12w
jne 0x140001131
xor r11d, r11d
mov r9d, 0xcae11e44
mov rax, r10
movzx eax, word [rax]
mov ecx, r9d
ror ecx, 8
inc r11d
add ecx, eax
mov eax, r11d
add rax, r10
xor r9d, ecx
cmp byte [rax], 0
jne 0x1400010f0
lea rcx, [rdx*8]
inc edx
mov dword [rcx + r15 + 4], r9d
movzx eax, word [rbp + rdi*2]
mov eax, dword [r14 + rax*4]
mov dword [rcx + r15 + 8], eax
cmp edx, 0x1f4
je 0x140001135
test ebx, ebx
jne 0x1400010d0
mov r14, qword [rsp + 8]
lea eax, [rdx - 1]
mov r12, qword [rsp + 0x10]
xor r8d, r8d
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
mov dword [0x140005050], edx
test eax, eax
je 0x1400011d2
nop dword [rax]
mov ecx, edx
xor eax, eax
sub ecx, r8d
cmp ecx, 1
je 0x1400011c7
nop dword [rax]
mov ecx, eax
lea r9d, [rax + 1]
lea r10, [r9*8]
mov ebx, dword [r10 + r15 + 8]
lea r11, [rcx*8]
mov edi, dword [r11 + r15 + 8]
cmp edi, ebx
jbe 0x1400011b8
mov ecx, dword [r11 + r15 + 4]
mov eax, dword [r10 + r15 + 4]
mov dword [r11 + r15 + 4], eax
mov dword [r10 + r15 + 4], ecx
mov dword [r11 + r15 + 8], ebx
mov dword [r10 + r15 + 8], edi
mov edx, dword [0x140005050]
mov ecx, edx
mov eax, r9d
sub ecx, r8d
dec ecx
cmp r9d, ecx
jb 0x140001170
inc r8d
lea eax, [rdx - 1]
cmp r8d, eax
jb 0x140001160
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x20]
mov r15, qword [rsp]
mov eax, 1
add rsp, 0x18
ret
xor eax, eax
add rsp, 0x18
ret

Function at 0x1400016a0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, dword [section..data]
call fcn.140001200
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x14000201c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002066
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002066
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002066
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002066
cmp dword [rcx + 0x84], 0xe
jbe 0x140002066
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002068
xor al, al
add rsp, 0x28
ret
Function at 0x140003cfc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
movzx r14d, dx
mov rdi, rcx
mov ebx, 0xffff
xor esi, esi
cmp bx, dx
jne 0x140003d39
movzx eax, si
jmp 0x140003f0a
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003d7a
mov r8, qword [rcx + 0x58]
movsxd r9, dword [r8]
mov rax, r9
lea rcx, [rdx + r9*2]
cmp rdx, rcx
jae 0x140003d7a
lea eax, [r9 - 1]
mov dword [r8], eax
mov rcx, qword [rdi + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 2]
mov qword [rcx], rax
mov word [rdx], r14w
movzx eax, r14w
jmp 0x140003f0a
cmp qword [rdi + 0x90], rsi
je 0x140003f07
mov rdx, qword [rdi + 0x18]
lea rax, [rdi + 0x80]
cmp qword [rdx], rax
jne 0x140003db5
mov rcx, qword [rdi + 0x70]
mov rax, qword [rdi + 0x68]
mov qword [rdx], rax
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub rcx, rcx
sar rcx, 1
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
cmp qword [rdi + 0x78], rsi
jne 0x140003ddd
mov rdx, qword [rdi + 0x90]
movzx ecx, r14w
call fcn.14001ea40
cmp ax, bx
je 0x140003f07
movzx ebx, r14w
jmp 0x140003f07
mov word [rbp - 0x30], r14w
mov qword [rbp - 8], 0xf
mov qword [rbp - 0x10], rsi
mov byte [rbp - 0x20], sil
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x20]
call fcn.140005c44
nop
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rdx, qword [rbp - 0x20]
lea r8, [rbp - 0x20]
cmovae r8, qword [rbp - 0x20]
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
add rdx, qword [rbp - 0x10]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x2e]
lea r8, [rbp - 0x30]
lea rdx, [rdi + 0x84]
call qword [r10 + 0x38]
test eax, eax
js 0x140003ef7
cmp eax, 1
jg 0x140003ed9
lea rax, [rbp - 0x20]
mov r9, qword [rbp - 0x20]
mov r10, qword [rbp - 8]
cmp r10, 0x10
cmovae rax, r9
mov r15, qword [rbp + 0x40]
sub r15, rax
je 0x140003ea3
lea rcx, [rbp - 0x20]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov r8, r15
mov edx, 1
call fcn.1400200c8
cmp r15, rax
jne 0x140003ef7
mov byte [rdi + 0x82], 1
lea rax, [rbp - 0x30]
cmp qword [rbp + 0x48], rax
jne 0x140003ef3
test r15, r15
jne 0x140003e03
cmp qword [rbp - 0x10], 0x20
jae 0x140003ef7
xor r8d, r8d
lea edx, [r15 + 8]
lea rcx, [rbp - 0x20]
call fcn.140001780
jmp 0x140003e03
cmp eax, 3
jne 0x140003ef7
mov rdx, qword [rdi + 0x90]
movzx ecx, word [rbp - 0x30]
call fcn.14001ea40
cmp ax, bx
je 0x140003ef7
movzx ebx, r14w
cmp qword [rbp - 8], 0x10
jb 0x140003f07
mov rcx, qword [rbp - 0x20]
call fcn.14001e48c
movzx eax, bx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140004898
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov esi, edx
mov rdi, rcx
or ebx, 0xffffffff
cmp edx, ebx
jne 0x1400048c8
xor eax, eax
jmp 0x140004a87
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140004902
mov rdx, qword [rdi + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140004902
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rdi + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov byte [rdx], sil
mov eax, esi
jmp 0x140004a87
cmp qword [rdi + 0x90], 0
je 0x140004a85
mov rdx, qword [rdi + 0x18]
lea rax, [rdi + 0x80]
cmp qword [rdx], rax
jne 0x14000493a
mov rcx, qword [rdi + 0x70]
mov rax, qword [rdi + 0x68]
mov qword [rdx], rax
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub ecx, ecx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
cmp qword [rdi + 0x78], 0
jne 0x14000495b
movsx ecx, sil
mov rdx, qword [rdi + 0x90]
call fcn.14001e55c
cmp eax, ebx
cmovne ebx, esi
jmp 0x140004a85
mov byte [rbp - 0x30], sil
mov qword [rbp - 8], 0xf
and qword [rbp - 0x10], 0
mov byte [rbp - 0x20], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x20]
call fcn.140005c44
nop
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rdx, qword [rbp - 0x20]
lea r8, [rbp - 0x20]
cmovae r8, qword [rbp - 0x20]
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
add rdx, qword [rbp - 0x10]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x2f]
lea r8, [rbp - 0x30]
lea rdx, [rdi + 0x84]
call qword [r10 + 0x38]
test eax, eax
js 0x140004a75
cmp eax, 1
jg 0x140004a5b
lea rax, [rbp - 0x20]
mov r9, qword [rbp - 0x20]
mov r10, qword [rbp - 8]
cmp r10, 0x10
cmovae rax, r9
mov r14, qword [rbp + 0x40]
sub r14, rax
je 0x140004a21
lea rcx, [rbp - 0x20]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov r8, r14
mov edx, 1
call fcn.1400200c8
cmp r14, rax
jne 0x140004a75
mov byte [rdi + 0x81], 1
lea rax, [rbp - 0x30]
cmp qword [rbp + 0x48], rax
jne 0x140004a57
test r14, r14
jne 0x140004981
cmp qword [rbp - 0x10], 0x20
jae 0x140004a75
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x20]
call fcn.140001780
jmp 0x140004981
mov ebx, esi
jmp 0x140004a75
cmp eax, 3
jne 0x140004a75
movsx ecx, byte [rbp - 0x30]
mov rdx, qword [rdi + 0x90]
call fcn.14001e55c
cmp eax, ebx
cmovne ebx, esi
cmp qword [rbp - 8], 0x10
jb 0x140004a85
mov rcx, qword [rbp - 0x20]
call fcn.14001e48c
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005740
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x140005891
cmp byte [rcx + 0x82], bl
je 0x140005891
mov rax, qword [rcx]
mov esi, 0xffff
mov edx, esi
call qword [rax + 0x18]
cmp si, ax
jne 0x140005797
xor al, al
jmp 0x140005896
mov qword [rbp - 0x10], 0xf
mov qword [rbp - 0x18], rbx
mov byte [rbp - 0x28], bl
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x28]
call fcn.140005c44
nop
mov esi, 1
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdx, qword [rbp - 0x28]
lea r8, [rbp - 0x28]
cmovae r8, qword [rbp - 0x28]
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x18]
add r9, rdx
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
mov ecx, eax
test eax, eax
je 0x140005801
dec ecx
jne 0x14000586d
jmp 0x140005807
mov byte [rdi + 0x82], bl
lea rax, [rbp - 0x28]
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
cmp r10, 0x10
cmovae rax, r9
mov r14, qword [rbp + 0x20]
sub r14, rax
je 0x140005847
lea rcx, [rbp - 0x28]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov r8, r14
mov rdx, rsi
call fcn.1400200c8
cmp r14, rax
jne 0x140005877
cmp byte [rdi + 0x82], bl
je 0x140005874
test r14, r14
jne 0x1400057bc
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x28]
call fcn.140001780
jmp 0x1400057bc
cmp ecx, 2
jne 0x14000587d
jmp 0x14000587a
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x10], 0x10
jb 0x14000588d
mov rcx, qword [rbp - 0x28]
call fcn.14001e48c
mov al, bl
jmp 0x140005896
mov eax, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400059e4
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x140005b31
cmp byte [rcx + 0x81], bl
je 0x140005b31
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x140005a37
xor al, al
jmp 0x140005b36
mov qword [rbp - 0x10], 0xf
mov qword [rbp - 0x18], rbx
mov byte [rbp - 0x28], bl
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x28]
call fcn.140005c44
nop
mov esi, 1
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdx, qword [rbp - 0x28]
lea r8, [rbp - 0x28]
cmovae r8, qword [rbp - 0x28]
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x18]
add r9, rdx
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
mov ecx, eax
test eax, eax
je 0x140005aa1
dec ecx
jne 0x140005b0d
jmp 0x140005aa7
mov byte [rdi + 0x81], bl
lea rax, [rbp - 0x28]
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
cmp r10, 0x10
cmovae rax, r9
mov r14, qword [rbp + 0x20]
sub r14, rax
je 0x140005ae7
lea rcx, [rbp - 0x28]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov r8, r14
mov rdx, rsi
call fcn.1400200c8
cmp r14, rax
jne 0x140005b17
cmp byte [rdi + 0x81], bl
je 0x140005b14
test r14, r14
jne 0x140005a5c
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x28]
call fcn.140001780
jmp 0x140005a5c
cmp ecx, 2
jne 0x140005b1d
jmp 0x140005b1a
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x10], 0x10
jb 0x140005b2d
mov rcx, qword [rbp - 0x28]
call fcn.14001e48c
mov al, bl
jmp 0x140005b36
mov eax, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret