joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180033740
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x160
mov rax, qword [0x18009ddc8]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xb1e], 0
mov rbx, rcx
jne 0x180033783
cmp qword [rcx + 0x1e0], 0
je 0x180033850
mov r8, rdx
mov qword [rsp + 0x158], rdi
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call sym.libcurl.dll_curl_mvsnprintf
mov rdx, qword [rbx + 0x1e0]
movsxd rdi, eax
test rdx, rdx
je 0x1800337e8
cmp byte [rbx + 0x12d3], 0
jne 0x1800337e8
lea rcx, [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1800337d0
mov byte [rbx + 0x12d3], 1
mov byte [rsp + rdi + 0x30], 0xa
inc rdi
cmp rdi, 0x102
jae 0x1800338a1
cmp byte [rbx + 0xb1e], 0
mov byte [rsp + rdi + 0x30], 0
je 0x180033848
cmp qword [rbx + 0x278], 0
je 0x180033869
mov dl, 1
mov rcx, rbx
call fcn.18002ad50
mov rax, qword [rbx + 0x1d8]
lea r8, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [rbx + 0x278]
xor edx, edx
mov rcx, rbx
call fcn.18002ad50
mov rdi, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180058650
add rsp, 0x160
pop rbx
ret
mov r9, qword [rbx + 0x1d0]
lea rcx, [0x180082b78]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.180067f28
mov r9, qword [rbx + 0x1d0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
call fcn.180067f28
jmp 0x180033848
call fcn.180058778
int3

Function at 0x1800339d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x180033a12
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x38
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180033bb0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x18009ddc8]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x190]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
mov r12, r9
mov rax, r8
shl rax, 5
lea rbx, [rcx + 0x230]
mov r14, qword [rcx + r8*8 + 0x1e8]
add rbx, rax
mov rax, qword [rcx + 0x418]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x180033cbc
lea rax, [0x180033a60]
cmp qword [rcx + r8*8 + 0x210], rax
jne 0x180033cbc
cmp qword [rbx], 0
je 0x180033c41
test rdi, rdi
je 0x180033cbc
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.1800334a0
cmp eax, 0xffffffff
je 0x180033cbc
test al, 1
je 0x180033cbc
mov rcx, qword [rbx]
test rcx, rcx
jne 0x180033c9b
mov eax, dword [rbp + 0x724]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [fcn.180065184]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x180033cf6
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x180033cbc
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
mov dword [rsi], 0
cmp rbx, 0xffffffffffffffff
jne 0x180033d35
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x180033d05
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x180033d35
mov dword [rsi], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x180033d38
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.18003d5c0
mov r8, rax
lea rdx, [0x180082b90]
mov rcx, rbp
call fcn.180033740
mov dword [rbp + 0xdd4], edi
mov dword [rsi], 0x37
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180058650
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18003a350
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x18009ddc8]
xor rax, rsp
mov qword [rbp - 8], rax
mov edx, 1
mov dword [rbp - 0x40], 0x10
mov esi, 2
mov dword [rbp - 0x3c], 1
mov ecx, esi
mov rdi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18003a3a2
jmp 0x18003a56b
mov qword [rsp + 0x90], r14
mov ecx, 0x7f000001
xor r14d, r14d
mov word [rbp - 0x38], si
mov qword [rbp - 0x30], r14
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rbp - 0x3c]
mov word [rbp - 0x36], r14w
mov edx, 0xffff
mov dword [rbp - 0x34], eax
lea r8d, [r14 + 4]
mov qword [rdi + 8], 0xffffffffffffffff
mov rcx, rbx
mov qword [rdi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x18003a542
lea r8d, [r14 + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x18003a542
lea r8, [rbp - 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x18003a542
cmp dword [rbp - 0x40], 0x10
jl 0x18003a542
lea edx, [r14 + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x18003a542
xor r8d, r8d
lea edx, [r14 + 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x18003a542
lea r8d, [r14 + 0x10]
mov rcx, rax
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x18003a542
lea edx, [r14 + 1]
mov rcx, rbx
call fcn.18002ea80
test eax, eax
js 0x18003a542
lea edx, [r14 + 1]
mov qword [rbp - 0x18], rbx
mov r8d, 0x2710
mov dword [rbp - 0x10], 0x300
lea rcx, [rbp - 0x18]
call fcn.180033080
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x18003a542
mov rcx, qword [rdi]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x40], 0x10
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x18003a542
cmp dword [rbp - 0x40], 0x10
jl 0x18003a542
mov rcx, qword [rdi + 8]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x40], 0x10
call qword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x18003a542
cmp dword [rbp - 0x40], 0x10
jl 0x18003a542
movzx eax, word [rbp - 0x28]
cmp word [rbp - 0x38], ax
jne 0x18003a542
mov eax, dword [rbp - 0x24]
cmp dword [rbp - 0x34], eax
jne 0x18003a542
movzx eax, word [rbp - 0x26]
cmp word [rbp - 0x36], ax
jne 0x18003a542
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x18003a563
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov r14, qword [rsp + 0x90]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180058650
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x18003e390
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x180085d08]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x18003e3ba
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x180085d18]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x180085d28]
mov rcx, rbx
mov r14, rax
call fcn.180068060
test rax, rax
je 0x18003e41d
mov rcx, rbx
test r14, r14
je 0x18003e407
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x18003e455
lea rdx, [0x180085d30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18003e455
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x18003e518
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x18003e480
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.180065184]
mov rdi, rax
test rax, rax
je 0x18003e50a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x18003e50a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x18003e4b0
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x18003e4c4
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x18003e4e0
mov rcx, rdi
test r14, r14
je 0x18003e501
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x18003e507
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.180065170]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x18]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1e8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x18003f61f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x180086248]
mov rcx, rbx
mov r8d, eax
call fcn.180033740
mov r9d, edi
lea rdx, [0x180086264]
mov r8d, esi
mov rcx, rbx
call fcn.18003f160
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18003f7c0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x18003f969
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x1b0]
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbp
lea rbx, [rdi + 0x1eb8]
mov qword [rsp + 0x58], r14
lea r14, [rdi + 0x1cb8]
mov qword [rbx], r14
cmp r14, rbx
jae 0x18003f827
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x18003f827
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x18003f827
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 ebp, 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 0x18003f85d
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x50]
cmp r9, rbx
jae 0x18003f8b3
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x18003f8b3
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x18003f8b3
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x18003f8b3
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x18003f8b3
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rsi
call fcn.18003f290
mov rcx, qword [r15 + 0x1e8]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x18003f915
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x180086248]
mov rcx, rsi
mov r8d, eax
call fcn.180033740
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, rsi
call fcn.18003f650
mov rcx, qword [r15 + 0x1e8]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x18003f961
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x180086248]
mov rcx, rsi
mov r8d, eax
call fcn.180033740
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x1800410b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x18009ddc8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x700]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
mov rdx, qword [rdi + 0x150]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x138], 0
mov dword [rdi + 0x13c], eax
jne 0x180041147
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.1800594a0
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r8d, dword [rdi + 0x13c]
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rbp
cmp r8d, 4
jge 0x1800411ad
lea rdx, [0x180086968]
mov rcx, rsi
call fcn.180033740
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180058650
mov rsi, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
ret
mov rdx, qword [rdi + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x1800411e3.1
movsxd rax, ecx
lea r9, [0x180000000]
mov ecx, dword [r9 + rax*4 + 0x412fc]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x1800411e3.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x1800411e3.4
lea eax, [r8 - 4]
mov rcx, rsi
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.180033660
mov ebx, eax
test eax, eax
je 0x180041242
mov edx, 5
mov rcx, rdi
call fcn.180041d10
mov eax, ebx
jmp 0x18004117c
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.180031010
jmp case.0x1800411e3.4
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbx, eax
lea rbp, [rdx + 4]
movzx eax, byte [rdx + 3]
mov rdx, rbx
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.180041d80
cmp rax, rbx
jae case.0x1800411e3.4
mov r8, rbp
lea rdx, [0x180086988]
mov rcx, rsi
call fcn.1800338b0
jmp case.0x1800411e3.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.180040de0
test eax, eax
je case.0x1800411e3.4
jmp 0x18004117c
lea r8, [0x180086998]
mov rcx, rsi
lea rdx, [0x18007c7bc]
call fcn.180033740
mov rcx, rsi
call fcn.180031320
test eax, eax
je 0x18004117a
mov edx, 5
mov rcx, rdi
call fcn.180041d10
mov eax, 0x2a
jmp 0x18004117c
Function at 0x1800563a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x18009ddc8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call case.0x1800087a9.0
mov r13, rax
test rax, rax
jne 0x18005641e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.18003d6f0
mov r9, rax
lea rdx, [0x180089df8]
mov r8, r12
mov rcx, r15
call fcn.180033740
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.180065170]
jmp 0x1800565d8
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x180056491
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.18003d6f0
mov r9, rax
lea rdx, [0x180089e30]
mov r8, r12
mov rcx, r15
call fcn.180033740
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x1800565c2
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1800564da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.18003d6f0
mov r9, rax
lea rdx, [0x180089e60]
mov r8, r12
mov rcx, r15
call fcn.180033740
mov ebx, 0x4d
jmp 0x1800565b6
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x18005650f
mov r8d, 0x100000
lea rdx, [0x180089e98]
mov rcx, r15
call fcn.180033740
mov ebx, 0x4d
jmp 0x1800565ae
lea rcx, [rdi + 1]
call qword [fcn.180065184]
mov rbp, rax
test rax, rax
jne 0x180056529
lea ebx, [rax + 0x1b]
jmp 0x1800565ae
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x180056588
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800565fa
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x18005657f
mov edi, esi
jmp 0x180056581
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x180056540
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.180056100
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.180065170]
mov rcx, r13
call fcn.180065170
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180058650
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.18003d6f0
mov r9, rax
lea rdx, [0x180089ec8]
mov r8, r12
mov rcx, r15
call fcn.180033740
mov ebx, 0x4d
jmp 0x1800565a6
Function at 0x18006da98
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x18006da75
call fcn.180063140
mov dword [rax], 0x16
call fcn.18006c4ec
or eax, 0xffffffff
jmp 0x18006da92
sub dword [rcx + 0x10], 1
jns 0x18006da84
add rsp, 0x28
jmp fcn.18006fa28
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x18006da54
Function at 0x1414da0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1414da237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1414da0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1414da0c7
add dl, dl
jne 0x1414da0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1414da14e
xor eax, eax
add dl, dl
jne 0x1414da0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1414da205
add dl, dl
jne 0x1414da10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414da11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414da128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414da135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1414da142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1414da0d6
mov eax, 1
add dl, dl
jne 0x1414da15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414da16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1414da153
sub eax, ebx
mov ebx, 1
jne 0x1414da1a4
mov ecx, 1
add dl, dl
jne 0x1414da186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1414da193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1414da17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1414da0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1414da1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1414da1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1414da1b5
cmp eax, 0x7d00
jae 0x1414da1f3
cmp eax, 0x500
jb 0x1414da1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1414da0d6
cmp eax, 0x7f
ja 0x1414da1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1414da0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1414da22a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1414da0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14013bf78
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp], rdi
mov edx, 0xca8334b9
lea rdx, [0x140156ed0]
mov edi, 0x68b10f90
movzx edi, byte [r11 + rdi - 0x68b10f90]
push 0x234e882
xor edi, r9d
and edi, 0xff
mov edi, dword [rdx + rdi*4]
shr r9d, 8
xor r9d, edi
inc r11
xor r9d, 0x889d0037
dec r8
lea rsp, [rsp + 8]
jne 0x14013bf88
push 0xffffffffa30f2599
mov rdi, qword [rsp + 8]
lea rsp, [rsp + 0x10]
push 0x17ab40b5
not r9d
mov dword [rsi], r9d
lea rsp, [rsp + 8]
jmp fcn.140133953

