joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a8460
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 0x1400a8495
lea rdx, str.Couldnt_set_desired_mode
call fcn.14008a3d0
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x1400a84ac
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.14008a550
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x1400a84c8
mov rcx, rdi
call fcn.1400a83a0
jmp 0x1400a85ff
cmp esi, 0x14
jne 0x1400a85e1
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xba0], 2
jne 0x1400a8549
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400a8549
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.14009ff50
test eax, eax
jne 0x1400a85ff
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1400a853e
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x1400a8549
mov rcx, qword [rsp + 0x50]
call qword [fcn.1400c4c0c]
mov rdx, qword [rsi + 0xc08]
test rdx, rdx
jne 0x1400a856d
cmp byte [rsi + 0xf0d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1400c9394]
test rbp, rbp
mov r9, r8
lea rax, [0x1400cb1f0]
cmovne r9, rbp
lea rcx, [0x1400f8600]
cmovne r8, rax
call fcn.140078c90
mov rcx, rbp
mov r14, rax
call qword [fcn.1400c4c0c]
test r14, r14
jne 0x1400a85ac
lea ebx, [r14 + 0x1b]
jmp 0x1400a8601
lea rcx, [rdi + 0xa00]
mov r8, r14
lea rdx, [0x1400cb014]
call fcn.1400be5c0
mov rcx, r14
mov esi, eax
call qword [fcn.1400c4c0c]
test esi, esi
je 0x1400a85d5
mov ebx, esi
jmp 0x1400a8601
mov dword [rdi + 0xab8], 0x1f
jmp 0x1400a8601
cmp esi, 0x15
jne 0x1400a85ec
lea r8d, [rsi - 8]
jmp 0x1400a85f5
cmp esi, 0x16
jne 0x1400a8601
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.1400a7ed0
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 0x1400ae360
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 0x1400ae3bf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14008a3d0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400adef0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ae570
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400ae718
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 0x1400ae5d5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400ae5d5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400ae5d5
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 0x1400ae60c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400ae662
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400ae662
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400ae662
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400ae662
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400ae662
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.1400ae020
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 0x1400ae6c4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14008a3d0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400ae3f0
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 0x1400ae710
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14008a3d0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400afe80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140b44158]
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 0x1400aff15
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 0x1400aff76
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14008a3d0
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.1400c3020
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 0x1400b0031
sub ecx, 1
je 0x1400b00a4
sub ecx, 1
je 0x1400affe0
cmp ecx, 1
je 0x1400affc3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400cb014]
call fcn.14008a3d0
jmp 0x1400b00a4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400afbb0
test eax, eax
je 0x1400b00a4
jmp 0x1400aff4a
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 0x1400b00a4
sub rax, rsi
cmp rax, rbp
jae 0x1400b00a4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14008a550
jmp 0x1400b00a4
cmp r8d, 4
jle 0x1400b00a4
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 0x1400b00a4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14008a2f0
mov esi, eax
test eax, eax
je 0x1400b0083
mov edx, 5
mov rcx, rbx
call fcn.1400b0b70
mov eax, esi
jmp 0x1400aff4a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140098dd0
mov rcx, r14
call fcn.1400990b0
test eax, eax
je 0x1400aff48
mov edx, 5
mov rcx, rbx
call fcn.1400b0b70
mov eax, Ordinal_46
jmp 0x1400aff4a
Function at 0x1400c2e40
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.1400c4c1e]
mov rdi, rax
test rax, rax
jne 0x1400c2e82
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 0x1400c2ec9
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 0x1400c2f22
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 0x1400c2ee0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c2f63
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140102572]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140102573]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c2f30
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 0x1400c3c8c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400c40dc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c4126
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c4126
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c4126
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c4126
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c4126
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c4128
xor al, al
add rsp, 0x28
ret
Function at 0x1400c4380
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, str._x_sys_default_locale
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 0x1400c4404
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400c4404
dec r8
sub rdx, 1
jne 0x1400c43ea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140b905a0
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 0x140b905cd
xor al, al
jmp 0x140b9072f
mov rax, qword [0x140bb06b0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x140bb06b8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x140bb06c0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x140bb06c8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x140bb06d0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x140bb06d8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x140bb06e0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x140bb06e8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140bb06f0]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x140b90721
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140b90679
mov r11d, 2
jmp 0x140b9069d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x140b90693
mov r11d, 1
jmp 0x140b9069d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x140b90745
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 0x140b906e2
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x140b906fa
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 0x140b9070a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x140b90718
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140b90660
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 0x140b9072a
Function at 0x10001e024
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1000301f8], rdi
je 0x10001e07d
cmp rax, rdi
jne 0x10001e070
mov esi, 1
jmp 0x10001e07d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001e057
mov eax, dword [0x1000301f0]
cmp eax, 1
jne 0x10001e092
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10001e0f7
mov eax, dword [0x1000301f0]
test eax, eax
jne 0x10001e0ed
mov dword [0x1000301f0], 1
lea r12, [0x100001690]
lea rdi, [0x100001678]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x10001e0df
test eax, eax
jne 0x10001e0df
mov rcx, qword [rdi]
test rcx, rcx
je 0x10001e0d4
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x10001e0bd
test eax, eax
je 0x10001e0f7
mov eax, 0xff
jmp 0x10001e241
mov dword [0x10002f924], 1
mov eax, dword [0x1000301f0]
cmp eax, 1
jne 0x10001e11f
lea rdx, [0x100001670]
lea rcx, [0x1000015f8]
call sub.msvcrt.dll__initterm
mov dword [0x1000301f0], 2
test esi, esi
jne 0x10001e12c
xor eax, eax
xchg qword [0x1000301f8], rax
cmp qword [0x100030210], 0
je 0x10001e155
lea rcx, [0x100030210]
call fcn.10001e5dc
test eax, eax
je 0x10001e155
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100030210]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x10001e1e0
cmp byte [rdi], 0
je 0x10001e176
test esi, esi
jne 0x10001e1e0
cmp byte [rdi], 0
je 0x10001e18a
cmp byte [rdi], 0x20
ja 0x10001e18a
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10001e176
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x100000000]
call fcn.100008db4
mov dword [0x10002f920], eax
cmp dword [0x10002f904], 0
jne 0x10001e1c9
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x10002f924], 0
jne 0x10001e1de
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x10002f920]
jmp 0x10001e241
cmp byte [rdi], 0x22
jne 0x10001e1f2
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x10001e207
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10001e168
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.10015c000
add rsp, 0x28
jmp 0x10001e024
Function at 0x100033a6
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
cmp dword [rcx + 0x8c], ebx
jne 0x100033cb
call fcn.1000b757
test rax, rax
je 0x1000351e
mov r11d, dword [rdi + 0x88]
cmp r11d, 0x40
jb 0x1000351e
mov rdx, qword [rdi + 0x80]
movsxd r8, dword [rdx + 0x3c]
lea rcx, [r8 + 0x108]
cmp r11, rcx
jb 0x1000351e
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1000351e
cmp r11d, dword [r8 + rdx + 0x54]
jb 0x1000351e
mov edi, dword [rdi + 0x8c]
mov eax, 1
test edi, edi
jne 0x1000342a
movzx eax, word [r8 + rdx + 0x16]
and eax, 0x2000
cmp dword [r8 + rdx], 0x4550
jne 0x1000351e
test eax, eax
je 0x1000351e
test byte [r8 + rdx + 0x16], 2
je 0x1000351e
cmp word [r8 + rdx + 6], bx
jbe 0x1000351e
mov eax, 0xf0
cmp word [r8 + rdx + 0x14], ax
jne 0x1000351e
mov eax, 0x20b
cmp word [r8 + rdx + 0x18], ax
jne 0x1000351e
mov r10d, dword [r8 + rdx + 0x84]
mov ecx, ebx
test r10d, r10d
je 0x100034ed
lea r9, [r8 + rdx + 0x88]
cmp ecx, 9
ja 0x100034c0
je 0x100034e2
mov eax, ecx
test ecx, ecx
je 0x100034ae
dec eax
je 0x100034e2
dec eax
je 0x100034e2
dec eax
je 0x100034e2
dec eax
jmp 0x100034e2
cmp edi, 3
jge 0x100034e2
cmp dword [r9 + 4], ebx
jbe 0x1000351e
cmp dword [r9], ebx
jbe 0x1000351e
jmp 0x100034e2
mov eax, ecx
sub eax, 0xa
je 0x100034e2
dec eax
je 0x100034e2
dec eax
je 0x100034e2
dec eax
je 0x100034e2
dec eax
jne 0x100034e2
cmp dword [r9 + 4], ebx
jne 0x1000351e
cmp dword [r9], ebx
jne 0x1000351e
inc ecx
add r9, 8
cmp ecx, r10d
jb 0x10003491
movzx r10d, word [r8 + rdx + 6]
mov r9d, ebx
test r10d, r10d
jle 0x10003519
lea rcx, [r8 + rdx + 0x118]
mov eax, dword [rcx + 4]
add eax, dword [rcx]
cmp eax, r11d
ja 0x1000351e
inc r9d
add rcx, 0x28
cmp r9d, r10d
jl 0x10003503
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1000dbad
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov rax, qword [rcx + 0x80]
xor r9d, r9d
mov r11, rcx
movsxd r8, dword [rax + 0x3c]
add r8, rax
movzx eax, word [r8 + 0x14]
movzx ebx, word [r8 + 6]
lea r10, [rax + r8 + 0x18]
test ebx, ebx
jle 0x1000dbfc
lea rcx, [r10 + 0xc]
mov r8d, dword [rcx]
cmp rdx, r8
jb 0x1000dbf0
mov eax, dword [rcx - 4]
add eax, r8d
cmp rdx, rax
jb 0x1000dc0c
inc r9d
add rcx, 0x28
cmp r9d, ebx
jl 0x1000dbdd
mov rax, qword [r11 + 0x80]
add rax, rdx
mov rbx, qword [rsp + 8]
ret
movsxd rax, r9d
lea rcx, [rax + rax*4]
mov eax, dword [r10 + rcx*8 + 0x14]
mov ecx, dword [r10 + rcx*8 + 0xc]
sub rax, rcx
add rax, rdx
add rax, qword [r11 + 0x80]
jmp 0x1000dc06
Function at 0x10011c9e
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
movsxd r10, edx
mov r9d, r8d
test edx, edx
jle 0x10011ccb
movsx eax, byte [r9 + rcx]
inc r9
add r8d, eax
imul r8d, r8d, 0x401
mov eax, r8d
shr eax, 6
xor r8d, eax
cmp r9, r10
jl 0x10011cab
lea ecx, [r8 + r8*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret
Function at 0x1400019a0
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, [0x140022129]
call fcn.1400036e0
mov r12, rax
test rax, rax
je 0x140001ad0
mov edx, dword [r13 + 4]
xor r8d, r8d
add edx, dword [rbx]
mov rcx, rax
call fcn.140018250
test eax, eax
js 0x140001ab0
mov ebx, dword [r13 + 0xc]
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r14, rax
test rax, rax
je 0x140001ae5
cmp byte [r13 + 0x10], 1
je 0x140001a90
mov rdi, rax
mov ebp, 0x2000
test rbx, rbx
jne 0x140001a28
jmp 0x140001a71
add rdi, rsi
sub rbx, rsi
je 0x140001a71
cmp rbx, 0x2000
mov rsi, rbp
mov r9, r12
mov rcx, rdi
cmovbe rsi, rbx
mov r8d, 1
mov rdx, rsi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001a20
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.1400024e0
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 0x140001a71
jmp 0x140001a66
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.1400024e0
jmp 0x140001a71
lea rdx, [r13 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r14d, r14d
call fcn.140002480
jmp 0x140001a79
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.1400024e0
jmp 0x140001a71
Function at 0x140001bc0
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 0x140001dc0
cmp byte [rdx + 0x11], 0x6e
je 0x140001cf8
lea rdi, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, rdi
call fcn.140007870
mov r14, rax
test rax, rax
je 0x140001dd6
lea rcx, [r12 + 0x70]
lea rdx, [0x140022129]
call fcn.1400036e0
mov r13, rax
test rax, rax
je 0x140001d58
mov edx, dword [r15 + 4]
xor r8d, r8d
add edx, dword [r12]
mov rcx, rax
call fcn.140018250
test eax, eax
js 0x140001da0
cmp byte [r15 + 0x10], 1
je 0x140001d18
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x140001df6
mov ebx, dword [r15 + 0xc]
test rbx, rbx
je 0x140001d70
mov r15d, 0x2000
jmp 0x140001ca6
mov r9, r14
mov r8d, 1
mov rdx, rsi
mov rcx, r12
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140001d80
sub rbx, rsi
je 0x140001d70
cmp rbx, 0x2000
mov rsi, r15
mov r9, r13
mov rcx, r12
cmovbe rsi, rbx
mov r8d, 1
mov rdx, rsi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001c80
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.1400024e0
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x140001d2b
call fcn.140001b10
mov ebx, eax
test eax, eax
js 0x140001d40
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 0x140001d03
lea rdx, [r15 + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002480
jmp 0x140001d03
mov rdx, rdi
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov ebx, 0xffffffff
call fcn.140002480
jmp 0x140001d33
xor ebx, ebx
jmp 0x140001ce8
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.1400024e0
jmp 0x140001ce8
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.1400024e0
jmp 0x140001d2b
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
mov ebx, 0xffffffff
call fcn.140002480
jmp 0x140001d03
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.1400024e0
jmp 0x140001d03
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.1400024e0
jmp 0x140001d2b