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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x180038ff0]
xor rax, rsp
mov qword [rsp + 0x220], rax
test rcx, rcx
mov rbx, rdx
mov rdi, rcx
jne 0x180009311
call fcn.180008240
int3
test rdx, rdx
jne 0x18000931c
call fcn.180008240
int3
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
and word [rsp + 0x20], 0
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x1fe
mov esi, eax
call fcn.180013ee0
mov r8d, pe_nt_image_headers64
cmp esi, r8d
ja 0x18000936e
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x18000936e
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18000937a
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.180013eb0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x18000b5c8
Capabilities:
Log keystrokes via polling

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

Function at 0x180014360
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 [0x18003e470]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.180016e50
test rax, rax
je 0x1800143b4
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 0x180014449
mov ecx, 2
call fcn.18001e1b0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.180013ee0
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 0x180014435
test ebx, ebx
jne 0x180014435
lea ecx, [rax + 2]
call fcn.18001e1b0
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 0x180015040
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
cmp edx, 1
mov rbx, r8
jne 0x1800151a7
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 0x180015098
mov rcx, rax
mov dword [rax], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1800150a0
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 0x1800150e5
bts edi, 0xf
mov eax, esi
mov ecx, 1
mov dword [0x18003e4a4], r12d
shl eax, 8
mov dword [0x18003e4b0], esi
mov dword [0x18003e4b4], ebp
add eax, ebp
mov dword [0x18003e4a8], edi
mov dword [0x18003e4ac], eax
call fcn.18001f170
mov r12, qword [rsp + 0x48]
test eax, eax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
je 0x180015098
call fcn.180017410
test eax, eax
je 0x18001519a
call fcn.18001fc30
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x180040668], rax
call fcn.18001fa60
mov qword [0x18003e488], rax
call fcn.18001f200
test eax, eax
js 0x180015195
call fcn.18001f950
test eax, eax
js 0x180015190
call fcn.18001f5c0
test eax, eax
js 0x180015190
xor ecx, ecx
call fcn.180015690
test eax, eax
jne 0x180015190
add dword [0x18003e480], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
call fcn.18001f530
call fcn.180016f30
call fcn.18001f1d0
xor eax, eax
add rsp, 0x20
pop rbx
ret
test edx, edx
jne 0x1800151f0
mov eax, dword [0x18003e480]
test eax, eax
jle 0x180015098
sub eax, 1
cmp dword [0x18003e500], edx
mov dword [0x18003e480], eax
jne 0x1800151cf
call fcn.1800158b0
test rbx, rbx
jne 0x180015269
call fcn.18001f530
call fcn.180016f30
call fcn.18001f1d0
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
cmp edx, 2
jne 0x18001525d
call fcn.180016f20
mov edx, 0x2d8
mov ecx, 1
call fcn.1800175a0
test rax, rax
mov rbx, rax
je 0x180015098
mov ecx, dword [0x180039190]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
test eax, eax
je 0x18001524d
xor edx, edx
mov rcx, rbx
call fcn.180016f80
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.1800154d0
xor eax, eax
add rsp, 0x20
pop rbx
ret
cmp edx, 3
jne 0x180015269
xor ecx, ecx
call fcn.1800173b0
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x180019340
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x1800391d0]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x18001937e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x180019360
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x180019565
mov ecx, 3
call fcn.180022cc0
cmp eax, 1
je 0x18001951c
mov ecx, 3
call fcn.180022cc0
test eax, eax
jne 0x1800193b5
cmp dword [0x18003e498], 1
je 0x18001951c
cmp edi, 0xfc
je 0x180019565
mov qword [rsp + 0x50], rbp
lea rbp, [0x18003e530]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.180017760
test eax, eax
je 0x1800193f9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800142c0
lea rdx, [0x18003e549]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x18003e64d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x180019449
lea r8, str._program_name_unknown_
lea rcx, [0x18003e549]
mov edx, 0x2fb
call fcn.180017760
test eax, eax
je 0x180019449
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800142c0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x18003e549]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x180019498
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x18003e844]
lea r9d, [rax + 3]
lea r8, [0x18002f2c4]
sub rdx, rcx
call fcn.18001ea10
test eax, eax
je 0x180019498
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800142c0
lea r8, [0x18002f2c0]
mov edx, 0x314
mov rcx, rbp
call fcn.18001e950
test eax, eax
je 0x1800194c4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800142c0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.18001e950
test eax, eax
je 0x1800194f4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800142c0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.180022a60
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 0x180019565
cmp rax, 0xffffffffffffffff
je 0x180019565
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 0x180019580
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.180022cc0
cmp eax, 1
je 0x1800195b2
mov ecx, 3
call fcn.180022cc0
test eax, eax
jne 0x180019666
cmp dword [0x18003e498], 1
jne 0x180019666
mov qword [rsp + 0x48], rbx
lea rbx, [0x1800391d0]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x1800195de
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1800195c8
jmp 0x180019652
cmp edi, 0x17
jae 0x180019652
mov ecx, 3
call fcn.180022cc0
cmp eax, 1
je 0x180019609
mov ecx, 3
call fcn.180022cc0
test eax, eax
jne 0x180019652
cmp dword [0x18003e498], 1
jne 0x180019652
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x180019652
cmp rax, 0xffffffffffffffff
je 0x180019652
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call main
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x180019727
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180038ff0]
jne 0x180013eca
rol rcx, 0x10
test cx, 0xffff
jne 0x180013ec6
repz ret
ror rcx, 0x10
jmp 0x180019680
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18003e900]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18003e9f8]
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 0x180019705
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, [0x18003e900]
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 0x180019727
mov rax, qword [rsp + 0x88]
mov qword [0x18003e9f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18003e998], rax
mov rax, qword [0x18003e9f8]
mov qword [0x18003e870], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18003e980], rax
mov dword [0x18003e860], 0xc0000409
mov dword [0x18003e864], 1
mov rax, qword [0x180038ff0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180038ff8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18003e8f8], eax
mov ecx, 1
call fcn.18001e1b0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18002f300]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18003e8f8], 0
jne 0x1800197ae
mov ecx, 1
call fcn.18001e1b0
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 0x18001fa60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x18003f228]
test eax, eax
jne 0x18001fab3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x18001fa93
mov dword [0x18003f228], 1
jmp 0x18001face
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x18001faad
mov dword [0x18003f228], 2
jmp 0x18001fba9
mov eax, dword [0x18003f228]
cmp eax, 1
jne 0x18001fba0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x18001fbf3
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x18001faf5
add rbx, 2
cmp word [rbx], 0
jne 0x18001fae1
add rbx, 2
cmp word [rbx], 0
jne 0x18001fae1
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 0x18001fb93
mov rcx, rbp
call fcn.180017530
test rax, rax
mov rsi, rax
je 0x18001fb93
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 0x18001fb6d
mov rcx, rsi
call fcn.1800154d0
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 0x18001fb79
cmp eax, 2
je 0x18001fba9
test eax, eax
jne 0x18001fbf3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x18001fbf3
cmp byte [rax], 0
je 0x18001fbd2
nop
add rax, 1
cmp byte [rax], 0
jne 0x18001fbc0
add rax, 1
cmp byte [rax], 0
jne 0x18001fbc0
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.180017530
test rax, rax
mov rdi, rax
jne 0x18001fc05
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.180016180
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 0x180022a60
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.180016d60
xor ebx, ebx
cmp qword [0x18003f2e8], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x180022b8c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x180022c9f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180022c9f
mov rcx, rax
call fcn.180016c90
lea rdx, [0x180030740]
mov rcx, rsi
mov qword [0x18003f2e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180016c90
lea rdx, [0x180030728]
mov rcx, rsi
mov qword [0x18003f2f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180016c90
lea rcx, [rsp + 0x98]
mov qword [0x18003f2f8], rax
call fcn.1800155f0
test eax, eax
je 0x180022b3f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1800142c0
cmp dword [rsp + 0x98], 2
jne 0x180022b8c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180016c90
test rax, rax
mov qword [0x18003f308], rax
je 0x180022b8c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180016c90
mov qword [0x18003f300], rax
mov rcx, qword [0x18003f300]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x180022c38
cmp qword [0x18003f308], rbp
je 0x180022c38
call fcn.180016e50
mov rcx, qword [0x18003f308]
mov rsi, rax
call fcn.180016e50
test rsi, rsi
mov r12, rax
je 0x180022c38
test rax, rax
je 0x180022c38
call rsi
test rax, rax
je 0x180022c03
lea rcx, [rsp + 0x34]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180022c03
test byte [rsp + 0x40], 1
jne 0x180022c38
lea rcx, [rsp + 0x30]
call fcn.180015640
test eax, eax
je 0x180022c25
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1800142c0
cmp dword [rsp + 0x30], 4
jb 0x180022c32
bts edi, 0x15
jmp 0x180022c76
bts edi, 0x12
jmp 0x180022c76
mov rcx, qword [0x18003f2f0]
cmp rcx, rbp
je 0x180022c76
call fcn.180016e50
test rax, rax
je 0x180022c76
call rax
test rax, rax
mov rbx, rax
je 0x180022c76
mov rcx, qword [0x18003f2f8]
cmp rcx, rbp
je 0x180022c76
call fcn.180016e50
test rax, rax
je 0x180022c76
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18003f2e8]
call fcn.180016e50
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x180022c9f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180022ca1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x180024230
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180038ff0]
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 0x180024277
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180013eb0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.180014040
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180013eb0
add rsp, 0x38
ret
Function at 0x1800297f8
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x180038ff0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.180013ee0
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x180000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.180013ee0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x18002988b
cmp dword [rsp + 0x24], 5
jb 0x1800298a5
jmp 0x1800298a1
cmp dword [rsp + 0x30], esi
jne 0x1800298a5
cmp dword [rsp + 0x24], 4
ja 0x1800298a1
jne 0x1800298a5
cmp dword [rsp + 0x28], 0
jbe 0x1800298a5
mov byte [rbx + 0x18], sil
lea rax, [0x180030828]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.1800296b8
movzx ecx, byte [0x18003aa48]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x18003aa48], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180013eb0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140005ac0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 7], sil
je 0x140005af4
mov eax, esi
lea ecx, [rax - 0x65]
xor byte [r8 + rax], cl
inc rax
cmp rax, 6
jb 0x140005ae0
mov byte [r8 + 7], sil
add r8, 6
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.1400044e0
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140005b19
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140011250
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140005b93
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b8e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006604c
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140005ba0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 9], sil
je 0x140005bd4
mov eax, esi
lea ecx, [rax - 0x65]
xor byte [r8 + rax], cl
inc rax
cmp rax, 8
jb 0x140005bc0
mov byte [r8 + 9], sil
add r8, 8
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.1400044e0
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140005bf9
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140011250
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140005c73
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c6e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005c6e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006604c
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret