joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000937c
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 0x1800093b1
call fcn.1800082ec
int3
test rdx, rdx
jne 0x1800093bc
call fcn.1800082ec
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.180013f90
mov r8d, 0x100
cmp esi, r8d
ja 0x18000940e
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x18000940e
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18000941a
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.180013f60
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x18000a858
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.180009514
test rax, rax
mov rsi, rax
je 0x18000a8d5
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
test rbx, rbx
movzx edi, ax
je 0x18000a8d0
cmp dword [rbx], 0x38
jb 0x18000a8d0
mov rax, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x18000a8d0
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x18000a8d9
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18000b674
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
call fcn.1800066c0
mov rbx, rax
mov rax, qword [rax + 0x78]
test rax, rax
je 0x18000b6ab
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x18000b6ab
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 0x18000b6db
test rbx, rbx
je 0x18000b6db
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x18000b6db
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 0x180014410
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.180016f00
test rax, rax
je 0x180014464
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 0x1800144f9
mov ecx, 2
call fcn.18001e3b0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.180013f90
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 0x1800144e5
test ebx, ebx
jne 0x1800144e5
lea ecx, [rax + 2]
call fcn.18001e3b0
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 0x1800150f0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
cmp edx, 1
mov rbx, r8
jne 0x180015257
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 0x180015148
mov rcx, rax
mov dword [rax], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x180015150
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 0x180015195
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.18001f370
mov r12, qword [rsp + 0x48]
test eax, eax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
je 0x180015148
call fcn.1800174c0
test eax, eax
je 0x18001524a
call fcn.18001fe40
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x180040668], rax
call fcn.18001fc70
mov qword [0x18003e488], rax
call fcn.18001f400
test eax, eax
js 0x180015245
call fcn.18001fb60
test eax, eax
js 0x180015240
call fcn.18001f7d0
test eax, eax
js 0x180015240
xor ecx, ecx
call fcn.180015740
test eax, eax
jne 0x180015240
add dword [0x18003e480], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
call fcn.18001f740
call fcn.180016fe0
call fcn.18001f3d0
xor eax, eax
add rsp, 0x20
pop rbx
ret
test edx, edx
jne 0x1800152a0
mov eax, dword [0x18003e480]
test eax, eax
jle 0x180015148
sub eax, 1
cmp dword [0x18003e500], edx
mov dword [0x18003e480], eax
jne 0x18001527f
call fcn.180015960
test rbx, rbx
jne 0x180015319
call fcn.18001f740
call fcn.180016fe0
call fcn.18001f3d0
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
cmp edx, 2
jne 0x18001530d
call fcn.180016fd0
mov edx, 0x2d8
mov ecx, 1
call fcn.180017650
test rax, rax
mov rbx, rax
je 0x180015148
mov ecx, dword [0x180039190]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
test eax, eax
je 0x1800152fd
xor edx, edx
mov rcx, rbx
call fcn.180017030
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.180015580
xor eax, eax
add rsp, 0x20
pop rbx
ret
cmp edx, 3
jne 0x180015319
xor ecx, ecx
call fcn.180017460
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1800193f0
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 0x18001942e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x180019410
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x180019615
mov ecx, 3
call fcn.180022e10
cmp eax, 1
je 0x1800195cc
mov ecx, 3
call fcn.180022e10
test eax, eax
jne 0x180019465
cmp dword [0x18003e498], 1
je 0x1800195cc
cmp edi, 0xfc
je 0x180019615
mov qword [rsp + 0x50], rbp
lea rbp, [0x18003e530]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.180017810
test eax, eax
je 0x1800194a9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180014370
lea rdx, [0x18003e549]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x18003e64d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1800194f9
lea r8, str._program_name_unknown_
lea rcx, [0x18003e549]
mov edx, 0x2fb
call fcn.180017810
test eax, eax
je 0x1800194f9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180014370
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x18003e549]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x180019548
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x18003e844]
lea r9d, [rax + 3]
lea r8, [0x18002f2f4]
sub rdx, rcx
call fcn.18001ec10
test eax, eax
je 0x180019548
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180014370
lea r8, [0x18002f2f0]
mov edx, 0x314
mov rcx, rbp
call fcn.18001eb50
test eax, eax
je 0x180019574
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180014370
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.18001eb50
test eax, eax
je 0x1800195a4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180014370
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.180022bb0
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 0x180019615
cmp rax, 0xffffffffffffffff
je 0x180019615
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 0x180019630
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.180022e10
cmp eax, 1
je 0x180019662
mov ecx, 3
call fcn.180022e10
test eax, eax
jne 0x180019716
cmp dword [0x18003e498], 1
jne 0x180019716
mov qword [rsp + 0x48], rbx
lea rbx, [0x1800391d0]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x18001968e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x180019678
jmp 0x180019702
cmp edi, 0x17
jae 0x180019702
mov ecx, 3
call fcn.180022e10
cmp eax, 1
je 0x1800196b9
mov ecx, 3
call fcn.180022e10
test eax, eax
jne 0x180019702
cmp dword [0x18003e498], 1
jne 0x180019702
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x180019702
cmp rax, 0xffffffffffffffff
je 0x180019702
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 0x1800197d7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180038ff0]
jne 0x180013f7a
rol rcx, 0x10
test cx, 0xffff
jne 0x180013f76
repz ret
ror rcx, 0x10
jmp 0x180019730
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 0x1800197b5
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 0x1800197d7
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.18001e3b0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18002f330]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18003e8f8], 0
jne 0x18001985e
mov ecx, 1
call fcn.18001e3b0
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 0x18001fc70
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 0x18001fcc3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x18001fca3
mov dword [0x18003f228], 1
jmp 0x18001fcde
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x18001fcbd
mov dword [0x18003f228], 2
jmp 0x18001fdb9
mov eax, dword [0x18003f228]
cmp eax, 1
jne 0x18001fdb0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x18001fe03
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x18001fd05
add rbx, 2
cmp word [rbx], 0
jne 0x18001fcf1
add rbx, 2
cmp word [rbx], 0
jne 0x18001fcf1
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 0x18001fda3
mov rcx, rbp
call fcn.1800175e0
test rax, rax
mov rsi, rax
je 0x18001fda3
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 0x18001fd7d
mov rcx, rsi
call fcn.180015580
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 0x18001fd89
cmp eax, 2
je 0x18001fdb9
test eax, eax
jne 0x18001fe03
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x18001fe03
cmp byte [rax], 0
je 0x18001fde2
nop
add rax, 1
cmp byte [rax], 0
jne 0x18001fdd0
add rax, 1
cmp byte [rax], 0
jne 0x18001fdd0
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.1800175e0
test rax, rax
mov rdi, rax
jne 0x18001fe15
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.180016230
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 0x180022bb0
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.180016e10
xor ebx, ebx
cmp qword [0x18003f2e8], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x180022cdc
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x180022def
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180022def
mov rcx, rax
call fcn.180016d40
lea rdx, [0x180030770]
mov rcx, rsi
mov qword [0x18003f2e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180016d40
lea rdx, [0x180030758]
mov rcx, rsi
mov qword [0x18003f2f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180016d40
lea rcx, [rsp + 0x98]
mov qword [0x18003f2f8], rax
call fcn.1800156a0
test eax, eax
je 0x180022c8f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180014370
cmp dword [rsp + 0x98], 2
jne 0x180022cdc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180016d40
test rax, rax
mov qword [0x18003f308], rax
je 0x180022cdc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180016d40
mov qword [0x18003f300], rax
mov rcx, qword [0x18003f300]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x180022d88
cmp qword [0x18003f308], rbp
je 0x180022d88
call fcn.180016f00
mov rcx, qword [0x18003f308]
mov rsi, rax
call fcn.180016f00
test rsi, rsi
mov r12, rax
je 0x180022d88
test rax, rax
je 0x180022d88
call rsi
test rax, rax
je 0x180022d53
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 0x180022d53
test byte [rsp + 0x40], 1
jne 0x180022d88
lea rcx, [rsp + 0x30]
call fcn.1800156f0
test eax, eax
je 0x180022d75
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180014370
cmp dword [rsp + 0x30], 4
jb 0x180022d82
bts edi, 0x15
jmp 0x180022dc6
bts edi, 0x12
jmp 0x180022dc6
mov rcx, qword [0x18003f2f0]
cmp rcx, rbp
je 0x180022dc6
call fcn.180016f00
test rax, rax
je 0x180022dc6
call rax
test rax, rax
mov rbx, rax
je 0x180022dc6
mov rcx, qword [0x18003f2f8]
cmp rcx, rbp
je 0x180022dc6
call fcn.180016f00
test rax, rax
je 0x180022dc6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18003f2e8]
call fcn.180016f00
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x180022def
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180022df1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x180024360
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 0x1800243a7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180013f60
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.1800140f0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180013f60
add rsp, 0x38
ret
Function at 0x180029908
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.180013f90
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.180013f90
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 0x18002999b
cmp dword [rsp + 0x24], 5
jb 0x1800299b5
jmp 0x1800299b1
cmp dword [rsp + 0x30], esi
jne 0x1800299b5
cmp dword [rsp + 0x24], 4
ja 0x1800299b1
jne 0x1800299b5
cmp dword [rsp + 0x28], 0
jbe 0x1800299b5
mov byte [rbx + 0x18], sil
lea rax, [0x180030858]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.1800297c8
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.180013f60
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004ab700]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004ab710]
mov dword [rax], 1
mov rax, qword [0x004ab720]
mov dword [rax], 1
mov rax, qword [0x004ab6f0]
mov dword [rax], 1
mov rax, qword [0x004ab5b0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004ab6e0]
mov dword [0x004cf008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004ab6a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004aaa60]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x4017e0
Capabilities:
Enumerate system firmware tables

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
xor r8d, r8d
xor edx, edx
mov ecx, 0x41435049
mov rsi, qword [sym.imp.KERNEL32.dll_EnumSystemFirmwareTables]
call rsi
test eax, eax
mov ebx, eax
jne 0x401810
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov ecx, eax
call sym.malloc
test rax, rax
mov rdi, rax
je 0x401800
mov r8d, ebx
mov rdx, rax
mov ecx, 0x41435049
call rsi
test eax, eax
je 0x4018af
shr eax, 2
test eax, eax
mov r10d, eax
je 0x401893
mov r11d, 1
add r10, rdi
mov rax, rdi
lea rcx, [rsp + 0x29]
xor r9d, r9d
sub r11d, edi
jmp 0x401878
mov edx, dword [rax + 8]
test edx, edx
je 0x401893
test r9b, r9b
jne 0x40186b
cmp dword [rsp + 0x29], 0x54455048
sete r9b
lea edx, [r11 + rax]
add rax, 1
cmp rax, r10
je 0x4018a5
mov edx, dword [rax]
mov byte [rsp + 0x2f], 0
movzx r8d, word [rax + 4]
cmp edx, 0x54454157
mov dword [rcx], edx
mov word [rcx + 4], r8w
jne 0x401853
mov rcx, rdi
call sym.free
mov eax, 1
jmp 0x401802
cmp edx, 7
jle 0x401893
test r9b, r9b
je 0x401893
mov rcx, rdi
call sym.free
jmp 0x401800
Function at 0x401e40
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1c8
lea rsi, [rcx + 0x10]
mov rbx, rcx
mov qword [rcx], rsi
mov rcx, qword [rdx]
lea rax, [rdx + 0x10]
cmp rcx, rax
je 0x401ee0
mov qword [rbx], rcx
mov rcx, qword [rdx + 0x10]
mov qword [rbx + 0x10], rcx
mov rcx, qword [rdx + 8]
mov qword [rdx], rax
lea rax, [r8 + 0x10]
mov qword [rdx + 8], 0
lea rdi, [rbx + 0x30]
mov byte [rdx + 0x10], 0
mov rdx, qword [r8]
mov qword [rbx + 0x20], rdi
mov qword [rbx + 8], rcx
cmp rdx, rax
je 0x401ef0
mov qword [rbx + 0x20], rdx
mov rdx, qword [r8 + 0x10]
mov qword [rbx + 0x30], rdx
mov rdx, qword [r8 + 8]
mov qword [r8], rax
mov ecx, 0x202
mov qword [r8 + 8], 0
mov byte [r8 + 0x10], 0
mov dword [rbx + 0x40], r9d
mov qword [rbx + 0x28], rdx
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
nop
add rsp, 0x1c8
pop rbx
pop rsi
pop rdi
pop rbp
ret
movdqu xmm0, xmmword [rdx + 0x10]
movups xmmword [rbx + 0x10], xmm0
jmp 0x401e6c
movdqu xmm1, xmmword [r8 + 0x10]
movups xmmword [rbx + 0x30], xmm1
jmp 0x401ea3