joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008750
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub rsp, 0x118
lea rdx, [rsp + 0x50]
lea rcx, [0x14008a1d0]
call fcn.140005d90
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140008942
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140008937
mov rdx, qword [rsp + 0x60]
mov ecx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140008937
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140008937
mov r8d, 0x7fff
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000892c
mov dx, 0x5c
mov rcx, qword [rsp + 0x68]
call fcn.140002110
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x14000892c
xor eax, eax
mov rcx, qword [rsp + 0x70]
mov word [rcx + 2], ax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14000892c
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x14000892c
lea rax, str.0B923354_7A33_4FD4_B849_9911B484B158
mov qword [rsp + 0x28], rax
lea rax, str.server.exe
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x58]
lea r8, str.__s_s___s
mov edx, 0x7fff
mov rcx, qword [rsp + 0x78]
call fcn.14004f7cc
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.14004f6e0
mov dword [rsp + 0xa0], WSASetLastError
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x140008921
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
jmp 0x140008944
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
add rsp, 0x118
ret

Function at 0x140008950
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
lea rax, [0x14008fae0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140008a10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14008fad0], rax
cmp qword [0x14008fad0], 0
je 0x140008994
mov eax, 1
jmp 0x140008996
xor eax, eax
add rsp, 0x38
ret
Function at 0x140010830
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x78
lea rdx, [rsp + 0x40]
lea rcx, [0x14008a1d0]
call fcn.140005d90
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140010969
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001095e
lea rax, str.B2477D19_B12A_46B6_821D_B7A6C2B54AF1
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
lea r8, [0x140068c88]
mov edx, 0x7fff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov qword [rsp + 0x58], 0xffffffffffffffff
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
je 0x140010953
mov edx, 4
lea rcx, [rsp + 0x60]
call fcn.140015140
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x64]
mov r8d, 4
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x64]
cmp rax, 4
jne 0x140010948
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
jmp 0x14001096b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
add rsp, 0x78
ret
Function at 0x140010980
Capabilities:
Accept command line arguments
Write file on windows

Disassembly:
sub rsp, 0x98
cmp dword [0x14008a6ec], 0
jne 0x14001099a
mov eax, 1
jmp 0x140010b4a
mov dword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x48], rax
lea rdx, str.EB1CF6E5_9E98_4B13_B304_5920A16133FC
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140010b3e
cmp dword [rsp + 0x40], 3
jne 0x140010b3e
mov dword [rsp + 0x58], 0
mov edx, 4
lea rcx, [rsp + 0x5c]
call fcn.140015140
mov r8d, reloc.WS2_32.dll_recv
xor edx, edx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x10]
call fcn.140050254
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x140010b3c
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x5c], eax
lea rdx, [rsp + 0x64]
lea rcx, [0x14008a1d0]
call fcn.140005d90
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140010b3c
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140010b31
lea rax, str.B2477D19_B12A_46B6_821D_B7A6C2B54AF1
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
lea r8, [0x140068c98]
mov edx, 0x7fff
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov qword [rsp + 0x78], 0xffffffffffffffff
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0xffffffffffffffff
je 0x140010b26
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, 4
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x80]
cmp rax, 4
jne 0x140010b1b
mov dword [rsp + 0x58], 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140010b46
mov dword [rsp + 0x58], 1
mov eax, dword [rsp + 0x58]
add rsp, 0x98
ret

Function at 0x140010b60
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0x278
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x28], eax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140010bde
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140010bd3
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x38], eax
jne 0x140010bc0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
jmp 0x140010be0
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140010ba5
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x278
ret
Function at 0x140010c40
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov byte [rsp + 0x6c], 0
mov byte [rsp + 0x6d], 0
mov byte [rsp + 0x6e], 0
mov byte [rsp + 0x6f], 0
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 5
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x6c]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x140010cec
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140010ce1
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x68]
add rsp, 0x88
ret

Function at 0x140011000
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x1400110eb
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xffffffff
je 0x1400110e0
mov eax, dword [rsp + 0x48]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400110e0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400110d5
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x58], eax
jne 0x1400110d5
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x48]
mov dword [rax], ecx
mov rax, qword [rsp + 0x50]
jmp 0x1400110ed
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x68
ret
Function at 0x1400153c0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
lea rcx, str.TITANIC.TXT
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x14001544e
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14008fa58], rax
cmp qword [0x14008fa58], 0
je 0x14001544e
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140002450]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14008fa60], rax
cmp qword [0x14008fa60], 0
je 0x140015436
jmp 0x14001544e
mov rcx, qword [0x14008fa58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [0x14008fa58], 0
cmp dword [0x14008c044], 0
jne 0x14001545c
call fcn.140005b80
cmp dword [0x14008c044], 1
jne 0x14001546a
call fcn.140008950
mov ecx, reloc.WS2_32.dll_setsockopt
call fcn.14000dd10
cmp dword [0x14008a604], 1
jne 0x1400154e6
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14008fa68], rax
cmp qword [0x14008fa68], 0
je 0x1400154e6
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140004490]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14008fa70], rax
cmp qword [0x14008fa70], 0
je 0x1400154d9
jmp 0x1400154e6
mov rcx, qword [0x14008fa68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov cx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400155c6
mov ecx, 3
call fcn.14001b260
test eax, eax
jne 0x1400155c6
mov dword [0x140090110], 1
cmp dword [0x14008a6ec], 1
jne 0x14001554e
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14000fea0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14008fcd8], rax
cmp dword [reloc.WS2_32.dll_accept], 1
jne 0x140015583
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14000f380]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14008fca8], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140018d70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140090298], rax
cmp qword [0x140090298], 0
je 0x1400155c0
mov eax, 1
jmp 0x1400155cb
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
add rsp, 0x1d8
ret
Function at 0x140016260
Capabilities:
Create thread
Resolve function by parsing pe exports
Resume thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
add rax, 0x14
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x3c], 0
jmp 0x140016299
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0x64
jge 0x140016420
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x1c
xor edx, edx
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + rax + 0xc]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1400162d8
cmp dword [rsp + 0x38], 0x102
je 0x14001641b
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x1c
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 4], 0
je 0x140016319
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 4]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x40]
mov qword [rax + 4], 0
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0xc], 0
je 0x140016341
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0xc]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0xc], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1400163f4
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400163e9
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 4], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0xc], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 0x14], rcx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1400163de
mov eax, 1
jmp 0x140016422
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x14], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 4], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0xc], 0
jmp 0x14001628f
xor eax, eax
add rsp, 0x68
ret

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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_recv]
add rsp, 0x28
ret
Function at 0x1400164e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_send]
add rsp, 0x28
ret
Function at 0x140018a20
Capabilities:
Get geographical location
Get hostname
Get session user name
Resolve dns

Disassembly:
sub rsp, 0x1d8
mov edx, 0x318
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140018c0f
lea rcx, str.NTDLL.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140018a74
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x140018c11
lea rdx, str.RtlGetVersion
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140018aa5
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x140018c11
mov r8d, 0x11c
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.14004f6e0
mov dword [rsp + 0x40], 0x11c
lea rcx, [rsp + 0x40]
call qword [rsp + 0x30]
test eax, eax
je 0x140018ade
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x140018c11
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x44]
mov dword [rax + 0x308], ecx
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0x30c], ecx
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x4c]
mov dword [rax + 0x310], ecx
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x50]
mov dword [rax + 0x314], ecx
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
mov dword [rsp + 0x160], eax
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x160]
mov dword [rax], ecx
mov edx, 0x50
lea rcx, [rsp + 0x170]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x140018c04
lea rcx, [rsp + 0x170]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x1c0], rax
cmp qword [rsp + 0x1c0], 0
je 0x140018c04
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
mov eax, dword [rax]
mov dword [rcx + 0x228], eax
mov dword [rsp + 0x1c8], reloc.WS2_32.dll_recv
mov rax, qword [rsp + 0x20]
add rax, 4
lea r8, [rsp + 0x1c8]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x140018c04
mov dword [rsp + 0x1cc], 0x101
mov rax, qword [rsp + 0x20]
add rax, 0x24
lea rdx, [rsp + 0x1cc]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, 1
jne 0x140018c04
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x300], rax
mov rax, qword [rsp + 0x20]
jmp 0x140018c11
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
add rsp, 0x1d8
ret
Function at 0x14001e390
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.kernel32
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14001e3ba
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov rcx, rax
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140068e48]
mov rcx, rbx
mov rbp, rax
call fcn.140051a00
test rax, rax
je 0x14001e41c
mov rcx, rbx
test rbp, rbp
je 0x14001e406
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rbp, qword [rsp + 0x40]
mov rsi, rax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, qword [rsp + 0x40]
mov rsi, rax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
test rbp, rbp
je 0x14001e453
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001e453
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rbp, qword [rsp + 0x40]
mov rsi, rax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x50], r13
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r13d, eax
test eax, eax
je 0x14001e517
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
mov qword [rsp + 0x48], r12
not rcx
lea rax, [rcx - 1]
lea ecx, [r13 + 1]
add rcx, rax
call qword [fcn.140051160]
mov r12, rax
test rax, rax
je 0x14001e509
mov edx, r13d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14001e509
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasb al, byte [rdi]
mov eax, 0x5c
mov rdi, r12
not rcx
mov word [rcx + r12 - 1], ax
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
add rdx, r12
sub rdx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
inc rbx
mov byte [rdx + rbx - 1], al
test al, al
jne 0x14001e4e0
mov rcx, r12
test rbp, rbp
je 0x14001e500
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x14001e506
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov rcx, r12
call qword [fcn.140051120]
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
mov rax, rsi
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001e530
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x278
mov rax, qword [0x14008e168]
xor rax, rsp
mov qword [rsp + 0x260], rax
test cl, 2
je 0x14001e59c
lea rdx, [rsp + 0xc0]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14001e57f
movzx eax, word [rsp + 0xc0]
cmp al, 2
jne 0x14001e579
shr ax, 8
cmp al, 2
je 0x14001e59c
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400512b0
add rsp, 0x278
ret
call fcn.140033420
test eax, eax
jne 0x14001e698
lea rcx, str.iphlpapi.dll
mov qword [rsp + 0x270], rbx
call fcn.14001e390
mov qword [0x1400902b8], rax
test rax, rax
je 0x14001e5ee
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400902c0]
test rax, rax
cmovne rcx, rax
mov qword [0x1400902c0], rcx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x9c
call fcn.14004f6e0
xor ebx, ebx
mov r8b, 3
lea edx, [rbx + 2]
xor ecx, ecx
mov dword [rsp + 0x20], 0x9c
mov qword [rsp + 0x24], 6
mov dword [rsp + 0x30], 2
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [rbx + 1]
mov r8b, 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [rbx + 0x20]
mov r8b, 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [rbx + 0x10]
mov r8b, 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [rbx + 8]
mov r8b, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [rbx + 0x33]
lea rcx, [rsp + 0x20]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
lea rcx, [0x140091660]
test eax, eax
setne bl
mov dword [0x140091668], ebx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rbx, qword [rsp + 0x270]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400512b0
add rsp, 0x278
ret