joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000ff58
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
and qword [r11 - 0x38], 0
xor eax, eax
mov rbp, rdx
mov r12d, r9d
mov edi, r8d
mov rsi, rcx
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
call qword [sym.imp.kERNEL32.dll_CreateEventA]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x18001006c
mov rcx, qword [0x180035c88]
and dword [rsp + 0x88], 0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x88]
mov r8d, edi
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rax
test r12d, r12d
je 0x18000ffea
call qword [sym.imp.kERNEL32.dll_WriteFile]
jmp 0x18000fff0
call qword [sym.imp.kERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001003b
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x3e5
jne 0x180010059
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov r9d, 0x2710
lea ecx, [r8 + 2]
call qword [sym.imp.kERNEL32.dll_WaitForMultipleObjects]
mov rcx, rsi
mov ebx, eax
cmp eax, 1
jne 0x180010053
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x40]
xor r9d, r9d
call qword [sym.imp.kERNEL32.dll_GetOverlappedResult]
mov eax, dword [rsp + 0x88]
add rbp, rax
sub edi, dword [rsp + 0x88]
je 0x18001005d
jmp 0x18000ffc2
call qword [sym.imp.kERNEL32.dll_CancelIo]
test edi, edi
jne 0x18001005f
xor ebx, ebx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.kERNEL32.dll_CloseHandle]
jmp 0x180010074
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1800107dc
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov edi, 8
mov r12, rcx
lea edx, [rdi + 0x14]
call fcn.18001e8e8
mov rcx, qword [0x180035d20]
lea r8, [rsp + 0x58]
mov edx, eax
call fcn.18000d16c
neg eax
sbb rbx, rbx
xor r14d, r14d
and rbx, qword [rsp + 0x58]
cmp rbx, r14
je 0x1800109d7
mov r13d, dword [rbx + 0x4a18]
cmp r13d, r14d
jne 0x180010904
mov r8d, dword [r12]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.kERNEL32.dll_OpenProcess]
mov rsi, rax
cmp rax, r14
je 0x180010871
lea r8, [rbx + 0x10]
xor edx, edx
mov r9d, 0x104
mov rcx, rax
call sub.PSAPI.DLL_GetModuleFileNameExW
mov rcx, rsi
call qword [sym.imp.kERNEL32.dll_CloseHandle]
mov dword [rbx + 0x4a1c], 1
cmp qword [0x180035d28], r14
je 0x1800108e3
lea rcx, [rbx + 0x10]
mov r8d, 0x5c
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov rbp, rax
cmp rax, r14
je 0x1800108e3
lea rcx, [rax + 2]
mov edx, 0x2e
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rsi, rax
cmp rax, r14
je 0x1800108b9
mov word [rax], r14w
mov rcx, qword [0x180035d28]
lea rdx, [rbp + 2]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r14
jne 0x1800108d6
mov dword [rbx + 0x4a1c], r14d
cmp rsi, r14
je 0x1800108e3
mov eax, 0x2e
mov word [rsi], ax
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [r12 + 0x10]
lea rdx, [rbx + 0x218]
mov r8d, 0x400
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [rbx + 0x4a18], 1
cmp dword [rbx + 0x4a1c], r14d
je 0x1800109c0
movzx ecx, word [r12 + 0x20]
cmp cx, r14w
je 0x180010952
mov eax, dword [rbx + 8]
cmp eax, 0x2000
jae 0x180010952
cmp cx, di
jne 0x180010942
cmp eax, r14d
je 0x18001094d
dec eax
mov dword [rbx + 8], eax
jmp 0x18001094d
mov word [rbx + rax*2 + 0xa18], cx
inc dword [rbx + 8]
mov edi, r14d
jmp 0x180010957
mov edi, 0x6f
mov rcx, qword [r12 + 0x22]
cmp rcx, r14
je 0x1800109c0
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov rcx, qword [0x180035a68]
xor edx, edx
lea r8d, [rax + rax + 0x22]
mov ebp, eax
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rsi, rax
cmp rax, r14
je 0x1800109c0
lea rcx, [rax + 0x10]
call qword [sym.imp.kERNEL32.dll_GetSystemTimeAsFileTime]
mov dword [rsi + 0x18], ebp
mov rdx, qword [r12 + 0x22]
lea r8d, [rbp + 1]
lea rcx, [rsi + 0x1c]
add r8, r8
call sub.ntdll.dll_memcpy
lea r11, [rbx + 0x4a20]
mov rcx, qword [r11 + 8]
mov qword [rsi], r11
mov qword [rsi + 8], rcx
mov qword [rcx], rsi
mov qword [r11 + 8], rsi
cmp r13d, r14d
je 0x1800109d7
mov rcx, qword [0x180035d20]
lea r8, [rbx - 0x34]
xor edx, edx
call fcn.180004fd0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180011dac
Capabilities:
Get disk information

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x50
xor eax, eax
mov r12, rdx
mov rdx, qword [0x180035c60]
mov r13, rcx
mov qword [r11 - 0x36], rax
mov qword [r11 - 0x2e], rax
mov qword [r11 - 0x26], rax
lea rcx, [0x180039a70]
xor r14d, r14d
mov word [r11 - 0x38], r14w
add rdx, rcx
lea rcx, [r11 - 0x38]
mov esi, r14d
mov dword [rsp + 0x4a], eax
mov word [rsp + 0x4e], ax
call qword [sym.imp.ntdll.dll_wcscpy]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.kERNEL32.dll_GetLogicalDriveStringsW]
mov rcx, qword [0x180035a68]
xor edx, edx
lea ebx, [rax + 2]
mov ebp, eax
add rbx, rbx
mov r8, rbx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, r14
je 0x180011eee
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
mov rdx, rdi
mov ecx, ebp
call qword [sym.imp.kERNEL32.dll_GetLogicalDriveStringsW]
mov rbx, rdi
cmp word [rdi], r14w
je 0x180011edc
mov rcx, qword [0x180035c88]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180011edc
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x180011ec4
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov r11d, eax
add r11, 2
cmp r11, 0x10
jae 0x180011ec4
lea rcx, [rsp + 0x38]
mov rdx, rbx
call qword [sym.imp.ntdll.dll_wcscpy]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov r8, r12
mov rdx, r13
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call fcn.180026d20
add esi, eax
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_lstrlenW]
inc eax
movsxd rcx, eax
lea rbx, [rbx + rcx*2]
cmp word [rbx], r14w
jne 0x180011e5d
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x1800121e8
Capabilities:
Link many functions at runtime

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 r13
push r15
sub rsp, 0x90
xor edx, edx
mov r13d, ecx
mov rcx, qword [0x180035a68]
mov r12, r8
lea r8d, [rdx + 0x38]
mov rbp, r9
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1800123fb
mov rdx, qword [0x180035c60]
lea r15, [0x180000000]
lea rcx, [rdx + r15 + 0x397f6]
call qword [sym.imp.kERNEL32.dll_GetModuleHandleA]
mov rcx, qword [0x180035c60]
mov edi, 0x7f
lea rdx, [rcx + r15 + 0x3b008]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.kERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1800123e7
mov rax, qword [0x180035c60]
mov rcx, rsi
lea rdx, [rax + r15 + 0x3ab0c]
call qword [sym.imp.kERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x1800123e7
mov rax, qword [0x180035c60]
mov rcx, rsi
lea rdx, [rax + r15 + 0x3ad0a]
call qword [sym.imp.kERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x20], rax
test rax, rax
je 0x1800123e7
mov rax, qword [0x180035c60]
mov rcx, rsi
lea rdx, [rax + r15 + 0x3adba]
call qword [sym.imp.kERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
test rax, rax
je 0x1800123e7
mov rax, qword [0x180035c60]
mov rcx, rsi
lea rdx, [rax + r15 + 0x3b018]
call qword [sym.imp.kERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x30], rax
test rax, rax
je 0x1800123e7
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov edi, 0x40
lea r8d, [rdi - 0x18]
lea rcx, [rsp + 0x60]
xor edx, edx
mov dword [rbx + 0xc], edi
mov dword [rbx + 8], r13d
call sub.ntdll.dll_memset
xor r11d, r11d
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x58]
and qword [rsp + 0x30], r11
and qword [rsp + 0x60], r11
and qword [rsp + 0x68], r11
and qword [rsp + 0x78], r11
and qword [rsp + 0x80], r11
lea rcx, [rsp + 0x50]
mov edx, 0xf001f
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x44], r11d
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x58], 0x30
mov dword [rsp + 0x70], edi
call qword [rbx + 0x10]
test eax, eax
js 0x1800123d6
mov rax, qword [rsp + 0x50]
lea r8, [rsp + 0x48]
or rdx, 0xffffffffffffffff
mov rcx, rbx
mov qword [rbx], rax
call fcn.180001358
mov edi, eax
test eax, eax
jne 0x1800123cc
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call sub.ntdll.dll_memset
mov r11, qword [rsp + 0x48]
mov qword [r12], r11
jmp 0x1800123dd
mov rcx, qword [rsp + 0x50]
call qword [rbx + 0x30]
jmp 0x1800123dd
mov ecx, eax
call qword [rbx + 0x28]
mov edi, eax
test edi, edi
jne 0x1800123e7
mov qword [rbp], rbx
jmp 0x180012400
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
jmp 0x180012400
mov edi, 8
lea r11, [rsp + 0x90]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
ret
Function at 0x180012424
Capabilities:
Get explorer pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edx, dword [0x180035c90]
lea rcx, [0x180035e98]
call fcn.180004b64
test eax, eax
jne 0x1800124d7
call fcn.180028ea0
lea rcx, [0x180035e98]
mov edi, eax
xor edi, 0x81bbe65d
mov edx, edi
call fcn.180004b64
test eax, eax
je 0x180012554
mov ebx, dword [0x180035ea8]
test ebx, ebx
je 0x1800124a1
mov rcx, qword [0x180035e98]
xor r9d, r9d
mov r8d, edi
mov edx, ebx
call fcn.1800283c4
mov r8d, dword [0x180035c90]
mov rcx, qword [0x180035e98]
xor r9d, r9d
mov edx, ebx
call fcn.1800126cc
mov ebx, dword [0x180035eac]
test ebx, ebx
je 0x1800124d7
mov rcx, qword [0x180035ea0]
xor r9d, r9d
mov r8d, edi
mov edx, ebx
call fcn.1800283c4
mov r8d, dword [0x180035c90]
mov rcx, qword [0x180035ea0]
xor r9d, r9d
mov edx, ebx
call fcn.1800126cc
mov r8, qword [0x180035c18]
xor edx, edx
lea ebx, [rdx + 2]
mov ecx, ebx
call qword [sym.imp.kERNEL32.dll_OpenEventA]
mov rdi, rax
test rax, rax
je 0x180012519
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_SetEvent]
mov ecx, 0xbb8
call qword [sym.imp.kERNEL32.dll_Sleep]
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_ResetEvent]
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_CloseHandle]
call qword [sym.imp.USER32.dll_GetShellWindow]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x30]
test r8d, r8d
je 0x180012547
lea rcx, [0x180035e98]
xor edx, edx
call fcn.18001342c
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ebx, dword [rsp + 0x30]
jmp 0x180012547
Function at 0x1800126e8
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x30
mov eax, dword [0x180035c90]
and dword [rsp + 0x48], 0
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov rdi, rcx
call fcn.18001f9e4
lea rdx, [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edx, dword [rsp + 0x48]
test edx, edx
je 0x180012778
mov rcx, qword [0x180035a68]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180012778
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x180012766
mov edx, dword [rsp + 0x48]
mov rcx, rbx
add edx, edx
call fcn.18001e8e8
xor dword [rdi], eax
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
and dword [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.kERNEL32.dll_GetComputerNameW]
mov edx, dword [rsp + 0x48]
test edx, edx
je 0x1800127e4
mov rcx, qword [0x180035a68]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1800127e4
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1800127d2
mov edx, dword [rsp + 0x48]
mov rcx, rbx
add edx, edx
call fcn.18001e8e8
xor dword [rdi + 0xc], eax
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
xor ecx, ecx
mov eax, 1
cpuid
mov r8d, eax
mov eax, dword [rdi + 4]
mov dword [rsp + 0x24], ebx
mov rbx, qword [rsp + 0x50]
xor eax, edx
xor eax, ecx
xor eax, r8d
mov dword [rdi + 4], eax
add rsp, 0x30
pop rdi
ret

Function at 0x18001299c
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea r9, [rsp + 0x30]
xor r8d, r8d
lea ecx, [rbx + 0x13]
mov dl, 1
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
cmp eax, ebx
jl 0x1800129d4
lea ecx, [rbx + 6]
xor edx, edx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
cmp eax, ebx
jne 0x1800129d9
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800129d9
mov ebx, 0x522
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x18001342c
Capabilities:
Resume thread
Terminate thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x50
xor eax, eax
xor esi, esi
mov r12d, r8d
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov rbp, rdx
mov rax, rdx
mov r13, rcx
mov qword [r11 - 0x38], rdx
test rdx, rdx
jne 0x180013487
mov ecx, 0x1f0fff
call qword [sym.imp.kERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x180013487
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800135ac
mov rdx, rax
xor ecx, ecx
call fcn.180015700
test eax, eax
jne 0x180013597
xor edi, edi
cmp byte [0x180035c70], 6
jbe 0x1800134f6
mov rcx, qword [rsp + 0x30]
xor eax, eax
lea r9d, [rdi + 8]
lea r8, [rsp + 0x78]
lea edx, [rdi + 0x34]
mov dword [rsp + 0x7c], eax
mov dword [rsp + 0x78], 2
call qword [sym.imp.ntdll.dll_NtSetInformationProcess]
test eax, eax
js 0x1800134df
mov rcx, rbp
call fcn.180020a50
mov esi, 1
mov rdi, rax
jmp 0x1800134f1
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ebx, eax
test eax, eax
jne 0x18001359c
test rdi, rdi
jne 0x180013521
mov rdx, qword [0x180035c60]
lea rcx, [0x18003a25a]
add rdx, rcx
mov rcx, qword [0x180035f20]
call qword [sym.imp.kERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x180013521
lea ebx, [rax + 0x7f]
jmp 0x18001359c
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call fcn.18002b778
mov ebx, eax
test eax, eax
jne 0x18001359c
mov dword [rsp + 0x40], r12d
test esi, esi
je 0x180013559
lea rcx, [rsp + 0x30]
call fcn.1800198b8
lea rdx, [rsp + 0x30]
mov r9, rdi
mov r8d, 4
mov rcx, r13
call fcn.1800064f4
mov rcx, qword [rsp + 0x38]
mov ebx, eax
test eax, eax
je 0x180013584
xor edx, edx
call qword [sym.imp.kERNEL32.dll_TerminateThread]
jmp 0x18001358a
call qword [sym.imp.kERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.kERNEL32.dll_CloseHandle]
jmp 0x18001359c
mov ebx, 1
test rbp, rbp
jne 0x1800135ac
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.kERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1800135c8
Capabilities:
Access pe header
Allocate or change rwx memory
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x40
mov r15, qword [0x180035a58]
xor ebx, ebx
mov rsi, rcx
mov rdi, rbx
mov qword [rsp + 0x28], rbx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r12, rax
cmp rax, rbx
je 0x1800137bd
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov bpl, bl
call fcn.18000bb1c
cmp eax, ebx
jne 0x1800136bf
mov rcx, qword [rsp + 0x20]
xor edx, edx
mov ebp, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x80], eax
cmp eax, ebx
je 0x1800136a8
mov rcx, qword [0x180035a68]
mov r8d, eax
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov r13, rax
cmp rax, rbx
je 0x1800136a8
mov r8d, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x20]
mov r9, rax
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, ebx
je 0x180013696
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x30]
lea rdx, [0x18002e74c]
mov rcx, r13
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x180013696
mov rax, qword [rsp + 0x30]
mov ebp, dword [rax + 8]
mov rcx, qword [0x180035a68]
mov r8, r13
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x20]
mov rcx, qword [0x180035a68]
xor edx, edx
shr ebp, 0x10
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov cl, bpl
call fcn.180027bf8
mov rcx, qword [0x180035bf0]
lea r8, [rsp + 0x80]
xor edx, edx
mov qword [0x180035a40], rax
call fcn.180002e84
cmp eax, ebx
jne 0x180013754
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.18001e334
cmp eax, ebx
jne 0x180013754
cmp dword [rsp + 0x88], 0x10
jne 0x180013754
mov r8, qword [rsp + 0x30]
mov eax, dword [r12 + 0x58]
cmp dword [r8], eax
jne 0x180013740
cmp qword [r8 + 8], rbx
je 0x180013740
mov eax, dword [r12 + 0x50]
cmp qword [r8 + 8], rax
jae 0x180013740
mov rax, qword [r8 + 8]
lea rdi, [rsi + rax]
mov qword [rsp + 0x28], rdi
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
cmp rdi, rbx
jne 0x1800137a6
xor ecx, ecx
mov edx, 0x1000000
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.kERNEL32.dll_VirtualAlloc]
mov qword [0x180035b70], rax
cmp rax, rbx
je 0x1800137b5
mov eax, dword [r12 + 0x58]
lea rdx, [rsp + 0x28]
mov rcx, rsi
mov qword [0x180035a38], r15
mov qword [0x180035a30], rsi
mov dword [0x180035a28], eax
call fcn.1800141f4
cmp eax, ebx
jne 0x1800137c2
mov rdi, qword [rsp + 0x28]
mov rdx, rdi
mov rcx, rsi
call fcn.1800266fc
mov ebx, eax
jmp 0x1800137c2
call qword [sym.imp.kERNEL32.dll_GetLastError]
jmp 0x1800137b1
mov ebx, 0xb
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x18001391c
Capabilities:
Enumerate pe sections
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
lea rdx, [rax - 0x10]
xor r8d, r8d
mov rbp, rcx
xor ebx, ebx
call fcn.18000bb1c
cmp eax, ebx
jne 0x180013a61
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call fcn.180007c90
mov r11, rax
cmp rax, rbx
je 0x180013a4d
movsxd r9, dword [rbp + 0x3c]
sub r11d, ebp
add r9, rbp
movzx ecx, word [r9 + 0x14]
movzx r10d, word [r9 + 6]
lea r8, [rcx + r9 + 0x18]
cmp r11d, dword [r8 + 0xc]
jb 0x1800139a4
mov ecx, dword [r9 + 0x3c]
mov eax, dword [r8 + 0x10]
lea edx, [rax + rcx - 1]
lea eax, [rcx - 1]
not eax
and edx, eax
add edx, dword [r8 + 0xc]
cmp r11d, edx
jb 0x1800139b9
mov eax, 0xffff
add r8, 0x28
add r10w, ax
je 0x180013a4d
jmp 0x180013982
mov edi, dword [r8 + 0x14]
sub edi, dword [r8 + 0xc]
add edi, r11d
je 0x180013a4d
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.kERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180013a4d
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x180013a44
lea r9, [rsp + 0x78]
lea rdx, [rsp + 0x40]
mov r8d, 4
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.kERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x180013a44
cmp dword [rsp + 0x78], 4
jne 0x180013a44
mov ebx, dword [rsp + 0x40]
add rbx, rbp
mov rcx, rsi
call qword [sym.imp.kERNEL32.dll_CloseHandle]
mov r8, qword [rsp + 0x48]
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1800160a4
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x70
and dword [rax + 0x18], 0
mov r12, r8
mov r8d, dword [r8 + 4]
mov rbp, rdx
mov rsi, rcx
lea rdx, str.0x_08X
lea rcx, [rax - 0x38]
mov dword [rax - 0x28], 1
mov dword [rax - 0x24], 0x2710
mov dword [rax - 0x20], 0x3e8
mov dword [rax + 0x20], 0x1d4c0
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.kERNEL32.dll_OpenWaitableTimerA]
test rax, rax
jne 0x18001628b
mov rcx, qword [0x180035a68]
lea ebx, [rax + 0x60]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x180016135
lea ebx, [rax + 8]
jmp 0x180016299
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
or rax, 0xffffffffffffffff
lea r8, [rsp + 0x60]
mov r9d, 0xc
mov qword [rdi + 0x38], rax
mov qword [rdi + 0x40], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov edx, 0x98000004
mov rcx, rbp
mov qword [rdi + 8], rdi
mov qword [rdi], rdi
mov qword [rdi + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1800161a7
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18001627d
lea r9, [rsp + 0xa8]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rbp
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x18001619a
mov rdx, rbp
mov rcx, rdi
call qword [rsi + 0x40]
mov ebx, eax
test eax, eax
je 0x1800161f7
cmp eax, 1
jne 0x18001627d
mov rdx, r12
mov rcx, rsi
call fcn.180021200
jmp 0x18001627d
lea rcx, [rdi + 0x10]
mov r8d, 0x10
mov rdx, r12
mov qword [rdi + 0x38], rbp
call sub.ntdll.dll_memcpy
lea rcx, [rsi + 0x10]
call qword [sym.imp.kERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 8]
mov qword [rdi], rsi
mov qword [rdi + 8], rax
mov qword [rax], rdi
lea rcx, [rsi + 0x10]
mov qword [rsi + 8], rdi
call qword [sym.imp.kERNEL32.dll_LeaveCriticalSection]
lea r8, [rdi + 0x50]
lea rcx, [0x18000e2d4]
mov rdx, rdi
call fcn.18000ac68
mov qword [rdi + 0x48], rax
test rax, rax
jne 0x18001627b
call qword [sym.imp.kERNEL32.dll_GetLastError]
lea rcx, [rsi + 0x10]
mov ebx, eax
call qword [sym.imp.kERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi + 8]
mov r11, qword [rdi]
lea rcx, [rsi + 0x10]
mov qword [rax], r11
mov qword [r11 + 8], rax
call qword [sym.imp.kERNEL32.dll_LeaveCriticalSection]
jmp 0x18001627d
xor ebx, ebx
test ebx, ebx
je 0x180016299
mov rcx, rdi
call fcn.1800052ac
jmp 0x180016299
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_CloseHandle]
mov ebx, 0x57
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret