joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429440
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x3a8
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x0043b348]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x429488
xor eax, eax
jmp 0x429639
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x160], 0
jmp 0x4294bd
mov eax, dword [rsp + 0x160]
inc eax
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x30], 0
je 0x42962a
mov r9d, 0x104
lea r8, [rsp + 0x50]
mov edx, dword [rsp + 0x160]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x42962a
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__strupr]
mov rdx, qword [rsp + 0x3b0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_strstr]
test rax, rax
je 0x429625
lea rax, [rsp + 0x280]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x429625
mov dword [rsp + 0x288], 0
jmp 0x42955f
mov eax, dword [rsp + 0x288]
inc eax
mov dword [rsp + 0x288], eax
cmp dword [rsp + 0x30], 0
je 0x429617
mov r9d, 0x104
lea r8, [rsp + 0x170]
mov edx, dword [rsp + 0x288]
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x429617
lea rax, [rsp + 0x170]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, str.SystemCurrentControlSetEnumPCI
lea rdx, str._s_s_s
lea rcx, [rsp + 0x290]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0x290]
call qword [sym.imp.msvcrt.dll__strupr]
mov rdx, qword [rsp + 0x3c0]
lea rcx, [rsp + 0x290]
call fcn.00429650
test eax, eax
je 0x429612
lea rdx, [rsp + 0x290]
mov rcx, qword [rsp + 0x3b8]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x44], 1
jmp 0x429617
jmp 0x42954f
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4294ad
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x44]
add rsp, 0x3a8
ret
Function at 0x4299f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2b8
mov r9, qword [rsp + 0x2c8]
lea r8, str.SystemCurrentControlSetServices
lea rdx, str._s_sEnum
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x429a52
xor eax, eax
jmp 0x429b70
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x160], 4
lea rax, [rsp + 0x160]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Count
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x429b61
mov dword [rsp + 0x188], 0
jmp 0x429ab9
mov eax, dword [rsp + 0x188]
inc eax
mov dword [rsp + 0x188], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x188], eax
jge 0x429b61
mov r8d, dword [rsp + 0x188]
lea rdx, [0x0043b47c]
lea rcx, [rsp + 0x168]
call qword [sym.imp.USER32.dll_wsprintfA]
mov dword [rsp + 0x2a0], 0x104
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x190]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x168]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x429b5c
lea rcx, [rsp + 0x190]
call qword [sym.imp.msvcrt.dll__strupr]
lea rdx, [rsp + 0x190]
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.msvcrt.dll_strstr]
test rax, rax
je 0x429b5c
mov dword [rsp + 0x40], 1
jmp 0x429b61
jmp 0x429aa9
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
add rsp, 0x2b8
ret

Function at 0x429c60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov dword [rsp + 0x30], 0x104
mov dword [rsp + 0x34], 0
lea rax, [rsp + 0x150]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x170]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x429cb6
mov eax, dword [rsp + 0x34]
jmp 0x429d24
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Driver
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x429d12
lea r9, [rsp + 0x40]
lea r8, str.SystemCurrentControlSetControlClass
lea rdx, [0x0043b518]
mov rcx, qword [rsp + 0x178]
call qword [sym.imp.USER32.dll_wsprintfA]
mov dword [rsp + 0x34], 1
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x34]
add rsp, 0x168
ret
Function at 0x429d40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x429d88
xor eax, eax
jmp 0x429f62
mov dword [rsp + 0x30], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DriverDesc
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x429dc8
mov rax, qword [rsp + 0x70]
mov byte [rax], 0
mov dword [rsp + 0x30], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.InfPath
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x429e0e
mov rax, qword [rsp + 0x80]
mov byte [rax], 0
mov dword [rsp + 0x30], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.InfSection
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x429e54
mov rax, qword [rsp + 0x88]
mov byte [rax], 0
mov dword [rsp + 0x30], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ProviderName
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x429e9a
mov rax, qword [rsp + 0x90]
mov byte [rax], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Settings
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x429f52
mov dword [rsp + 0x30], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ReleaseVersion
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x429f07
mov rax, qword [rsp + 0x68]
mov byte [rax], 0
mov dword [rsp + 0x30], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x0043b578]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x429f47
mov rax, qword [rsp + 0x78]
mov byte [rax], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x58
ret
Function at 0x431540
Capabilities:
Delete service
Stop service

Disassembly:
sub rsp, 0x68
cmp dword [0x00461ddc], 0
jne 0x431554
xor eax, eax
jmp 0x4315e6
mov rcx, qword [0x00445998]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x20], rax
mov r8d, 0xf01ff
lea rdx, [0x0043c7c0]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 1
jne 0x4315c2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [0x00461ddc], 0
mov eax, dword [rsp + 0x28]
add rsp, 0x68
ret

Function at 0x4315f0
Capabilities:
Delete service
Stop service

Disassembly:
sub rsp, 0x68
mov dword [rsp + 0x28], 0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x43167c
mov r8d, 0xf01ff
lea rdx, str.ATICDSDr
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x431671
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x28]
add rsp, 0x68
ret
Function at 0x431690
Capabilities:
Copy file
Create directory

Disassembly:
sub rsp, 0x58
cmp dword [0x00461ddc], 0
je 0x4316a2
jmp 0x4317eb
mov dword [0x00461ddc], 1
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, [0x0043c7e0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x4317df
call fcn.004315f0
call fcn.00431800
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, [0x0043c7f0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x4317df
movsx eax, byte [0x0045eb20]
test eax, eax
je 0x4317df
call fcn.004315f0
mov dword [0x00461ddc], 1
mov dword [0x0045f954], 1
xor edx, edx
lea rcx, [0x0045f820]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor r8d, r8d
lea rdx, [0x0045eb20]
lea rcx, str.atiicdxx.sys
call qword [sym.imp.KERNEL32.dll_CopyFileA]
lea rdx, [0x0045eb20]
lea rcx, str.atiicdxx.sys
call sub.msvcrt.dll_strcpy
call fcn.00431800
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, str..ATICDSDr
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [0x00445998], rax
add rsp, 0x58
ret

Function at 0x431850
Capabilities:
Create service
Start service

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x4318ed
xor eax, eax
jmp 0x431910
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [rsp + 0x70], eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x70]
add rsp, 0x88
ret
Function at 0x4323f0
Capabilities:
Check os version

Disassembly:
sub rsp, 0xd8
mov r8d, 0x94
xor edx, edx
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x20], 0x94
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 1
je 0x43243d
cmp dword [rsp + 0xc0], 2
je 0x432482
jmp 0x4324b9
cmp dword [rsp + 0x24], 4
ja 0x432452
cmp dword [rsp + 0x24], 4
jne 0x43245b
cmp dword [rsp + 0x28], 0xa
jbe 0x43245b
mov eax, 4
jmp 0x4324bf
cmp dword [rsp + 0x24], 4
ja 0x432470
cmp dword [rsp + 0x24], 4
jne 0x432479
cmp dword [rsp + 0x28], 0
jbe 0x432479
mov eax, 2
jmp 0x4324bf
mov eax, 1
jmp 0x4324bf
cmp dword [rsp + 0x24], 5
jae 0x432492
mov eax, 8
jmp 0x4324bf
cmp dword [rsp + 0x24], 5
jb 0x4324b7
mov eax, 0x10
jmp 0x4324bf
jmp 0x4324bd
xor eax, eax
jmp 0x4324bf
xor eax, eax
add rsp, 0xd8
ret

Function at 0x4324d0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x432591
mov eax, dword [rsp + 0x2c]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0x40]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x432591
mov r9, qword [rsp + 0x20]
mov r8d, dword [rsp + 0x2c]
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x43257b
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x0043caec]
mov rcx, qword [rsp + 0x20]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x43257b
mov r8d, 0x34
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_memcpy
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x58
ret
Function at 0x432d40
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x00400000], 0x5a4d
je 0x432d7d
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x432e0b
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x432da1
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x432e0b
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x432de8
cmp ecx, 0x20b
je 0x432dc0
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x432e0b
cmp dword [rax + 0x84], 0xe
ja 0x432dd4
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x432e0b
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x432e0b
cmp dword [rax + 0x74], 0xe
ja 0x432df9
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x432e0b
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x00461df0], 0xffffffffffffffff
mov qword [0x00461df8], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x00461dec]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x00461de8]
mov dword [rcx], eax
call fcn.00433020
cmp dword [0x004459a4], 0
jne 0x432e65
lea rcx, [0x00433010]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x00434788]
lea rcx, [0x00434780]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x00461de4]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x00461de0]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x00434778]
lea rcx, [0x00434748]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x432f06
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x432ef6
cmp al, 0x22
je 0x432ef6
jmp 0x432ee0
cmp byte [r8], 0x22
jne 0x432f16
inc r8
mov qword [rsp + 0x30], r8
jmp 0x432f16
cmp byte [r8], 0x20
jbe 0x432f16
inc r8
mov qword [rsp + 0x30], r8
jmp 0x432f06
movzx eax, byte [r8]
test al, al
je 0x432f2c
cmp al, 0x20
ja 0x432f2c
inc r8
mov qword [rsp + 0x30], r8
jmp 0x432f16
test byte [rsp + 0x8c], 1
je 0x432f41
movzx r9d, word [rsp + 0x90]
jmp 0x432f47
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.004127f0
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x432f63
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x432f87
mov eax, edi
jmp 0x432f90
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x1400089e8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd r15, r9d
mov rsi, r8
test r8, r8
je 0x140008a0f
and qword [r8], 0
call fcn.140008b24
mov rbx, rax
test rax, rax
je 0x140008b08
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140008aff
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140008aff
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140008aff
mov rax, qword [0x1400dc810]
mov rbp, rdi
test rax, rax
je 0x140008a77
inc dword [rax + 0x3c8]
mov rdx, qword [0x1400dc820]
lea rcx, [r15 + rdi]
call qword [0x1400c5050]
mov rdi, rax
test rax, rax
je 0x140008aff
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbp
je 0x140008ad6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400dc810]
test rax, rax
je 0x140008ac4
dec dword [rax + 0x3c8]
mov rdx, qword [0x1400dc820]
mov rcx, rdi
call qword [0x1400c5058]
jmp 0x140008b08
test r15d, r15d
jle 0x140008ae9
lea rcx, [rdi + rbp]
mov r8, r15
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140008afa
mov qword [rsi], rbp
mov rax, rdi
jmp 0x140008b0a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140008d58
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
cmp dword [0x1400dc844], 0
lea rsi, [0x1400dc840]
mov ebx, r8d
mov edi, edx
mov r10, rcx
jne 0x140008dbf
xor r9d, r9d
mov r11, rsi
mov r8d, r9d
mov edx, 8
mov ecx, r8d
mov eax, r8d
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov r8d, ecx
xor r8d, eax
sub rdx, 1
jne 0x140008d8d
mov dword [r11], r8d
inc r9d
add r11, 4
cmp r9d, 0x100
jb 0x140008d85
not ebx
mov edx, ebx
test edi, edi
jle 0x140008de1
movzx eax, byte [r10]
inc r10
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [rsi + rcx*4]
sub edi, 1
jne 0x140008dc7
jmp 0x140008e1b
mov r8b, byte [r10]
inc r10
test r8b, r8b
je 0x140008e1b
mov r9b, reloc.WLDAP32.dll_Ordinal_35
cmp r8b, r9b
jne 0x140008e00
cmp byte [r10], r9b
jne 0x140008e00
cmp byte [r10 + 1], r9b
cmove edx, ebx
movzx ecx, dl
movzx eax, r8b
mov r8b, byte [r10]
xor rcx, rax
shr edx, 8
inc r10
xor edx, dword [rsi + rcx*4]
test r8b, r8b
jne 0x140008def
mov rbx, qword [rsp + 8]
not edx
mov rsi, qword [rsp + 0x10]
mov eax, edx
mov rdi, qword [rsp + 0x18]
ret
Function at 0x14000dddc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1400dc810]
mov rbx, rcx
and dword [rax + 0x2d9c], 0
test rcx, rcx
je 0x14000de45
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.14000de50
lea rdx, [0x1400a119c]
mov rcx, rbx
mov rdi, rax
call fcn.140008b24
mov rbx, rax
test rax, rax
je 0x14000de45
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001c4f4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
xor r14d, r14d
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rsi, rdx
movsxd rdi, r9d
mov rbp, rcx
test r9d, r9d
jle 0x14001c6e5
lea rbx, [r8 + 0x20]
xor r13d, r13d
lea r8d, [r14 + 1]
mov r11d, 0x100
xorps xmm7, xmm7
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x14001c596
movsxd r10, dword [rsi + 0x24]
mov r9, qword [rsi + 8]
movsx ecx, r11w
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, r11w
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
mov r8d, 1
movd xmm0, eax
jmp 0x14001c5b8
movsxd rdx, dword [rsi + 0x1c]
mov rax, qword [rsi + 8]
xorps xmm6, xmmword [0x1400a1320]
movzx ecx, byte [rdx + rax + 0x12]
movzx eax, byte [rdx + rax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
mov al, byte [rbp + 0x20]
xor r15d, r15d
cvtdq2ps xmm0, xmm0
mov byte [rbx], al
mov al, byte [rbp + 0x24]
mov byte [rbx + 1], al
divss xmm6, xmm0
cmp dword [rbx - 0x10], r15d
jle 0x14001c6d8
mov rcx, qword [rsp + 0xe0]
mov rax, r13
shl rax, 4
add rcx, 6
xor r12d, r12d
add rcx, rax
mov qword [rsp + 0x60], rcx
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x14001c606
mov edx, dword [rbx - 0x1c]
add edx, r15d
jmp 0x14001c60a
mov edx, dword [rax + r12]
mov rcx, rsi
call fcn.14001bc28
mov edx, eax
xorps xmm3, xmm3
mov eax, dword [rbp + 0x24]
xorps xmm2, xmm2
mov rcx, rsi
cvtsi2ss xmm3, rax
mov eax, dword [rbp + 0x20]
cvtsi2ss xmm2, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x30], rax
mulss xmm3, xmm6
mulss xmm2, xmm6
movss dword [rsp + 0x28], xmm7
movss dword [rsp + 0x20], xmm7
call fcn.14001c074
mov rcx, qword [rsp + 0x60]
mov r8d, 1
movzx eax, word [rbp + 0x20]
add r14d, r8d
sub ax, word [rsp + 0xd8]
add r13, r8
add ax, word [rbp + 0x1c]
add r15d, r8d
add ax, word [rsp + 0x50]
add r12, 4
sub ax, r8w
mov word [rcx - 2], ax
movzx eax, word [rbp + 0x24]
sub ax, word [rsp + 0x54]
add ax, word [rbp + 0x1c]
add ax, word [rsp + 0x58]
sub ax, r8w
mov word [rcx], ax
add rcx, 0x10
mov qword [rsp + 0x60], rcx
cmp r15d, dword [rbx - 0x10]
jl 0x14001c5f5
mov r11d, 0x100
add rbx, 0x28
sub rdi, r8
jne 0x14001c544
movaps xmm7, xmmword [rsp + 0x70]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov eax, r14d
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret