joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e654
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140053f70]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
lea r8, [rsp + 0x30]
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test eax, eax
jne 0x14001e753
mov r9d, 0x104
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
test eax, eax
jne 0x14001e72a
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.1400048a0
nop
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.14001e654
mov ebx, eax
test eax, eax
setne byte [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001e711
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rsp + 0x20], 0
je 0x14001e71a
jmp 0x14001e72a
jmp 0x14001e6aa
cmp ebx, 0x103
je 0x14001e73a
cmp ebx, 0x3f2
jne 0x14001e748
mov rdx, qword [rsi]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140024c90
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14001ee4c
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xa8], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x14001eec3
call fcn.14001edd8
test rax, rax
mov rsi, rax
jne 0x14001ee7f
mov eax, edi
jmp 0x14001eed9
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x14001ee7b
mov r9, qword [rcx + 0xd0]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14001f52c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x140053f70]
xor rax, rsp
mov qword [rsp + 0x220], rax
test rcx, rcx
mov rbx, rdx
mov rdi, rcx
jne 0x14001f561
call fcn.14001c5a4
int3
test rdx, rdx
jne 0x14001f56c
call fcn.14001c5a4
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.140025d70
mov r8d, 0x100
cmp esi, r8d
ja 0x14001f5be
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x14001f5be
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14001f5ca
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140024c90
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140020120
Capabilities:
Set thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov esi, 1
mov r14, r8
mov rdi, rdx
cmp dword [rdx + 0x10], esi
mov r12, rcx
mov ebp, esi
jle 0x1400201ad
lea ebx, [rsi + 7]
lea r13d, [rsi + 0xf]
test r14, r14
je 0x140020179
mov rax, qword [r12 + 0x10]
cmp qword [rax + r13 + 8], r14
je 0x140020179
mov rax, qword [rdi + 0x18]
cmp qword [rbx + rax], 0
je 0x140020199
xor esi, esi
jmp 0x140020199
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x140020190
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rdi + 0x18]
and qword [rbx + rax], 0
add ebp, 1
add r13, 0x10
add rbx, 8
cmp ebp, dword [rdi + 0x10]
jl 0x140020159
test esi, esi
je 0x1400201f4
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r12 + 0x18]
mov rdx, rdi
call fcn.14001fc40
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r11, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r11]
mov ecx, dword [r12]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x140025380
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0xb0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0xb0], rbx
mov qword [rbp + 0xb8], rsi
mov qword [rbp + 0xc0], rdi
mov rax, qword [0x140053f70]
xor rax, rbp
mov qword [rbp + 0x70], rax
mov eax, dword [rsp]
xor ebx, ebx
mov dword [rbp], ebx
sub rsp, 0x10
lea r13, [rsp + 0x30]
mov eax, dword [r13]
lea r8d, [rbx + 0x30]
lea rdx, [rbp + 0x10]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400254ec
mov r14, qword [rbp + 0x18]
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x44]
lea rcx, [rbp]
call fcn.140027270
test eax, eax
je 0x14002541a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400299b0
mov ecx, dword [rbp]
cmp ecx, 2
jne 0x140025462
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14002545f
lea rdx, str.SetThreadStackGuarantee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002545f
lea rcx, [rbp + 4]
mov dword [rbp + 4], ebx
call rax
cmp eax, 1
jne 0x14002545f
mov eax, dword [rbp + 4]
test eax, eax
cmovne ebx, eax
mov ecx, dword [rbp]
mov r15d, 1
lea r8d, [rdi - 1]
lea edx, [rbx + rdi - 1]
cmp ecx, r15d
mov eax, r8d
mov esi, 0x104
not eax
cmove esi, r15d
and edx, eax
je 0x140025487
add edx, edi
lea eax, [rdi + rdi]
mov ebx, r8d
cmp edx, eax
not rbx
cmovb edx, eax
and rbx, r13
mov eax, 0x11
mov r12d, edx
sub rbx, r12
cmp ecx, r15d
cmove edi, eax
mov eax, edi
add rax, r14
cmp rbx, rax
jb 0x1400254ec
mov r9d, 4
mov r8d, 0x1000
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1400254ec
lea r9, [rbp + 8]
mov r8d, esi
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400254ec
mov eax, r15d
jmp 0x1400254ee
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rbp
call fcn.140024c90
mov rbx, qword [rbp + 0xb0]
mov rsi, qword [rbp + 0xb8]
mov rdi, qword [rbp + 0xc0]
lea rsp, [rbp + 0x80]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140027ca0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x140054110]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x140027cde
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140027cc0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140027ec5
mov ecx, 3
call fcn.140032860
cmp eax, 1
je 0x140027e7c
mov ecx, 3
call fcn.140032860
test eax, eax
jne 0x140027d15
cmp dword [0x140053f40], 1
je 0x140027e7c
cmp edi, 0xfc
je 0x140027ec5
mov qword [rsp + 0x50], rbp
lea rbp, [0x140059c80]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1400327b0
test eax, eax
je 0x140027d59
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400299b0
lea rdx, [0x140059c99]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x140059d9d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140027da9
lea r8, str._program_name_unknown_
lea rcx, [0x140059c99]
mov edx, 0x2fb
call fcn.1400327b0
test eax, eax
je 0x140027da9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400299b0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x140059c99]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140027df8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x140059f94]
lea r9d, [rax + 3]
lea r8, [0x140043ab4]
sub rdx, rcx
call fcn.140032690
test eax, eax
je 0x140027df8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400299b0
lea r8, [0x140043ab0]
mov edx, 0x314
mov rcx, rbp
call fcn.1400325d0
test eax, eax
je 0x140027e24
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400299b0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.1400325d0
test eax, eax
je 0x140027e54
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400299b0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140032370
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 0x140027ec5
cmp rax, 0xffffffffffffffff
je 0x140027ec5
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 0x1400287e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x14005a1ac]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x14002883c
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14002881c
mov dword [0x14005a1ac], 1
jmp 0x14002884f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140028836
mov dword [0x14005a1ac], 2
jmp 0x1400288b9
mov eax, dword [0x14005a1ac]
cmp eax, 1
jne 0x1400288b0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14002888a
cmp word [rdi], bp
mov rax, rdi
je 0x140028869
add rax, 2
cmp word [rax], bp
jne 0x140028857
add rax, 2
cmp word [rax], bp
jne 0x140028857
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.14002d210
test rax, rax
mov rbx, rax
jne 0x140028891
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1400289ab
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.1400268f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x1400289ab
cmp eax, 2
je 0x1400288b9
test eax, eax
jne 0x14002888a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x14002888a
cmp byte [rax], bpl
mov rbx, rax
je 0x140028908
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14002888a
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x1400288d0
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.14002d280
test rax, rax
mov r12, rax
jne 0x14002892d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x1400289ab
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x140028995
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400289be
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x140028940
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.140025330
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x1400289a6
Function at 0x1400298f7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140053f70]
jne 0x140024caa
rol rcx, 0x10
test cx, 0xffff
jne 0x140024ca6
repz ret
ror rcx, 0x10
jmp 0x140029850
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14005a270]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14005a368]
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 0x1400298d5
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, [0x14005a270]
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 0x1400298f7
mov rax, qword [rsp + 0x88]
mov qword [0x14005a368], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14005a308], rax
mov rax, qword [0x14005a368]
mov qword [0x14005a1e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14005a2f0], rax
mov dword [0x14005a1d0], 0xc0000409
mov dword [0x14005a1d4], 1
mov rax, qword [0x140053f70]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140053f78]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14005a268], eax
mov ecx, 1
call fcn.1400328c0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140043b28]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14005a268], 0
jne 0x14002997e
mov ecx, 1
call fcn.1400328c0
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 0x140029a50
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 [0x14005a740]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140029070
test rax, rax
je 0x140029aa4
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 0x140029b39
mov ecx, 2
call fcn.1400328c0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140025d70
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 0x140029b25
test ebx, ebx
jne 0x140029b25
lea ecx, [rax + 2]
call fcn.1400328c0
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 0x140032370
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.140028f80
xor ebx, ebx
cmp qword [0x14005ab00], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14003249c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1400325af
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400325af
mov rcx, rax
call fcn.140028eb0
lea rdx, [0x140043cc0]
mov rcx, rsi
mov qword [0x14005ab00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140028eb0
lea rdx, [0x140043ca8]
mov rcx, rsi
mov qword [0x14005ab08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140028eb0
lea rcx, [rsp + 0x98]
mov qword [0x14005ab10], rax
call fcn.140027270
test eax, eax
je 0x14003244f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400299b0
cmp dword [rsp + 0x98], 2
jne 0x14003249c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140028eb0
test rax, rax
mov qword [0x14005ab20], rax
je 0x14003249c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140028eb0
mov qword [0x14005ab18], rax
mov rcx, qword [0x14005ab18]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x140032548
cmp qword [0x14005ab20], rbp
je 0x140032548
call fcn.140029070
mov rcx, qword [0x14005ab20]
mov rsi, rax
call fcn.140029070
test rsi, rsi
mov r12, rax
je 0x140032548
test rax, rax
je 0x140032548
call rsi
test rax, rax
je 0x140032513
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 0x140032513
test byte [rsp + 0x40], 1
jne 0x140032548
lea rcx, [rsp + 0x30]
call fcn.1400272c0
test eax, eax
je 0x140032535
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400299b0
cmp dword [rsp + 0x30], 4
jb 0x140032542
bts edi, 0x15
jmp 0x140032586
bts edi, 0x12
jmp 0x140032586
mov rcx, qword [0x14005ab08]
cmp rcx, rbp
je 0x140032586
call fcn.140029070
test rax, rax
je 0x140032586
call rax
test rax, rax
mov rbx, rax
je 0x140032586
mov rcx, qword [0x14005ab10]
cmp rcx, rbp
je 0x140032586
call fcn.140029070
test rax, rax
je 0x140032586
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14005ab00]
call fcn.140029070
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1400325af
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400325b1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x140034c00
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140053f70]
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 0x140034c47
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140024c90
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140036a30
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140024c90
add rsp, 0x38
ret
Function at 0x14003bd28
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140053f70]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140025d70
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
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.140025d70
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 0x14003bdbb
cmp dword [rsp + 0x24], 5
jb 0x14003bdd5
jmp 0x14003bdd1
cmp dword [rsp + 0x30], esi
jne 0x14003bdd5
cmp dword [rsp + 0x24], 4
ja 0x14003bdd1
jne 0x14003bdd5
cmp dword [rsp + 0x28], 0
jbe 0x14003bdd5
mov byte [rbx + 0x18], sil
lea rax, [0x1400450e0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.14003bbe8
movzx ecx, byte [0x14005aea8]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x14005aea8], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140024c90
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400352b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400352c0]
mov dword [rax], 1
mov rax, qword [0x1400352d0]
mov dword [rax], 1
mov rax, qword [0x1400351f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400352a0]
mov dword [0x14003b00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140035380]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140035360]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400351d0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140009638
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140009668
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen_2
mov rcx, rax
jmp 0x14000966d
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret