joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800640fc
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x18006429a
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov rdi, qword [rbp + 0x1f8]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x18006413e
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x18006414c
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x18006415a
mov byte [rax], 0x1f
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 + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r8d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x180064194
mov byte [rcx], r15b
inc qword [rbx]
mov rdx, qword [rbx]
cmp rdx, rbx
jae 0x1800641a5
mov cl, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1800641b3
mov byte [rax], r8b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x1800641c4
mov al, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1800641d2
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1800641e0
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov r9, rax
mov qword [rdi + 0x1ec0], rax
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.180063934
mov rcx, qword [r14 + 0x240]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x18006423e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.18004ce58
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.180063fb8
mov rcx, qword [r14 + 0x240]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x18006428a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.18004ce58
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18006526c
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, qword [rcx + 0x798]
lea rax, [rsp + 0x30]
mov rsi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rdi + 0x15c]
mov rdx, qword [rdi + 0x168]
add r8d, 4
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x150], 0
mov dword [rdi + 0x154], eax
jne 0x18006530a
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.180083f00
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x150], eax
mov r8d, dword [rdi + 0x154]
cmp r8d, 4
jge 0x180065357
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.18004ce58
mov dword [rdi + 0xc], 7
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180081d90
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rdi + 0x168]
movzx ecx, byte [rax]
movzx edx, byte [rax + 1]
shl ecx, 8
or edx, ecx
mov dword [rdi + 0xc], edx
sub edx, 3
je 0x18006541d
sub edx, 1
je 0x180065497
sub edx, 1
je 0x1800653c1
cmp edx, 1
je 0x1800653a4
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x1800d6384]
call fcn.18004ce58
jmp 0x180065497
add r8d, 0xfffffffe
lea rdx, [rax + 2]
mov rcx, rdi
call fcn.180064ff0
test eax, eax
je 0x180065497
jmp 0x18006532f
lea rbp, [rax + 4]
xor edx, edx
lea eax, [r8 - 4]
movsxd rbx, eax
mov rax, qword [rdi + 0x168]
mov r8, rbx
movzx ecx, byte [rax + 2]
movzx eax, byte [rax + 3]
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.180085400
mov rdx, rax
mov rcx, rbx
sub rdx, rbp
test rax, rax
cmovne rcx, rdx
cmp rcx, rbx
jae 0x180065497
mov r8, rbp
lea rdx, str.TFTP_error:__s_n
mov rcx, rsi
call fcn.18004cf4c
jmp 0x180065497
cmp r8d, 4
jle 0x180065497
movzx ecx, byte [rax + 2]
mov edx, 1
movzx eax, byte [rax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x48]
add eax, edx
movzx eax, ax
cmp eax, ecx
jne 0x180065497
lea eax, [r8 - 4]
mov rcx, r14
mov r8, qword [rdi + 0x168]
add r8, 4
movsxd r9, eax
call fcn.18004cd80
mov ebx, eax
test eax, eax
je 0x180065476
mov edx, 5
mov rcx, rdi
call fcn.180065d3c
mov eax, ebx
jmp 0x18006532f
mov eax, dword [rdi + 0x154]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0x110], rax
mov rdx, qword [rsi + 0x110]
call fcn.180058940
mov rcx, r14
call fcn.180058b48
test eax, eax
je 0x18006532d
mov edx, 5
mov rcx, rdi
call fcn.180065d3c
mov eax, 0x2a
jmp 0x18006532f
Function at 0x18006b0f8
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, qword [rcx + 0x248]
lea r8, [r11 - 0x28]
mov rsi, qword [rcx]
lea rdx, [r11 - 0x20]
mov rdi, rcx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rcx, rbp
or rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x18006b167
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.18004d91c
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x18006b18c
lea rdx, str.Error_accept__ing_server_connect
call fcn.18004ce58
lea eax, [rbx + 0x1f]
jmp 0x18006b204
lea rdx, str.Connection_accepted_from_server_n
call fcn.18004cf4c
btr dword [rdi + 0x3c4], 0xb
mov ebp, 1
mov edx, ebp
mov qword [rdi + 0x248], rbx
mov rcx, rbx
call fcn.180072130
mov byte [rdi + 0x261], bpl
cmp qword [rsi + 0x738], 0
je 0x18006b202
mov dl, bpl
mov rcx, rsi
call fcn.18003ef2c
mov rcx, qword [rsi + 0x740]
mov r8d, ebp
mov rdx, rbx
call qword [rsi + 0x738]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.18003ef2c
test ebx, ebx
je 0x18006b202
mov rcx, rdi
call fcn.18006b628
lea eax, [rbp + 0x29]
jmp 0x18006b204
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180081d90
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x18006cb70
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 + 0x1f8]
cmp dword [rax + 0x20], 0
je 0x18006cba2
mov r8d, reloc.WS2_32.dll_listen
mov dl, 1
mov dword [rcx + 0x854], r8d
add rsp, 0x20
pop rbx
jmp fcn.18006cc80
mov eax, dword [r8 + 0xe70]
bt eax, 0xe
jae 0x18006cbbb
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.18006d5c8
test byte [r8 + 0xe74], 1
je 0x18006cc3c
mov rdx, qword [rcx + 0x820]
test rdx, rdx
jne 0x18006cc1a
mov r8, qword [r8 + 0xbf8]
test r8, r8
jne 0x18006cbf3
bt eax, 0xd
lea r8, str.LIST
lea rax, str.NLST
cmovb r8, rax
add rcx, 0x798
lea rdx, str.PRET__s
call fcn.180076c74
test eax, eax
jne 0x18006cc41
mov dword [rbx + 0x854], 0x1d
add rsp, 0x20
pop rbx
ret
add rcx, 0x798
mov r8, rdx
bt eax, 0x19
jae 0x18006cc33
lea rdx, str.PRET_STOR__s
jmp 0x18006cc01
lea rdx, str.PRET_RETR__s
jmp 0x18006cc01
call fcn.18006d530
add rsp, 0x20
pop rbx
ret
Function at 0x18006d29c
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rsi, rcx
mov rcx, qword [rcx]
mov edi, r8d
cmp eax, 0x64
jb 0x18006d2d2
lea rdx, str.Couldnt_set_desired_mode
call fcn.18004ce58
lea eax, [rbx + 0x11]
jmp 0x18006d329
cmp edx, 0xc8
je 0x18006d2e9
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.18004cf4c
cmp edi, 0x13
jne 0x18006d2f8
mov rcx, rsi
call fcn.18006d0bc
jmp 0x18006d325
cmp edi, 0x14
jne 0x18006d307
mov rcx, rsi
call fcn.18006c1ec
jmp 0x18006d325
cmp edi, 0x15
jne 0x18006d312
lea r8d, [rdi - 8]
jmp 0x18006d31b
cmp edi, 0x16
jne 0x18006d327
lea r8d, [rdi - 8]
mov dl, 1
mov rcx, rsi
call fcn.18006cc80
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180076560
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rbp, rdx
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rbx + rdx], 0
jne 0x18007657e
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
jbe 0x1800765a0
mov eax, 0x1b
jmp 0x18007668b
test rbx, rbx
je 0x1800765b1
lea rcx, [rbx + rbx]
call qword [fcn.1800865b0]
jmp 0x1800765be
lea rcx, [0x1800d5238]
call qword [0x1800f4050]
mov rdi, rax
test rax, rax
je 0x180076596
xor ecx, ecx
test rbx, rbx
je 0x1800765e0
mov al, byte [rcx + rbp]
mov byte [rdi + rcx*2], al
mov byte [rdi + rcx*2 + 1], 0
inc rcx
cmp rcx, rbx
jb 0x1800765cd
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180076678
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 0x18007666b
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]
and dword [rsp + 0x20], 0
mov r8, rsi
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 [rsi + 0x10], eax
mov byte [rsi + 0x14], al
call qword [fcn.18008628c]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1800766a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, r8
mov dword [rbp - 0x40], 8
mov rdi, rdx
mov dword [rsp + 0x20], 0xf0000000
mov rsi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x30]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
xor ebx, ebx
test eax, eax
je 0x18007680c
mov dl, byte [r14 + 1]
xor eax, eax
mov cl, byte [r14]
mov r8b, byte [r14 + 5]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], eax
mov qword [rbp - 0x28], rax
mov al, dl
shr al, 1
mov byte [rbp - 0x1c], cl
shl cl, 7
or al, cl
shl dl, 6
mov cl, byte [r14 + 2]
mov byte [rbp - 0x1b], al
mov al, cl
shr al, 2
or al, dl
shl cl, 5
mov dl, byte [r14 + 3]
mov byte [rbp - 0x1a], al
mov al, dl
shr al, 3
or al, cl
shl dl, 4
mov cl, byte [r14 + 4]
mov byte [rbp - 0x19], al
mov al, cl
shr al, 4
or al, dl
shl cl, 3
mov byte [rbp - 0x18], al
mov edx, 8
mov al, r8b
mov word [rbp - 0x28], 0x208
shr al, 5
or al, cl
shl r8b, 2
mov cl, byte [r14 + 6]
mov byte [rbp - 0x17], al
mov al, cl
add cl, cl
shr al, 6
or al, r8b
mov byte [rbp - 0x15], cl
lea rcx, [rbp - 0x1c]
mov byte [rbp - 0x16], al
mov dword [rbp - 0x24], 0x6601
mov dword [rbp - 0x20], 8
call fcn.180079b98
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x28]
mov dword [rsp + 0x20], ebx
lea r8d, [r9 + 0x14]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x1800767fe
mov rax, qword [rsi]
xor r9d, r9d
mov rcx, qword [rbp - 0x38]
xor r8d, r8d
mov qword [rdi], 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], rdi
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov bl, 1
mov rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180081d90
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x18007aee4
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov ebp, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [fcn.1800865b0]
xor esi, esi
mov rdi, rax
test rax, rax
je 0x18007afed
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x18007af62
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 ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
test rbp, rbp
je 0x18007afe2
mov rsi, rbp
mov al, 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]
mov al, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
mov byte [rsp + 0x40], al
inc r14
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x18007af76
jmp 0x18007afe2
mov rcx, qword [rdi + 8]
lea rdx, [0x1800c44db]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1800c44dc]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
inc rsi
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jb 0x18007afb7
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x18007bc54
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
mov qword [rbp - 0x38], rcx
mov rdx, rcx
lea rcx, [0x1800f4120]
call fcn.18007b0f0
or rdi, 0xffffffffffffffff
mov r9, rdi
xor r8d, r8d
lea rdx, [0x1800f4128]
lea rcx, [0x1800f4220]
call fcn.180003a30
mov r9, rdi
xor r8d, r8d
lea rdx, [0x1800f4128]
lea rcx, [0x1800f4240]
call fcn.180003a30
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
xor edi, edi
mov qword [rbp - 0x20], rdi
mov byte [rbp - 0x30], dil
lea r8d, [rdi + 0xa]
lea rdx, str.first_load
lea rcx, [rbp - 0x30]
call fcn.180003900
nop
lea rcx, [rbp - 0x30]
call fcn.18007ce7c
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x18007bd14
inc rdx
lea r8d, [rdi + 1]
mov rcx, qword [rbp - 0x30]
call fcn.180001f60
call fcn.18007b2f8
cmp byte [reloc.WS2_32.dll_accept], dil
je 0x18007bd30
cmp qword [0x1800f8650], rdi
jne 0x18007bd30
call fcn.18007c438
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x20], rdi
mov byte [rbp - 0x30], dil
mov r8d, 0xa
lea rdx, str.loop_begin
lea rcx, [rbp - 0x30]
call fcn.180003900
nop
lea rcx, [rbp - 0x30]
call fcn.18007ce7c
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x18007bd7d
inc rdx
mov r8d, 1
mov rcx, qword [rbp - 0x30]
call fcn.180001f60
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x18007ccec]
xor edx, edx
xor ecx, ecx
call fcn.180092d2c
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rcx, rbx
call fcn.18003a310
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180081d90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1800948f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1800946a0

Function at 0x1800a0538
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1800a01f4
call fcn.180086590
mov dword [rax], socket
call fcn.1800861f4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800a01dc
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1800a01dc
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1800a0226
lock or dword [rax + 0x14], 0x10
jmp 0x1800a01dc
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1800a0243
mov rcx, qword [rbp + 0x10]
call fcn.1800a1764
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18009ecf8
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.18009a648
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1800a029a
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1800a01dc
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1800a0306
mov rcx, qword [rbp + 0x10]
call fcn.18009ecf8
cmp eax, 0xffffffff
je 0x1800a02ed
mov rcx, qword [rbp + 0x10]
call fcn.18009ecf8
cmp eax, 0xfffffffe
je 0x1800a02ed
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18009ecf8
movsxd rdi, eax
lea rsi, [0x1800f9bd0]
mov rcx, rbx
sar rdi, 6
call fcn.18009ecf8
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1800a02f4
lea rax, [0x1800f47d0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800a0306
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1800a033c
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1800a0338
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1800a0338
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1800a01df
jmp 0x1800a01ac
Function at 0x1800a0540
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1800a03a6
call fcn.180086590
mov dword [rax], socket
call fcn.1800861f4
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800a0388
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1800a0388
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x1800a03d8
lock or dword [rax + 0x14], 0x10
jmp 0x1800a0388
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1800a03f5
mov rcx, qword [rbp + 0x20]
call fcn.1800a1764
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x1800a040a
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x1800a0410
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.18009ecf8
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.18009a648
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x1800a0463
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x1800a0388
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1800a04cf
mov rcx, qword [rbp + 0x20]
call fcn.18009ecf8
cmp eax, 0xffffffff
je 0x1800a04b6
mov rcx, qword [rbp + 0x20]
call fcn.18009ecf8
cmp eax, 0xfffffffe
je 0x1800a04b6
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.18009ecf8
movsxd rdi, eax
lea r15, [0x1800f9bd0]
mov rcx, rbx
sar rdi, 6
call fcn.18009ecf8
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x1800a04bd
lea rax, [0x1800f47d0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800a04cf
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x1800a0505
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1800a0501
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1800a0501
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x1800a0523
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x1800a052e
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x1800a038d
jmp 0x1800a0354
Function at 0x141caa210
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141caa397
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 0x141caa241
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141caa227
add dl, dl
jne 0x141caa24e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141caa2ae
xor eax, eax
add dl, dl
jne 0x141caa25d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141caa365
add dl, dl
jne 0x141caa26e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141caa27b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141caa288
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141caa295
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141caa2a2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141caa236
mov eax, 1
add dl, dl
jne 0x141caa2be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141caa2cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141caa2b3
sub eax, ebx
mov ebx, 1
jne 0x141caa304
mov ecx, 1
add dl, dl
jne 0x141caa2e6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141caa2f3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141caa2db
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141caa236
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141caa320
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141caa32d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141caa315
cmp eax, 0x7d00
jae 0x141caa353
cmp eax, 0x500
jb 0x141caa34e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141caa236
cmp eax, 0x7f
ja 0x141caa356
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141caa236
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141caa38a
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 0x141caa236
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20