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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x1e0]
cmp dword [rax + 0x10], 0
je 0x140052a28
mov r8d, reloc.WS2_32.dll_listen
mov dword [rbx + 0xab8], 0xd
mov dl, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140052b40
cmp byte [rcx + 0xf0e], 0
je 0x140052a40
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140053530
cmp byte [rcx + 0xf11], 0
je 0x140052ae1
mov r8, qword [rbx + 0xa88]
test r8, r8
jne 0x140052a9b
mov r8, qword [rcx + 0xc08]
test r8, r8
jne 0x140052a7e
cmp byte [rcx + 0xf0d], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0xa00]
lea rdx, str.PRET__s
call fcn.140069370
test eax, eax
je 0x140052ad1
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xf1d], 0
lea rcx, [rbx + 0xa00]
je 0x140052ac1
lea rdx, str.PRET_STOR__s
call fcn.140069370
test eax, eax
je 0x140052ad1
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.140069370
test eax, eax
jne 0x140052aee
mov dword [rbx + 0xab8], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400534a0
add rsp, 0x20
pop rbx
ret

Function at 0x140052e30
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 + 0x10], 0
je 0x140052e7d
cmp qword [rcx + 0xa88], 0
je 0x140052e7d
add rcx, 0xa00
lea rdx, str.REST__d
xor r8d, r8d
call fcn.140069370
test eax, eax
jne 0x140052e87
mov dword [rbx + 0xab8], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400529f0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0xa00
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x10], 1
jne 0x14005305c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14005305c
lea rdx, str.SIZE__s
call fcn.140069370
test eax, eax
jne 0x140053069
mov dword [rbx + 0xab8], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140052e30
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xf1c], 0
je 0x1400530c8
cmp qword [rcx + 0xa88], 0
je 0x1400530c8
cmp byte [r9 + 0xf0b], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0xaa8]
cmp eax, edx
je 0x1400530c8
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x10], 1
movzx edx, byte [r9 + 0xf0b]
jmp fcn.140051910
jmp fcn.140053010
Function at 0x1400530d0
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x140053105
lea rdx, str.Couldnt_set_desired_mode
call fcn.1400344b0
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x14005311c
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.140034630
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x140053138
mov rcx, rdi
call fcn.140053010
jmp 0x14005326f
cmp esi, 0x14
jne 0x140053251
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xba0], 2
jne 0x1400531b9
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400531b9
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.14004abc0
test eax, eax
jne 0x14005326f
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1400531ae
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x1400531b9
mov rcx, qword [rsp + 0x50]
call qword [fcn.14006f506]
mov rdx, qword [rsi + 0xc08]
test rdx, rdx
jne 0x1400531dd
cmp byte [rsi + 0xf0d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x14008094b]
test rbp, rbp
mov r9, r8
lea rax, [0x140080b7c]
cmovne r9, rbp
lea rcx, [0x1400766d8]
cmovne r8, rax
call fcn.1400378f0
mov rcx, rbp
mov r14, rax
call qword [fcn.14006f506]
test r14, r14
jne 0x14005321c
lea ebx, [r14 + 0x1b]
jmp 0x140053271
lea rcx, [rdi + 0xa00]
mov r8, r14
lea rdx, [0x14007ae60]
call fcn.140069370
mov rcx, r14
mov esi, eax
call qword [fcn.14006f506]
test esi, esi
je 0x140053245
mov ebx, esi
jmp 0x140053271
mov dword [rdi + 0xab8], 0x1f
jmp 0x140053271
cmp esi, 0x15
jne 0x14005325c
lea r8d, [rsi - 8]
jmp 0x140053265
cmp esi, 0x16
jne 0x140053271
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.140052b40
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x140058fd0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14005902f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400344b0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140058b60
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400591e0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140059388
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140059245
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140059245
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140059245
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14005927c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400592d2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400592d2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400592d2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400592d2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400592d2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140058c90
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140059334
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400344b0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140059060
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140059380
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400344b0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14005aaf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14008e098]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], pe_nt_image_headers64
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14005ab85
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x14005abe6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400344b0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14006e640
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x14005aca1
sub ecx, 1
je 0x14005ad14
sub ecx, 1
je 0x14005ac50
cmp ecx, 1
je 0x14005ac33
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14007ae60]
call fcn.1400344b0
jmp 0x14005ad14
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14005a820
test eax, eax
je 0x14005ad14
jmp 0x14005abba
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14005ad14
sub rax, rsi
cmp rax, rbp
jae 0x14005ad14
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140034630
jmp 0x14005ad14
cmp r8d, 4
jle 0x14005ad14
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x14005ad14
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400343d0
mov esi, eax
test eax, eax
je 0x14005acf3
mov edx, 5
mov rcx, rbx
call fcn.14005b7e0
mov eax, esi
jmp 0x14005abba
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140043a40
mov rcx, r14
call fcn.140043d20
test eax, eax
je 0x14005abb8
mov edx, 5
mov rcx, rbx
call fcn.14005b7e0
mov eax, Ordinal_46
jmp 0x14005abba
Function at 0x14006dbf0
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 [fcn.14006f50c]
mov rdi, rax
test rax, rax
jne 0x14006dc32
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 0x14006dc79
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 0x14006dcd2
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 0x14006dc90
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14006dd13
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14008067a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14008067b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14006dce0
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 0x14006f170
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14009d70d
xor al, al
jmp 0x14009d86f
mov rax, qword [0x1400be6c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1400be6c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1400be6d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400be6d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1400be6e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400be6e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1400be6f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1400be6f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x1400be700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x14009d861
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x14009d7b9
mov r11d, 2
jmp 0x14009d7dd
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x14009d7d3
mov r11d, 1
jmp 0x14009d7dd
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x14009d885
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x14009d822
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14009d83a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x14009d84a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x14009d858
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x14009d7a0
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x14009d86a
Function at 0x2393310
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x239331d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x239332d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x2393315
lea eax, [rcx + 1]
jmp 0x239333b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x239334e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x2393334
sub eax, 3
jb 0x239336e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x23933bd
sar eax, 1
movsxd rbp, eax
jb 0x23933a4
jmp 0x239337c
add ebx, ebx
jne 0x239337a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x23933a4
inc ecx
add ebx, ebx
jne 0x239338a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x23933a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x239339d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x239338c
add ecx, 2
jmp 0x23933a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.023932d2
jmp 0x239331d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1f7e000]
mov eax, dword [rdi]
or eax, eax
je 0x2393419
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1f93000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x23933c9
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x2393413
mov qword [rbx], rax
add rbx, 8
jmp 0x23933e9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x239345d
cmp al, 0xef
ja 0x2393445
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x2393425
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x2393434
mov eax, dword [rdi]
add rdi, 4
jmp 0x2393434
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x23934b1
sub rsp, 0xffffffffffffff80
jmp 0x468740
Function at 0x140001990
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov r13, rdx
lea rcx, [rcx + 0x70]
lea rdx, [0x140025129]
call fcn.140004760
mov r12, rax
test rax, rax
je 0x140001ac0
mov edx, dword [r13 + 4]
xor r8d, r8d
add edx, dword [rbx]
mov rcx, rax
call fcn.14001bf20
test eax, eax
js 0x140001aa0
mov ebx, dword [r13 + 0xc]
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r14, rax
test rax, rax
je 0x140001ad5
cmp byte [r13 + 0x10], 1
je 0x140001a80
mov rdi, rax
mov ebp, 0x2000
test rbx, rbx
jne 0x140001a18
jmp 0x140001a61
add rdi, rsi
sub rbx, rsi
je 0x140001a61
cmp rbx, 0x2000
mov rsi, rbp
mov r9, r12
mov rcx, rdi
cmovbe rsi, rbx
mov r8d, 1
mov rdx, rsi
call main
test rax, rax
jne 0x140001a10
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002560
mov rcx, r14
xor r14d, r14d
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rax, r14
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor r8d, r8d
mov r9, rax
mov rdx, r13
mov rcx, r12
call fcn.1400015a0
test eax, eax
je 0x140001a61
jmp 0x140001a56
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
xor r14d, r14d
lea rcx, str.fseek
call fcn.140002560
jmp 0x140001a61
lea rdx, [r13 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r14d, r14d
call fcn.140002500
jmp 0x140001a69
mov r9d, ebx
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140002560
jmp 0x140001a61
Function at 0x140001bb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x5074], 1
mov r12, rcx
mov r15, rdx
jne 0x140001db0
cmp byte [rdx + 0x11], 0x6e
je 0x140001ce8
lea rdi, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, rdi
call fcn.140008f40
mov r14, rax
test rax, rax
je 0x140001dc6
lea rcx, [r12 + 0x70]
lea rdx, [0x140025129]
call fcn.140004760
mov r13, rax
test rax, rax
je 0x140001d48
mov edx, dword [r15 + 4]
xor r8d, r8d
add edx, dword [r12]
mov rcx, rax
call fcn.14001bf20
test eax, eax
js 0x140001d90
cmp byte [r15 + 0x10], 1
je 0x140001d08
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x140001de6
mov ebx, dword [r15 + 0xc]
test rbx, rbx
je 0x140001d60
mov r15d, 0x2000
jmp 0x140001c96
mov r9, r14
mov r8d, 1
mov rdx, rsi
mov rcx, r12
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140001d70
sub rbx, rsi
je 0x140001d60
cmp rbx, 0x2000
mov rsi, r15
mov r9, r13
mov rcx, r12
cmovbe rsi, rbx
mov r8d, 1
mov rdx, rsi
call main
test rax, rax
jne 0x140001c70
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov ebx, 0xffffffff
lea rcx, str.fread
call fcn.140002560
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x140001d1b
call fcn.140001b00
mov ebx, eax
test eax, eax
js 0x140001d30
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
xor r9d, r9d
mov r8, r14
mov rdx, r15
mov rcx, r13
call fcn.1400015a0
mov ebx, eax
mov rcx, r13
call sub.msvcrt.dll_fclose
mov rcx, r14
call sub.msvcrt.dll_fclose
jmp 0x140001cf3
lea rdx, [r15 + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002500
jmp 0x140001cf3
mov rdx, rdi
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov ebx, 0xffffffff
call fcn.140002500
jmp 0x140001d23
xor ebx, ebx
jmp 0x140001cd8
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov ebx, 0xffffffff
lea rcx, str.fwrite
call fcn.140002560
jmp 0x140001cd8
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov ebx, 0xffffffff
lea rcx, str.fseek
call fcn.140002560
jmp 0x140001d1b
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
mov ebx, 0xffffffff
call fcn.140002500
jmp 0x140001cf3
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov ebx, 0xffffffff
lea rcx, str.fopen
call fcn.140002560
jmp 0x140001cf3
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
or ebx, 0xffffffff
call fcn.140002560
jmp 0x140001d1b
Function at 0x140001e10
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x30
lea rdx, [0x140025129]
mov rbx, rcx
lea rcx, [rcx + 0x70]
call fcn.140004760
mov r12, rax
test rax, rax
je 0x140002017
mov rax, qword [0x14002b4a0]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rcx, r12
mov r13d, 0xffffffff
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
shr rax, 0x18
add eax, 0xc
mov byte [rsp + 0x2b], al
call fcn.1400095e0
mov rsi, rax
test rax, rax
jne 0x140001e90
mov rcx, r12
call sub.msvcrt.dll_fclose
mov eax, r13d
add rsp, 0x30
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
xor r8d, r8d
mov edx, eax
mov rcx, r12
call fcn.14001bf20
test eax, eax
js 0x140001fc0
lea rcx, [rbx + 0x18]
mov r9, r12
mov r8d, 1
mov edx, 0x58
call main
test rax, rax
je 0x140001fe0
mov eax, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x28]
add rsi, 0x58
xor r8d, r8d
mov dword [rbx + 0x5078], 0
mov edx, dword [rbx + 0x24]
bswap eax
bswap ecx
mov dword [rbx + 0x20], eax
mov eax, eax
mov dword [rbx + 0x28], ecx
mov ecx, dword [rbx + 0x2c]
sub rsi, rax
bswap edx
mov qword [rbx], rsi
bswap ecx
mov dword [rbx + 0x24], edx
add edx, esi
mov dword [rbx + 0x2c], ecx
mov dword [0x140031050], ecx
mov rcx, r12
call fcn.14001bf20
movsxd r14, dword [rbx + 0x28]
mov rcx, r14
call sub.msvcrt.dll_malloc
mov qword [rbx + 8], rax
mov rcx, rax
test rax, rax
je 0x140002022
mov r9, r12
mov r8d, 1
mov rdx, r14
call main
test rax, rax
je 0x140001fa0
movsxd rax, dword [rbx + 0x28]
add rax, qword [rbx + 8]
mov rcx, r12
mov qword [rbx + 0x10], rax
call sub.msvcrt.dll_ferror
mov r13d, eax
test eax, eax
jne 0x140002000
mov rax, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
cmp rax, r8
jae 0x140001e76
mov ecx, dword [rax + 4]
mov edx, dword [rax]
bswap ecx
mov dword [rax + 4], ecx
mov ecx, dword [rax + 8]
bswap edx
mov dword [rax], edx
movsxd rdx, edx
bswap ecx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0xc]
bswap ecx
mov dword [rax + 0xc], ecx
add rax, rdx
cmp rax, r8
jb 0x140001f70
jmp 0x140001e76
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140002560
jmp 0x140001e76
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140002560
jmp 0x140001e76
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140002560
jmp 0x140001e76
lea rcx, str.Error_on_file._n
mov r13d, 0xffffffff
call fcn.140002500
jmp 0x140001e76
mov r13d, 0xffffffff
jmp 0x140001e7e
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.140002560
jmp 0x140001e76