joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003cbe0
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
add rax, 0x34
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x1800b9af8], 0
je 0x18003ccb4
mov rax, qword [rsp + 0x40]
cmp dword [rax + 8], 0xffffffff
je 0x18003ccb4
cmp dword [rsp + 0x50], 0
je 0x18003ccb4
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 8]
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [0x1800b9af8]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jle 0x18003cc86
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
jmp 0x18003ccaf
cmp qword [0x1800b9b00], 0
je 0x18003ccaf
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 8]
mov edx, 0xffffffff
mov rcx, qword [0x1800b9b00]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x18003cc05
mov rax, qword [rsp + 0x40]
add rax, 0x34
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x38
ret

Function at 0x18003d0e0
Capabilities:
Create thread

Disassembly:
mov byte [rsp + 8], cl
sub rsp, 0x28
movzx eax, byte [rsp + 0x30]
cmp eax, 0x40
jg 0x18003d0fb
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x18003d0ff
xor eax, eax
jmp 0x18003d174
movsx eax, word [0x1800b9b10]
test eax, eax
jne 0x18003d16f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1800b9af0], rax
movzx eax, byte [rsp + 0x30]
mov word [0x1800b9b10], ax
xor r8d, r8d
xor edx, edx
lea rcx, [0x18003d380]
call fcn.180077f70
mov qword [0x1800b74f0], rax
mov edx, 0xffffffff
mov rcx, qword [0x1800b9af0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1800b9af0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1800b9af0], 0
mov eax, 1
add rsp, 0x28
ret
Function at 0x18003d290
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 8], ecx
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [0x1800b9b08]
mov rdx, qword [rsp + 0x50]
mov qword [rcx + rax*8], rdx
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [0x1800b9af8]
mov rdx, qword [rsp + 0x60]
mov qword [rcx + rax*8], rdx
movsxd rax, dword [rsp + 0x58]
mov r8d, 0x33
mov rcx, qword [0x1800b9b00]
mov rdx, qword [rcx + rax*8]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 1
mov edx, 6
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], 0x100000
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 0x1002
mov edx, 0xffff
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x48
ret
Function at 0x18003da90
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2c8
mov rax, qword [0x1800b7480]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea rdx, [rsp + 0xb0]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x18003dc23
mov dword [rsp + 0x20], 0
jmp 0x18003dae3
mov eax, dword [rsp + 0x20]
add eax, 4
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
movsx eax, byte [rsp + rax + 0xb0]
test eax, eax
je 0x18003dc23
movsxd rax, dword [rsp + 0x20]
lea rax, [rsp + rax + 0xb0]
lea rdx, [0x18009b974]
mov rcx, rax
call fcn.18008f360
test eax, eax
je 0x18003db38
movsxd rax, dword [rsp + 0x20]
lea rax, [rsp + rax + 0xb0]
lea rdx, [0x18009b988]
mov rcx, rax
call fcn.18008f360
test eax, eax
jne 0x18003db3a
jmp 0x18003dad8
movsxd rax, dword [rsp + 0x20]
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rsp + rax + 0xb0]
mov byte [rsp + rcx + 0x24], al
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov ecx, 1
imul rcx, rcx, 1
movzx eax, byte [rsp + rax + 0xb0]
mov byte [rsp + rcx + 0x24], al
mov eax, 1
imul rax, rax, 2
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 3
jae 0x18003db89
jmp 0x18003db8e
call fcn.180034020
mov rax, qword [rsp + 0x30]
mov byte [rsp + rax + 0x24], 0
mov r8d, 0x64
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x18003dbb6
xor eax, eax
jmp 0x18003dc25
lea rcx, [rsp + 0x40]
call fcn.180076e90
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x28]
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x2d0]
call fcn.1800659e0
test eax, eax
jne 0x18003dc1e
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x2d8]
call fcn.180076dc0
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x2d0]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x2d8]
call fcn.180076d20
mov eax, 1
jmp 0x18003dc25
jmp 0x18003dad8
xor eax, eax
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1800336f0
add rsp, 0x2c8
ret

Function at 0x18003dc50
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
mov rax, qword [0x1800b7480]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x18003dcac
xor eax, eax
jmp 0x18003dd09
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
jne 0x18003dcd4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18003dd09
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0x30]
call fcn.18003da90
test eax, eax
jne 0x18003dcf9
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18003dd09
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800336f0
add rsp, 0x150
pop rdi
ret
Function at 0x18003ddd0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x328
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1800b7480]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov dword [rsp + 0x300], 0x19db
mov dword [rsp + 0x304], 0x4eb
mov dword [rsp + 0x308], 0x23dd
mov dword [rsp + 0x30c], 0xb47
lea rdx, [rsp + 0x300]
lea rcx, [rsp + 0x40]
call fcn.180036cb0
nop
lea rax, [rsp + 0x30]
lea rcx, [0x18009b910]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.180037e30
mov rcx, qword [rsp + 0x340]
call fcn.18003dd70
mov rcx, qword [rsp + 0x340]
call fcn.180076e90
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x340]
add rcx, rax
mov rax, rcx
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.18008f650
mov rcx, qword [rsp + 0x340]
call fcn.18003dd30
test eax, eax
jne 0x18003df5a
mov r8d, 0x100
xor edx, edx
mov rcx, qword [rsp + 0x340]
call fcn.18008fcf0
mov rdx, qword [rsp + 0x340]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rcx, qword [rsp + 0x340]
call fcn.180076e90
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x340]
mov byte [rcx + rax], 0x5c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x340]
add rcx, rax
mov rax, rcx
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.18008f650
mov rcx, qword [rsp + 0x340]
call fcn.18003dd30
test eax, eax
jne 0x18003df5a
mov r8d, 0x100
xor edx, edx
mov rcx, qword [rsp + 0x340]
call fcn.18008fcf0
nop
lea rcx, [rsp + 0x40]
call fcn.180037c60
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.1800336f0
add rsp, 0x328
pop rdi
pop rsi
ret
Function at 0x1800401d0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2c8
mov rax, qword [0x1800b7480]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea rdx, [rsp + 0xb0]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x180040363
mov dword [rsp + 0x20], 0
jmp 0x180040223
mov eax, dword [rsp + 0x20]
add eax, 4
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
movsx eax, byte [rsp + rax + 0xb0]
test eax, eax
je 0x180040363
movsxd rax, dword [rsp + 0x20]
lea rax, [rsp + rax + 0xb0]
lea rdx, [0x18009bc04]
mov rcx, rax
call fcn.18008f360
test eax, eax
je 0x180040278
movsxd rax, dword [rsp + 0x20]
lea rax, [rsp + rax + 0xb0]
lea rdx, [0x18009bc14]
mov rcx, rax
call fcn.18008f360
test eax, eax
jne 0x18004027a
jmp 0x180040218
movsxd rax, dword [rsp + 0x20]
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rsp + rax + 0xb0]
mov byte [rsp + rcx + 0x24], al
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov ecx, 1
imul rcx, rcx, 1
movzx eax, byte [rsp + rax + 0xb0]
mov byte [rsp + rcx + 0x24], al
mov eax, 1
imul rax, rax, 2
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 3
jae 0x1800402c9
jmp 0x1800402ce
call fcn.180034020
mov rax, qword [rsp + 0x30]
mov byte [rsp + rax + 0x24], 0
mov r8d, 0x64
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x1800402f6
xor eax, eax
jmp 0x180040365
lea rcx, [rsp + 0x40]
call fcn.180076e90
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x28]
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x2d0]
call fcn.1800659e0
test eax, eax
jne 0x18004035e
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x2d8]
call fcn.180076dc0
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x2d0]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x2d8]
call fcn.180076d20
mov eax, 1
jmp 0x180040365
jmp 0x180040218
xor eax, eax
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1800336f0
add rsp, 0x2c8
ret

Function at 0x180040390
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
mov rax, qword [0x1800b7480]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1800403ec
xor eax, eax
jmp 0x180040449
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
jne 0x180040414
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180040449
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0x30]
call fcn.1800401d0
test eax, eax
jne 0x180040439
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180040449
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800336f0
add rsp, 0x150
pop rdi
ret
Function at 0x180040ff0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x58]
and ax, 1
movzx eax, ax
test eax, eax
je 0x180041040
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x30c]
mov rcx, qword [rsp + 0x40]
movzx ecx, byte [rcx + 0x30e]
imul eax, ecx
mov rcx, qword [rsp + 0x40]
movzx ecx, byte [rcx + 0x30d]
add eax, ecx
jmp 0x1800411da
mov cl, 4
call fcn.18003d0e0
test eax, eax
jne 0x180041055
mov eax, 0xfffffff6
jmp 0x1800411da
lea rdx, [0x1800b9b28]
mov rcx, qword [rsp + 0x48]
call fcn.180040070
test eax, eax
jne 0x180041074
mov eax, 0xfffffff5
jmp 0x1800411da
mov eax, dword [0x1800b9b28]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
movzx ecx, word [rsp + 0x20]
mov word [rax + 0x31c], cx
mov rax, qword [rsp + 0x40]
movzx ecx, word [rsp + 0x22]
mov word [rax + 0x31e], cx
mov rax, qword [rsp + 0x40]
add rax, 0x28c
mov rcx, rax
call fcn.1800432b0
mov rax, qword [rsp + 0x40]
add rax, 0x28c
mov rcx, rax
call fcn.180044fd0
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x30e]
test eax, eax
je 0x1800410e6
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x30f]
test eax, eax
jne 0x180041103
mov rax, qword [rsp + 0x40]
add rax, 0x28c
mov rcx, rax
call fcn.180043320
mov eax, 0xfffffff4
jmp 0x1800411da
mov rax, qword [rsp + 0x40]
add rax, 0x28c
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call fcn.1800433a0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
call qword [rax + reloc.WS2_32.dll_htonl]
mov edx, 0x1388
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0xf0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1800411c2
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x58]
or ax, 1
mov rcx, qword [rsp + 0x40]
mov word [rcx + 0x58], ax
cmp qword [0x1800b74f8], 0xffffffffffffffff
jne 0x180041197
mov r8, qword [rsp + 0x40]
xor edx, edx
lea rcx, [0x1800415d0]
call fcn.180077f70
mov qword [0x1800b74f8], rax
mov edx, 0xffffffff
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0xf0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x30c]
mov rcx, qword [rsp + 0x40]
movzx ecx, byte [rcx + 0x30e]
imul eax, ecx
mov rcx, qword [rsp + 0x40]
movzx ecx, byte [rcx + 0x30d]
add eax, ecx
jmp 0x1800411da
mov rax, qword [rsp + 0x40]
add rax, 0x28c
mov rcx, rax
call fcn.180043320
mov eax, 0xffffff9c
add rsp, 0x38
ret
Function at 0x1800426c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x90], 0
je 0x180042744
movzx eax, byte [0x1800b74f8]
mov byte [rsp], al
mov dword [rsp + 4], 0
jmp 0x180042701
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
movzx eax, word [rsp + 0x30]
cmp dword [rsp + 4], eax
jge 0x180042736
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rsp]
xor eax, ecx
movsxd rcx, dword [rsp + 4]
mov rdx, qword [rsp + 0x20]
mov rdx, qword [rdx + 0x90]
mov byte [rdx + rcx], al
jmp 0x1800426f7
mov rax, qword [rsp + 0x20]
movzx ecx, word [rsp + 0x30]
mov word [rax + 0x2a], cx
add rsp, 0x18
ret

Function at 0x1800432b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
cmp qword [rax + 8], 0xffffffffffffffff
je 0x1800432c7
jmp 0x180043312
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x10], rax
mov r8, qword [rsp + 0x30]
xor edx, edx
lea rcx, [0x180043470]
call fcn.180077f70
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x18], 0
jne 0x180043312
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1800432fc
add rsp, 0x28
ret
Function at 0x1800441a0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2c8
mov rax, qword [0x1800b7480]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea rdx, [rsp + 0xb0]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x180044333
mov dword [rsp + 0x20], 0
jmp 0x1800441f3
mov eax, dword [rsp + 0x20]
add eax, 4
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
movsx eax, byte [rsp + rax + 0xb0]
test eax, eax
je 0x180044333
movsxd rax, dword [rsp + 0x20]
lea rax, [rsp + rax + 0xb0]
lea rdx, [0x18009c4d0]
mov rcx, rax
call fcn.18008f360
test eax, eax
je 0x180044248
movsxd rax, dword [rsp + 0x20]
lea rax, [rsp + rax + 0xb0]
lea rdx, [0x18009c4d4]
mov rcx, rax
call fcn.18008f360
test eax, eax
jne 0x18004424a
jmp 0x1800441e8
movsxd rax, dword [rsp + 0x20]
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rsp + rax + 0xb0]
mov byte [rsp + rcx + 0x24], al
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov ecx, 1
imul rcx, rcx, 1
movzx eax, byte [rsp + rax + 0xb0]
mov byte [rsp + rcx + 0x24], al
mov eax, 1
imul rax, rax, 2
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 3
jae 0x180044299
jmp 0x18004429e
call fcn.180034020
mov rax, qword [rsp + 0x30]
mov byte [rsp + rax + 0x24], 0
mov r8d, 0x64
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x1800442c6
xor eax, eax
jmp 0x180044335
lea rcx, [rsp + 0x40]
call fcn.180076e90
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x28]
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x2d0]
call fcn.1800659e0
test eax, eax
jne 0x18004432e
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x2d8]
call fcn.180076dc0
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x2d0]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x2d8]
call fcn.180076d20
mov eax, 1
jmp 0x180044335
jmp 0x1800441e8
xor eax, eax
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1800336f0
add rsp, 0x2c8
ret

Function at 0x180044360
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
mov rax, qword [0x1800b7480]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1800443bc
xor eax, eax
jmp 0x180044419
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
jne 0x1800443e4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180044419
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0x30]
call fcn.1800441a0
test eax, eax
jne 0x180044409
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180044419
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800336f0
add rsp, 0x150
pop rdi
ret
Function at 0x1800444e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x328
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1800b7480]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov dword [rsp + 0x300], 0x19db
mov dword [rsp + 0x304], 0x4eb
mov dword [rsp + 0x308], 0x23dd
mov dword [rsp + 0x30c], 0xb47
lea rdx, [rsp + 0x300]
lea rcx, [rsp + 0x40]
call fcn.180036cb0
nop
lea rax, [rsp + 0x30]
lea rcx, [0x18009c4a0]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.180037e30
mov rcx, qword [rsp + 0x340]
call fcn.180044480
mov rcx, qword [rsp + 0x340]
call fcn.180076e90
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x340]
add rcx, rax
mov rax, rcx
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.18008f650
mov rcx, qword [rsp + 0x340]
call fcn.180044440
test eax, eax
jne 0x18004466a
mov r8d, 0x100
xor edx, edx
mov rcx, qword [rsp + 0x340]
call fcn.18008fcf0
mov rdx, qword [rsp + 0x340]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rcx, qword [rsp + 0x340]
call fcn.180076e90
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x340]
mov byte [rcx + rax], 0x5c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x340]
add rcx, rax
mov rax, rcx
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.18008f650
mov rcx, qword [rsp + 0x340]
call fcn.180044440
test eax, eax
jne 0x18004466a
mov r8d, 0x100
xor edx, edx
mov rcx, qword [rsp + 0x340]
call fcn.18008fcf0
nop
lea rcx, [rsp + 0x40]
call fcn.180037c60
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.1800336f0
add rsp, 0x328
pop rdi
pop rsi
ret
Function at 0x180044fd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x140
mov rax, qword [0x1800b7480]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
call fcn.1800444e0
lea rax, [rsp + 0x30]
test rax, rax
je 0x1800450d3
lea rdx, [0x18009c498]
lea rcx, [rsp + 0x30]
call fcn.180065298
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1800450d3
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.180067270
mov rcx, qword [rsp + 0x20]
call fcn.180067934
mov rcx, qword [rsp + 0x150]
mov dword [rcx + 0x8c], eax
mov rax, qword [rsp + 0x150]
mov rax, qword [rax + 0x18]
add rax, 0x100
mov rcx, qword [rsp + 0x150]
mov qword [rcx + 0x84], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.180067270
mov rax, qword [rsp + 0x150]
movsxd rax, dword [rax + 0x8c]
mov r9, qword [rsp + 0x20]
mov r8, rax
mov edx, 1
mov rax, qword [rsp + 0x150]
mov rcx, qword [rax + 0x84]
call fcn.18006555c
mov rcx, qword [rsp + 0x20]
call fcn.180064cf4
mov rax, qword [rsp + 0x150]
cmp qword [rax + 0x84], 0
je 0x1800450f2
mov rcx, qword [rsp + 0x150]
call fcn.180044d80
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800336f0
add rsp, 0x140
pop rdi
ret