joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003e8a8
Capabilities:
Delete registry key

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rdi, r8
mov rbx, rcx
lea rcx, [rsp + 0x40]
call fcn.180016658
nop
cmp rbx, 0xffffffff80000000
jne 0x18003e92c
call fcn.180017530
cmp eax, 1
jne 0x18003e92c
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x50]
call fcn.18002cc0c
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180015bf0
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18003e925
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, 0xffffffff80000001
test rdi, rdi
je 0x18003e943
mov r8, qword [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
call fcn.180023b7c
jmp 0x18003e951
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18003e973
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x180048af0
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
je 0x180048b41
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180048b55
lea rdx, str.SetFileAttributesTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180048b55
mov r8, qword [rbx]
mov edx, edi
mov rcx, rsi
call rax
jmp 0x180048b57
cmp dword [rcx + 8], 0
je 0x180048b55
mov edx, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x180048b57
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18009eac4
Capabilities:
Delete registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x40
and dword [rax - 0x20], 0
and qword [rax - 0x18], 0
mov rdi, rcx
mov rdx, 0xffffffff80000002
lea rcx, [rax - 0x28]
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionPreviewHandlers
mov r9d, 0x2001f
mov qword [rax - 0x28], rdx
call fcn.180023dfc
test eax, eax
jne 0x18009eb29
mov rcx, qword [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp qword [rsp + 0x20], 0
je 0x18009eb24
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x20], 0
and dword [rsp + 0x28], 0
lea r8, [0x180332fb0]
lea rcx, [rsp + 0x20]
mov r9d, 0x2001f
mov rdx, 0xffffffff80000000
call fcn.180023dfc
test eax, eax
jne 0x18009eb6c
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.18009e9bc
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18009eb7c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
jmp 0x18009eb71
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18009eb7c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x40
pop rdi
ret
Function at 0x1800f0ac8
Capabilities:
Extract resource via kernel32 functions

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 r12, r8
mov rbx, rdx
mov r13, rcx
xor edi, edi
call fcn.18001880c
lea r8d, [rdi + 5]
mov rbp, qword [rax + 0x18]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1800f0b24
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rbp
mov r8, r12
mov rdx, rdi
mov rcx, r13
call fcn.1800f0558
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x1800f0bb8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xe0], rdx
test rdx, 0xffffffffffff0000
jne 0x1800f0bf7
cmp dword [rcx + 0xd8], 0
jne 0x1800f0bf7
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.18001880c
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.1800f0b5c
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
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 0x1800fd9d0
Capabilities:
Extract resource via kernel32 functions

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
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r13, rcx
test r8, r8
jne 0x1800fda01
call fcn.18001880c
mov rdi, qword [rax + 0x18]
mov r8, qword [0x180460930]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x1800fda20
xor eax, eax
jmp 0x1800fda6c
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1800fda1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x1800fda61
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r12
mov rcx, r13
mov r8d, eax
call fcn.1800fd894
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
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 0x18011b8e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xd0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x18044e0b8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov edi, r8d
mov r13, rdx
mov r12, rcx
xor r14d, r14d
mov eax, r14d
test r8d, r8d
setne al
test eax, eax
jne 0x18011b934
call fcn.180016f54
int3
call fcn.18001880c
mov rbx, qword [rax + 0x18]
movzx edx, di
mov r8d, 0xf1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
jne 0x18011b95b
xor eax, eax
jmp 0x18011b9fa
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x18011b954
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x18011b98b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x18011b954
mov ebp, r14d
cmp r14w, word [rax + 6]
jae 0x18011b9ec
lea rsi, [rax + 8]
movzx edx, word [rsi]
test edx, edx
je 0x18011b9de
cmp edx, 0xffffffff
je 0x18011b9de
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
or r8d, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.1801038b0
nop
or r9d, 0xffffffff
mov r8, rax
mov rdx, r13
mov rcx, r12
call fcn.18011b3cc
nop
lea rcx, [rsp + 0x40]
call fcn.180101d90
inc ebp
add rsi, 2
movzx ecx, word [rdi + 6]
cmp ebp, ecx
jl 0x18011b999
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180232920
add rsp, 0xd0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1801233f0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x180123401
xor eax, eax
jmp 0x18012342f
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1801235c4
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1801235d5
xor eax, eax
jmp 0x1801235f9
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x180123600
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x180123642
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret
Function at 0x180123754
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
jne 0x18012377f
call fcn.180016f54
int3
test rbx, rbx
jne 0x18012378a
call fcn.180016f54
int3
test r9, r9
jne 0x180123795
call fcn.180016f54
int3
and qword [r8], 0
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], r9
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180123818
cmp dword [rsp + 0x48], 3
jne 0x180123818
test eax, eax
jne 0x180123818
cmp dword [rdi], eax
je 0x180123818
mov ecx, dword [rdi]
call fcn.180012c4c
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rbx], rax
mov rcx, qword [rbp + 8]
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18012380c
cmp dword [rsp + 0x48], 3
jne 0x18012380c
test eax, eax
jne 0x18012380c
mov eax, 1
jmp 0x18012381a
mov rcx, qword [rbx]
call fcn.180012c90
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x180123924
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1801b2330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x1801b2359
mov rdi, qword [rdx + 0x10]
jmp 0x1801b23aa
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x1801b237a
call fcn.1800195f8
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x1801b2394
call fcn.1800195f8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x1801b23aa
call fcn.1800195f8
call fcn.18001880c
cmp qword [rax + 0x68], 0
je 0x1801b23c4
mov rdx, rdi
mov rcx, rbp
call fcn.1801b0604
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.1801b2170
mov rcx, qword [rbp + 0xe8]
mov rsi, rax
test rcx, rcx
je 0x1801b23eb
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xe8], 0
test rsi, rsi
je 0x1801b23fa
mov rdi, rsi
mov qword [rbp + 0xe8], rsi
or dword [rbx + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1801d0a9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x1801d0ac5
xor eax, eax
jmp 0x1801d0b45
test rbx, rbx
je 0x1801d0abe
test r9, r9
jne 0x1801d0add
call fcn.18001880c
mov r9, qword [rax + 0x18]
test r9, r9
je 0x1801d0abe
mov r8, rbx
mov rdx, rsi
mov rcx, r9
mov qword [rdi + 0x10], r9
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1801d0abe
mov rcx, qword [rdi + 0x10]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
je 0x1801d0abe
mov rcx, qword [rdi + 0x10]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1801d0abe
mov rbx, qword [rdi]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r8d, ebp
mov rcx, rdi
mov rdx, rax
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18023b824
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x18023b84e
call fcn.180235fb0
and dword [rax], 0
call fcn.180235f90
mov ebx, reloc.OLEAUT32.dll_SafeArrayAccessData
mov dword [rax], ebx
call fcn.18023b1d4
mov eax, ebx
jmp 0x18023b89e
test edx, 0xfffffff9
jne 0x18023b831
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x18023b877
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180235fd0
call fcn.180235f90
mov eax, dword [rax]
jmp 0x18023b89e
test al, 0x10
jne 0x18023b89c
test al, 1
je 0x18023b89c
test bl, 2
je 0x18023b89c
call fcn.180235fb0
mov dword [rax], 5
call fcn.180235f90
mov dword [rax], InitCommonControls
jmp 0x18023b86e
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x18023fce8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x18044e0b8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18023be94
xor ebx, ebx
cmp qword [0x180463d38], rbx
mov rdi, rax
jne 0x18023fdfb
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18023fed2
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18023fed2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180463d38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180463d40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180463d48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180463d58], rax
test rax, rax
je 0x18023fdf2
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180463d50], rax
jmp 0x18023fe02
mov rax, qword [0x180463d50]
jmp 0x18023fe09
mov rax, qword [0x180463d50]
mov r11, qword [0x180463d58]
cmp rax, rdi
je 0x18023fe70
cmp r11, rdi
je 0x18023fe70
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180463d58]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18023fe70
test rax, rax
je 0x18023fe70
call rsi
test rax, rax
je 0x18023fe6a
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18023fe6a
test byte [rsp + 0x40], 1
jne 0x18023fe70
bts ebp, 0x15
jmp 0x18023feb0
mov rcx, qword [0x180463d40]
cmp rcx, rdi
je 0x18023feb0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18023feb0
call rax
mov rbx, rax
test rax, rax
je 0x18023feb0
mov rcx, qword [0x180463d48]
cmp rcx, rdi
je 0x18023feb0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18023feb0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180463d38]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18023fed2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x18023fed4
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180232920
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180240f3b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18044e0b8]
jne 0x18023293a
rol rcx, 0x10
test cx, 0xffff
jne 0x180232936
repz ret
ror rcx, 0x10
jmp 0x180240e94
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180463e10]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180463f08]
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 0x180240f19
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, [0x180463e10]
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 0x180240f3b
mov rax, qword [rsp + 0x88]
mov qword [0x180463f08], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180463ea8], rax
mov rax, qword [0x180463f08]
mov qword [0x180463d80], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180463e90], rax
mov dword [0x180463d70], 0xc0000409
mov dword [0x180463d74], 1
mov rax, qword [0x18044e0b8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18044e0c0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180463e08], eax
mov ecx, 1
call fcn.18024f44c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1803a1ce8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180463e08], 0
jne 0x180240fc2
mov ecx, 1
call fcn.18024f44c
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 0x140001140
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Create thread
Initialize winsock library

Disassembly:
sub rsp, 0x1f8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001196
lea rcx, str.Failed_to_initialize_Winsock._n
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140001310
add rsp, 0x1f8
ret
mov qword [rsp + 0x200], rbx
mov edx, 1
mov qword [rsp + 0x1f0], rdi
mov r8d, 6
mov edi, 2
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400012a5
mov ecx, 0x115c
mov word [rsp + 0x30], di
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x34]
mov ecx, edi
lea rdx, str.127.0.0.1
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x14000129c
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14000129c
lea rcx, str.Connected_to_server._n
mov qword [0x140005680], rbx
call fcn.140001010
xor eax, eax
lea r8, [0x140001070]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x14000126e
lea rcx, str.Failed_to_create_thread._n
call fcn.140001010
mov rcx, qword [0x140005680]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400012bf
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140005680]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x1400012ca
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
lea rcx, str.Failed_to_connect_to_server._n
mov qword [0x140005680], rax
call fcn.140001010
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rbx, qword [rsp + 0x200]
mov rdi, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140001310
add rsp, 0x1f8
ret

Function at 0x140001cf4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001d3e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001d3e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001d3e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001d3e
cmp dword [rcx + 0x84], 0xe
jbe 0x140001d3e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001d40
xor al, al
add rsp, 0x28
ret
Function at 0x180011070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov byte [rsp + 8], cl
sub rsp, 0x118
mov eax, dword [0x1800e30c4]
mov dword [rsp + 0x28], eax
mov rax, qword [0x1800e30a8]
mov qword [rsp + 0x60], rax
movsx eax, byte [0x1800e3037]
mov dword [rsp + 0x2c], eax
mov eax, dword [0x1800e3118]
mov dword [rsp + 0x30], eax
movsx eax, byte [0x1800e30b3]
mov dword [rsp + 0x34], eax
mov byte [rsp + 1], 0x15
mov dword [rsp + 0x38], 0x368144d6
mov rax, qword [0x1800e30a8]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 8
movzx eax, word [0x1800e30e0]
mov word [rsp + 8], ax
movzx eax, byte [0x1800e305f]
movsx eax, al
mov dword [rsp + 0x3c], eax
mov qword [rsp + 0x78], 0xc6
mov byte [rsp + 2], 0x6a
movzx eax, word [0x1800e309c]
movsx rax, ax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 0xf1
mov eax, 0xe816
mov word [rsp + 0xc], ax
mov dword [rsp + 0x40], 0x8a1d
mov qword [rsp + 0x90], 0xff4d
mov rax, qword [0x1800e30b8]
mov word [rsp + 0x10], ax
movzx eax, byte [str._bcProductName]
mov byte [rsp + 3], al
mov eax, 0x26
mov word [rsp + 0x14], ax
movsx ax, byte [0x1800e30b3]
mov word [rsp + 0x18], ax
movzx eax, byte [0x1800e3073]
mov byte [rsp + 4], al
mov rax, qword [0x1800e30b8]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x44], 0x2245
movzx eax, word [0x1800e3120]
movsx rax, ax
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x48], 0x678aaa1b
movzx eax, byte [0x1800e30b3]
mov byte [rsp + 5], al
movzx eax, word [0x1800e3100]
mov word [rsp + 0x1c], ax
mov dword [rsp + 0x4c], 0x884142ba
movsx rax, byte [0x1800e309a]
mov qword [rsp + 0xa8], rax
movzx eax, byte [0x1800e30b0]
mov byte [rsp + 6], al
mov qword [rsp + 0xb0], 0x58bd
mov dword [rsp + 0x50], 0xbf
movabs rax, 0x286967fe43551
mov qword [rsp + 0xb8], rax
mov rax, qword [0x1800e30c8]
mov qword [rsp + 0xc0], rax
mov rax, qword [0x1800e3090]
mov dword [rsp + 0x54], eax
mov eax, 0xfffffcd3
mov word [rsp + 0x20], ax
mov rax, qword [0x1800e30e8]
mov qword [rsp + 0xc8], rax
movsx rax, byte [0x1800e3027]
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0x58], 0x5b
mov eax, dword [0x1800e30d0]
mov word [rsp + 0x24], ax
mov eax, dword [0x1800e3124]
mov eax, eax
mov qword [rsp + 0xd8], rax
movzx eax, byte [0x1800e3036]
movsx rax, al
mov qword [rsp + 0xe0], rax
mov rax, qword [0x1800e30a0]
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], 0xd3
movsx eax, byte [0x1800e30b3]
mov dword [rsp + 0x5c], eax
movzx eax, byte [0x1800e309b]
mov qword [rsp + 0xf8], rax
movabs rax, 0x3957ced323c2a
mov qword [rsp + 0x100], rax
movzx eax, word [0x1800e3098]
movzx eax, ax
mov qword [rsp + 0x108], rax
movzx eax, byte [rsp + 0x120]
shl eax, 1
movzx ecx, byte [rsp + 0x120]
sar ecx, 7
and ecx, 1
imul ecx, ecx, 0x1b
xor eax, ecx
mov byte [rsp], al
movzx eax, byte [rsp]
add rsp, 0x118
ret