joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180055aa0
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x120
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x18010e350]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rsi, rdx
test rdx, rdx
je 0x180055ae6
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
jmp 0x180055ae8
xor ebp, ebp
lea r12d, [rbp + rbp]
xor edi, edi
lea ebx, [r12 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180055c4e
mov r8d, r12d
mov rdx, rsi
mov rcx, rax
call fcn.180086b10
movsxd r11, ebp
mov word [rbx + r11*2], di
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharLowerW]
lea rcx, [rsp + 0x30]
call fcn.180022850
nop
lea rcx, [rsp + 0x30]
call fcn.18001f790
mov r8d, r12d
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1800228a0
lea rcx, [rsp + 0x30]
call fcn.180022920
lea rcx, [rsp + 0x30]
call fcn.18001f840
mov rsi, rax
test rax, rax
je 0x180055c2a
cmp byte [rax], dil
je 0x180055c2a
movabs rax, 0x5c6c61626f6c47
mov qword [rsp + 0xe0], rax
xor eax, eax
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r8d, 0x30
sub r8d, eax
cdqe
lea rcx, [rsp + rax + 0xe0]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
mov byte [rsp + 0x10f], dil
lea r8, [rsp + 0xe0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rdi, rax
test rax, rax
je 0x180055c2a
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180055c2a
cmp eax, 0x80
je 0x180055c2a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
lea rcx, [rsp + 0x30]
call fcn.18001f780
mov rax, rdi
jmp 0x180055c51
mov rax, rdi
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.180086e60
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1800560c0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test r9b, r9b
mov rbp, rdx
lea rsi, [rcx + 0x6a6]
jne 0x1800560ea
lea rsi, [rcx + 0x8c]
mov edi, r8d
add rdi, rdi
mov r8, rdi
xor edx, edx
mov rcx, rbp
call fcn.180086e90
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, eax
call fcn.1800552b0
mov ecx, 1
lock xadd dword [0x18010ff60], ecx
add ecx, 1
mov qword [rsp + 0x30], rax
lea rdx, str._s_u__u__u_s
mov dword [rsp + 0x28], ecx
mov r9d, ebx
mov r8, rsi
mov rcx, rbp
mov dword [rsp + 0x20], r11d
call fcn.180089d50
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1800560f0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1800566a0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
call qword [0x18010e050]
xor ebp, ebp
cmp dword [rsi + 0x88], ebp
mov edi, ebp
jle 0x1800566f9
mov qword [rsp + 0x30], rbx
lea rbx, [rsi + 8]
nop
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rbp
add edi, 1
add rbx, 8
cmp edi, dword [rsi + 0x88]
jl 0x1800566d0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180062da0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x18010e350]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.180086e90
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x180000000]
mov esi, SysAllocStringByteLen
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.180086e90
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 0x180062e33
cmp dword [rsp + 0x24], 5
jb 0x180062e4d
jmp 0x180062e49
cmp dword [rsp + 0x30], esi
jne 0x180062e4d
cmp dword [rsp + 0x24], 4
ja 0x180062e49
jne 0x180062e4d
cmp dword [rsp + 0x28], 0
jbe 0x180062e4d
mov byte [rbx + 0x18], sil
lea rax, [0x1800e1cd0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.18000132c
movzx ecx, byte [0x18010fd80]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x18010fd80], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180086e60
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x180063118
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x180110278]
test rcx, rcx
jne 0x180063067
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x180063060
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180063092
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x18006305c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x40]
mov qword [0x180110278], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x180063105
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
mov rbx, rax
jne 0x1800630b5
xor edx, edx
lea r9, [rsp + 0x30]
mov ecx, 0xc0000017
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], SafeArrayAllocDescriptorEx
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x180110278]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
mov rdi, rax
je 0x1800630e2
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x180063105
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x180110278]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x1800630e9
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x180062fec
Function at 0x180089190
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 [0x180110308]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.180094c00
test rax, rax
je 0x1800891e4
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 0x180089279
mov ecx, 2
call fcn.180098630
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.180086e90
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 0x180089265
test ebx, ebx
jne 0x180089265
lea ecx, [rax + 2]
call fcn.180098630
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 0x1800892a0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x180110308]
call fcn.180094c00
test rax, rax
je 0x1800892d5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call rax
add rsp, 0x5b8
ret
mov ecx, 2
mov qword [rsp + 0x5b0], rbx
call fcn.180098630
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.180086e90
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 0x18008935e
test ebx, ebx
jne 0x18008935e
lea ecx, [rax + 2]
call fcn.180098630
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x5b8
ret
Function at 0x18008a150
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
sub rsp, 0x30
xor ebx, ebx
test r8, r8
mov rbp, r9
mov rsi, r8
mov r12d, edx
mov r13, rcx
jne 0x18008a19c
call fcn.180095550
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], SafeArrayGetElement
call fcn.180089190
xor eax, eax
jmp 0x18008a242
mov qword [rsp + 0x50], rdi
call fcn.180094d00
mov edx, 0x2d8
mov ecx, 1
call fcn.180090230
test rax, rax
mov rdi, rax
je 0x18008a228
call fcn.180094f90
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.180094d70
mov rcx, qword [rsp + 0x78]
mov eax, dword [rsp + 0x70]
test rcx, rcx
lea r8, [rsp + 0x60]
mov rdx, r12
cmovne r8, rcx
mov r9, rdi
mov rcx, r13
mov qword [rsp + 0x28], r8
lea r8, [0x18008a0b0]
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], rbp
mov qword [rdi + 8], 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x18008a23d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.180087f30
test ebx, ebx
je 0x18008a23b
mov ecx, ebx
call fcn.1800955b0
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rsi
ret
Function at 0x18008c730
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
cmp edx, 1
mov rbx, r8
jne 0x18008c897
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, SysAllocStringByteLen
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18008c788
mov rcx, rax
mov dword [rax], SysAllocStringByteLen
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x18008c790
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 0x18008c7d5
bts edi, 0xf
mov eax, esi
mov ecx, 1
mov dword [0x180110344], r12d
shl eax, 8
mov dword [0x180110350], esi
mov dword [0x180110354], ebp
add eax, ebp
mov dword [0x180110348], edi
mov dword [0x18011034c], eax
call fcn.1800982a0
mov r12, qword [rsp + 0x48]
test eax, eax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
je 0x18008c788
call fcn.180095220
test eax, eax
je 0x18008c88a
call fcn.1800a19b0
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x180112638], rax
call fcn.1800a17e0
mov qword [0x180110318], rax
call fcn.18009d510
test eax, eax
js 0x18008c885
call fcn.1800a16d0
test eax, eax
js 0x18008c880
call fcn.1800a1330
test eax, eax
js 0x18008c880
xor ecx, ecx
call fcn.1800927a0
test eax, eax
jne 0x18008c880
add dword [0x180110310], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
call fcn.18009d850
call fcn.180094d20
call fcn.180098300
xor eax, eax
add rsp, 0x20
pop rbx
ret
test edx, edx
jne 0x18008c8e0
mov eax, dword [0x180110310]
test eax, eax
jle 0x18008c788
sub eax, 1
cmp dword [0x1801103a0], edx
mov dword [0x180110310], eax
jne 0x18008c8bf
call fcn.1800929d0
test rbx, rbx
jne 0x18008c959
call fcn.18009d850
call fcn.180094d20
call fcn.180098300
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
cmp edx, 2
jne 0x18008c94d
call fcn.180094d00
mov edx, 0x2d8
mov ecx, 1
call fcn.180090230
test rax, rax
mov rbx, rax
je 0x18008c788
mov ecx, dword [0x18010eb50]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
test eax, eax
je 0x18008c93d
xor edx, edx
mov rcx, rbx
call fcn.180094d70
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.180087f30
xor eax, eax
add rsp, 0x20
pop rbx
ret
cmp edx, 3
jne 0x18008c959
xor ecx, ecx
call fcn.1800951a0
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x180095847
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18010e350]
jne 0x180086e7a
rol rcx, 0x10
test cx, 0xffff
jne 0x180086e76
repz ret
ror rcx, 0x10
jmp 0x1800957a0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1801104a0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180110598]
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 0x180095825
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, [0x1801104a0]
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 0x180095847
mov rax, qword [rsp + 0x88]
mov qword [0x180110598], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180110538], rax
mov rax, qword [0x180110598]
mov qword [0x180110410], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180110520], rax
mov dword [0x180110400], 0xc0000409
mov dword [0x180110404], 1
mov rax, qword [0x18010e350]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18010e358]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180110498], eax
mov ecx, 1
call fcn.180098630
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800e4210]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180110498], 0
jne 0x1800958ce
mov ecx, 1
call fcn.180098630
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 0x180097f40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x180097f7e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x180097f60
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x180098165
mov ecx, 3
call fcn.1800c1750
cmp eax, 1
je 0x18009811c
mov ecx, 3
call fcn.1800c1750
test eax, eax
jne 0x180097fb5
cmp dword [0x180110328], 1
je 0x18009811c
cmp edi, 0xfc
je 0x180098165
mov qword [rsp + 0x50], rbp
lea rbp, [0x180110980]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.180098580
test eax, eax
je 0x180097ff9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180089000
lea rdx, [0x180110999]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x180110a9d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x180098049
lea r8, str._program_name_unknown_
lea rcx, [0x180110999]
mov edx, 0x2fb
call fcn.180098580
test eax, eax
je 0x180098049
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180089000
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x180110999]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x180098098
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x180110c94]
lea r9d, [rax + 3]
lea r8, [0x1800e47f4]
sub rdx, rcx
call fcn.1800a8970
test eax, eax
je 0x180098098
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180089000
lea r8, [0x1800e47f0]
mov edx, 0x314
mov rcx, rbp
call fcn.1800a88b0
test eax, eax
je 0x1800980c4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180089000
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.1800a88b0
test eax, eax
je 0x1800980f4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180089000
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.1800c14f0
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 0x180098165
cmp rax, 0xffffffffffffffff
je 0x180098165
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 0x1800981b0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.1800c1750
cmp eax, 1
je 0x1800981e2
mov ecx, 3
call fcn.1800c1750
test eax, eax
jne 0x180098296
cmp dword [0x180110328], 1
jne 0x180098296
mov qword [rsp + 0x48], rbx
lea rbx, reloc.OLEAUT32.dll_SysReAllocString
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x18009820e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1800981f8
jmp 0x180098282
cmp edi, 0x17
jae 0x180098282
mov ecx, 3
call fcn.1800c1750
cmp eax, 1
je 0x180098239
mov ecx, 3
call fcn.1800c1750
test eax, eax
jne 0x180098282
cmp dword [0x180110328], 1
jne 0x180098282
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x180098282
cmp rax, 0xffffffffffffffff
je 0x180098282
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.180097f40
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x1800a17e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x180111018]
test eax, eax
jne 0x1800a1833
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1800a1813
mov dword [0x180111018], 1
jmp 0x1800a184e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1800a182d
mov dword [0x180111018], 2
jmp 0x1800a1929
mov eax, dword [0x180111018]
cmp eax, 1
jne 0x1800a1920
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1800a1973
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x1800a1875
add rbx, 2
cmp word [rbx], 0
jne 0x1800a1861
add rbx, 2
cmp word [rbx], 0
jne 0x1800a1861
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 0x1800a1913
mov rcx, rbp
call fcn.1800901c0
test rax, rax
mov rsi, rax
je 0x1800a1913
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 0x1800a18ed
mov rcx, rsi
call fcn.180087f30
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 0x1800a18f9
cmp eax, 2
je 0x1800a1929
test eax, eax
jne 0x1800a1973
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x1800a1973
cmp byte [rax], 0
je 0x1800a1952
nop
add rax, 1
cmp byte [rax], 0
jne 0x1800a1940
add rax, 1
cmp byte [rax], 0
jne 0x1800a1940
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.1800901c0
test rax, rax
mov rdi, rax
jne 0x1800a1985
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.180086b10
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 0x1800a5340
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18010e350]
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 0x1800a5387
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180086e60
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.18008cf60
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180086e60
add rsp, 0x38
ret
Function at 0x1800a8db0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0xb0
mov rax, qword [0x18010e350]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov esi, ecx
mov r9d, 0x78
and ecx, 0x3ff
mov rbp, r8
mov ebx, edx
lea edx, [r9 - 0x77]
lea r8, [rsp + 0x20]
bts ecx, 0xa
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1800a8e99
movzx ecx, byte [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0xc8], rdi
test cl, cl
lea r8, [rsp + 0x20]
mov edi, edx
je 0x1800a8e4a
nop
lea eax, [rcx - 0x61]
add r8, 1
cmp al, 5
ja 0x1800a8e30
add cl, 0xd9
jmp 0x1800a8e3a
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x1800a8e3a
add cl, 0xf9
movsx eax, cl
mov cl, byte [r8]
add edi, edi
test cl, cl
lea edi, [rax + rdi*8 - 0x30]
jne 0x1800a8e20
cmp esi, edi
je 0x1800a8e8c
test ebx, ebx
je 0x1800a8e8c
mov rdi, qword [rbp]
movzx eax, byte [rdi]
lea rcx, [rdi + 1]
nop
cmp al, 0x41
jl 0x1800a8e68
cmp al, 0x5a
jle 0x1800a8e6e
sub al, 0x61
cmp al, 0x19
ja 0x1800a8e79
mov al, byte [rcx]
add edx, 1
add rcx, 1
jmp 0x1800a8e60
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp edx, ecx
je 0x1800a8e91
mov eax, 1
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180086e60
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret