joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1404daf10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1404e00a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1404db0c0
mov rax, qword [0x1404e00a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1404daf5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1404dafe7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1404daf40
mov rcx, r12
call fcn.1404db9c0
mov rbp, rax
test rax, rax
je 0x1404db11d
mov rax, qword [0x1404e00a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.1404dbaf0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1404e00a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1404db102
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1404dafe0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1404db070
add dword [0x1404e00a4], 1
cmp ebx, 8
jae 0x1404db018
test bl, 4
jne 0x1404db0d0
test ebx, ebx
je 0x1404db009
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1404db0f0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1404db009
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1404db04a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1404e00a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1404dafe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1404daea0
xor edi, edi
jmp 0x1404daf67
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1404db009
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1404db009
mov rax, qword [0x1404e00a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.1404daea0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1404daea0
nop
nop dword [rax]
Function at 0x1404db630
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1404e0100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1404e00e0]
test rbx, rbx
je 0x1404db684
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1404db67b
test r12, r12
je 0x1404db67b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1404db660
lea rcx, [0x1404e0100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1404db9c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1404dd360]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1404dba39
mov rcx, r10
call fcn.1404db890
test eax, eax
je 0x1404dba39
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1404dba36
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1404dba2d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1404dba39
add r8, 0x28
cmp r8, r9
jne 0x1404dba18
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
push rsi
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x1400111f4
Capabilities:
Terminate process

Disassembly:
jmp 0x140012e90
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001127b
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400141e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014200
xor al, al
jmp 0x140014281
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014213
xor al, al
jmp 0x140014281
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001423d
xor al, al
jmp 0x140014281
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014251
xor al, al
jmp 0x140014281
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014263
xor al, al
jmp 0x140014281
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001427f
xor al, al
jmp 0x140014281
mov al, 1
add rsp, 0x38
ret
Function at 0x180001890
Capabilities:
Copy file
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
cmp qword [rsp + 0x90], 0
jne 0x1800018af
xor eax, eax
jmp 0x1800019a1
mov rcx, qword [rsp + 0x90]
call fcn.1800f9644
add rax, 2
mov qword [rsp + 0x68], rax
mov eax, 2
mul qword [rsp + 0x68]
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800f8d24
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x68]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.1800f8b90
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
call fcn.1800f968c
mov qword [rsp + 0x20], 0
lea rax, [rsp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov eax, 0x414
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x180001995
cmp dword [rsp + 0x60], 0x402
je 0x180001995
mov dword [rsp + 0x78], 0
jmp 0x18000199d
mov dword [rsp + 0x78], 1
mov eax, dword [rsp + 0x78]
add rsp, 0x80
pop rdi
ret

Function at 0x180002590
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x50], 0
jne 0x1800025bd
jmp 0x18000264e
mov rcx, qword [rsp + 0x50]
call fcn.1800f9644
cmp rax, 2
jae 0x1800025cf
jmp 0x18000264e
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x1800025f4
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 2]
cmp eax, 0x5c
jne 0x1800025f4
mov dword [rsp + 0x20], 1
jmp 0x18000264e
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x30], ax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 2]
mov word [rsp + 0x32], ax
xor eax, eax
mov word [rsp + 0x34], ax
xor eax, eax
mov word [rsp + 0x36], ax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 4
je 0x18000263a
cmp dword [rsp + 0x24], 1
jne 0x180002644
mov dword [rsp + 0x20], 1
jmp 0x18000264e
xor eax, eax
test eax, eax
jne 0x1800025b0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800f98f0
add rsp, 0x48
ret

Function at 0x180002670
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
cmp dword [0x18022fda8], 0
jne 0x180002699
mov dword [0x18022fda8], 1
mov edx, 0x104
lea rcx, [0x18022fba0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [0x18022fba0]
add rsp, 0x28
ret

Function at 0x180002c20
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
cmp dword [0x180231458], 0
jne 0x180002c49
mov dword [0x180231458], 1
mov edx, 0x104
lea rcx, [0x180231250]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [0x180231250]
add rsp, 0x28
ret
Function at 0x180003400
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
cmp dword [0x180233348], 0
jne 0x18000345f
mov dword [0x180233348], 1
call fcn.180127bf0
test eax, eax
je 0x18000344d
xor r8d, r8d
mov edx, 0x104
lea rcx, [0x180233140]
call fcn.180130110
test eax, eax
je 0x18000344b
lea rdx, [0x1801a71f0]
lea rcx, [0x180233140]
call fcn.1800f9660
jmp 0x18000345f
mov edx, 0x104
lea rcx, [0x180233140]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [0x180233140]
add rsp, 0x28
ret

Function at 0x1800038c0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
cmp dword [0x1802343c8], 0
jne 0x18000391f
mov dword [0x1802343c8], 1
call fcn.180127bf0
test eax, eax
je 0x18000390d
xor r8d, r8d
mov edx, 0x104
lea rcx, [0x1802341c0]
call fcn.180129750
test eax, eax
je 0x18000390b
lea rdx, [0x1801a71f0]
lea rcx, [0x1802341c0]
call fcn.1800f9660
jmp 0x18000391f
mov edx, 0x104
lea rcx, [0x1802341c0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [0x1802341c0]
add rsp, 0x28
ret
Function at 0x1800199c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x60], 0
jne 0x1800199e5
mov eax, 0x80000002
jmp 0x180019bda
mov dword [rsp + 0x20], 0
mov rdx, qword [rsp + 0x60]
lea rcx, [0x1802385e0]
call fcn.1800c0cc0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x180019a46
mov eax, dword [rsp + 0x70]
and eax, 1
test eax, eax
je 0x180019a1e
mov eax, 0x80000001
jmp 0x180019bda
mov r9d, dword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [0x1802385e0]
call fcn.1800c0d30
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
jmp 0x180019a6f
mov r9d, dword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [0x1802385e0]
call fcn.1800c06c0
test eax, eax
jne 0x180019a6f
mov eax, 0x80000003
jmp 0x180019bda
mov eax, dword [rsp + 0x70]
and eax, 0x100
test eax, eax
je 0x180019ba7
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x2c]
call fcn.1800caa90
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x180019aa4
cmp dword [rsp + 0x2c], 1
je 0x180019abf
mov ecx, 1
call fcn.1800cab30
test eax, eax
jne 0x180019abf
mov eax, dword [rsp + 0x20]
or eax, 0x80000008
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x70]
and eax, 0x1000
test eax, eax
je 0x180019b61
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov ecx, 1
call sym.TSandbox64.dll_AddFileControlPolicyByProcessID
lea rdx, [0x1801a6e60]
lea rcx, [rsp + 0x38]
call fcn.1800e9640
mov r8, qword [rsp + 0x68]
lea rdx, [0x1801b61b0]
lea rcx, [rsp + 0x38]
call fcn.1800e6ce0
mov rcx, qword [rsp + 0x38]
call fcn.1800cfe20
lea rdx, [0x1801a6e60]
lea rcx, [rsp + 0x40]
call fcn.1800e9640
mov r8, qword [rsp + 0x60]
lea rdx, str.HKEY_USERSTSandbox__s
lea rcx, [rsp + 0x40]
call fcn.1800e6ce0
mov rcx, qword [rsp + 0x40]
call fcn.1800cffe0
lea rcx, [rsp + 0x40]
call fcn.1800e5c00
lea rcx, [rsp + 0x38]
call fcn.1800e5c00
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x70]
and eax, 0x10000
test eax, eax
je 0x180019b81
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x70]
and eax, 0x20000
test eax, eax
je 0x180019b99
mov eax, dword [rsp + 0x34]
or eax, 2
mov dword [rsp + 0x34], eax
mov ecx, dword [rsp + 0x34]
call fcn.1800cac50
call fcn.1800d1e90
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xffffffff
jne 0x180019bd6
mov rcx, qword [rsp + 0x68]
call fcn.180001830
test eax, eax
jne 0x180019bd6
mov eax, dword [rsp + 0x20]
or eax, 8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x58
ret
Function at 0x180029dd0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rsp + 0x38], 0
jne 0x180029dea
xor eax, eax
jmp 0x180029dfd
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call fcn.1800ee790
add rsp, 0x28
ret

Function at 0x180055200
Capabilities:
Get disk information

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x498
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rax, qword [rsp + 0x4b0]
mov qword [rsp + 0x38], rax
mov r8d, 4
lea rdx, [0x1801a7600]
mov rcx, qword [rsp + 0x4b0]
call fcn.1800fb284
test eax, eax
je 0x180055291
mov r8d, 4
lea rdx, [0x1801a75f0]
mov rcx, qword [rsp + 0x4b0]
call fcn.1800fb284
test eax, eax
je 0x180055291
mov r8d, 4
lea rdx, [0x1801a75e0]
mov rcx, qword [rsp + 0x4b0]
call fcn.1800fb284
test eax, eax
jne 0x1800552a2
mov rax, qword [rsp + 0x4b0]
add rax, 8
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x38]
call fcn.1800f9644
cmp rax, 4
jb 0x1800553b5
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 2]
cmp eax, 0x3a
jne 0x1800553b5
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 4]
cmp eax, 0x5c
jne 0x1800553b5
lea rax, [rsp + 0x48]
lea rcx, [0x1801bc664]
mov rdi, rax
mov rsi, rcx
mov ecx, 6
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x4e]
mov rdi, rax
xor eax, eax
mov ecx, 6
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
mov ecx, eax
call fcn.1800fb624
mov word [rsp + 0x48], ax
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x1800553b5
xor eax, eax
mov word [rsp + 0x60], ax
lea rax, [rsp + 0x62]
mov rdi, rax
xor eax, eax
mov ecx, 0x40e
rep stosb byte [rdi], al
mov dword [rsp + 0x470], 0x208
lea r8, [rsp + 0x470]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call sub.MPR.dll_WNetGetConnectionW
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x1800553b5
mov rax, qword [rsp + 0x38]
add rax, 4
mov ecx, dword [rsp + 0x4c0]
dec ecx
mov ecx, ecx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [0x1801bc658]
mov edx, ecx
mov rcx, qword [rsp + 0x4b8]
call fcn.1800fa2bc
mov dword [rsp + 0x30], 1
cmp dword [rsp + 0x30], 0
jne 0x180055410
mov rcx, qword [rsp + 0x38]
call fcn.1800f9644
mov qword [rsp + 0x478], rax
mov eax, dword [rsp + 0x4c0]
dec eax
mov eax, eax
cmp qword [rsp + 0x478], rax
jbe 0x1800553f6
mov eax, dword [rsp + 0x4c0]
dec eax
mov eax, eax
mov qword [rsp + 0x478], rax
mov r8, qword [rsp + 0x478]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x4b8]
call fcn.1800f8dd0
mov eax, 1
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1800f98f0
add rsp, 0x498
pop rdi
pop rsi
ret
Function at 0x180060b30
Capabilities:
Get common file path
Get disk information

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xca8
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0xc90], rax
mov eax, dword [0x180237998]
and eax, 1
test eax, eax
jne 0x180060b8a
mov eax, dword [0x180237998]
or eax, 1
mov dword [0x180237998], eax
mov rax, qword [0x1801cd028]
mov qword [0x180237990], rax
lea rcx, [0x1801a5a70]
call fcn.1800fadc4
mov eax, dword [0x180237998]
and eax, 2
test eax, eax
jne 0x180060bc0
mov eax, dword [0x180237998]
or eax, 2
mov dword [0x180237998], eax
mov rax, qword [0x1801cd028]
mov qword [0x180237988], rax
lea rcx, [0x1801a5a50]
call fcn.1800fadc4
mov rax, qword [0x180237990]
cmp dword [rax - 8], 0
jne 0x180060bda
mov dword [rsp + 0xc84], 1
jmp 0x180060be5
mov dword [rsp + 0xc84], 0
cmp dword [rsp + 0xc84], 0
je 0x180060d3a
xor eax, eax
mov word [rsp + 0x30], ax
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 0x40e
rep stosb byte [rdi], al
mov edx, 0x208
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x180060d3a
lea rdx, str.System32
lea rcx, [rsp + 0x30]
call fcn.1800f9660
xor eax, eax
mov word [rsp + 0x860], ax
lea rax, [rsp + 0x862]
mov rdi, rax
xor eax, eax
mov ecx, 0x40e
rep stosb byte [rdi], al
mov r8d, 0x208
lea rdx, [rsp + 0x860]
lea rcx, [rsp + 0x30]
call fcn.180055de0
mov dword [rsp + 0xc80], eax
cmp dword [rsp + 0xc80], 0
jne 0x180060c8f
lea rdx, [rsp + 0x860]
lea rcx, [0x180237990]
call fcn.1800e5dc0
lea rax, [rsp + 0xc70]
lea rcx, [0x1801bc664]
mov rdi, rax
mov rsi, rcx
mov ecx, 6
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xc76]
mov rdi, rax
xor eax, eax
mov ecx, 6
rep stosb byte [rdi], al
movzx eax, word [rsp + 0x30]
mov word [rsp + 0xc70], ax
xor eax, eax
mov word [rsp + 0x450], ax
lea rax, [rsp + 0x452]
mov rdi, rax
xor eax, eax
mov ecx, 0x40e
rep stosb byte [rdi], al
mov r8d, 0x208
lea rdx, [rsp + 0x450]
lea rcx, [rsp + 0xc70]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [rsp + 0x440], eax
cmp dword [rsp + 0x440], 0
jbe 0x180060d3a
lea rax, [rsp + 0x34]
mov r9, rax
lea r8, [rsp + 0x450]
lea rdx, [0x1801bc658]
lea rcx, [0x180237988]
call fcn.1800e6ce0
cmp qword [rsp + 0xcc0], 0
je 0x180060d99
cmp dword [rsp + 0xcc8], 0
jle 0x180060d99
movsxd rax, dword [rsp + 0xcc8]
mov qword [rsp + 0xc88], rax
xor edx, edx
lea rcx, [0x180237988]
call fcn.1800e5fb0
mov rcx, qword [rsp + 0xc88]
mov r8, rcx
mov rdx, rax
mov rcx, qword [rsp + 0xcc0]
call fcn.1800f8dd0
mov edx, 0xffffffff
lea rcx, [0x180237988]
call fcn.1800e6020
mov rax, qword [0x180237990]
mov rcx, qword [rsp + 0xc90]
xor rcx, rsp
call fcn.1800f98f0
add rsp, 0xca8
pop rdi
pop rsi
ret
Function at 0x180061ce0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
cmp qword [rsp + 0x20], 0
je 0x180061cff
mov eax, dword [rsp + 0x28]
cmp rax, 0x40
jae 0x180061d06
xor eax, eax
jmp 0x180061d8e
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180061d8c
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp]
movsxd rcx, dword [rcx + 0x3c]
add rcx, 4
cmp rax, rcx
jbe 0x180061d8c
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x180061d85
mov rax, qword [rsp + 8]
mov eax, dword [rax]
and rax, 0xffff
movzx eax, ax
cmp eax, 0x454e
je 0x180061d85
mov rax, qword [rsp + 8]
mov eax, dword [rax]
and rax, 0xffff
movzx eax, ax
cmp eax, 0x454c
jne 0x180061d8c
mov eax, 1
jmp 0x180061d8e
xor eax, eax
add rsp, 0x18
ret
Function at 0x180062cf0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x30], 1
cmp qword [rsp + 0xb8], 0
jne 0x180062d40
cmp qword [rsp + 0xc0], 0
je 0x180062e33
xor eax, eax
mov word [rsp + 0x48], ax
lea rax, [rsp + 0x4a]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_ntohl
rep stosb byte [rdi], al
mov dword [rsp + 0x38], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_getsockname]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
jne 0x180062ddc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0x2726
jne 0x180062ddc
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0xb0]
mov r8d, 0x700b
mov edx, 0xffff
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_getsockname]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
je 0x180062e2b
lea rax, [rsp + 0x48]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0xb8], 0
je 0x180062e0a
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 4]
mov dword [rax], ecx
cmp qword [rsp + 0xc0], 0
je 0x180062e29
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x60]
movzx ecx, word [rcx + 2]
mov word [rax], cx
jmp 0x180062e33
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0xc8], 0
jne 0x180062e4d
cmp qword [rsp + 0xd0], 0
je 0x180062f4f
xor eax, eax
mov word [rsp + 0x70], ax
lea rax, [rsp + 0x72]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_ntohl
rep stosb byte [rdi], al
mov dword [rsp + 0x6c], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x6c]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_getpeername]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0xffffffff
jne 0x180062eef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0x2726
jne 0x180062eef
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0xb0]
mov r8d, 0x700b
mov edx, 0xffff
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r8, [rsp + 0x6c]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_getsockname]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0xffffffff
je 0x180062f47
lea rax, [rsp + 0x70]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0xc8], 0
je 0x180062f23
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 4]
mov dword [rax], ecx
cmp qword [rsp + 0xd0], 0
je 0x180062f45
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x88]
movzx ecx, word [rcx + 2]
mov word [rax], cx
jmp 0x180062f4f
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1800f98f0
add rsp, 0xa0
pop rdi
ret