joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002150
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1800680c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, rcx
xor esi, esi
mov qword [rsp + 0x28], rsi
mov ebx, esi
mov qword [rsp + 0x20], rbx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1800021e2
mov r8d, 0xf01ff
mov rdx, r14
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x1800021e2
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, 1
test rbx, rbx
je 0x1800021f0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x1800021ff
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test rbx, rbx
je 0x18000220d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x18000221b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180023640
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x180004d20
Capabilities:
Print debug messages

Disassembly:
test r8, r8
je 0x180004e10
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
mov eax, 0x5070
call fcn.180024440
sub rsp, rax
mov rax, qword [0x1800680c0]
xor rax, rsp
mov qword [rsp + 0x5050], rax
mov rbx, r8
mov qword [rsp + 0x5068], rbp
mov esi, edx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x2800
call fcn.18004c430
mov qword [rsp + 0x40], 0
lea rbp, [rsp + 0x50a8]
call fcn.18000f320
mov r9d, 0x2800
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x2850]
mov r8d, r9d
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax]
call fcn.18002f8f4
lea rax, [rsp + 0x2850]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x18005adf0]
mov edx, 0x2800
mov dword [rsp + 0x20], esi
lea rcx, [rsp + 0x50]
call fcn.1800079d0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rbp, qword [rsp + 0x5068]
mov rcx, qword [rsp + 0x5050]
xor rcx, rsp
call fcn.180023640
add rsp, 0x5070
pop rdi
pop rsi
pop rbx
ret
Function at 0x180004e20
Capabilities:
Print debug messages

Disassembly:
test r8, r8
je 0x180004f13
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
mov eax, 0xa070
call fcn.180024440
sub rsp, rax
mov rax, qword [0x1800680c0]
xor rax, rsp
mov qword [rsp + 0xa050], rax
mov rbx, r8
mov qword [rsp + 0xa068], rbp
mov esi, edx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x5000
call fcn.18004c430
mov qword [rsp + 0x40], 0
lea rbp, [rsp + 0xa0a8]
call fcn.18000f320
mov qword [rsp + 0x30], rbp
lea rdx, [rsp + 0x5050]
mov qword [rsp + 0x28], 0
mov r9d, 0x5000
mov r8d, 0x2800
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax]
call fcn.18002fab8
lea rax, [rsp + 0x5050]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x18005ae10]
mov edx, 0x5000
mov dword [rsp + 0x20], esi
lea rcx, [rsp + 0x50]
call fcn.180007a40
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbp, qword [rsp + 0xa068]
mov rcx, qword [rsp + 0xa050]
xor rcx, rsp
call fcn.180023640
add rsp, 0xa070
pop rdi
pop rsi
pop rbx
ret

Function at 0x180004f20
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x70
mov rbp, r8
lea rdx, [rsp + 0x40]
mov rbx, rcx
mov r8d, 0x30
lea rcx, [0x180006770]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
xor edi, edi
lea r8, str.binary
test rax, rax
mov rdx, rbx
cmovne rdi, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rsi, rax
test rax, rax
je 0x18000501f
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x18000501f
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x18000501f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x18000501f
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18000501f
lea r9, [rsp + 0x88]
mov qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
test eax, eax
jne 0x180005037
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x180005021
Function at 0x1800053d0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
xor eax, eax
mov dword [rsp + 0x30], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 0xf
mov byte [rcx], al
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x68], 0x34
xor edx, edx
lea rcx, [0x18006b350]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
movsxd rsi, eax
test eax, eax
je 0x1800054c2
mov rcx, rsi
call fcn.180023d04
mov rbx, rax
mov r9, rax
mov r8d, esi
xor edx, edx
lea rcx, [0x18006b350]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x1800054b5
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x70]
lea rdx, [0x18005aed4]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x1800054b5
mov rdx, qword [rsp + 0x70]
movzx eax, word [rdx + 0xc]
movzx ecx, word [rdx + 0xe]
movzx r9d, word [rdx + 8]
movzx r8d, word [rdx + 0xa]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._d._d._d._d
mov rcx, rbx
call fcn.18000f260
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x1800054a0
mov rdx, rbx
mov rcx, rdi
call fcn.180007840
mov edx, 1
mov rcx, rbx
call fcn.18002368c
mov rax, rdi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x1800057c0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1800680c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov rbx, rcx
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov dword [rsp + 0x38], eax
xor edx, edx
mov r8d, 0x80000000
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r8d, 0x80000000
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x180005838
cmp dword [rsp + 0x24], 4
sete bl
jmp 0x18000583a
xor bl, bl
test rsi, rsi
je 0x180005848
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x180005856
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180023640
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x180005880
Capabilities:
Enumerate services

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rsi
sub rsp, 0x68
xor ebx, ebx
xor edx, edx
xor ecx, ecx
mov dword [rax + 0x10], ebx
mov r8d, 5
mov dword [rax + 8], ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
jne 0x1800058cf
lea r8, str.OpenSCManager_error._n
mov edx, 0x2ee
lea rcx, str.C:UserscjsworkJSBPartTunnelJSBProxyOtherPublicFun.cpp
call fcn.180004d20
mov eax, 0xffffffff
jmp 0x180005a66
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rbx
xor edx, edx
mov qword [rsp + 0x38], rax
mov r9d, 3
lea rax, [rsp + 0x88]
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x30], rax
mov r8d, 0x30
mov dword [rsp + 0x28], ebx
mov rcx, rsi
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x50], r15
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
mov r14d, dword [rsp + 0x88]
add r14d, 0x38
mov ecx, r14d
mov r15d, r14d
call fcn.180030000
mov rbp, rax
test rax, rax
jne 0x18000596f
lea r8, str.malloc_error.
mov edx, 0x2fa
lea rcx, str.C:UserscjsworkJSBPartTunnelJSBProxyOtherPublicFun.cpp
call fcn.180004d20
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0xffffffff
jmp 0x180005a54
mov qword [rsp + 0x48], rbx
xor eax, eax
mov qword [rsp + 0x40], rbx
mov rcx, r15
mov qword [rsp + 0x60], rdi
xor edx, edx
mov rdi, rbp
mov r9d, 3
rep stosb byte [rdi], al
lea rax, [rsp + 0x80]
mov r8d, 0x30
mov qword [rsp + 0x38], rax
mov rcx, rsi
lea rax, [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
test eax, eax
jne 0x1800059ef
lea r8, str.EnumServicesStatusEx_error.
mov edx, 0x305
lea rcx, str.C:UserscjsworkJSBPartTunnelJSBProxyOtherPublicFun.cpp
call fcn.180004d20
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0xffffffff
jmp 0x180005a4f
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x180005a14
lea r8, str.CloseServiceHandle_error.
mov edx, 0x311
lea rcx, str.C:UserscjsworkJSBPartTunnelJSBProxyOtherPublicFun.cpp
call fcn.180004d20
cmp dword [rsp + 0x80], ebx
jbe 0x180005a4d
nop dword [rax]
mov eax, ebx
lea rdx, str.dnscache
imul rdi, rax, 0x38
mov rcx, qword [rdi + rbp]
call fcn.18003041c
test eax, eax
je 0x180005a47
inc ebx
cmp ebx, dword [rsp + 0x80]
jb 0x180005a20
jmp 0x180005a4d
mov eax, dword [rdi + rbp + 0x2c]
jmp 0x180005a4f
xor eax, eax
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x90]
mov r15, qword [rsp + 0x50]
add rsp, 0x68
pop rsi
pop rbx
ret
Function at 0x180005a70
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x1800680c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x28], rsp
mov dword [rsp + 0x30], 0x130
xor edx, edx
mov r8d, 0x12c
lea rcx, [rsp + 0x34]
call fcn.18004c430
xor edx, edx
mov ecx, 0x40000002
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x180005afc
lea rdx, [0x180005ad9]
mov rcx, rsp
call fcn.18004b9a0
nop
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180023640
mov rbx, qword [rsp + 0x180]
add rsp, 0x170
pop rdi
ret
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x180005b2c
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
je 0x180005b2c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x180005b10
mov edi, dword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x180005adb
Function at 0x1800060e0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov ebx, r9d
lea rax, [rsp + 0x30]
mov rdi, r8
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18000616c
mov eax, ebx
sub eax, 1
je 0x180006135
sub eax, 2
je 0x18000611e
cmp eax, 1
jne 0x18000616c
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov r9d, ebx
jmp 0x18000615b
mov rcx, qword [rsp + 0x70]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x180006141
inc eax
mov r9d, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180006190
Capabilities:
Delete registry value
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
sub rsp, 0x38
lea rax, [rsp + 0x50]
mov r9d, 0xf013f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800061e6
mov rcx, qword [rsp + 0x50]
lea rdx, str.AutoConfigURL
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret
lea rcx, str.RegOpenKey_Error...
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret
Function at 0x180006210
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rbx
sub rsp, 0xe0
mov dword [rsp + 0x40], WSACleanup
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x44], xmm0
movups xmmword [rsp + 0x54], xmm0
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [r11 - 0x64], xmm0
movups xmmword [r11 - 0x54], xmm0
mov qword [r11 - 0x44], rax
mov dword [r11 - 0x3c], eax
mov dword [rsp + 0x44], 0x500
lea rax, str.runas
mov qword [rsp + 0x50], rax
lea rax, str.netsh.exe
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x60], rdx
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ebx, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0xf0], 0
nop dword [rax + rax]
mov dword [rsp + 0x20], 4
mov r9d, 0x4ff
mov r8d, 0x2710
lea rdx, [rsp + 0xa8]
mov ecx, 1
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
mov dword [rsp + 0xf0], eax
cmp eax, 1
jne 0x18000632e
mov dword [rsp + 0x20], 0x4ff0001
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x180006322
mov eax, dword [rsp + 0xb8]
add eax, 0xfffffff0
test eax, 0xfffffffd
je 0x180006327
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x1800062a0
mov eax, dword [rsp + 0xf0]
test eax, eax
jne 0x180006358
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
xor ebx, ebx
cmp dword [rsp + 0xf0], ebx
sete bl
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, ebx
add rsp, 0xe0
pop rbx
ret
Function at 0x1800063a0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x110
mov rdx, rcx
lea rdi, [r11 - 0x78]
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [r11 - 0x78], 0x68
mov dword [r11 - 0x3c], 1
xor r8d, r8d
mov word [r11 - 0x38], r8w
lea rdi, [rsp + 0x50]
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [r11 - 0x78]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], r8
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r8d
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1800064c7
nop dword [rax]
mov dword [rsp + 0x20], 0x4ff
mov r9d, 0x3a98
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov ecx, 1
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
jne 0x18000648b
mov dword [rsp + 0x20], 0x4ff0001
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x180006489
mov eax, dword [rsp + 0x70]
add eax, 0xfffffff0
test eax, 0xfffffffd
je 0x18000648b
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x180006420
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800064c7
add rsp, 0x110
pop rdi
ret