Function at 0x1401482a9
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffe80c283d
call fcn.140131587
mov rbp, qword [rdi]
add rdi, 8
jmp 0x140166d85
xor word [rsp + 0xb], 0x5728
test rcx, rcx
lea rsp, [rsp + 0x10]
je 0x140148322
mov eax, 0x1934fdb3
lea rax, [rax + rax*8 - 0x853356b]
push rbx
mov ebx, eax
inc rax
lea rbx, [0x140139bb0]
mov eax, 0xa8810098
inc eax
movzx eax, byte [r11]
push 0xffffffffff0a4b14
xor eax, r9d
and eax, 0xff
mov eax, dword [rbx + rax*4]
shr r9d, 8
push 0x77206c2d
neg byte [rsp + 4]
xor r9d, eax
inc r11
xor r9d, 0x410ae731
ror qword [rsp + 8], 0xfb
dec rcx
lea rsp, [rsp + 0x10]
jne 0x1401482d8
pop rbx
not r9d
push 0xffffffffc0873505
jmp 0x1401553ec
jmp 0x140162098
mov dword [r10], r9d
call fcn.14016e0a9
ror r8b, 1
neg al
neg r8b
shr rax, 0x81
shr ax, 0x81
adc r8b, 0xb3
sar al, 2
shl al, 0x62
jnp 0x140136575
rol r8b, 1
add r8b, 0x8b
xor r9b, r8b
add r8, rsp
xor eax, dword [r8 + rax*8]
jmp 0x140138d1e
mov r8d, 0x51937484
mov rsi, rbp
movzx ebp, r8w
shl bp, 0x26
mov ecx, ebp
jp 0x140167c3d