joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001170
Capabilities:
Encode data using xor
Get session user name

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov rax, qword [0x14002b040]
xor rax, rsp
mov qword [rbp + 0x48], rax
xor eax, eax
mov rsi, rcx
movabs r15, 0x6e776f6e6b6e55
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x78]
mov qword [rbp - 0x78], r15
mov dword [rbp - 0x68], eax
mov rdi, r9
mov word [rbp - 0x64], ax
mov rbx, r8
mov r14, rdx
call fcn.140001070
xorps xmm0, xmm0
mov byte [rbp - 0x60], 0
xor eax, eax
movups xmmword [rbp - 0x5f], xmm0
mov byte [rbp - 0x2f], al
movups xmmword [rbp - 0x4f], xmm0
movups xmmword [rbp - 0x3f], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000123f
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x6c]
lea edx, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140001234
movzx eax, byte [rbp - 0x60]
mov ecx, 0x2a
cmp dword [rsp + 0x6c], 0
cmovne eax, ecx
mov byte [rbp - 0x60], al
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
mov qword [rbp - 0x28], r15
xor eax, eax
mov dword [rsp + 0x68], gethostname
lea rdx, [rsp + 0x68]
mov qword [rbp], rax
lea rcx, [rbp - 0x28]
mov word [rbp + 8], ax
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea r8, [rbp - 0x28]
mov edx, 0x32
lea rcx, [rbp - 0x60]
call fcn.14000b958
xorps xmm0, xmm0
mov qword [rbp + 0x10], r15
xor eax, eax
movups xmmword [rbp + 0x18], xmm0
mov qword [rbp + 0x38], rax
movups xmmword [rbp + 0x28], xmm0
mov word [rbp + 0x40], ax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x32
lea r8, [rbp + 0x10]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
xor eax, eax
mov qword [rsp + 0x78], r15
mov word [rbp - 0x80], ax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x1400276c4]
mov edx, 0xa
mov r9d, eax
lea rcx, [rsp + 0x78]
call fcn.140001010
lea rax, [rsp + 0x70]
mov dword [rsp + 0x70], 0x343678
mov qword [rsp + 0x50], rax
lea r8, str.1_c_s__s__s__s__s__s__s_1
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x48], rax
mov rcx, rbx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
lea edx, [r9 + 0x64]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
call fcn.140001010
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp byte [rbx + rax + 3], 0
lea rax, [rax + 1]
jne 0x140001340
lea edx, [rax + 2]
lea eax, [rdx - 1]
mov dword [rdi], edx
movsxd rcx, eax
test eax, eax
jle 0x140001370
movsxd rdx, edx
add rdx, rbx
movzx eax, byte [rdx - 1]
xor byte [rbx], al
lea rbx, [rbx + 1]
sub rcx, 1
jne 0x140001360
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.140003220
add rsp, 0x158
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140001d50
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r14
sub rsp, 0x38
mov rdi, rcx
mov rsi, rdx
mov ecx, 0x1388
call fcn.14000b950
xor r9d, r9d
mov r8d, 0x1388
mov rdx, rax
mov rcx, rdi
mov r14, rax
xor ebx, ebx
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140001dcd
mov rsi, 0xffffffffffffffff
add ebx, eax
mov rcx, r14
mov edx, ebx
add edx, 0x1388
cmovb rdx, rsi
call fcn.14000c50c
movsxd rdx, ebx
xor r9d, r9d
add rdx, rax
mov r8d, 0x1388
mov rcx, rdi
mov r14, rax
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140001d93
mov rsi, qword [rsp + 0x68]
cmp eax, 0xffffffff
je 0x140001f4e
lea rdx, str.Content_Length
mov rcx, r14
call fcn.140004bf4
mov rdi, rax
test rax, rax
je 0x140001f46
mov edx, recv
mov qword [rsp + 0x78], r13
mov rcx, rax
call fcn.140004ddc
lea rcx, [rdi + 0x10]
mov rbx, rax
mov byte [rax], 0
call fcn.14000c040
mov byte [rbx], 0xd
mov r13d, eax
test eax, eax
jle 0x140001f2a
mov qword [rsp + 0x60], rbp
lea rdx, str._r_n_r_n
mov qword [rsp + 0x70], r12
mov rcx, r14
mov qword [rsp + 0x30], r15
call fcn.140004bf4
xor ebp, ebp
lea r12, [rax + 4]
nop dword [rax]
nop dword [rax + rax]
movsxd rbx, ebp
add rbx, r12
mov rcx, rbx
call fcn.14000c040
movsxd r15, eax
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140001e70
inc ecx
add ebp, ecx
mov rcx, r15
call fcn.14000b950
movsxd rdx, ebp
mov r8, r15
add rdx, r12
mov rcx, rax
mov rdi, rax
call fcn.14001e000
mov rax, qword [rsi + 0x20]
add ebp, r15d
inc rax
mov dword [rsp + 0x2c], 0
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], r15d
cmp qword [rsi + 0x10], rax
ja 0x140001ec3
mov rcx, rsi
call fcn.140001f60
mov r8, qword [rsi + 0x10]
dec r8
and qword [rsi + 0x18], r8
mov rdx, qword [rsi + 0x18]
add rdx, qword [rsi + 0x20]
mov rax, qword [rsi + 8]
and rdx, r8
lea rbx, [rdx*8]
cmp qword [rbx + rax], 0
jne 0x140001efe
mov ecx, reloc.WS2_32.dll_recv
call fcn.140003240
mov rcx, qword [rsi + 8]
mov qword [rbx + rcx], rax
mov rax, qword [rsi + 8]
movups xmm0, xmmword [rsp + 0x20]
mov rcx, qword [rbx + rax]
movups xmmword [rcx], xmm0
inc qword [rsi + 0x20]
cmp ebp, r13d
jl 0x140001e50
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
mov rcx, r14
call fcn.14000c514
mov r13, qword [rsp + 0x78]
mov eax, 1
add rsp, 0x38
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rcx, r14
call fcn.14000c514
xor eax, eax
add rsp, 0x38
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400039fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003a46
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003a46
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a46
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003a46
cmp dword [rcx + 0x84], 0xe
jbe 0x140003a46
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003a48
xor al, al
add rsp, 0x28
ret

Function at 0x14000e6d4
Capabilities:
Parse pe header

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

Function at 0x1400123a4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400123c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000f154
or eax, 0xffffffff
jmp 0x1400123c6
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400131bc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400131d2
mov al, 1
jmp 0x140013232
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400131e3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140013230
mov ecx, dword [rcx + 0x18]
nop
call fcn.140016c9c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140013230
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140013230
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140013230
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140013232
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140013664
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14002c540]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400136bb
cmp word [rdx], r13w
jne 0x1400136bb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400136c0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400137e5
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140013806
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400136f9
mov rdx, r9
mov word [rbx], cx
jmp 0x140013720
cmp r9, r8
jae 0x140013730
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400136da
jmp 0x1400137e5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400137da
cmp dword [rsp + 0x80], esi
je 0x1400137da
lea r8, [0x14002c540]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400137b2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140013782
mov word [rbx], r13w
jmp 0x1400137e2
mov ecx, recv
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001378f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400137e2
cmp word [rsp + 0x70], r13w
jne 0x1400137bf
cmp rbx, r14
je 0x14001377c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140014434
cmp word [rsp + 0x70], r13w
je 0x1400137e5
mov ecx, recv
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14002c540]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400137df
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400137e5
Function at 0x140014784
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14001d970
sub rsp, rax
mov rax, qword [0x14002b040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400107c0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400147d3
mov rax, rbp
jmp 0x1400148db
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x2c540]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001442c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x2c540]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400148d7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400148d7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001442c
test rax, rax
js 0x1400148d7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400148d7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400148c9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400148c9
cmp byte [rcx], 0xd
jne 0x1400148af
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400148be
cmp byte [rcx + 1], 0xa
jne 0x1400148be
inc rcx
jmp 0x1400148be
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2b3a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140014891
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400148db
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140003220
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001617c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400161ac
xor eax, eax
jmp 0x14001626f
mov rbp, rbx
cmp word [rax], si
je 0x1400161d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400161b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400161b4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001609c
movsxd r14, eax
test eax, eax
jne 0x14001620f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400161a5
mov rcx, r14
call fcn.14000f23c
mov rdi, rax
test rax, rax
jne 0x140016228
xor ecx, ecx
call fcn.14000f200
jmp 0x140016204
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001609c
test eax, eax
jne 0x140016259
mov rcx, rdi
call fcn.14000f200
jmp 0x140016263
xor ecx, ecx
call fcn.14000f200
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001b5d0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000c8a4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001b65a
cmp byte [rbp - 0x21], r15b
je 0x14001b655
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001b690
call fcn.140012030
test eax, eax
jne 0x14001b67c
cmp byte [rbp - 0x21], r15b
je 0x14001b674
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001b690
cmp byte [rbp - 0x21], r15b
je 0x14001b68d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000c728
test eax, eax
jne 0x14001b730
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c8a4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001b6cf
cmp byte [rbp - 0x21], r15b
je 0x14001b704
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001b704
call fcn.140012030
test eax, eax
jne 0x14001b6f0
cmp byte [rbp - 0x21], r15b
je 0x14001b6e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001b704
cmp byte [rbp - 0x21], r15b
je 0x14001b701
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000c728
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001b730
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001b733
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001b741
mov rcx, rdi
call fcn.14000f200
cmp byte [rbp + 0x3f], r15b
je 0x14001b750
mov rcx, qword [rbp + 0x27]
call fcn.14000f200
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001c600
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140014434
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140014434
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14001c750
cmp rax, 0xffffffffffffffff
je 0x14001c750
xor edi, edi
test rbp, rbp
jle 0x14001c6fb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140014968
mov rbx, rax
test rax, rax
jne 0x14001c688
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001c6f1
mov edx, 0x8000
mov ecx, r14d
call fcn.14000e750
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140012dbc
cmp eax, 0xffffffff
je 0x14001c6d1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14001c698
mov edx, r15d
mov ecx, r14d
call fcn.14000e750
jmp 0x14001c6f1
cmp byte [rsi + 0x38], dil
je 0x14001c6e8
cmp dword [rsi + 0x34], 5
jne 0x14001c6e8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
cmp byte [rsi + 0x30], dil
je 0x14001c6f1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000f200
jmp 0x14001c764
jns 0x14001c764
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140014434
cmp rax, 0xffffffffffffffff
jne 0x14001c71c
cmp byte [rsi + 0x30], dil
je 0x14001c764
mov edi, dword [rsi + 0x2c]
jmp 0x14001c764
mov ecx, r14d
call fcn.140016c9c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14001c764
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
jmp 0x14001c764
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14001c75d
mov eax, dword [rsi + 0x2c]
jmp 0x14001c762
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140014434
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14001d820
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001d848
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001d848
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1805bb058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1805bb1df
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 0x1805bb089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805bb06f
add dl, dl
jne 0x1805bb096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805bb0f6
xor eax, eax
add dl, dl
jne 0x1805bb0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805bb1ad
add dl, dl
jne 0x1805bb0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805bb0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805bb0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805bb0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1805bb0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1805bb07e
mov eax, 1
add dl, dl
jne 0x1805bb106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805bb113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805bb0fb
sub eax, ebx
mov ebx, 1
jne 0x1805bb14c
mov ecx, 1
add dl, dl
jne 0x1805bb12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805bb13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805bb123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805bb07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1805bb168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805bb175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805bb15d
cmp eax, 0x7d00
jae 0x1805bb19b
cmp eax, 0x500
jb 0x1805bb196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805bb07e
cmp eax, 0x7f
ja 0x1805bb19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805bb07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1805bb1d2
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 0x1805bb07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400011c0
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [rsp + 8], ecx
push rbp
sub rsp, 0x1a0
lea rbp, [rsp + 0x20]
mov eax, dword [rbp + 0x190]
test rax, rax
jne 0x1400011e3
xor eax, eax
jmp 0x1400012c0
mov rax, qword gs:[0x60]
mov qword [rbp], rax
mov rax, qword [rbp]
mov rax, qword [rax + 0x18]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
mov qword [rbp + 0x10], rax
cmp qword [rbp + 0x10], 0
je 0x1400012be
mov rax, qword [rbp + 0x10]
movzx eax, word [rax + 0x48]
test rax, rax
je 0x1400012ac
mov rax, qword [rbp + 0x10]
movzx eax, word [rax + 0x48]
cmp eax, 0x104
jge 0x1400012ac
mov dword [rbp + 0x130], 0
mov eax, dword [rbp + 0x130]
mov rcx, qword [rbp + 0x10]
mov rcx, qword [rcx + 0x50]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x140001284
mov eax, dword [rbp + 0x130]
mov rcx, qword [rbp + 0x10]
mov rcx, qword [rcx + 0x50]
movzx ecx, byte [rcx + rax*2]
call fcn.1400019a0
mov ecx, dword [rbp + 0x130]
mov byte [rbp + rcx + 0x20], al
mov eax, dword [rbp + 0x130]
inc eax
mov dword [rbp + 0x130], eax
jmp 0x14000123d
mov eax, dword [rbp + 0x130]
mov byte [rbp + rax + 0x20], 0
lea rcx, [rbp + 0x20]
call fcn.1400019e0
cmp eax, dword [rbp + 0x190]
jne 0x1400012aa
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
jmp 0x1400012c0
jmp 0x1400012ae
jmp 0x1400012be
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov qword [rbp + 0x10], rax
jmp 0x140001208
xor eax, eax
lea rsp, [rbp + 0x180]
pop rbp
ret
Function at 0x1400012d0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x1b0
lea rbp, [rsp + 0x20]
cmp qword [rbp + 0x1b0], 0
je 0x1400012fd
mov eax, dword [rbp + 0x1b8]
test rax, rax
jne 0x140001304
xor eax, eax
jmp 0x140001484
mov rax, qword [rbp + 0x1b0]
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000132c
xor eax, eax
jmp 0x140001484
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
cmp dword [rax], 0x4550
je 0x140001355
xor eax, eax
jmp 0x140001484
lea rax, [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rdi, rax
lea rsi, [rcx + 0x18]
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
mov eax, 8
imul rax, rax, 0
mov eax, dword [rbp + rax + 0x90]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x110], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x120], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x14]
mov dword [rbp + 0x130], eax
mov dword [rbp + 0x134], 0
jmp 0x140001407
mov eax, dword [rbp + 0x134]
inc eax
mov dword [rbp + 0x134], eax
mov eax, dword [rbp + 0x130]
cmp dword [rbp + 0x134], eax
jae 0x140001484
mov eax, dword [rbp + 0x134]
mov rcx, qword [rbp + 0x118]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x138], rax
mov eax, dword [rbp + 0x134]
mov rcx, qword [rbp + 0x128]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rbp + 0x120]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x140], rax
mov rcx, qword [rbp + 0x138]
call fcn.1400019e0
cmp dword [rbp + 0x1b8], eax
jne 0x14000147f
mov rax, qword [rbp + 0x140]
jmp 0x140001484
jmp 0x1400013f9
lea rsp, [rbp + 0x190]
pop rdi
pop rsi
pop rbp
ret