Function at 0x180006570
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1800680c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x18000662a
xor edx, edx
lea rcx, [rsp + 0x130]
mov r8d, 0x104
call fcn.18004c430
mov r8, rbx
lea rcx, [rsp + 0x130]
mov edx, 0x104
call fcn.180030008
lea rcx, [rsp + 0x130]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.18004c430
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x18005b360]
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x18000662a
mov r8d, reloc.WS2_32.dll_inet_addr
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
lea rcx, [rsp + 0x20]
test eax, eax
jne 0x180006645
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180023640
add rsp, 0x250
pop rbx
ret
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
jmp 0x18000662c
Function at 0x180006670
Capabilities:
Enumerate processes
Print debug messages
Terminate process
Terminate process by name

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1800680c0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rsi, rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800066ba
lea rcx, [0x18005b368]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x18000674d
xor edx, edx
mov dword [rsp + 0x20], 0x130
mov r8d, 0x12c
lea rcx, [rsp + 0x24]
call fcn.18004c430
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x180006744
mov qword [rsp + 0x178], rbx
nop
mov rdx, rsi
lea rcx, [rsp + 0x4c]
call fcn.18003041c
test eax, eax
jne 0x18000672a
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1800066f0
mov rbx, qword [rsp + 0x178]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180023640
mov rsi, qword [rsp + 0x180]
add rsp, 0x160
pop rdi
ret
Function at 0x180007ef0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180007f24
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180007f10
ret
Function at 0x18000c920
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x18000c9e5
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x18000c9e5
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x18000c9fe
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x18000c9d5
cmp byte [rcx], 0x5c
jne 0x18000c9ce
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x18000c9ce
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x18000c9bc
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x18000c9cb
test r8b, 0x10
jne 0x18000c9ce
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x18000c9ce
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.180008e80
test edi, edi
jne 0x18000c940
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.180008e70
int3
Function at 0x1800105b0
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x188
mov rax, qword [0x1800680c0]
xor rax, rsp
mov qword [rsp + 0x170], rax
test ecx, ecx
je 0x1800105e5
lea rcx, [0x180068d60]
call fcn.180001e60
lea rcx, [0x18006b240]
call fcn.180006570
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x104
call fcn.18004c430
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x180010632
mov ecx, 1
call fcn.180005f20
mov r8, rax
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.180030008
lea rax, [0x18005bcc0]
mov edx, 0x104
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r8, [0x18005ae9c]
lea rcx, [0x18006b240]
call fcn.18000f2c0
lea rcx, [0x18005aec0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x18005aea8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800106c5
xorps xmm0, xmm0
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call rax
movzx eax, word [rsp + 0x30]
cmp ax, 6
je 0x1800106a7
cmp ax, 9
jne 0x1800106c5
cmp dword [0x180068d28], 0
lea r8, [0x18006b240]
je 0x1800106be
mov ecx, reloc.WS2_32.dll_WSAGetLastError
jmp 0x1800106d1
mov ecx, WSACleanup
jmp 0x1800106d1
lea r8, [0x18006b240]
mov ecx, WSACancelBlockingCall
call fcn.180004f20
lea rcx, [0x18006b240]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x18001070a
lea rcx, [0x180068d60]
call fcn.1800057c0
test al, al
jne 0x18001070a
lea r8, [0x18006b240]
lea rdx, [0x180068d60]
call fcn.180001f70
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180023640
add rsp, 0x188
ret
Function at 0x180017290
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x1800172b4
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x180017342
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180017310
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x180017310
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.18004bc10
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18001732d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180017335
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x1800172d1
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x180017420
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x180017359
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18001735b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18001738d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.18004bc10
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18001741d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800173c8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x1800173fe
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.18003316c
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x18001741d
cmp rsi, rax
ja 0x1800173d1
test rsi, rsi
je 0x18001741d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18003316c
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret