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

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x180
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140055460]
xor rax, rsp
mov qword [rsp + 0x170], 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_RegOpenKeyA]
mov ebx, eax
test eax, eax
jne 0x140013867
mov r9d, 0x104
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, eax
test eax, eax
jne 0x14001383e
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.140002b60
nop
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.140013768
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 0x140013825
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rsp + 0x20], 0
je 0x14001382e
jmp 0x14001383e
jmp 0x1400137be
cmp ebx, 0x103
je 0x14001384e
cmp ebx, 0x3f2
jne 0x14001385c
mov rdx, qword [rsi]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14001d3d0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140014b44
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x140055460]
xor rax, rsp
mov qword [rsp + 0x120], rax
test rcx, rcx
mov rbx, rdx
mov rdi, rcx
jne 0x140014b79
call fcn.140006a14
int3
test rdx, rdx
jne 0x140014b84
call fcn.140006a14
int3
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0x20], 0
mov esi, eax
call fcn.14001c250
mov r8d, 0x100
cmp esi, r8d
ja 0x140014bd5
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x140014bd5
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140014be1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14001d3d0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400164c0
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 0x14001654d
lea ebx, [rsi + 7]
lea r13d, [rsi + 0xf]
test r14, r14
je 0x140016519
mov rax, qword [r12 + 0x10]
cmp qword [rax + r13 + 8], r14
je 0x140016519
mov rax, qword [rdi + 0x18]
cmp qword [rbx + rax], 0
je 0x140016539
xor esi, esi
jmp 0x140016539
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x140016530
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 0x1400164f9
test esi, esi
je 0x140016594
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r12 + 0x18]
mov rdx, rdi
call fcn.140015fe0
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 0x140019614
Capabilities:
Get file attributes
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
mov rbx, rdx
mov rdi, rcx
mov r8d, 0x128
mov rcx, rbx
xor edx, edx
call fcn.14001c250
mov r8, qword [rdi + 0x18]
lea rcx, [rbx + 0x22]
or r9, 0xffffffffffffffff
mov edx, 0x104
call fcn.14001c080
xor esi, esi
cmp eax, esi
je 0x140019675
cmp eax, 0xc
je 0x14001966f
cmp eax, 0x16
je 0x140019669
cmp eax, 0x22
je 0x140019669
cmp eax, 0x50
je 0x140019675
call fcn.140006a14
int3
call fcn.140006a14
int3
call fcn.1400069cc
int3
mov rcx, qword [rdi + 8]
cmp rcx, qword [0x140043210]
je 0x1400197d3
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, esi
jne 0x1400196a6
xor eax, eax
jmp 0x1400197d8
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, 0xffffffff
mov r11d, eax
cmp r11, rbp
mov qword [rbx + 0x18], r11
je 0x14001969f
mov rcx, qword [rdi + 0x18]
cmp dword [rcx - 0x10], esi
jne 0x1400196d2
mov byte [rbx + 0x20], sil
jmp 0x1400196e3
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
movzx ecx, al
cmp eax, ebp
cmove ecx, esi
mov byte [rbx + 0x20], cl
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
cmp eax, esi
je 0x140019726
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, esi
je 0x140019726
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x78]
or r8d, 0xffffffff
call fcn.140019554
mov rcx, qword [rax]
mov qword [rbx], rcx
jmp 0x140019729
mov qword [rbx], rsi
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
cmp eax, esi
je 0x14001976d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, esi
je 0x14001976d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
or r8d, 0xffffffff
call fcn.140019554
mov rax, qword [rax]
mov qword [rbx + 0x10], rax
jmp 0x140019771
mov qword [rbx + 0x10], rsi
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
cmp eax, esi
je 0x1400197b5
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, esi
je 0x1400197b5
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x78]
or r8d, 0xffffffff
call fcn.140019554
mov rax, qword [rax]
mov qword [rbx + 8], rax
jmp 0x1400197b9
mov qword [rbx + 8], rsi
cmp qword [rbx], rsi
jne 0x1400197c5
mov rax, qword [rbx + 8]
mov qword [rbx], rax
cmp qword [rbx + 0x10], rsi
jne 0x1400197d3
mov rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
mov eax, 1
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140022200
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 [0x14005aee8]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140023940
test rax, rax
je 0x140022254
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 0x1400222e9
mov ecx, 2
call fcn.14002fda0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14001c250
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 0x1400222d5
test ebx, ebx
jne 0x1400222d5
lea ecx, [rax + 2]
call fcn.14002fda0
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 0x140027650
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x140055f70]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14002768e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140027670
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140027875
mov ecx, 3
call fcn.140030f40
cmp eax, 1
je 0x14002782c
mov ecx, 3
call fcn.140030f40
test eax, eax
jne 0x1400276c5
cmp dword [0x140055458], 1
je 0x14002782c
cmp edi, 0xfc
je 0x140027875
mov qword [rsp + 0x50], rbp
lea rbp, [0x14005b190]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.14001b970
test eax, eax
je 0x140027709
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140022160
lea rdx, [0x14005b1a9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14005b2ad], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140027759
lea r8, str._program_name_unknown_
lea rcx, [0x14005b1a9]
mov edx, 0x2fb
call fcn.14001b970
test eax, eax
je 0x140027759
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140022160
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14005b1a9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x1400277a8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14005b4a4]
lea r9d, [rax + 3]
lea r8, [0x140043dd4]
sub rdx, rcx
call fcn.14001d7c0
test eax, eax
je 0x1400277a8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140022160
lea r8, [0x140043dd0]
mov edx, 0x314
mov rcx, rbp
call fcn.14001dfc0
test eax, eax
je 0x1400277d4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140022160
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.14001dfc0
test eax, eax
je 0x140027804
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140022160
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140030ce0
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 0x140027875
cmp rax, 0xffffffffffffffff
je 0x140027875
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 0x140027890
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140030f40
cmp eax, 1
je 0x1400278c2
mov ecx, 3
call fcn.140030f40
test eax, eax
jne 0x140027976
cmp dword [0x140055458], 1
jne 0x140027976
mov qword [rsp + 0x48], rbx
lea rbx, [0x140055f70]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x1400278ee
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1400278d8
jmp 0x140027962
cmp edi, 0x17
jae 0x140027962
mov ecx, 3
call fcn.140030f40
cmp eax, 1
je 0x140027919
mov ecx, 3
call fcn.140030f40
test eax, eax
jne 0x140027962
cmp dword [0x140055458], 1
jne 0x140027962
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140027962
cmp rax, 0xffffffffffffffff
je 0x140027962
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.140027650
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x140028870
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x14005b618]
test eax, eax
jne 0x1400288c3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1400288a3
mov dword [0x14005b618], 1
jmp 0x1400288de
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1400288bd
mov dword [0x14005b618], 2
jmp 0x1400289b9
mov eax, dword [0x14005b618]
cmp eax, 1
jne 0x1400289b0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140028a03
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x140028905
add rbx, 2
cmp word [rbx], 0
jne 0x1400288f1
add rbx, 2
cmp word [rbx], 0
jne 0x1400288f1
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 0x1400289a3
mov rcx, rbp
call fcn.140027160
test rax, rax
mov rsi, rax
je 0x1400289a3
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 0x14002897d
mov rcx, rsi
call fcn.14001cbb0
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 0x140028989
cmp eax, 2
je 0x1400289b9
test eax, eax
jne 0x140028a03
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x140028a03
cmp byte [rax], 0
je 0x1400289e2
nop
add rax, 1
cmp byte [rax], 0
jne 0x1400289d0
add rax, 1
cmp byte [rax], 0
jne 0x1400289d0
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.140027160
test rax, rax
mov rdi, rax
jne 0x140028a15
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.14001d8f0
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 0x140028ed7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140055460]
jne 0x14001d3ea
rol rcx, 0x10
test cx, 0xffff
jne 0x14001d3e6
repz ret
ror rcx, 0x10
jmp 0x140028e30
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14005b6c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14005b7b8]
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 0x140028eb5
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, [0x14005b6c0]
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 0x140028ed7
mov rax, qword [rsp + 0x88]
mov qword [0x14005b7b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14005b758], rax
mov rax, qword [0x14005b7b8]
mov qword [0x14005b630], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14005b740], rax
mov dword [0x14005b620], 0xc0000409
mov dword [0x14005b624], 1
mov rax, qword [0x140055460]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140055468]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14005b6b8], eax
mov ecx, 1
call fcn.14002fda0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140043e38]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14005b6b8], 0
jne 0x140028f5e
mov ecx, 1
call fcn.14002fda0
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 0x140030750
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140055460]
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 0x140030797
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001d3d0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.1400201a0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001d3d0
add rsp, 0x38
ret
Function at 0x140030ce0
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.140023850
xor ebx, ebx
cmp qword [0x14005bcf0], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x140030e0c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x140030f1f
lea rdx, [0x1400451b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140030f1f
mov rcx, rax
call fcn.140023780
lea rdx, [0x1400451a8]
mov rcx, rsi
mov qword [0x14005bcf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140023780
lea rdx, [0x140045190]
mov rcx, rsi
mov qword [0x14005bcf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140023780
lea rcx, [rsp + 0x98]
mov qword [0x14005bd00], rax
call fcn.14001c780
test eax, eax
je 0x140030dbf
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140022160
cmp dword [rsp + 0x98], 2
jne 0x140030e0c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140023780
test rax, rax
mov qword [0x14005bd10], rax
je 0x140030e0c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140023780
mov qword [0x14005bd08], rax
mov rcx, qword [0x14005bd08]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x140030eb8
cmp qword [0x14005bd10], rbp
je 0x140030eb8
call fcn.140023940
mov rcx, qword [0x14005bd10]
mov rsi, rax
call fcn.140023940
test rsi, rsi
mov r12, rax
je 0x140030eb8
test rax, rax
je 0x140030eb8
call rsi
test rax, rax
je 0x140030e83
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 0x140030e83
test byte [rsp + 0x40], 1
jne 0x140030eb8
lea rcx, [rsp + 0x30]
call fcn.14001c7d0
test eax, eax
je 0x140030ea5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140022160
cmp dword [rsp + 0x30], 4
jb 0x140030eb2
bts edi, 0x15
jmp 0x140030ef6
bts edi, 0x12
jmp 0x140030ef6
mov rcx, qword [0x14005bcf8]
cmp rcx, rbp
je 0x140030ef6
call fcn.140023940
test rax, rax
je 0x140030ef6
call rax
test rax, rax
mov rbx, rax
je 0x140030ef6
mov rcx, qword [0x14005bd00]
cmp rcx, rbp
je 0x140030ef6
call fcn.140023940
test rax, rax
je 0x140030ef6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14005bcf0]
call fcn.140023940
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x140030f1f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140030f21
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x140035e04
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140055460]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.14001c250
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.14001c250
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 0x140035e97
cmp dword [rsp + 0x24], 5
jb 0x140035eb1
jmp 0x140035ead
cmp dword [rsp + 0x30], esi
jne 0x140035eb1
cmp dword [rsp + 0x24], 4
ja 0x140035ead
jne 0x140035eb1
cmp dword [rsp + 0x28], 0
jbe 0x140035eb1
mov byte [rbx + 0x18], sil
lea rax, [0x140045230]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.140035cc4
movzx ecx, byte [0x140056d88]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x140056d88], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14001d3d0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140002968
Capabilities:
Initialize winsock library

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x1e0
mov rax, qword [0x1400130d8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rbp, qword [rsp + 0x230]
mov rdi, r8
mov r14, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x198
mov rsi, r9
call sub.msvcrt.dll_memset
test r14, r14
je 0x140002a3a
test rdi, rdi
je 0x140002a3a
test rsi, rsi
je 0x140002a3a
test rbp, rbp
je 0x140002a3a
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
je 0x1400029f3
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
jne 0x140002a3f
mov r9, rsi
mov dword [rbx + 0x80], 1
mov r8, rdi
mov qword [rsp + 0x20], rbp
mov rdx, r14
mov rcx, rbx
call fcn.1400012a0
test eax, eax
jne 0x140002a3f
mov rcx, qword [rbx + 0x30]
mov dword [rcx + 0x48], 1
mov rcx, qword [rbx + 0x38]
mov dword [rcx + 0x40], 1
mov rcx, qword [rbx + 0x40]
mov dword [rcx + 0x40], 1
jmp 0x140002a3f
mov eax, 0x80070057
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140009b80
add rsp, 0x1e0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret