joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001ca0
Capabilities:
Extract resource via kernel32 functions

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 r12
sub rsp, 0x20
mov eax, edx
mov esi, edx
mov r8d, 6
shr eax, 4
mov rbp, rcx
inc ax
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
mov r12, rax
test rax, rax
je 0x180001d3d
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180001d3a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x180001d3a
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and esi, 0xf
jbe 0x180001d29
cmp rdi, r11
jae 0x180001d3a
dec esi
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x180001d18
cmp rdi, r11
jae 0x180001d3a
movzx eax, word [rdi]
neg ax
sbb rbx, rbx
and rbx, rdi
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x180001d58
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 r12d, ecx
lea rcx, [0x1800844d0]
xor edx, edx
xor ebx, ebx
call fcn.18000e7e4
lea r13d, [rbx + 1]
mov ebp, r13d
jmp 0x180001e35
test rbx, rbx
jne 0x180001e41
mov ecx, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr ecx, 4
add cx, r13w
movzx r8d, cx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rbx, rax
test rax, rax
je 0x180001e24
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180001dd2
xor ebx, ebx
jmp 0x180001e1f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x180001dce
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rdi
and ecx, 0xf
jbe 0x180001e0e
cmp rdi, r11
jae 0x180001dce
dec ecx
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x180001dfd
cmp rdi, r11
jae 0x180001dce
movzx eax, word [rdi]
neg ax
sbb rbx, rbx
and rbx, rdi
test rbx, rbx
jne 0x180001e5c
lea rcx, [0x1800844d0]
mov edx, ebp
call fcn.18000e7e4
add ebp, r13d
mov rsi, rax
test rax, rax
jne 0x180001d8f
xor eax, eax
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
mov rax, rsi
jmp 0x180001e43
Function at 0x18000245c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov r14, rdx
mov rbx, rcx
mov rax, qword [rcx]
cmp dword [rax - 8], 1
jle 0x180002496
mov edx, dword [rax - 0x10]
call fcn.180004280
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180002669
and dword [rbp - 9], eax
and dword [rbp + 0x77], eax
and dword [rbp + 0x7f], eax
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x18000265e
mov eax, dword [rbp + 0x77]
inc eax
mov dword [rbp - 1], eax
mov edi, eax
mov ecx, eax
call fcn.1800051a0
mov r12, rax
test rax, rax
je 0x180002544
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.180008f40
jmp 0x180002547
xor r12d, r12d
test r12, r12
jne 0x180002551
jmp 0x180002669
and dword [rbp + 3], 0
mov eax, dword [rbp + 0x7f]
inc eax
mov dword [rbp - 5], eax
mov edi, eax
mov ecx, eax
call fcn.1800051a0
mov rsi, rax
test rax, rax
je 0x18000257d
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.180008f40
jmp 0x18000257f
xor esi, esi
test rsi, rsi
jne 0x180002589
jmp 0x180002669
xor r13d, r13d
cmp dword [rbp - 9], r13d
jbe 0x18000264e
mov eax, dword [rbp + 0x77]
inc eax
mov dword [rbp - 1], eax
mov r8d, eax
xor edx, edx
mov rcx, r12
call fcn.180008f40
mov edx, dword [rbp + 0x7f]
inc edx
mov dword [rbp - 5], edx
mov r8d, edx
xor edx, edx
mov rcx, rsi
call fcn.180008f40
lea rdx, [rbp - 5]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rsi
lea rax, [rbp + 3]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rbp - 1]
mov r8, r12
mov edx, r13d
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x180002641
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x180002641
mov rdx, rsi
lea rcx, [rbp + 0xf]
call fcn.180003918
nop
lea rdx, [rbp + 0xf]
mov rcx, r14
call fcn.180003e38
nop
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180002641
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc r13d
cmp r13d, dword [rbp - 9]
jb 0x180002596
mov rcx, r12
call fcn.180006104
mov rcx, rsi
call fcn.180006104
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180002687
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rsp, 0x90
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180003028
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x198]
sub rsp, 0x298
mov rax, qword [0x180017070]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, qword [rbp + 0x200]
mov edi, r9d
mov rbx, r8
mov r12, rdx
mov r14, rcx
test r9d, r9d
jne 0x180003095
lea rcx, str.Waiting_connections
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, str.Waiting_connections
add eax, eax
mov rcx, rbx
movsxd r8, eax
call fcn.180009040
mov al, 1
jmp 0x180003250
cmp r9d, 4
jne 0x1800030b1
lea rcx, str.System
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, str.System
jmp 0x180003081
test rsi, rsi
je 0x1800031ce
and dword [rsp + 0x20], 0
xor edx, edx
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x14]
call fcn.180008f40
lea rcx, [0x180013bf0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.RtlRunOnceBeginInitialize
mov rcx, rax
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlRunOnceComplete
mov rcx, r13
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [0x180084550]
mov qword [rsp + 0x38], rax
call r15
test eax, eax
jns 0x18000312b
lea rcx, [0x180084550]
xor r8d, r8d
xor edx, edx
call r15
cmp eax, 0x103
jne 0x18000316a
lea rcx, str.sechost.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.I_QueryTagInformation
mov rcx, rax
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180084550]
xor r8d, r8d
xor edx, edx
mov qword [0x180084558], rax
call qword [rsp + 0x38]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r11, qword [0x180084558]
test r11, r11
je 0x18000324e
mov eax, dword [rsi]
lea r8, [rsp + 0x20]
mov edx, 1
xor ecx, ecx
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x24], eax
call r11
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800031ce
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rsp + 0x30]
mov rcx, rbx
add eax, eax
movsxd r8, eax
call fcn.180009040
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18000308e
lea rdx, [0x180013ab0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x18000324e
lea rdx, [rsp + 0x40]
mov rcx, r12
mov dword [rsp + 0x40], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180003225
cmp dword [rsp + 0x48], edi
je 0x180003212
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x1800031f8
lea rdx, [rsp + 0x6c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x18000308e
lea rdx, [0x180013ab0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18000324e
lea rdx, [0x180013c70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x18000308e
xor al, al
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1800051c0
add rsp, 0x298
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180003274
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x180017070]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, r9
mov rbx, rdx
test r8d, r8d
je 0x1800032e3
cmp r8d, 4
je 0x1800032e3
cmp r8d, 8
je 0x1800032e3
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, r9
call qword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x1800032d3
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.180003310
test eax, eax
jne 0x1800032e3
lea rdx, [0x180013c78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800051c0
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret

Function at 0x180003310
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov rax, qword [0x180017070]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
xor r14d, r14d
mov rdi, rdx
mov r12, rcx
test rdx, rdx
je 0x18000341d
lea rdx, [rbp]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x180003411
mov esi, r14d
cmp word [rbp], r14w
je 0x180003411
lea rbx, [rbp]
movsxd rax, esi
lea rdx, [0x180013c80]
lea r13, [rbp + rax*2]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180003400
lea rdx, [0x180013c88]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180003400
movzx eax, word [rbx]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov word [rsp + 0x20], ax
movzx eax, word [rbx + 2]
mov r8d, 0x64
mov word [rsp + 0x22], ax
mov word [rsp + 0x24], r14w
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x18000341d
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [rsp + 0x30]
mov rcx, r12
movsxd r13, eax
mov r8, r13
call fcn.18000621c
test eax, eax
je 0x18000344a
add rbx, 8
add esi, 4
cmp word [rbx], r14w
jne 0x18000337d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.1800051c0
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [r12 + r13*2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
jmp 0x18000341f
Function at 0x180004ebc
Capabilities:
Check mutex on windows
Check os version
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x180017070]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r12, rcx
mov esi, r8d
mov r13, rdx
mov edi, 0x11c
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, edi
xor ebx, ebx
call fcn.180008f40
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1800050c3
cmp dword [rsp + 0x50], 2
jne 0x1800050c3
cmp dword [rsp + 0x44], 5
jbe 0x1800050c3
and qword [rsp + 0x38], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
lea edx, [rbx + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1800050c3
mov rcx, qword [rsp + 0x38]
and dword [rsp + 0x30], ebx
lea rax, [rsp + 0x30]
lea edx, [rbx + 0x19]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x180004fde
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180004fde
mov edx, dword [rsp + 0x30]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180004fde
mov r9d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea edx, [rbx + 0x19]
mov r8, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x180004fd5
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov rcx, qword [rdi]
movzx edx, byte [rax]
dec edx
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ebx, dword [rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1800050c3
cmp ebx, 0x1000
je 0x1800050c3
cmp ebx, 0x2000
je 0x1800050c3
cmp ebx, 0x3000
jne 0x1800050c3
lea rcx, str.Network
mov r8, r12
mov edx, 0x1e
call fcn.18000645c
lea rcx, str.192.168.1.115
mov r8, r13
mov edx, 0xff
call fcn.18000645c
lea r8, str.GlobalA2F1A73B_D062_4A3E_B1EE_60BE052E754C
xor edx, edx
xor ecx, ecx
mov dword [0x18001857c], esi
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
or edi, 0xffffffff
mov rbx, rax
test rax, rax
je 0x18000506a
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x180004e70]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, edi
mov rcx, rax
mov qword [0x180084560], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x180084560]
test rcx, rcx
je 0x1800050b5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x180084560], 0
test rbx, rbx
je 0x1800050c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor al, al
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1800051c0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800068b3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180017070]
jne 0x1800051da
rol rcx, 0x10
test cx, 0xffff
jne 0x1800051d6
repz ret
ror rcx, 0x10
jmp 0x18000680c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800834e0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800835d8]
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 0x180006891
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, [0x1800834e0]
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 0x1800068b3
mov rax, qword [rsp + 0x88]
mov qword [0x1800835d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180083578], rax
mov rax, qword [0x1800835d8]
mov qword [0x180083450], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180083560], rax
mov dword [0x180083440], 0xc0000409
mov dword [0x180083444], 1
mov rax, qword [0x180017070]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180017078]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800834d8], eax
mov ecx, 1
call fcn.18000b2e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180011500]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800834d8], 0
jne 0x18000693a
mov ecx, 1
call fcn.18000b2e0
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 0x18000c5f4
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 [0x180017070]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18000787c
xor ebx, ebx
cmp qword [0x180084418], rbx
mov rdi, rax
jne 0x18000c707
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18000c7de
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000c7de
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180084418], 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 [0x180084420], 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 [0x180084428], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180084438], rax
test rax, rax
je 0x18000c6fe
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 [0x180084430], rax
jmp 0x18000c70e
mov rax, qword [0x180084430]
jmp 0x18000c715
mov rax, qword [0x180084430]
mov r11, qword [0x180084438]
cmp rax, rdi
je 0x18000c77c
cmp r11, rdi
je 0x18000c77c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180084438]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18000c77c
test rax, rax
je 0x18000c77c
call rsi
test rax, rax
je 0x18000c776
lea rcx, [rsp + 0x30]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18000c776
test byte [rsp + 0x40], 1
jne 0x18000c77c
bts ebp, 0x15
jmp 0x18000c7bc
mov rcx, qword [0x180084420]
cmp rcx, rdi
je 0x18000c7bc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000c7bc
call rax
mov rbx, rax
test rax, rax
je 0x18000c7bc
mov rcx, qword [0x180084428]
cmp rcx, rdi
je 0x18000c7bc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000c7bc
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180084418]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000c7de
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x18000c7e0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800051c0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14013a200
Capabilities:
Terminate process

Disassembly:
xor byte [rcx + rbp + 0x1f], dh
invalid
cld
pop r11
jmp 0x14013a20d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14013a21d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14013a205
lea eax, [rcx + 1]
jmp 0x14013a22b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14013a23e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14013a224
sub eax, 3
jb 0x14013a25e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14013a2ad
sar eax, 1
movsxd rbp, eax
jb 0x14013a294
jmp 0x14013a26c
add ebx, ebx
jne 0x14013a26a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14013a294
inc ecx
add ebx, ebx
jne 0x14013a27a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14013a294
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14013a28d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14013a27c
add ecx, 2
jmp 0x14013a299
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14013a1c2
jmp 0x14013a20d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xde400
mov dl, 0x25
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14013a2f9
cmp rsi, rcx
jae 0x14013a301
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14013a2e0
cmp al, 0x8f
ja 0x14013a2e0
cmp byte [rsi - 2], 0xf
je 0x14013a2e6
sub al, 0xe8
cmp al, 1
ja 0x14013a2ca
cmp rsi, rcx
jae 0x14013a301
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14013a2d0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14013a301
lodsb al, byte [rsi]
jmp 0x14013a2e0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x137000]
mov eax, dword [rdi]
or eax, eax
je 0x14013a36a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x13cf3c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14013a30e
jns 0x14013a343
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14013a34d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14013a364
mov qword [rbx], rax
add rbx, 8
jmp 0x14013a32e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x21f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14013a3c2
sub rsp, 0xffffffffffffff80
jmp 0x1400cdb30
Function at 0x1400017f8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r12, rcx
test edx, edx
je 0x14000196c
mov r13d, edx
mov edi, 0
lea r14, [0x140001530]
lea rbx, [0x1405b5de1]
jmp 0x14000185e
mov byte [0x1405b5de1], 0
mov edx, esi
sar edx, 0x1f
shr edx, 0x1b
lea eax, [rsi + rdx]
and eax, 0x1f
sub eax, edx
cdqe
lea rdx, [0x1405b5dc0]
xor bpl, byte [rdx + rax]
mov byte [r12 + rdi], bpl
add rdi, 1
cmp r13, rdi
je 0x14000196c
mov esi, edi
movzx ebp, byte [r12 + rdi]
mov byte [rsp + 0x20], 0x77
mov byte [rsp + 0x21], 0x77
mov byte [rsp + 0x22], 0x7b
mov byte [rsp + 0x23], 0x89
mov byte [rsp + 0x24], 0x7d
mov byte [rsp + 0x25], 0x8c
mov byte [rsp + 0x26], 0x81
mov byte [rsp + 0x27], 0x82
mov byte [rsp + 0x28], 0x78
mov byte [rsp + 0x29], 0x89
mov byte [rsp + 0x2a], 0x82
mov byte [rsp + 0x2b], 0x79
mov byte [rsp + 0x2c], 0x79
mov byte [rsp + 0x2d], 0x82
mov byte [rsp + 0x2e], 0x75
mov byte [rsp + 0x2f], 0x7f
mov byte [rsp + 0x30], 0x7a
mov byte [rsp + 0x31], 0x88
mov byte [rsp + 0x32], 0x86
mov byte [rsp + 0x33], 0x85
mov byte [rsp + 0x34], 0x89
mov byte [rsp + 0x35], 0x8b
mov byte [rsp + 0x36], 0x7e
mov byte [rsp + 0x37], 0x7f
mov byte [rsp + 0x38], 0x7d
mov byte [rsp + 0x39], 0x7d
mov byte [rsp + 0x3a], 0x8d
mov byte [rsp + 0x3b], 0x7b
mov byte [rsp + 0x3c], 0x7c
mov byte [rsp + 0x3d], 0x7d
mov byte [rsp + 0x3e], 0x77
mov byte [rsp + 0x3f], 0x8a
mov byte [rsp + 0x40], 0x13
cmp byte [0x1405b5da0], 0
jne 0x140001947
mov byte [0x1405b5de1], 1
mov eax, 0
lea rcx, [0x1405b5dc0]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140001926
mov byte [0x1405b5da0], 1
mov rcx, r14
call fcn.1400014f0
cmp byte [0x1405b5de1], 0
je 0x140001830
lea rax, [0x1405b5dc0]
sub byte [rax], 0x13
add rax, 1
cmp rbx, rax
jne 0x14000195b
jmp 0x140001829
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret