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

Disassembly:
push rdi
sub rsp, 0xd0
test rcx, rcx
mov rdi, rcx
jne 0x1800013dd
lea eax, [rcx + 2]
add rsp, 0xd0
pop rdi
ret
cmp qword [0x1800113e8], 0
jne 0x1800013fb
mov dword [rcx], 0xffffffff
mov eax, 5
add rsp, 0xd0
pop rdi
ret
call fcn.1800018b8
test eax, eax
jne 0x18000142c
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x10088
call fcn.18000252a
cmp eax, 0xfffffffd
je 0x18000142c
mov dword [rdi], 0
xor eax, eax
add rsp, 0xd0
pop rdi
ret
lea rax, [rsp + 0xf8]
lea rdx, str.SoftwareAGEIA_Technologies
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0xe8], 0xffffffff
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xe0], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800014e2
mov rcx, qword [rsp + 0xf8]
lea rax, [rsp + 0xe0]
lea r9, [rsp + 0xf0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xe8]
lea rdx, str.CudaDeviceOrdinal
xor r8d, r8d
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0xf8]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0xc8]
jne 0x1800014e2
mov dword [rdi], 1
mov eax, 7
add rsp, 0xd0
pop rdi
ret
mov dword [rdi], 0xffffffff
mov eax, 7
add rsp, 0xd0
pop rdi
ret
Function at 0x180001580
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0xc8
cmp edx, 4
mov esi, edx
mov rdi, rcx
jae 0x1800015a3
mov eax, 1
add rsp, 0xc8
pop rdi
pop rsi
ret
lea rax, [rsp + 0xf8]
lea rdx, str.SoftwareAGEIA_Technologies
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xe8], esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1800015e4
xor bl, bl
jmp 0x180001638
mov rcx, qword [rsp + 0xf8]
lea rax, [rsp + 0xe8]
lea r9, [rsp + 0xf0]
mov qword [rsp + 0x28], rax
lea rdx, str.HwSelection
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [rsp + 0xe8], 0
mov ebx, eax
jne 0x180001625
mov byte [rdi], 0
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete bl
call fcn.1800018b8
test eax, eax
jne 0x18000174d
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x10088
call fcn.18000252a
cmp eax, 0xfffffffd
je 0x18000174d
call fcn.1800018b8
test eax, eax
jne 0x1800016a0
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x10088
call fcn.18000252a
test eax, eax
jne 0x1800016a0
mov edx, dword [rsp + 0x34]
test edx, edx
je 0x1800016a0
lea rcx, [rsp + 0x40]
nop
test byte [rcx], 2
jne 0x1800016cd
add eax, 1
add rcx, 0x10
cmp eax, edx
jb 0x180001690
test bl, bl
jne 0x180001714
lea r8, [0x18000b4f0]
mov rdx, rsi
mov rcx, rdi
call fcn.180002730
mov rbx, qword [rsp + 0xc0]
mov eax, 1
add rsp, 0xc8
pop rdi
pop rsi
ret
mov ecx, eax
lea rdx, [rsp + 0xf0]
add rcx, rcx
mov rcx, qword [rsp + rcx*8 + 0x38]
call fcn.1800019de
cmp dword [rsp + 0xf0], 0
je 0x1800016a0
lea r8, [0x18000b4ec]
mov rdx, rsi
mov rcx, rdi
call fcn.180002730
mov rbx, qword [rsp + 0xc0]
xor eax, eax
add rsp, 0xc8
pop rdi
pop rsi
ret
lea rdx, [0x18000b4ec]
mov rcx, rdi
call fcn.1800029f0
test eax, eax
jne 0x180001739
lea r8, [0x18000b4f0]
mov rdx, rsi
mov rcx, rdi
call fcn.180002730
xor eax, eax
mov rbx, qword [rsp + 0xc0]
add rsp, 0xc8
pop rdi
pop rsi
ret
xor eax, eax
test bl, bl
mov rbx, qword [rsp + 0xc0]
sete al
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x180001770
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1800113e8]
lea rdx, str.cuInit
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800113e8]
lea rdx, str.cuDeviceGetProperties
mov qword [0x180011408], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800113e8]
lea rdx, str.cuDeviceGetAttribute
mov qword [0x180011418], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800113e8]
lea rdx, str.cuDeviceComputeCapability
mov qword [0x180011410], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800113e8]
lea rdx, str.cuDeviceTotalMem
mov qword [0x180011420], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800113e8]
lea rdx, str.cuDeviceGetCount
mov qword [0x1800113f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800113e8]
lea rdx, str.cuDeviceGetName
mov qword [0x1800113f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800113e8]
lea rdx, str.cuCtxPushCurrent
mov qword [0x180011400], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x180011408], 0
mov qword [0x1800113e0], rax
je 0x18000189e
cmp qword [0x180011418], 0
je 0x18000189e
cmp qword [0x180011410], 0
je 0x18000189e
cmp qword [0x180011420], 0
je 0x18000189e
cmp qword [0x1800113f0], 0
je 0x18000189e
cmp qword [0x1800113f8], 0
je 0x18000189e
cmp qword [0x180011400], 0
je 0x18000189e
test rax, rax
je 0x18000189e
xor eax, eax
add rsp, 0x28
ret
mov eax, 5
add rsp, 0x28
ret
Function at 0x180002a90
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
cmp edx, 1
mov rbx, r8
jne 0x180002bf7
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 0x180002ae8
mov rcx, rax
mov dword [rax], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x180002af0
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 0x180002b35
bts edi, 0xf
mov eax, esi
mov ecx, 1
mov dword [0x180010bac], r12d
shl eax, 8
mov dword [0x180010bb8], esi
mov dword [0x180010bbc], ebp
add eax, ebp
mov dword [0x180010bb0], edi
mov dword [0x180010bb4], eax
call fcn.1800051a0
mov r12, qword [rsp + 0x48]
test eax, eax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
je 0x180002ae8
call fcn.180004820
test eax, eax
je 0x180002bea
call fcn.180005c60
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x180011670], rax
call fcn.180005a90
mov qword [0x1800105c8], rax
call fcn.180005230
test eax, eax
js 0x180002be5
call fcn.180005980
test eax, eax
js 0x180002be0
call fcn.1800055f0
test eax, eax
js 0x180002be0
xor ecx, ecx
call fcn.180004d20
test eax, eax
jne 0x180002be0
add dword [0x1800105c0], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
call fcn.180005560
call fcn.180004340
call fcn.180005200
xor eax, eax
add rsp, 0x20
pop rbx
ret
test edx, edx
jne 0x180002c40
mov eax, dword [0x1800105c0]
test eax, eax
jle 0x180002ae8
sub eax, 1
cmp dword [0x180010c08], edx
mov dword [0x1800105c0], eax
jne 0x180002c1f
call fcn.180004f40
test rbx, rbx
jne 0x180002cb9
call fcn.180005560
call fcn.180004340
call fcn.180005200
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
cmp edx, 2
jne 0x180002cad
call fcn.180004330
mov edx, 0x2d8
mov ecx, 1
call fcn.180005080
test rax, rax
mov rbx, rax
je 0x180002ae8
mov ecx, dword [0x18000fd60]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
test eax, eax
je 0x180002c9d
xor edx, edx
mov rcx, rbx
call fcn.180004390
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.180004fc0
xor eax, eax
add rsp, 0x20
pop rbx
ret
cmp edx, 3
jne 0x180002cb9
xor ecx, ecx
call fcn.1800047c0
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x180002f00
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 [0x1800105e0]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.180004260
test rax, rax
je 0x180002f54
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 0x180002fe9
mov ecx, 2
call fcn.1800061a0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.1800061c0
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 0x180002fd5
test ebx, ebx
jne 0x180002fd5
lea ecx, [rax + 2]
call fcn.1800061a0
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 0x180003137
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18000f680]
jne 0x18000280a
rol rcx, 0x10
test cx, 0xffff
jne 0x180002806
repz ret
ror rcx, 0x10
jmp 0x180003090
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180010690]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180010788]
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 0x180003115
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, [0x180010690]
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 0x180003137
mov rax, qword [rsp + 0x88]
mov qword [0x180010788], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180010728], rax
mov rax, qword [0x180010788]
mov qword [0x180010600], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180010710], rax
mov dword [0x1800105f0], 0xc0000409
mov dword [0x1800105f4], 1
mov rax, qword [0x18000f680]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18000f688]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180010688], eax
mov ecx, 1
call fcn.1800061a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18000a278]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180010688], 0
jne 0x1800031be
mov ecx, 1
call fcn.1800061a0
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 0x180005a90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x180010d28]
test eax, eax
jne 0x180005ae3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x180005ac3
mov dword [0x180010d28], 1
jmp 0x180005afe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x180005add
mov dword [0x180010d28], 2
jmp 0x180005bd9
mov eax, dword [0x180010d28]
cmp eax, 1
jne 0x180005bd0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x180005c23
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x180005b25
add rbx, 2
cmp word [rbx], 0
jne 0x180005b11
add rbx, 2
cmp word [rbx], 0
jne 0x180005b11
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 0x180005bc3
mov rcx, rbp
call fcn.180005010
test rax, rax
mov rsi, rax
je 0x180005bc3
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 0x180005b9d
mov rcx, rsi
call fcn.180004fc0
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 0x180005ba9
cmp eax, 2
je 0x180005bd9
test eax, eax
jne 0x180005c23
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x180005c23
cmp byte [rax], 0
je 0x180005c02
nop
add rax, 1
cmp byte [rax], 0
jne 0x180005bf0
add rax, 1
cmp byte [rax], 0
jne 0x180005bf0
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.180005010
test rax, rax
mov rdi, rax
jne 0x180005c35
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.180007040
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 0x180007cd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x1800102c0]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x180007d0e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x180007cf0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x180007ef5
mov ecx, 3
call fcn.180009100
cmp eax, 1
je 0x180007eac
mov ecx, 3
call fcn.180009100
test eax, eax
jne 0x180007d45
cmp dword [0x1800105d8], 1
je 0x180007eac
cmp edi, 0xfc
je 0x180007ef5
mov qword [rsp + 0x50], rbp
lea rbp, [0x180010f80]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.180002730
test eax, eax
je 0x180007d89
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180002e60
lea rdx, [0x180010f99]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x18001109d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x180007dd9
lea r8, str._program_name_unknown_
lea rcx, [0x180010f99]
mov edx, 0x2fb
call fcn.180002730
test eax, eax
je 0x180007dd9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180002e60
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x180010f99]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x180007e28
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x180011294]
lea r9d, [rax + 3]
lea r8, [0x18000b284]
sub rdx, rcx
call fcn.180007720
test eax, eax
je 0x180007e28
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180002e60
lea r8, [0x18000b280]
mov edx, 0x314
mov rcx, rbp
call fcn.180007660
test eax, eax
je 0x180007e54
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180002e60
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.180007660
test eax, eax
je 0x180007e84
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180002e60
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.180008ea0
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 0x180007ef5
cmp rax, 0xffffffffffffffff
je 0x180007ef5
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 0x180007f10
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.180009100
cmp eax, 1
je 0x180007f42
mov ecx, 3
call fcn.180009100
test eax, eax
jne 0x180007ff6
cmp dword [0x1800105d8], 1
jne 0x180007ff6
mov qword [rsp + 0x48], rbx
lea rbx, [0x1800102c0]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x180007f6e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x180007f58
jmp 0x180007fe2
cmp edi, 0x17
jae 0x180007fe2
mov ecx, 3
call fcn.180009100
cmp eax, 1
je 0x180007f99
mov ecx, 3
call fcn.180009100
test eax, eax
jne 0x180007fe2
cmp dword [0x1800105d8], 1
jne 0x180007fe2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x180007fe2
cmp rax, 0xffffffffffffffff
je 0x180007fe2
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 fcn.180007cd0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x180008b90
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18000f680]
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 0x180008bd7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800027f0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.180008e90
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800027f0
add rsp, 0x38
ret
Function at 0x180008ea0
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.180004170
xor ebx, ebx
cmp qword [0x1800113b0], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x180008fcc
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1800090df
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800090df
mov rcx, rax
call fcn.1800040a0
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800113b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1800040a0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800113b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1800040a0
lea rcx, [rsp + 0x98]
mov qword [0x1800113c0], rax
call fcn.180004c80
test eax, eax
je 0x180008f7f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180002e60
cmp dword [rsp + 0x98], 2
jne 0x180008fcc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1800040a0
test rax, rax
mov qword [0x1800113d0], rax
je 0x180008fcc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1800040a0
mov qword [0x1800113c8], rax
mov rcx, qword [0x1800113c8]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x180009078
cmp qword [0x1800113d0], rbp
je 0x180009078
call fcn.180004260
mov rcx, qword [0x1800113d0]
mov rsi, rax
call fcn.180004260
test rsi, rsi
mov r12, rax
je 0x180009078
test rax, rax
je 0x180009078
call rsi
test rax, rax
je 0x180009043
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180009043
test byte [rsp + 0x40], 1
jne 0x180009078
lea rcx, [rsp + 0x30]
call fcn.180004cd0
test eax, eax
je 0x180009065
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180002e60
cmp dword [rsp + 0x30], 4
jb 0x180009072
bts edi, 0x15
jmp 0x1800090b6
bts edi, 0x12
jmp 0x1800090b6
mov rcx, qword [0x1800113b8]
cmp rcx, rbp
je 0x1800090b6
call fcn.180004260
test rax, rax
je 0x1800090b6
call rax
test rax, rax
mov rbx, rax
je 0x1800090b6
mov rcx, qword [0x1800113c0]
cmp rcx, rbp
je 0x1800090b6
call fcn.180004260
test rax, rax
je 0x1800090b6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800113b0]
call fcn.180004260
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1800090df
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1800090e1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013f10
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140177f80]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1401cc4b0]
mov edi, ecx
cmp byte [rbx + 0x4235], 0
jne 0x140013f71
cmp byte [rbx + 0x4236], 0
jne 0x140013f71
movsx r9d, word [rbx + 0x531a]
lea r8, [0x14012eb80]
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.140004b20
test dil, 1
je 0x140014098
jmp 0x140013ffa
movss xmm1, dword [rbx + 0x3890]
lea r8, [0x14012eb80]
movsx r9d, word [rbx + 0x531a]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140137b6c]
mulss xmm1, dword [0x140137b4c]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xdf4]
addss xmm1, dword [rbx + 0xdf8]
mov qword [rbx + 0x3fa0], rax
mov dword [rbx + 0x3f8c], 1
movss dword [rbx + 0x3f98], xmm0
movss dword [rbx + 0x3f9c], xmm1
movss xmm0, dword [rbx + 0x38ec]
mulss xmm0, dword [0x140137a30]
or dword [rbx + 0x3f88], 0x41
movss dword [rbx + 0x3fe8], xmm0
call fcn.140004b20
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140014050
lea r11, [0x14012f300]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140014033
cmp byte [r8], r9b
jne 0x140014033
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140014020
not ecx
call fcn.14000d070
test rax, rax
je 0x140014098
cmp byte [rax + 0x96], 0
je 0x140014098
mov byte [rax + 0x9d], 1
lea r8, [0x14012eb80]
mov byte [rax + 0xb8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x531a]
mov edx, reloc.WS2_32.dll_recv
movsx r9d, word [rbx + 0x531a]
call fcn.140004b20
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000f7e0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400fed90
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140018560
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x53c8], 0
lea rbx, [rcx + 0x53d0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140018607
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1400185ba
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001a620
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140005510
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x53c8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x53d8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1401cc4a8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001860f
mov rcx, rbx
call fcn.140005510
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret