joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400078c0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140050808]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov ebx, ecx
mov rsi, rdx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x12c
xor edi, edi
call fcn.14002b2c0
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov dword [rsp + 0x20], 0x130
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140007935
cmp dword [rsp + 0x28], ebx
je 0x140007931
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140007917
jmp 0x140007935
mov edi, dword [rsp + 0x40]
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140023180
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000c210
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140051fd0]
mov rbx, rcx
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x30], rax
mov rax, qword [0x140051fc8]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx + 0xc]
add rax, 0x10
cmp rax, qword [0x140053d20]
mov qword [rsp + 0x78], rax
ja 0x14000c2ec
cmp qword [0x140051fe0], 0xffffffffffffffff
jne 0x14000c267
mov eax, 0xfffffffd
add rsp, 0x60
pop rbx
ret
lea rcx, [0x140053e68]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r8, qword [rsp + 0x78]
mov rcx, qword [0x140053d18]
mov rdx, rbx
call fcn.1400234c0
mov rax, qword [0x140051fd0]
mov rcx, qword [0x140051fe0]
xor r11d, r11d
lea rdx, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
lea r8d, [r11 + 8]
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000c2f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14000c2f7
lea rcx, [0x140053e68]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xfffffffc
add rsp, 0x60
pop rbx
ret
xor r8d, r8d
lea rdx, [rsp + 0x30]
or r9d, 0xffffffff
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x14000c334
mov rcx, qword [0x140051fe0]
call qword [sym.imp.KERNEL32.dll_CancelIo]
lea rcx, [0x140053e68]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
add rsp, 0x60
pop rbx
ret
mov rcx, qword [0x140051fc8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140051fe0]
test eax, eax
je 0x14000c318
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea rcx, [0x140053e68]
test eax, eax
je 0x14000c325
mov eax, dword [rsp + 0x70]
neg eax
sbb ebx, ebx
neg ebx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [rbx - 1]
add rsp, 0x60
pop rbx
ret
Function at 0x14000e870
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, [0x140053e90]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x140051fe0], 0xffffffffffffffff
je 0x14000e90f
cmp qword [0x140051fe8], 0xffffffffffffffff
jne 0x14000e90f
test rbx, rbx
je 0x14000e90f
mov rcx, qword [0x140051fc8]
mov qword [0x140053d48], rbx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x140051fc0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x140051fb8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r11, [rsp + 0x48]
lea r8, [0x14000d3e0]
mov qword [rsp + 0x28], r11
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call fcn.140024f84
test rax, rax
jne 0x14000e925
mov rcx, qword [0x140051fc0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov qword [0x140051fe8], 0xffffffffffffffff
lea rcx, [0x140053e90]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
mov rcx, qword [0x140051fb8]
or edx, 0xffffffff
mov qword [0x140051fe8], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [0x140053e90]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14000eba0
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140050808]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x1f0fff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000ec52
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000ec49
lea r8, [rsp + 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14000ec43
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x44], rax
xor eax, eax
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x28], rax
lea r9d, [rax + 0x10]
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140023180
add rsp, 0x60
pop rbx
ret
Function at 0x14000ed70
Capabilities:
Create service
Start service

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x140050808]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rcx
xor bl, bl
call fcn.14000f5c0
lea r8, str.system32drivers_s.sys
lea rcx, [rsp + 0x70]
mov r9, rdi
mov edx, 0x104
call fcn.1400251f4
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
jne 0x14000edd0
or eax, 0xffffffff
jmp 0x14000eeae
xor eax, eax
mov qword [rsp + 0x1b8], rbp
mov qword [rsp + 0x1c0], r12
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov r12d, 1
lea rax, str.PNP_TDI
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov r9d, 0xf01ff
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r12d
mov r8, rdi
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbp, rbp
je 0x14000ee49
mov rcx, rbp
jmp 0x14000ee66
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbp, rax
test rax, rax
je 0x14000ee83
mov rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
movzx ebx, bl
mov rcx, rbp
test eax, eax
cmovne ebx, r12d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edx, edx
mov rcx, rdi
call fcn.14000f080
mov r12, qword [rsp + 0x1c0]
mov rbp, qword [rsp + 0x1b8]
neg bl
sbb eax, eax
neg eax
dec eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140023180
add rsp, 0x190
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000eed0
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov dl, 1
mov rdi, rcx
xor bl, bl
call fcn.14000f080
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
je 0x14000ef3a
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x14000ef31
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x38]
neg bl
mov rbx, qword [rsp + 0x30]
sbb eax, eax
neg eax
dec eax
add rsp, 0x20
pop rdi
ret
Function at 0x14000ef60
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, r9
mov rsi, r8
mov rbp, rdx
test cl, cl
je 0x14000f013
mov rcx, qword [rbx]
mov qword [rsp + 0x28], r8
lea r9, [rsp + 0x40]
lea rdx, str.PNP_TDI
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14000efbd
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14000f05e
mov ecx, dword [rsi]
add rcx, 4
call fcn.1400247a8
mov rcx, qword [rbx]
mov qword [rbp], rax
test rax, rax
je 0x14000efb0
lea r9, [rsp + 0x40]
lea rdx, str.PNP_TDI
xor r8d, r8d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test eax, eax
je 0x14000f050
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp]
call fcn.1400237f4
mov qword [rbp], rdi
xor al, al
jmp 0x14000f05e
mov eax, dword [r8]
cmp eax, 4
jbe 0x14000f022
shr eax, 2
dec eax
jmp 0x14000f024
mov eax, edi
mov rcx, qword [rdx]
lea rdx, str.PNP_TDI
mov r9d, 3
mov dword [rcx], eax
mov eax, dword [r8]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14000f5c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x48]
lea rdx, str.SYSTEMCurrentControlSetServicesTcpip6Parameters
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000f5f6
xor al, al
add rsp, 0x38
ret
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, str.DisabledComponents
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x40], 0x8e
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x30]
sete al
add rsp, 0x38
ret

Function at 0x14000fc70
Capabilities:
Compute adler32 checksum

Disassembly:
movzx r9d, cx
shr ecx, 0x10
mov r10, rdx
test rdx, rdx
jne 0x14000fc83
lea eax, [rdx + 1]
ret
test r8d, r8d
je 0x14000fdc0
nop dword [rax]
mov edx, 0x15b0
cmp r8d, edx
cmovb edx, r8d
sub r8d, edx
cmp edx, 0x10
jl 0x14000fd7c
mov r11d, edx
shr r11, 4
mov eax, r11d
neg eax
shl eax, 4
add edx, eax
nop dword [rax]
movzx eax, byte [r10]
add r10, 0x10
add r9d, eax
movzx eax, byte [r10 - 0xf]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xe]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xd]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xc]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xb]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xa]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 9]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 8]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 7]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 1]
add ecx, r9d
add r9d, eax
add ecx, r9d
dec r11
jne 0x14000fcc0
test edx, edx
je 0x14000fd91
movzx eax, byte [r10]
inc r10
add r9d, eax
add ecx, r9d
dec edx
jne 0x14000fd80
mov eax, 0x80078071
mul r9d
mov eax, 0x80078071
shr edx, 0xf
imul edx, edx, 0xffff000f
add r9d, edx
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
test r8d, r8d
jne 0x14000fc90
shl ecx, 0x10
or ecx, r9d
mov eax, ecx
ret
Function at 0x1400104c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 0x38]
mov rdi, rcx
mov qword [rsp + 0x30], rbp
nop word [rax + rax]
mov edx, dword [rdi + 0x8c]
mov esi, dword [rdi + 0x50]
mov eax, dword [rdi + 0x38]
sub esi, dword [rdi + 0x94]
lea ecx, [rbx + rax - 0x106]
sub esi, edx
cmp edx, ecx
jb 0x14001056f
mov rcx, qword [rdi + 0x48]
mov r8, rbx
lea rdx, [rcx + rbx]
call fcn.1400234c0
mov r8d, dword [rdi + 0x6c]
mov rax, qword [rdi + 0x60]
sub dword [rdi + 0x90], ebx
sub dword [rdi + 0x8c], ebx
sub dword [rdi + 0x7c], ebx
lea rdx, [rax + r8*2]
nop word [rax + rax]
movzx eax, word [rdx - 2]
sub rdx, 2
cmp eax, ebx
jb 0x140010540
sub eax, ebx
jmp 0x140010542
xor eax, eax
dec r8d
mov word [rdx], ax
jne 0x140010530
mov rax, qword [rdi + 0x58]
mov edx, ebx
lea rcx, [rax + rbx*2]
movzx eax, word [rcx - 2]
sub rcx, 2
cmp eax, ebx
jb 0x140010564
sub eax, ebx
jmp 0x140010566
xor eax, eax
dec edx
mov word [rcx], ax
jne 0x140010554
add esi, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x1400105e6
mov edx, dword [rdi + 0x94]
mov eax, dword [rdi + 0x8c]
mov r8d, esi
add rdx, rax
add rdx, qword [rdi + 0x48]
call fcn.140010180
add dword [rdi + 0x94], eax
mov r9d, dword [rdi + 0x94]
cmp r9d, 3
jb 0x1400105d0
mov eax, dword [rdi + 0x8c]
mov rdx, qword [rdi + 0x48]
mov ecx, dword [rdi + 0x78]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x68], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x74]
mov dword [rdi + 0x68], r8d
cmp r9d, 0x106
jae 0x1400105e6
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x1400104e0
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140014d80
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x140014d95
xor eax, eax
add rsp, 0x38
ret
mov qword [rsp + 0x30], rbx
xor ebx, ebx
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
cmovne ebx, dword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret

Function at 0x140014dd0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x140014de5
xor eax, eax
add rsp, 0x38
ret
mov qword [rsp + 0x30], rbx
xor ebx, ebx
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
cmovne ebx, dword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret

Function at 0x140014e20
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x140014e35
xor eax, eax
add rsp, 0x28
ret
lea rdx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x140014fd0
Capabilities:
Clear file content

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx + 8], 0xffffffffffffffff
mov rdi, rcx
jne 0x140014fe8
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov rax, qword [rcx]
xor edx, edx
mov qword [rsp + 0x30], rbx
lea r8d, [rdx + 1]
call qword [rax + 0x10]
mov rcx, qword [rdi + 8]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140015020
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 8], 0xffffffffffffffff
mov rbx, rcx
je 0x140015045
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x10]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
add rsp, 0x20
pop rbx
ret
Function at 0x140015640
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140050808]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov rcx, qword [rcx + 8]
xor edi, edi
test rcx, rcx
je 0x140015671
mov rax, qword [rcx]
call qword [rax + htons]
mov qword [rbx + 8], rdi
mov ecx, 0x30
call fcn.140024668
test rax, rax
je 0x140015744
mov qword [rax + 8], rdi
lea rcx, vtable.StLibs::MemoryStream.0
mov qword [rax], rcx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x28], 0x6400000
mov dword [rax + 0x2c], 1
lea rcx, vtable.StLibs::IOB.0
mov qword [rax + 0x10], rcx
mov qword [rbx + 8], rax
mov eax, dword [0x140054288]
mov dword [rbx + 0x10], 0x40000
mov word [rbx + 0x16], di
test al, 1
jne 0x1400156e1
or eax, 1
lea rcx, [0x14003b1d0]
mov dword [0x140054288], eax
call fcn.140024e9c
lea rdx, [rsp + 0x20]
lea rcx, [0x140054080]
call fcn.14001b010
cmp qword [rsp + 0x30], rdi
je 0x140015721
cmp qword [rsp + 0x38], 8
lea r9, [rsp + 0x20]
lea r8, [0x140044710]
cmovae r9, qword [rsp + 0x20]
lea rcx, [rbx + 0x16]
mov edx, 0x104
call fcn.1400154f0
jmp 0x140015730
lea rdx, [rbx + 0x16]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp qword [rsp + 0x38], 8
jb 0x140015742
mov rcx, qword [rsp + 0x20]
call fcn.1400241ec
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140023180
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400157a0
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x280
mov rax, qword [0x140050808]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x1400157ce
xor eax, eax
jmp 0x14001593d
mov rax, qword [rcx]
mov qword [rsp + 0x270], rbp
call qword [rax + 0x20]
mov ebp, eax
test eax, eax
je 0x140015935
cmp byte [rsi + 0x14], 0
mov qword [rsp + 0x268], rdi
mov qword [rsp + 0x260], r12
jne 0x140015923
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov ecx, dword [rsi + 0x10]
cmp rax, rcx
jbe 0x140015923
lea rcx, [rsi + 0x16]
lea r9, [rsp + 0x40]
lea rdx, [0x140044718]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140015923
mov ecx, 0x10
call fcn.140024668
mov rdi, rax
test rax, rax
je 0x140015923
lea rax, vtable.StLibs::FileStream.0
mov qword [rdi + 8], 0xffffffffffffffff
mov qword [rdi], rax
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x140015877
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x1400158bf
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
jmp 0x140015923
mov rcx, qword [rsi + 8]
xor edx, edx
mov qword [rsp + 0x278], rbx
mov rax, qword [rcx]
lea r8d, [rdx + 1]
call qword [rax + 0x10]
mov rcx, qword [rsi + 8]
mov rdx, rdi
mov r8, qword [rcx]
mov r12, rax
call qword [r8 + 0x30]
mov rcx, qword [rsi + 8]
mov rdx, qword [rcx]
mov rbx, rax
call qword [rdx + 0x28]
cmp rbx, rax
mov rbx, qword [rsp + 0x278]
jne 0x1400158b0
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
call qword [rax + htons]
mov qword [rsi + 8], rdi
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [rax + 0x10]
mov byte [rsi + 0x14], 1
mov rdi, qword [rsp + 0x268]
mov r12, qword [rsp + 0x260]
mov eax, ebp
mov rbp, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140023180
add rsp, 0x280
pop rsi
ret
Function at 0x14001aef0
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140050808]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov r8, rdx
sub rcx, rdx
nop word [rax + rax]
movzx eax, word [r8]
add r8, 2
mov word [rcx + r8 - 2], ax
test ax, ax
jne 0x14001af20
mov qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14001af71
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001af7c
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x40]
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x14001af90
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14001afe1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001afee
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov al, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140023180
add rsp, 0x260
pop rbx
ret

Function at 0x14002406c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140024082
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140024084
xor eax, eax
test eax, eax
je 0x140024094
mov ecx, eax
call fcn.14002598c
or eax, 0xffffffff
jmp 0x140024096
xor eax, eax
add rsp, 0x28
ret
Function at 0x140029227
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140050808]
jne 0x14002319a
rol rcx, 0x10
test cx, 0xffff
jne 0x140023196
repz ret
ror rcx, 0x10
jmp 0x140029180
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140052660]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140052758]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140029205
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140052660]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140029227
mov rax, qword [rsp + 0x88]
mov qword [0x140052758], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400526f8], rax
mov rax, qword [0x140052758]
mov qword [0x1400525d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400526e0], rax
mov dword [0x1400525c0], 0xc0000409
mov dword [0x1400525c4], 1
mov rax, qword [0x140050808]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140050810]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140052658], eax
mov ecx, 1
call fcn.1400323b8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14003d410]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140052658], 0
jne 0x1400292ae
mov ecx, 1
call fcn.1400323b8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x14002a038
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140029ea8