joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001b358
Capabilities:
Read http header
Receive http response

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov ebx, dword [rcx + 0x50]
and dword [rsp + 0x58], 0
and dword [rcx + 0x54], 0
test ebx, ebx
mov rdi, rcx
jne 0x18001b4c0
mov rcx, qword [rcx + 0x30]
xor edx, edx
mov dword [rsp + 0x50], 4
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x18001b4b8
mov rcx, qword [rdi + 0x30]
lea rax, [rsp + 0x58]
lea r9, [rdi + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x20000013
mov qword [rsp + 0x20], rax
call sub.WINHTTP.dll_WinHttpQueryHeaders
test eax, eax
je 0x18001b4b8
mov rcx, qword [rdi + 0x30]
and dword [rsp + 0x58], ebx
and dword [rsp + 0x50], ebx
lea rax, [rsp + 0x58]
lea ebp, [rbx + 0x16]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov edx, ebp
mov qword [rsp + 0x20], rax
call sub.WINHTTP.dll_WinHttpQueryHeaders
mov r8d, dword [rsp + 0x50]
mov rcx, qword [0x180036838]
add r8d, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x18001b4b1
mov rcx, qword [rdi + 0x30]
lea rax, [rsp + 0x58]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov edx, ebp
mov qword [rsp + 0x20], rax
call sub.WINHTTP.dll_WinHttpQueryHeaders
test eax, eax
je 0x18001b495
mov eax, dword [rsp + 0x50]
mov rcx, qword [0x180036838]
xor edx, edx
shr eax, 1
mov dword [rsp + 0x50], eax
and word [rsi + rax*2], bx
mov r8d, dword [rsp + 0x50]
add r8d, 1
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
je 0x18001b48e
mov r8d, dword [rsp + 0x50]
mov rdx, rsi
mov rcx, rax
add r8d, 1
call qword [sym.imp.ntdll.dll_wcstombs]
mov qword [rdi + 0x18], rbp
jmp 0x18001b49d
mov ebx, 8
jmp 0x18001b49d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180036838]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001b4c0
mov ebx, 8
jmp 0x18001b4c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001b62c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x180036838]
xor edx, edx
lea r8d, [rdx + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18001b6fa
lea rcx, [0x18003a8b7]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rdi, rax
je 0x18001b6e6
lea rdx, [0x18003a8bf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx], rax
je 0x18001b6e6
lea rdx, [0x18003a8c6]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 8], rax
je 0x18001b6e6
lea rdx, [0x18003a8ce]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x10], rax
je 0x18001b6e6
lea rdx, [0x18003a49e]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x18], rax
je 0x18001b6e6
lea rdx, [0x18003a6f2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x20], rax
jne 0x18001b6fa
mov rcx, qword [0x180036838]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18001c8dc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x510
and qword [rsp + 0x40], 0
mov r14, rcx
mov r13d, r8d
mov rbp, rdx
lea rcx, [rsp + 0x48]
mov r8d, 0x4c8
xor edx, edx
mov rbx, r9
call sub.ntdll.dll_memset
mov rsi, qword [rbp]
xor edi, edi
and dword [rsp + 0x560], edi
test rsi, rsi
mov dword [rsp + 0x558], 0xccccfeeb
je 0x18001c956
lea rdx, [rsp + 0x560]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
neg eax
lea eax, [rdi + 0x10]
sbb ecx, ecx
and ecx, dword [rsp + 0x560]
cmovne edi, eax
test rbx, rbx
mov dword [rsp + 0x70], 0x10000b
jne 0x18001c971
mov rcx, qword [rbp]
mov edx, edi
call fcn.18001c0b4
mov rbx, rax
lea rax, [rsp + 0x30]
mov r15d, 4
lea r8, [rsp + 0x568]
mov rdx, rbx
mov rcx, rsi
mov r9d, r15d
mov qword [rsp + 0x20], rax
call fcn.180017ad4
test eax, eax
je 0x18001cacd
cmp qword [rsp + 0x30], r15
jne 0x18001cacd
lea rax, [rsp + 0x560]
lea r9d, [r15 + 0x3c]
mov r8, r15
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18001c9eb
lea r9, [rsp + 0x560]
lea r8, [rsp + 0x558]
mov rdx, rbx
mov rcx, rsi
call fcn.18001c040
jmp 0x18001c9ed
xor eax, eax
test eax, eax
je 0x18001cacd
mov r12d, 0xbb8
mov r15d, 0x64
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [0x180036a48]
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 8]
cmp eax, 0x102
cmovne r12d, r15d
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rax, qword [0x180035640]
sub r12d, r15d
test rax, rax
je 0x18001ca50
mov rcx, qword [rbp + 8]
lea rdx, [rsp + 0x40]
call rax
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test r12d, r12d
jle 0x18001ca5f
cmp qword [rsp + 0x138], rbx
jne 0x18001ca01
cmp qword [rsp + 0x138], rbx
je 0x18001ca70
mov edi, 0x261
jmp 0x18001ca83
xor r9d, r9d
mov r8d, edi
mov rdx, r14
mov rcx, rbp
call fcn.18001c298
mov edi, eax
mov r9d, 0x40
lea rax, [rsp + 0x560]
mov rdx, rbx
lea r15d, [r9 - 0x3c]
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov r8, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18001cac8
lea r9, [rsp + 0x560]
lea r8, [rsp + 0x568]
mov rdx, rbx
mov rcx, rsi
call fcn.18001c040
cmp edi, 0xffffffff
jne 0x18001cad5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test r15b, r13b
jne 0x18001cae4
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
mov rbx, qword [rsp + 0x550]
add rsp, 0x510
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001cc20
Capabilities:
Get process image filename
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, qword [rcx]
mov rdi, rcx
mov rcx, qword [0x180036838]
mov esi, edx
xor edx, edx
mov r8d, 0x1000
lea r12d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r13d, r13d
cmp rax, r13
mov rbx, rax
je 0x18001ccdf
mov r8d, 0x800
mov rdx, rax
mov rcx, rbp
call sub.PSAPI.DLL_GetProcessImageFileNameW
cmp eax, r13d
je 0x18001ccb6
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp rax, r13
mov rbp, rax
je 0x18001ccb6
mov rcx, rax
call qword [sym.imp.ntdll.dll__wcsupr]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rbp
mov edx, eax
call fcn.180028900
xor eax, dword [0x180036a50]
cmp eax, 0x93c41565
cmove r12d, r13d
mov rcx, qword [0x180036838]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r12d, r13d
jne 0x18001ccdf
test sil, 4
jne 0x18001ccf4
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x18001ccf4
lea rcx, [0x180036b00]
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
call fcn.18001c8dc
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x18001d5e4
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov r11, rsp
sub rsp, 0x68
xor r9d, r9d
mov dword [rsp + 0x48], 0x40
xor eax, eax
mov dword [r11 - 0x28], r9d
mov dword [r11 + 0x24], eax
lea rax, [r11 - 0x18]
mov dword [rsp + 0x38], 2
mov qword [r11 - 0x38], rax
lea rax, [r11 + 0x20]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x18], r9
mov dword [r11 + 0x20], r9d
mov qword [r11 - 0x48], r9
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
add rsp, 0x68
ret
Function at 0x18001d674
Capabilities:
Decompress data using aplib

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov al, byte [rcx]
xor r10d, r10d
xor r11d, r11d
and dword [rsp + 0x34], r10d
mov byte [rdx], al
lea rax, [rdx + 1]
mov qword [rsp + 0x28], rax
lea rax, [rcx + 1]
xor edi, edi
mov qword [rsp + 0x20], rax
mov rbx, rdx
lea esi, [rdi + 1]
lea rcx, [rsp + 0x20]
call fcn.18001d638
test eax, eax
je 0x18001d86e
lea rcx, [rsp + 0x20]
call fcn.18001d638
test eax, eax
je 0x18001d76b
lea rcx, [rsp + 0x20]
call fcn.18001d638
test eax, eax
je 0x18001d71e
xor r9d, r9d
lea r11d, [r9 + 4]
lea rcx, [rsp + 0x20]
call fcn.18001d638
sub r11d, esi
lea r9d, [rax + r9*2]
jne 0x18001d6e5
test r9d, r9d
mov r8, qword [rsp + 0x28]
je 0x18001d715
mov ecx, r9d
mov rax, r8
sub rax, rcx
mov al, byte [rax]
mov byte [r8], al
jmp 0x18001d885
mov byte [r8], 0
jmp 0x18001d885
mov rax, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
movzx r10d, byte [rax]
add rax, rsi
mov ecx, r10d
mov qword [rsp + 0x20], rax
and ecx, esi
add ecx, 2
shr r10d, 1
je 0x18001d764
test ecx, ecx
mov edx, r10d
je 0x18001d869
mov rax, r8
sub rax, rdx
mov al, byte [rax]
mov byte [r8], al
add r8, rsi
add ecx, 0xffffffff
jne 0x18001d74c
jmp 0x18001d864
mov edi, esi
jmp 0x18001d869
mov r9d, esi
lea rcx, [rsp + 0x20]
call fcn.18001d638
lea rcx, [rsp + 0x20]
lea r9d, [rax + r9*2]
call fcn.18001d638
test eax, eax
jne 0x18001d76e
test r11d, r11d
jne 0x18001d7e4
cmp r9d, 2
jne 0x18001d7de
mov r9d, esi
lea rcx, [rsp + 0x20]
call fcn.18001d638
lea rcx, [rsp + 0x20]
lea r9d, [rax + r9*2]
call fcn.18001d638
test eax, eax
jne 0x18001d798
test r9d, r9d
mov r8, qword [rsp + 0x28]
movsxd rcx, r10d
je 0x18001d869
mov rax, r8
sub rax, rcx
mov al, byte [rax]
mov byte [r8], al
add r8, rsi
add r9d, 0xffffffff
jne 0x18001d7c5
jmp 0x18001d864
lea r10d, [r9 - 3]
jmp 0x18001d7e8
lea r10d, [r9 - 2]
mov rcx, qword [rsp + 0x20]
shl r10d, 8
mov r9d, esi
movzx eax, byte [rcx]
add r10d, eax
add rcx, rsi
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x20]
call fcn.18001d638
lea rcx, [rsp + 0x20]
lea r9d, [rax + r9*2]
call fcn.18001d638
test eax, eax
jne 0x18001d802
cmp r10d, 0x7d00
jb 0x18001d82a
add r9d, esi
cmp r10d, 0x500
jb 0x18001d836
add r9d, esi
cmp r10d, 0x80
jae 0x18001d843
add r9d, 2
test r9d, r9d
mov r8, qword [rsp + 0x28]
movsxd rcx, r10d
je 0x18001d869
mov rax, r8
sub rax, rcx
mov al, byte [rax]
mov byte [r8], al
add r8, rsi
add r9d, 0xffffffff
jne 0x18001d850
mov qword [rsp + 0x28], r8
mov r11d, esi
jmp 0x18001d890
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
mov cl, byte [rdx]
add rdx, rsi
mov byte [r8], cl
mov qword [rsp + 0x20], rdx
add r8, rsi
xor r11d, r11d
mov qword [rsp + 0x28], r8
test edi, edi
je 0x18001d6ac
mov rsi, qword [rsp + 0x58]
sub r8, rbx
mov rbx, qword [rsp + 0x50]
mov eax, r8d
add rsp, 0x40
pop rdi
ret
Function at 0x18001e1f8
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x70
and dword [rax + 0x20], 0
mov rsi, rcx
mov rcx, qword [0x180036838]
mov rbp, rdx
mov edi, 8
xor edx, edx
lea r8d, [rdi + 0x50]
mov dword [rax - 0x20], 1
mov dword [rax - 0x1c], 0x2710
mov dword [rax - 0x18], 0x3e8
mov dword [rax - 0x28], 0x493e0
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18001e377
lea r8d, [rdi + 0x50]
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 r9d, [rdi + 4]
lea r8, [rsp + 0x58]
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov edx, 0x98000004
mov rcx, rbp
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x18], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x18001e36f
cmp dword [rsi + 0x54], eax
je 0x18001e2ec
lea r9, [rsp + 0x50]
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 0x18001e36f
mov rdx, rbp
mov rcx, rbx
call qword [rsi + 0x40]
test eax, eax
mov edi, eax
jne 0x18001e36f
lea rcx, [rsi + 0x10]
mov qword [rbx + 0x30], rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 8]
mov qword [rbx], rsi
mov qword [rbx + 8], rax
mov qword [rax], rbx
lea rcx, [rsi + 0x10]
mov qword [rsi + 8], rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r8d, [rdi + 0x10]
lea rcx, [0x18001ddcc]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
jne 0x18001e369
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsi + 0x10]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx + 8]
mov r11, qword [rbx]
lea rcx, [rsi + 0x10]
mov qword [rax], r11
mov qword [r11 + 8], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x18001e36b
xor edi, edi
test edi, edi
je 0x18001e377
mov rcx, rbx
call fcn.18001dd68
lea r11, [rsp + 0x70]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
xor ebx, ebx
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x18001e64d
cmp eax, 0xffffffff
jne 0x18001e640
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
mov ebx, eax
jne 0x18001e652
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
jmp 0x18001e647
sub edi, eax
cdqe
add rsi, rax
test edi, edi
je 0x18001e652
jmp 0x18001e607
mov ebx, 0x4d4
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18001e66c
Capabilities:
Create thread
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x1d0
xor esi, esi
test r9, r9
mov r12, r9
mov rbp, r8
mov r13, rdx
jne 0x18001e69f
lea edi, [rsi + 0x57]
jmp 0x18001e801
lea rdx, [rsp + 0x30]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
mov edi, eax
jne 0x18001e7d6
mov rcx, qword [0x180036838]
mov edi, 0x90
xor edx, edx
mov r8, rdi
lea esi, [rax + 1]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
jne 0x18001e6e2
lea edi, [rsi + 7]
jmp 0x18001e7f3
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
lea rcx, [rbx + 0x50]
mov r8d, 0x10
mov rdx, r13
call sub.ntdll.dll_memcpy
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
or qword [rbx + 0x60], 0xffffffffffffffff
xor r9d, r9d
xor r8d, r8d
mov edx, esi
xor ecx, ecx
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [rbx + 0x68], rax
je 0x18001e7e3
test rbp, rbp
mov qword [rbx + 0x70], rbp
jne 0x18001e75b
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
test rax, rax
mov qword [rbx + 0x78], rax
mov qword [rbx + 0x70], rax
je 0x18001e7e3
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_StrDupA]
mov r8d, 6
mov edx, esi
mov qword [rbx + 0x38], rax
lea rax, [fcn.18001db78]
lea ecx, [r8 - 4]
mov qword [rbx + 0x40], rax
lea rax, [0x18001dbc0]
mov qword [rbx + 0x48], rax
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
mov qword [rbx + 0x60], rax
je 0x18001e7e3
lea rax, [rbx + 0x88]
lea r8, [0x18001e390]
mov r9, rbx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rbx + 0x80], rax
je 0x18001e7e3
mov qword [0x180036848], rbx
xor edi, edi
jmp 0x18001e7de
mov rbx, qword [rsp + 0x208]
cmp edi, 0xffffffff
jne 0x18001e7eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x18001e801
test esi, esi
je 0x18001e801
mov rcx, rbx
call fcn.18001e820
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea r11, [rsp + 0x1d0]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret

Function at 0x18001eda8
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov ebx, r8d
test rcx, rcx
je 0x18001edee
test rdx, rdx
je 0x18001edee
test ebx, ebx
je 0x18001edee
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18001eddf
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18001edf3
mov eax, dword [rsp + 0x40]
sub eax, ebx
neg eax
sbb eax, eax
and eax, 0x1d
jmp 0x18001edf3
mov eax, 0x57
add rsp, 0x30
pop rbx
ret
Function at 0x18001edfc
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov ebx, r8d
test rcx, rcx
je 0x18001ee42
test rdx, rdx
je 0x18001ee42
test ebx, ebx
je 0x18001ee42
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001ee33
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18001ee47
mov eax, dword [rsp + 0x40]
sub eax, ebx
neg eax
sbb eax, eax
and eax, 0x1e
jmp 0x18001ee47
mov eax, 0x57
add rsp, 0x30
pop rbx
ret
Function at 0x1800231d0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x90
mov rdi, r8
mov rsi, rcx
mov rbx, rdx
xor ebp, ebp
lea rcx, [rax - 0x68]
xor edx, edx
lea r8d, [rbp + 0x60]
call sub.ntdll.dll_memset
test rsi, rsi
je 0x180023219
test rbx, rbx
je 0x180023219
test rdi, rdi
je 0x180023219
mov al, byte [rbx]
mov rcx, rbx
cmp al, 0x2f
jne 0x180023242
xor eax, eax
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
cmp al, 0x5c
je 0x180023219
cmp al, 0x3a
je 0x180023219
add rcx, 1
mov al, byte [rcx]
test al, al
jne 0x180023234
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdx, rsi
lea rcx, [rsp + 0x30]
cmp eax, 0xffffffff
je 0x180023288
mov r8d, 0x809
call fcn.180021f34
mov rdx, rsi
lea rcx, [rsp + 0x30]
test eax, eax
je 0x180023288
call fcn.180022394
test eax, eax
jne 0x180023299
lea rcx, [rsp + 0x30]
call fcn.180022000
jmp 0x180023219
xor r8d, r8d
call fcn.180022320
test eax, eax
je 0x180023219
mov ebp, 1
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
mov dword [rsp + 0x28], 9
and word [rsp + 0x20], 0
call fcn.1800229f4
lea rcx, [rsp + 0x30]
mov ebx, eax
call fcn.180022f50
lea rcx, [rsp + 0x30]
neg eax
sbb edi, edi
and edi, ebx
call fcn.1800230bc
neg eax
sbb ebx, ebx
and ebx, edi
jne 0x1800232f5
test ebp, ebp
je 0x1800232f5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800232f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
jmp 0x18002321b
Function at 0x180024c90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov ebp, dword [rcx + 0x44]
mov rdi, rcx
mov edx, dword [rdi + 0x94]
mov ebx, dword [rdi + 0x58]
mov eax, dword [rdi + 0x44]
sub ebx, dword [rdi + 0x9c]
lea ecx, [rbp + rax - 0x106]
sub ebx, edx
cmp edx, ecx
jb 0x180024d48
mov rcx, qword [rdi + 0x50]
mov r8, rbp
lea rdx, [rcx + rbp]
call sub.ntdll.dll_memcpy
mov r9d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebp
sub dword [rdi + 0x94], ebp
sub dword [rdi + 0x84], ebp
lea r8, [rax + r9*2]
sub r8, 2
xor eax, eax
movzx edx, word [r8]
movzx ecx, dx
sub cx, bp
cmp edx, ebp
cmovae ax, cx
add r9d, 0xffffffff
mov word [r8], ax
jne 0x180024cfb
mov rax, qword [rdi + 0x60]
mov r9d, ebp
lea r8, [rax + rbp*2]
sub r8, 2
xor eax, eax
movzx edx, word [r8]
movzx ecx, dx
sub cx, bp
cmp edx, ebp
cmovae ax, cx
add r9d, 0xffffffff
mov word [r8], ax
jne 0x180024d26
add ebx, ebp
mov rsi, qword [rdi]
cmp dword [rsi + 8], 0
je 0x180024e22
mov eax, dword [rdi + 0x94]
mov r13d, dword [rdi + 0x9c]
add r13, rax
mov eax, dword [rsi + 8]
add r13, qword [rdi + 0x50]
cmp eax, ebx
mov r12d, eax
cmova r12d, ebx
test r12d, r12d
je 0x180024dca
sub eax, r12d
mov dword [rsi + 8], eax
mov rax, qword [rsi + 0x28]
mov ecx, dword [rax + 0x2c]
cmp ecx, 1
jne 0x180024d9c
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x3c]
mov r8d, r12d
call fcn.18002a6a4
jmp 0x180024daf
cmp ecx, 2
jne 0x180024db2
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x3c]
mov r8d, r12d
call fcn.1800288a4
mov dword [rsi + 0x3c], eax
mov rdx, qword [rsi]
mov r8d, r12d
mov rcx, r13
mov ebx, r12d
call sub.ntdll.dll_memcpy
add qword [rsi], rbx
add dword [rsi + 0xc], r12d
add dword [rdi + 0x9c], r12d
mov r9d, dword [rdi + 0x9c]
cmp r9d, 3
jb 0x180024e0c
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
add eax, 1
mov dword [rdi + 0x70], r8d
movzx eax, byte [rax + rdx]
shl r8d, cl
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x180024e22
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x180024cae
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x1400017ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001838
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001830
cmp dword [rcx + 0x3c], edx
jl 0x140001830
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001830
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140001838
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140001960
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001988
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140001988
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400019f4
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140003040]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp qword [0x140003020], 0
mov rax, qword [0x140003008]
movups xmm0, xmmword [rax - 0x10]
movdqu xmmword [rsp + 0x30], xmm0
je 0x140001a2c
mov ecx, 5
int 0x29
xorps xmm0, xmm0
lea r9, [0x140003020]
lea r8, [section..data]
lea rdx, [0x140001010]
lea rcx, [rsp + 0x30]
movdqu xmmword [0x140003028], xmm0
call qword [sym.imp.ADVAPI32.dll_EventRegister]
nop dword [rax + rax]
test eax, eax
jne 0x140001a82
mov r8, qword [0x140003008]
lea edx, [rax + 2]
mov rcx, qword [0x140003020]
movzx r9d, word [r8]
call qword [sym.imp.ADVAPI32.dll_EventSetInformation]
nop dword [rax + rax]
cmp dword [section..data], 5
jbe 0x140001af5
movabs rcx, 0x2000000000000
test qword [0x140003010], rcx
je 0x140001af5
mov rax, qword [0x140003018]
and rax, rcx
cmp rax, qword [0x140003018]
jne 0x140001af5
and dword [rsp + 0x6c], 0
lea rax, str.CalculatorStarted
mov qword [rsp + 0x60], rax
lea rdx, [0x140002489]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x68], 0x12
mov qword [rsp + 0x28], rax
lea rcx, [section..data]
xor r9d, r9d
mov dword [rsp + 0x20], 3
xor r8d, r8d
call fcn.140001098
mov dword [rsp + 0x28], 1
lea r8, str.ms_calculator:
and qword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001140
add rsp, 0x88
ret