joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d1d9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d1e1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1e11
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d1e11
mov rax, qword [rbp - 8]
jmp 0x2fc4d1e2f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d1de4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cffd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d10b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d09d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f3108]
test eax, eax
je 0x2fc4d0a6a
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f3110]
mov qword [rbp - 8], rax
jmp 0x2fc4d0a4e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d0a42
cmp qword [rbp - 0x10], 0
je 0x2fc4d0a42
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d0a08
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d0a6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d0b70
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d0b98
mov eax, 0
jmp 0x2fc4d0be6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d0bc1
mov eax, 0
jmp 0x2fc4d0be6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d0be1
mov eax, 0
jmp 0x2fc4d0be6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d0bec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d0c6a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d0c61
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d0c61
mov rax, qword [rbp - 8]
jmp 0x2fc4d0c7f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d0c34
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x180001bc0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x180001bff
xor eax, eax
lea r8, [0x180001b30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x180043d00
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 [0x1800a2ee8]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.180047c90
test rax, rax
je 0x180043d54
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 0x180043de9
mov ecx, 2
call fcn.1800483a0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.180044c80
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 0x180043dd5
test ebx, ebx
jne 0x180043dd5
lea ecx, [rax + 2]
call fcn.1800483a0
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 0x180045e10
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x30
xor ebx, ebx
test rcx, rcx
mov rbp, r8
mov r12d, edx
mov rsi, rcx
jne 0x180045e5d
call fcn.180048400
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.180043d00
or rax, 0xffffffffffffffff
jmp 0x180045ef2
mov qword [rsp + 0x40], rdi
call fcn.180047d80
mov edx, 0x2d8
mov ecx, 1
call fcn.18004c560
test rax, rax
mov rdi, rax
je 0x180045ed6
call fcn.180048010
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.180047df0
lea r8, [0x180045d70]
mov rdx, r12
mov r9, rdi
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], rbp
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov rbx, rax
mov qword [rdi + 8], rax
jne 0x180045f08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.1800468a0
test ebx, ebx
je 0x180045ee9
mov ecx, ebx
call fcn.180048460
or rax, 0xffffffffffffffff
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x180045f20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180045ed6
mov rax, rbx
jmp 0x180045eed
Function at 0x180047680
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
cmp edx, 1
mov rbx, r8
jne 0x1800477e7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, DllRegisterServer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x1800476d8
mov rcx, rax
mov dword [rax], DllRegisterServer
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1800476e0
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 0x180047725
bts edi, 0xf
mov eax, esi
mov ecx, 1
mov dword [0x1800a2f14], r12d
shl eax, 8
mov dword [0x1800a2f20], esi
mov dword [0x1800a2f24], ebp
add eax, ebp
mov dword [0x1800a2f18], edi
mov dword [0x1800a2f1c], eax
call fcn.180050260
mov r12, qword [rsp + 0x48]
test eax, eax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
je 0x1800476d8
call fcn.180048280
test eax, eax
je 0x1800477da
call fcn.18004fd50
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x1800a5008], rax
call fcn.180051d60
mov qword [0x1800a2f80], rax
call fcn.18004e120
test eax, eax
js 0x1800477d5
call fcn.180051c50
test eax, eax
js 0x1800477d0
call fcn.1800518c0
test eax, eax
js 0x1800477d0
xor ecx, ecx
call fcn.180046460
test eax, eax
jne 0x1800477d0
add dword [0x1800a2f78], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
call fcn.18004e450
call fcn.180047da0
call fcn.1800502c0
xor eax, eax
add rsp, 0x20
pop rbx
ret
test edx, edx
jne 0x180047830
mov eax, dword [0x1800a2f78]
test eax, eax
jle 0x1800476d8
sub eax, 1
cmp dword [0x1800a2f70], edx
mov dword [0x1800a2f78], eax
jne 0x18004780f
call fcn.180046690
test rbx, rbx
jne 0x1800478a9
call fcn.18004e450
call fcn.180047da0
call fcn.1800502c0
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
cmp edx, 2
jne 0x18004789d
call fcn.180047d80
mov edx, 0x2d8
mov ecx, 1
call fcn.18004c560
test rax, rax
mov rbx, rax
je 0x1800476d8
mov ecx, dword [0x1800a0378]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
test eax, eax
je 0x18004788d
xor edx, edx
mov rcx, rbx
call fcn.180047df0
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.1800468a0
xor eax, eax
add rsp, 0x20
pop rbx
ret
cmp edx, 3
jne 0x1800478a9
xor ecx, ecx
call fcn.180048220
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x18004c447
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800a0350]
jne 0x1800450ba
rol rcx, 0x10
test cx, 0xffff
jne 0x1800450b6
repz ret
ror rcx, 0x10
jmp 0x18004c3a0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800a3060]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800a3158]
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 0x18004c425
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, [0x1800a3060]
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 0x18004c447
mov rax, qword [rsp + 0x88]
mov qword [0x1800a3158], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800a30f8], rax
mov rax, qword [0x1800a3158]
mov qword [0x1800a2fd0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800a30e0], rax
mov dword [0x1800a2fc0], 0xc0000409
mov dword [0x1800a2fc4], 1
mov rax, qword [0x1800a0350]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800a0358]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800a3058], eax
mov ecx, 1
call fcn.1800483a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800708d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800a3058], 0
jne 0x18004c4ce
mov ecx, 1
call fcn.1800483a0
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 0x18004f760
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 0x18004f79e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x18004f780
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x18004f985
mov ecx, 3
call fcn.180055580
cmp eax, 1
je 0x18004f93c
mov ecx, 3
call fcn.180055580
test eax, eax
jne 0x18004f7d5
cmp dword [0x1800a2f90], 1
je 0x18004f93c
cmp edi, 0xfc
je 0x18004f985
mov qword [rsp + 0x50], rbp
lea rbp, [0x1800a3660]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1800454f0
test eax, eax
je 0x18004f819
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180043c60
lea rdx, [0x1800a3679]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x1800a377d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x18004f869
lea r8, str._program_name_unknown_
lea rcx, [0x1800a3679]
mov edx, 0x2fb
call fcn.1800454f0
test eax, eax
je 0x18004f869
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180043c60
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x1800a3679]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x18004f8b8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x1800a3974]
lea r9d, [rax + 3]
lea r8, [0x180070f84]
sub rdx, rcx
call fcn.180053e40
test eax, eax
je 0x18004f8b8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180043c60
lea r8, [0x180070f80]
mov edx, 0x314
mov rcx, rbp
call fcn.180045ac0
test eax, eax
je 0x18004f8e4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180043c60
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.180045ac0
test eax, eax
je 0x18004f914
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180043c60
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.180055320
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 0x18004f985
cmp rax, 0xffffffffffffffff
je 0x18004f985
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 0x18004f9a0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.180055580
cmp eax, 1
je 0x18004f9d2
mov ecx, 3
call fcn.180055580
test eax, eax
jne 0x18004fa86
cmp dword [0x1800a2f90], 1
jne 0x18004fa86
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 0x18004f9fe
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x18004f9e8
jmp 0x18004fa72
cmp edi, 0x17
jae 0x18004fa72
mov ecx, 3
call fcn.180055580
cmp eax, 1
je 0x18004fa29
mov ecx, 3
call fcn.180055580
test eax, eax
jne 0x18004fa72
cmp dword [0x1800a2f90], 1
jne 0x18004fa72
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x18004fa72
cmp rax, 0xffffffffffffffff
je 0x18004fa72
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.18004f760
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x180051d60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x1800a3d18]
test eax, eax
jne 0x180051db3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x180051d93
mov dword [0x1800a3d18], 1
jmp 0x180051dce
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x180051dad
mov dword [0x1800a3d18], 2
jmp 0x180051ea9
mov eax, dword [0x1800a3d18]
cmp eax, 1
jne 0x180051ea0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x180051ef3
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x180051df5
add rbx, 2
cmp word [rbx], 0
jne 0x180051de1
add rbx, 2
cmp word [rbx], 0
jne 0x180051de1
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 0x180051e93
mov rcx, rbp
call fcn.18004c4f0
test rax, rax
mov rsi, rax
je 0x180051e93
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 0x180051e6d
mov rcx, rsi
call fcn.1800468a0
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 0x180051e79
cmp eax, 2
je 0x180051ea9
test eax, eax
jne 0x180051ef3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x180051ef3
cmp byte [rax], 0
je 0x180051ed2
nop
add rax, 1
cmp byte [rax], 0
jne 0x180051ec0
add rax, 1
cmp byte [rax], 0
jne 0x180051ec0
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.18004c4f0
test rax, rax
mov rdi, rax
jne 0x180051f05
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.1800451b0
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 0x180055320
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.180047ba0
xor ebx, ebx
cmp qword [0x1800a3da8], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x18005544c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x18005555f
lea rdx, [0x1800722b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18005555f
mov rcx, rax
call fcn.180047ad0
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800a3da8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180047ad0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800a3db0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180047ad0
lea rcx, [rsp + 0x98]
mov qword [0x1800a3db8], rax
call fcn.1800463c0
test eax, eax
je 0x1800553ff
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180043c60
cmp dword [rsp + 0x98], 2
jne 0x18005544c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180047ad0
test rax, rax
mov qword [0x1800a3dc8], rax
je 0x18005544c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180047ad0
mov qword [0x1800a3dc0], rax
mov rcx, qword [0x1800a3dc0]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x1800554f8
cmp qword [0x1800a3dc8], rbp
je 0x1800554f8
call fcn.180047c90
mov rcx, qword [0x1800a3dc8]
mov rsi, rax
call fcn.180047c90
test rsi, rsi
mov r12, rax
je 0x1800554f8
test rax, rax
je 0x1800554f8
call rsi
test rax, rax
je 0x1800554c3
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 0x1800554c3
test byte [rsp + 0x40], 1
jne 0x1800554f8
lea rcx, [rsp + 0x30]
call fcn.180046410
test eax, eax
je 0x1800554e5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180043c60
cmp dword [rsp + 0x30], 4
jb 0x1800554f2
bts edi, 0x15
jmp 0x180055536
bts edi, 0x12
jmp 0x180055536
mov rcx, qword [0x1800a3db0]
cmp rcx, rbp
je 0x180055536
call fcn.180047c90
test rax, rax
je 0x180055536
call rax
test rax, rax
mov rbx, rax
je 0x180055536
mov rcx, qword [0x1800a3db8]
cmp rcx, rbp
je 0x180055536
call fcn.180047c90
test rax, rax
je 0x180055536
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800a3da8]
call fcn.180047c90
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x18005555f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180055561
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x180056890
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800a0350]
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 0x1800568d7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800450a0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.180053e30
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800450a0
add rsp, 0x38
ret