joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450b00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x450c77
movzx edx, byte [rax]
test edx, edx
jne 0x450b34
nop dword [rax]
test r8b, r8b
jne 0x450b34
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x450b47
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x450c37
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x450c25
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x450c17
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x450b9d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x450be0
mov eax, 1
cmp rax, rbx
ja 0x450bcb
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.00463800
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x450c0f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x450bd3
mov rcx, r11
mov eax, r12d
jmp 0x450ba2
mov rcx, rbx
call fcn.00463740
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00463740
mov eax, r8d
mov rcx, rbx
call fcn.00463800
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x450c6d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x450c30
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x450b4d
mov eax, edx
mov rcx, rbx
call fcn.00463740
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00463740
nop
int3

Function at 0x456840
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4568f5
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call fcn.004544c0
nop
test bl, bl
je 0x4568ef
mov qword [rsp + 0x18], rax
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
lea rcx, [0x00456940]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.00461340
xorps xmm15, xmm15
mov r14, qword [0x005ecad0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00461460
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00456840
Function at 0x459840
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4598ef
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x00459940]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00461340
xorps xmm15, xmm15
mov r14, qword [0x005ecad0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00461460
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.00459840
Function at 0x463260
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x404363
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.0040a100
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00461460
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x404340
cmp byte [0x005ec8cb], 0
je 0x463275
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x4604a0
jmp 0x404340

Function at 0x463280
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005ecba0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005ec8cb], 0
je 0x4632b5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005ecec0]
aesenc xmm0, xmmword [0x005eced0]
aesenc xmm0, xmmword [0x005ecee0]
movq rax, xmm0
ret
jmp 0x40a320

Function at 0x4632c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005ecba0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005ec8cb], 0
je 0x4632f6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005ecec0]
aesenc xmm0, xmmword [0x005eced0]
aesenc xmm0, xmmword [0x005ecee0]
movq rax, xmm0
ret
jmp 0x40a380

Function at 0x465080
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x4650b4
mov rcx, 0x28
jmp 0x4650bf
shl rcx, 3
add rcx, 0x1480
mov qword [0x005ecad0], rcx
pop rbp
ret
Function at 0x47cce0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47cdaa
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.004038c0
xorps xmm15, xmm15
mov r14, qword [0x005ecad0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47cd8f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004a7600]
xor ebx, ebx
mov rcx, rdx
call fcn.00449c00
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.0047d8a0
inc rbx
cmp rcx, rbx
jae 0x47cd7e
mov edi, 1
lea rsi, [0x004a7600]
call fcn.00449ce0
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004e3ae8]
lea rsi, [0x004e3340]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00461460
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0047cce0
Function at 0x2fc4d2d30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d3e10
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d3732
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d37ca
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d37ae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d37a2
cmp qword [rbp - 0x10], 0
je 0x2fc4d37a2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d3768
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d37cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d38d0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d38f8
mov eax, 0
jmp 0x2fc4d3946
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d3921
mov eax, 0
jmp 0x2fc4d3946
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d3941
mov eax, 0
jmp 0x2fc4d3946
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d394c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d39ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d39c1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d39c1
mov rax, qword [rbp - 8]
jmp 0x2fc4d39df
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d3994
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180001eb0
Capabilities:
Enumerate files on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x4f0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [r11 - 0x228]
call fcn.1800795c0
mov r8d, 0x104
lea rdx, [rsp + 0x2d0]
mov rcx, qword [0x18011c100]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebp, ebp
test eax, eax
je 0x180001f34
cmp eax, 0x104
ja 0x180001f34
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov word [rax], bp
jmp 0x180001f4a
call fcn.180003220
test eax, eax
js 0x1800020e1
cmp eax, 1
je 0x1800020e1
lea rdx, str.PlugFormat_
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x80]
call fcn.1800795c0
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbp
mov word [rsp + 0x30], bp
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x2d0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x28]
call fcn.180002890
nop
mov r8d, 5
lea rdx, str..dll
lea rcx, [rsp + 0x28]
call fcn.180002750
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180002010
cmp qword [rsp + 0x48], 8
jb 0x180002003
mov rcx, qword [rsp + 0x30]
call fcn.180076a50
xor eax, eax
jmp 0x1800020e1
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbp
mov word [rsp + 0x58], bp
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x2d0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x50]
call fcn.180002890
nop
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xac]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0xac]
lea rcx, [rsp + 0x50]
call fcn.180002750
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov r8d, 1
mov rcx, rsi
call fcn.180001d90
nop
cmp qword [rsp + 0x70], 8
jb 0x1800020aa
mov rcx, qword [rsp + 0x58]
call fcn.180076a50
lea rdx, [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180002010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rsp + 0x48], 8
jb 0x1800020df
mov rcx, qword [rsp + 0x30]
call fcn.180076a50
xor eax, eax
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.180076a70
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180003b20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r13
sub rsp, 0x30
mov rbx, qword [rsp + 0x80]
xor r13d, r13d
mov r10, r9
mov rbp, rdx
mov r12, rcx
test rbx, rbx
je 0x180003b4f
mov dword [rbx], r13d
mov edi, dword [rsp + 0x70]
test edi, edi
jne 0x180003b5e
xor eax, eax
jmp 0x180003c76
mov qword [rsp + 0x50], rsi
cmp rdx, 0xffffffffffffffff
je 0x180003c6c
mov rsi, qword [rsp + 0x78]
test rsi, rsi
je 0x180003c6c
test r8d, r8d
je 0x180003bbc
mov rax, qword [r9]
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
jne 0x180003ba0
test edi, 0x1ff
je 0x180003bbc
mov r9, rsi
mov r8, r10
mov rdx, rbp
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], edi
call fcn.180003e70
jmp 0x180003c71
mov rdx, qword [r10]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180003c47
lea r9, [rsp + 0x70]
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
mov dword [rsp + 0x70], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180003c5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x180003c16
cmp eax, 0x3e6
je 0x180003c16
test eax, eax
jle 0x180003c71
movzx eax, ax
or eax, 0x80070000
jmp 0x180003c71
mov edx, edi
mov rcx, r12
call fcn.180003e00
test eax, eax
js 0x180003c71
cmp eax, 1
je 0x180003c71
mov rdx, qword [r12]
lea r9, [rsp + 0x70]
mov r8d, edi
mov rcx, rbp
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180003c4e
call fcn.180003220
jmp 0x180003c71
mov rdx, qword [r12]
mov r8, rdi
mov rcx, rsi
call fcn.1800785c0
test rbx, rbx
je 0x180003c68
mov eax, dword [rsp + 0x70]
mov dword [rbx], eax
xor eax, eax
jmp 0x180003c71
mov eax, 0x80070057
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x180003c90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rbx, qword [rsp + 0x80]
xor r13d, r13d
mov r10, r9
mov rsi, rdx
mov r12, rcx
test rbx, rbx
je 0x180003cbf
mov dword [rbx], r13d
mov edi, dword [rsp + 0x70]
test edi, edi
jne 0x180003cce
xor eax, eax
jmp 0x180003dea
mov qword [rsp + 0x50], rbp
mov rbp, qword [rsp + 0x78]
test rbp, rbp
je 0x180003de0
cmp rdx, 0xffffffffffffffff
je 0x180003de0
test r8d, r8d
je 0x180003d2c
mov rax, qword [r9]
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
jne 0x180003d10
test edi, 0x1ff
je 0x180003d2c
mov r9, rbp
mov r8, r10
mov rdx, rsi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], edi
call fcn.180003fd0
jmp 0x180003de5
mov rdx, qword [r10]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180003dca
lea r9, [rsp + 0x70]
mov r8d, edi
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x70], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180003dd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x180003d8a
cmp eax, 0x3e6
je 0x180003d8a
test eax, eax
jle 0x180003de5
movzx eax, ax
or eax, 0x80070000
jmp 0x180003de5
mov edx, edi
mov rcx, r12
call fcn.180003e00
test eax, eax
js 0x180003de5
cmp eax, 1
je 0x180003de5
mov rcx, qword [r12]
mov r8, rdi
mov rdx, rbp
call fcn.1800785c0
mov rdx, qword [r12]
lea r9, [rsp + 0x70]
mov r8d, edi
mov rcx, rsi
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180003dd1
call fcn.180003220
jmp 0x180003de5
test rbx, rbx
je 0x180003ddc
mov eax, dword [rsp + 0x70]
mov dword [rbx], eax
xor eax, eax
jmp 0x180003de5
mov eax, 0x80070057
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x180003e70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, qword [rsp + 0x88]
xor edi, edi
mov r14, r9
mov r13, r8
mov r12, rdx
mov r15, rcx
test rbp, rbp
je 0x180003ea5
mov dword [rbp], edi
mov esi, dword [rsp + 0x80]
test esi, esi
jne 0x180003eb7
xor eax, eax
jmp 0x180003f77
test r9, r9
je 0x180003fc9
cmp rdx, 0xffffffffffffffff
je 0x180003fc9
test r8, r8
je 0x180003fc9
mov rcx, qword [r8]
mov qword [rsp + 0x60], rbx
mov rax, rcx
cqo
and edx, 0x1ff
lea rbx, [rdx + rax]
mov rax, rsi
sar rbx, 9
shl rbx, 9
sub rax, rbx
lea rax, [rax + rcx + 0x1ff]
mov rcx, r15
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0xfffffe00
mov edx, eax
mov qword [rsp + 0x88], rax
call fcn.180003e00
test eax, eax
js 0x180003f72
cmp eax, 1
je 0x180003f72
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180003f6d
mov r8d, dword [rsp + 0x88]
mov rdx, qword [r15]
lea r9, [rsp + 0x80]
mov rcx, r12
mov dword [rsp + 0x80], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180003f8f
call fcn.180003220
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, dword [r13]
mov ecx, dword [rsp + 0x80]
sub eax, ebx
cmp ecx, eax
jbe 0x180003fbd
sub ecx, eax
cmp ecx, esi
cmovb esi, ecx
mov edi, esi
test esi, esi
je 0x180003fbd
mov edx, eax
mov r8, rdi
mov rcx, r14
add rdx, qword [r15]
call fcn.1800785c0
test rbp, rbp
je 0x180003fc5
mov dword [rbp], edi
xor eax, eax
jmp 0x180003f72
mov eax, 0x80070057
jmp 0x180003f77
Function at 0x180003fd0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, qword [rsp + 0x98]
xor edi, edi
mov r15, r9
mov r13, r8
mov r12, rdx
mov r14, rcx
test rbp, rbp
je 0x180004005
mov dword [rbp], edi
mov esi, dword [rsp + 0x90]
test esi, esi
jne 0x180004017
xor eax, eax
jmp 0x180004134
test r9, r9
je 0x180004171
cmp rdx, 0xffffffffffffffff
je 0x180004171
test r8, r8
je 0x180004171
mov rcx, qword [r8]
mov qword [rsp + 0x70], rbx
mov rax, rcx
cqo
and edx, 0x1ff
lea rbx, [rdx + rax]
mov rax, rsi
sar rbx, 9
shl rbx, 9
sub rax, rbx
lea rax, [rax + rcx + 0x1ff]
mov rcx, r14
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0xfffffe00
mov edx, eax
mov qword [rsp + 0x30], rax
call fcn.180003e00
test eax, eax
js 0x18000412f
cmp eax, 1
je 0x18000412f
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18000412a
mov r8d, dword [rsp + 0x30]
mov rdx, qword [r14]
lea r9, [rsp + 0x98]
mov rcx, r12
mov dword [rsp + 0x98], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000412a
mov r13d, dword [r13]
mov r8, rsi
mov rdx, r15
sub r13d, ebx
mov ecx, r13d
add rcx, qword [r14]
call fcn.1800785c0
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18000412a
mov r8d, dword [rsp + 0x30]
mov rdx, qword [r14]
lea r9, [rsp + 0x90]
mov rcx, r12
mov dword [rsp + 0x90], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18000414f
call fcn.180003220
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test rbp, rbp
je 0x18000416d
mov eax, dword [rsp + 0x90]
cmp eax, r13d
jbe 0x18000416a
sub eax, r13d
cmp eax, esi
cmovb esi, eax
mov edi, esi
mov dword [rbp], edi
xor eax, eax
jmp 0x18000412f
mov eax, 0x80070057
jmp 0x180004134
Function at 0x180009e00
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov qword [rcx + 0x30], recv
xor edi, edi
mov rbx, rcx
mov qword [rcx + 0x28], rdi
mov byte [rcx + 0x18], dil
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea rdx, [0x1801171e8]
mov ecx, 0x1f4
call fcn.180077024
xor edx, edx
mov r8d, 0x1f4
mov rcx, rax
mov qword [rbx + 0x38], rax
call fcn.1800795c0
mov qword [rbx], 0xffffffffffffffff
mov qword [rbx + 8], 0xffffffffffffffff
mov dword [rbx + 0x50], edi
mov qword [rbx + 0x48], 0xffffffffffffffff
mov dword [rbx + 0x60], edi
mov dword [rbx + 0x64], edi
mov qword [rbx + 0x58], rdi
mov dword [rbx + 0x40], edi
mov rax, rbx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.180076a70
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1d0
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x58]
mov r12, r9
mov esi, r8d
mov rdi, rdx
test rcx, rcx
jne 0x18000a665
mov eax, 0x80004005
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
test r8d, r8d
je 0x18000a775
cmp rdx, rcx
jae 0x18000a775
lea rax, [rdx + rsi]
cmp rax, rcx
jbe 0x18000a684
mov esi, ecx
sub esi, edx
cmp qword [rbx + 0x48], rdx
je 0x18000a6e5
mov rcx, rbx
call fcn.18000b070
test eax, eax
js 0x18000a748
cmp eax, 1
je 0x18000a748
mov rdx, rdi
mov rcx, rbx
call fcn.18000b3d0
test eax, eax
js 0x18000a748
cmp eax, 1
je 0x18000a748
mov rcx, rbx
mov qword [rbx + 0x48], rdi
call fcn.18000b4d0
test eax, eax
js 0x18000a748
cmp eax, 1
je 0x18000a748
mov rcx, rbx
call fcn.18000b1b0
test eax, eax
js 0x18000a748
cmp eax, 1
je 0x18000a748
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r13
mov ebp, esi
test esi, esi
je 0x18000a75e
mov r13d, 0x1000
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x18000a76e
mov r8d, ebp
mov eax, ebp
cmp ebp, r13d
cmova r8d, r13d
mov edx, esi
xor r9d, r9d
sub rdx, rax
add rdx, r12
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp eax, 0xffffffff
jne 0x18000a756
xor edi, edi
call fcn.180003220
test eax, eax
js 0x18000a73e
cmp eax, 1
jne 0x18000a75a
mov rbp, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
add qword [rbx + 0x48], rdi
sub ebp, edi
jne 0x18000a700
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x18000a76a
mov dword [rax], esi
xor eax, eax
jmp 0x18000a73e
mov eax, 0x80004005
jmp 0x18000a73e
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x18000a785
mov dword [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret