joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180108740
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x20]
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov dword [rsp + 0x78], 0
lea rcx, [0x1804b7247]
call fcn.1801a9330
mov rcx, qword [rsp + 0xa8]
call fcn.18010aa60
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x78]
or eax, 1
mov dword [rsp + 0x78], eax
mov rcx, qword [rsp + 0xa0]
call fcn.180108860
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x68], rax
xor eax, eax
mov word [rsp + 0x74], ax
jmp 0x1801087ed
movzx eax, word [rsp + 0x74]
inc ax
mov word [rsp + 0x74], ax
mov rax, qword [rsp + 0x68]
add rax, 0x28
mov qword [rsp + 0x68], rax
movzx eax, word [rsp + 0x74]
mov rcx, qword [rsp + 0x58]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x18010882a
cmp qword [rsp + 0x68], 0
je 0x18010881b
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0xa8]
call fcn.18010bc10
jmp 0x180108828
lea rcx, str.There_was_an_invalid_section_:O
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1801087d2
mov rax, qword [rsp + 0xa8]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1803803b0]
call fcn.1801a9100
mov rax, rdi
add rsp, 0x90
pop rdi
ret

Function at 0x180108d40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x48], 0
lea rcx, [0x1804b7247]
call fcn.1801a9330
lea rdx, [fcn.180108d40]
lea rcx, [rsp + 0x28]
call fcn.180107e90
movzx eax, word [rsp + 0x88]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x28]
call fcn.180108070
mov r8d, 0xa
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x180108dec
mov rcx, qword [rsp + 0x80]
call fcn.180023010
mov eax, dword [rsp + 0x48]
or eax, 1
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x80]
jmp 0x180108e8c
lea rcx, [rsp + 0x28]
call fcn.180108070
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x180108e33
mov rcx, qword [rsp + 0x80]
call fcn.180023010
mov eax, dword [rsp + 0x48]
or eax, 1
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x80]
jmp 0x180108e8c
lea rcx, [rsp + 0x28]
call fcn.180108070
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x80]
call fcn.1800227f0
mov eax, dword [rsp + 0x48]
or eax, 1
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x80]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180380500]
call fcn.1801a9100
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x18010ca80
Capabilities:
Allocate or change rwx memory

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, 0x70
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
lea rcx, [0x1804b7363]
call fcn.1801a9330
mov rcx, qword [rsp + 0x88]
call fcn.1801081f0
movzx eax, al
test eax, eax
jne 0x18010caec
mov rcx, qword [rsp + 0x80]
call fcn.180043f30
mov rax, qword [rsp + 0x80]
jmp 0x18010cbb7
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call fcn.180108940
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18010cb30
mov rcx, qword [rsp + 0x80]
call fcn.180043f30
mov rax, qword [rsp + 0x80]
jmp 0x18010cbb7
mov edx, 8
mov rcx, qword [rsp + 0x28]
call fcn.18010ec50
lea r9, [rsp + 0x44]
mov r8d, 0x40
mov edx, 8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x28]
call fcn.1801116e0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x44]
mov edx, 8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x58]
call fcn.18010f250
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
call fcn.18010f320
mov rax, qword [rsp + 0x80]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180381920]
call fcn.1801a9100
mov rax, rdi
add rsp, 0x70
pop rdi
ret

Function at 0x18010cbe0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
lea rcx, [0x1804b7363]
call fcn.1801a9330
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.18010ec50
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
mov r8d, 0x40
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rsp + 0x58]
mov edx, 0x90
mov rcx, qword [rsp + 0x50]
call fcn.1801ad4e0
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rcx, rsp
lea rdx, [0x180381980]
call fcn.1801a9100
add rsp, 0x40
pop rdi
ret
Function at 0x18010ccf0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
lea rcx, [0x1804b7363]
call fcn.1801a9330
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call fcn.18010ec50
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
mov r8d, 0x40
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.1801ace30
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rcx, rsp
lea rdx, [0x1803819e0]
call fcn.1801a9100
add rsp, 0x40
pop rdi
ret

Function at 0x18010da90
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rcx, [0x1804b7363]
call fcn.1801a9330
mov qword [rsp + 0x20], 0
xor eax, eax
cmp eax, 1
je 0x18010db71
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov r8d, 5
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.18010ce90
movzx eax, al
test eax, eax
je 0x18010db09
xor eax, eax
jmp 0x18010db71
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18010db6c
mov r8d, 5
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.18010ce90
movzx eax, al
test eax, eax
je 0x18010db65
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x18010db71
mov rax, qword [rsp + 0x30]
jmp 0x18010db71
jmp 0x18010dab4
add rsp, 0x40
pop rdi
ret
Function at 0x1801132d0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
lea rcx, [0x1804b744d]
call fcn.1801a9330
mov eax, 0xf8
mov eax, eax
mov ecx, dword [0x18047a040]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rcx + rax]
and eax, 1
test eax, eax
jne 0x1801133a3
mov eax, 0xf8
mov eax, eax
mov ecx, dword [0x18047a040]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rcx + rax]
or eax, 1
mov dword [rsp + 0x44], eax
mov eax, dword [0x18047a040]
mov rcx, qword gs:[0x58]
mov edx, 0xf8
mov edx, edx
mov rax, qword [rcx + rax*8]
mov ecx, dword [rsp + 0x44]
mov dword [rdx + rax], ecx
mov eax, reloc.WS2_32.dll_WSASetLastError
mov eax, eax
mov ecx, dword [0x18047a040]
mov rdx, qword gs:[0x58]
add rax, qword [rdx + rcx*8]
mov rcx, rax
call fcn.1801163a0
lea rcx, [0x180331f60]
call fcn.1801aaf00
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov eax, reloc.WS2_32.dll_WSASetLastError
mov eax, eax
mov ecx, dword [0x18047a040]
mov rdx, qword gs:[0x58]
add rax, qword [rdx + rcx*8]
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call fcn.180117790
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x38]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180383090]
call fcn.1801a9100
mov rax, rdi
add rsp, 0x50
pop rdi
ret
Function at 0x180118ee0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x20]
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [0x18045c280]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0xc0], 0
lea rcx, [0x1804b753b]
call fcn.1801a9330
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.18011a880
nop
lea rcx, [rsp + 0x28]
call fcn.18011ad50
movzx eax, al
test eax, eax
jne 0x180118f95
mov rcx, qword [rsp + 0xe0]
call fcn.18011aa60
mov eax, dword [rsp + 0xc0]
or eax, 1
mov dword [rsp + 0xc0], eax
lea rcx, [rsp + 0x28]
call fcn.18011abc0
mov rax, qword [rsp + 0xe0]
jmp 0x1801190ca
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
mov dword [rsp + 0x48], 0x1c
lea rcx, [rsp + 0x28]
call fcn.18011ad20
lea rdx, [rsp + 0x48]
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x180118ffe
mov rcx, qword [rsp + 0xe0]
call fcn.18011aa60
mov eax, dword [rsp + 0xc0]
or eax, 1
mov dword [rsp + 0xc0], eax
lea rcx, [rsp + 0x28]
call fcn.18011abc0
mov rax, qword [rsp + 0xe0]
jmp 0x1801190ca
lea rcx, [rsp + 0x88]
call fcn.18011aa60
nop
mov eax, dword [rsp + 0x48]
cmp rax, 0x10
jae 0x180119020
mov byte [rsp + 0xc4], 1
jmp 0x180119028
mov byte [rsp + 0xc4], 0
movzx eax, byte [rsp + 0xc4]
mov byte [rsp + 0xb4], al
mov dword [rsp + 0x48], 0x1c
movzx eax, byte [rsp + 0xb4]
test eax, eax
je 0x180119069
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x54], eax
jne 0x180119069
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x88]
call fcn.18011a4e0
lea rcx, [rsp + 0x28]
call fcn.18011ad20
lea rdx, [rsp + 0x48]
mov rcx, rax
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18011900c
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0xe0]
call fcn.18011a900
mov eax, dword [rsp + 0xc0]
or eax, 1
mov dword [rsp + 0xc0], eax
lea rcx, [rsp + 0x88]
call fcn.18011ac60
nop
lea rcx, [rsp + 0x28]
call fcn.18011abc0
mov rax, qword [rsp + 0xe0]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1801a9100
mov rax, rdi
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1801a9570
add rsp, 0xd0
pop rdi
ret

Function at 0x180119400
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1804b753b]
call fcn.1801a9330
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [rsp + 0x20]
cmp ecx, eax
je 0x180119443
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
add rsp, 0x30
pop rdi
ret
Function at 0x180119450
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1804b753b]
call fcn.1801a9330
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [rsp + 0x20]
cmp ecx, eax
je 0x180119493
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
add rsp, 0x30
pop rdi
ret

Function at 0x180120830
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x290
lea rdi, [rsp + 0x20]
mov ecx, 0x9c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2a0]
mov rax, qword [0x18045c280]
xor rax, rsp
mov qword [rsp + 0x288], rax
mov dword [rsp + 0x280], 0
lea rcx, [0x1804b75df]
call fcn.1801a9330
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rax, [rsp + 0x160]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rdx, [rsp + 0x160]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.boiii_
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x2a0]
call fcn.180022780
mov eax, dword [rsp + 0x280]
or eax, 1
mov dword [rsp + 0x280], eax
mov rax, qword [rsp + 0x2a0]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180387048]
call fcn.1801a9100
mov rax, rdi
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.1801a9570
add rsp, 0x290
pop rdi
ret
Function at 0x180120940
Capabilities:
Create process memory minidump
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
lea rdi, [rsp + 0x40]
mov ecx, 0x20
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xd0]
mov rax, qword [0x18045c280]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rcx, [0x1804b75df]
call fcn.1801a9330
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x70]
call fcn.180120830
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0xa0]
call fcn.1800305c0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x70]
call fcn.180024210
call fcn.180120800
mov dword [rsp + 0xa8], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0xac], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa8]
mov r8, qword [rsp + 0x68]
mov edx, dword [rsp + 0xac]
mov rcx, qword [rsp + 0xb0]
call sub.dbghelp.dll_MiniDumpWriteDump
test eax, eax
jne 0x180120a99
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.Minidump_Error
lea rdx, str.There_was_an_error_creating_the_minidump__Hit_OK_to_close_the_program.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x7b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rax, qword [rsp + 0x68]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180387130]
call fcn.1801a9100
mov rax, rdi
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1801a9570
add rsp, 0xc0
pop rdi
ret
Function at 0x180120ae0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x20c0
call fcn.1801aa7f0
sub rsp, rax
lea rdi, [rsp + 0x30]
mov ecx, 0x824
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x20d0]
mov rax, qword [0x18045c280]
xor rax, rsp
mov qword [rsp + 0x20b8], rax
mov dword [rsp + 0x20b0], 0
lea rcx, [0x1804b75df]
call fcn.1801a9330
mov rcx, qword [rsp + 0x20d8]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x20d8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0x38]
call fcn.180023010
nop
mov dword [rsp + 0x74], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x74]
mov r8d, 0x2000
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x20d8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180120bd1
mov rcx, qword [rsp + 0x20d0]
call fcn.180023010
mov eax, dword [rsp + 0x20b0]
or eax, 1
mov dword [rsp + 0x20b0], eax
lea rcx, [rsp + 0x38]
call fcn.180024210
mov rax, qword [rsp + 0x20d0]
jmp 0x180120c2f
mov eax, dword [rsp + 0x74]
mov r8d, eax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.180030090
mov eax, dword [rsp + 0x74]
cmp rax, 0x2000
je 0x180120b71
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20d0]
call fcn.1800226e0
mov eax, dword [rsp + 0x20b0]
or eax, 1
mov dword [rsp + 0x20b0], eax
lea rcx, [rsp + 0x38]
call fcn.180024210
mov rax, qword [rsp + 0x20d0]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1801a9100
mov rax, rdi
mov rcx, qword [rsp + 0x20b8]
xor rcx, rsp
call fcn.1801a9570
add rsp, 0x20c0
pop rdi
ret

Function at 0x180120c60
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1804b7783]
call fcn.1801a9330
mov rcx, qword [rsp + 0x40]
call fcn.1800305f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x180120c91
mov al, 1
jmp 0x180120cb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x180120ca6
mov dword [rsp + 0x20], 1
jmp 0x180120cae
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x18013cda0
Capabilities:
Hash data using murmur3

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rcx, [0x1804b7911]
call fcn.1801a9330
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x28], 0x10
jb 0x18013ce61
mov eax, 4
imul rax, rax, 0
mov dl, 1
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + rax]
call fcn.18013d740
mov dword [rsp + 0x38], eax
mov ecx, 4
imul rcx, rcx, 1
mov dl, 7
mov r8, qword [rsp + 0x60]
mov ecx, dword [r8 + rcx]
call fcn.18013d740
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
mov ecx, 4
imul rcx, rcx, 2
mov dl, 0xc
mov r8, qword [rsp + 0x60]
mov ecx, dword [r8 + rcx]
call fcn.18013d740
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
mov ecx, 4
imul rcx, rcx, 3
mov dl, reloc.WS2_32.dll_select
mov r8, qword [rsp + 0x60]
mov ecx, dword [r8 + rcx]
call fcn.18013d740
add eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x40]
add eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x18013ce81
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 0x20]
lea eax, [rcx + rax + 0x165667b1]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
add rax, 0x10
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x18013ceb7
mov rax, qword [rsp + 0x28]
add rax, 4
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rax, 4
cmp rax, qword [rsp + 0x30]
ja 0x18013ceef
mov rax, qword [rsp + 0x28]
imul eax, dword [rax], 0xc2b2ae3d
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dl, reloc.WS2_32.dll_recvfrom
mov ecx, eax
call fcn.18013d740
imul eax, eax, 0x27d4eb2f
mov dword [rsp + 0x20], eax
jmp 0x18013cea9
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
je 0x18013cf39
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
imul eax, eax, 0x165667b1
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov dl, 0xb
mov ecx, dword [rsp + 0x44]
call fcn.18013d740
imul eax, eax, 0x9e3779b1
mov dword [rsp + 0x20], eax
jmp 0x18013ceef
mov eax, dword [rsp + 0x20]
shr eax, 0xf
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
imul eax, dword [rsp + 0x20], 0x85ebca77
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xd
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
imul eax, dword [rsp + 0x20], 0xc2b2ae3d
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x10
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x50
pop rdi
ret
Function at 0x180140a80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x30]
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
lea rcx, [0x1804b7a74]
call fcn.1801a9330
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.1801410a0
nop
lea rax, [0x18013fb20]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
add rax, 8
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
call fcn.18013eb10
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x48]
xor edx, edx
xor ecx, ecx
call fcn.1801d3040
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
je 0x180140b27
lea rcx, [rsp + 0x38]
call fcn.18013eb40
jmp 0x180140b3e
mov rax, qword [rsp + 0x70]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.180164700
nop
lea rcx, [rsp + 0x38]
call fcn.18013eab0
mov rcx, rsp
lea rdx, [0x18038f8b0]
call fcn.1801a9100
add rsp, 0x60
pop rdi
ret

Function at 0x180142b70
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x20]
mov ecx, 0x58
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov rax, qword [0x18045c280]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov dword [rsp + 0x170], 0
lea rcx, [0x1804b7b57]
call fcn.1801a9330
mov dword [rsp + 0x154], 0x101
lea rdx, [rsp + 0x154]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x180142c10
lea rdx, [0x18038fb08]
mov rcx, qword [rsp + 0x190]
call fcn.180022780
mov eax, dword [rsp + 0x170]
or eax, 1
mov dword [rsp + 0x170], eax
mov rax, qword [rsp + 0x190]
jmp 0x180142c49
mov eax, dword [rsp + 0x154]
dec eax
mov eax, eax
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x190]
call fcn.1800227f0
mov eax, dword [rsp + 0x170]
or eax, 1
mov dword [rsp + 0x170], eax
mov rax, qword [rsp + 0x190]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x18038fbf8]
call fcn.1801a9100
mov rax, rdi
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.1801a9570
add rsp, 0x180
pop rdi
ret
Function at 0x180142e50
Capabilities:
Get system firmware table

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x64], 0
lea rcx, [0x1804b7b57]
call fcn.1801a9330
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x80]
call fcn.180111a50
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x64]
or eax, 1
mov dword [rsp + 0x64], eax
mov r9d, dword [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x80]
call fcn.1801131d0
mov rcx, qword [rsp + 0x80]
call fcn.180112d30
mov r9d, dword [rsp + 0x20]
mov r8, rax
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov rax, qword [rsp + 0x80]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x18038fd30]
call fcn.1801a9100
mov rax, rdi
add rsp, 0x70
pop rdi
ret