joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bfbc
Capabilities:
Extract resource via kernel32 functions

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
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x14001c024
call fcn.140013fcc
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x14001c024
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x14001c046
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14001ba18
test rdi, rdi
mov esi, eax
je 0x14001c044
test rbx, rbx
je 0x14001c044
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x14001e170
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 0x14001e1fd
lea ebx, [rsi + 7]
lea r13d, [rsi + 0xf]
test r14, r14
je 0x14001e1c9
mov rax, qword [r12 + 0x10]
cmp qword [rax + r13 + 8], r14
je 0x14001e1c9
mov rax, qword [rdi + 0x18]
cmp qword [rbx + rax], 0
je 0x14001e1e9
xor esi, esi
jmp 0x14001e1e9
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x14001e1e0
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 0x14001e1a9
test esi, esi
je 0x14001e244
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r12 + 0x18]
mov rdx, rdi
call fcn.14001dc90
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 0x14001e700
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x140055708]
xor rax, rsp
mov qword [rsp + 0x120], rax
test rcx, rcx
mov rbx, rdx
mov rdi, rcx
jne 0x14001e735
call fcn.14000ec38
int3
test rdx, rdx
jne 0x14001e740
call fcn.14000ec38
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.140023b30
mov r8d, 0x100
cmp esi, r8d
ja 0x14001e791
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x14001e791
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x14001e79d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400232d0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140026ef7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140055708]
jne 0x1400232ea
rol rcx, 0x10
test cx, 0xffff
jne 0x1400232e6
repz ret
ror rcx, 0x10
jmp 0x140026e50
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14005ae00]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14005aef8]
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 0x140026ed5
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, [0x14005ae00]
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 0x140026ef7
mov rax, qword [rsp + 0x88]
mov qword [0x14005aef8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14005ae98], rax
mov rax, qword [0x14005aef8]
mov qword [0x14005ad70], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14005ae80], rax
mov dword [0x14005ad60], 0xc0000409
mov dword [0x14005ad64], 1
mov rax, qword [0x140055708]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140055710]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14005adf8], eax
mov ecx, 1
call fcn.140032890
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140046eb8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14005adf8], 0
jne 0x140026f7e
mov ecx, 1
call fcn.140032890
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 0x140027050
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 [0x14005b2d0]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.1400281e0
test rax, rax
je 0x1400270a4
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 0x140027139
mov ecx, 2
call fcn.140032890
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140023b30
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 0x140027125
test ebx, ebx
jne 0x140027125
lea ecx, [rax + 2]
call fcn.140032890
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 0x14002b5a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x140055fe0]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14002b5de
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x14002b5c0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x14002b7c5
mov ecx, 3
call fcn.140034880
cmp eax, 1
je 0x14002b77c
mov ecx, 3
call fcn.140034880
test eax, eax
jne 0x14002b615
cmp dword [0x140055750], 1
je 0x14002b77c
cmp edi, 0xfc
je 0x14002b7c5
mov qword [rsp + 0x50], rbp
lea rbp, [0x14005b330]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140025d10
test eax, eax
je 0x14002b659
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140026fb0
lea rdx, [0x14005b349]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14005b44d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14002b6a9
lea r8, str._program_name_unknown_
lea rcx, [0x14005b349]
mov edx, 0x2fb
call fcn.140025d10
test eax, eax
je 0x14002b6a9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140026fb0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14005b349]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x14002b6f8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14005b644]
lea r9d, [rax + 3]
lea r8, [0x140047624]
sub rdx, rcx
call fcn.140026600
test eax, eax
je 0x14002b6f8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140026fb0
lea r8, [0x140047620]
mov edx, 0x314
mov rcx, rbp
call fcn.140025ec0
test eax, eax
je 0x14002b724
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140026fb0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.140025ec0
test eax, eax
je 0x14002b754
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140026fb0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140034620
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 0x14002b7c5
cmp rax, 0xffffffffffffffff
je 0x14002b7c5
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 0x14002b7e0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140034880
cmp eax, 1
je 0x14002b812
mov ecx, 3
call fcn.140034880
test eax, eax
jne 0x14002b8c6
cmp dword [0x140055750], 1
jne 0x14002b8c6
mov qword [rsp + 0x48], rbx
lea rbx, [0x140055fe0]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14002b83e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x14002b828
jmp 0x14002b8b2
cmp edi, 0x17
jae 0x14002b8b2
mov ecx, 3
call fcn.140034880
cmp eax, 1
je 0x14002b869
mov ecx, 3
call fcn.140034880
test eax, eax
jne 0x14002b8b2
cmp dword [0x140055750], 1
jne 0x14002b8b2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14002b8b2
cmp rax, 0xffffffffffffffff
je 0x14002b8b2
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.14002b5a0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x14002e1d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x14005b798]
test eax, eax
jne 0x14002e223
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14002e203
mov dword [0x14005b798], 1
jmp 0x14002e23e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14002e21d
mov dword [0x14005b798], 2
jmp 0x14002e319
mov eax, dword [0x14005b798]
cmp eax, 1
jne 0x14002e310
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14002e363
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x14002e265
add rbx, 2
cmp word [rbx], 0
jne 0x14002e251
add rbx, 2
cmp word [rbx], 0
jne 0x14002e251
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 0x14002e303
mov rcx, rbp
call fcn.14002d440
test rax, rax
mov rsi, rax
je 0x14002e303
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 0x14002e2dd
mov rcx, rsi
call fcn.140023e10
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 0x14002e2e9
cmp eax, 2
je 0x14002e319
test eax, eax
jne 0x14002e363
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x14002e363
cmp byte [rax], 0
je 0x14002e342
nop
add rax, 1
cmp byte [rax], 0
jne 0x14002e330
add rax, 1
cmp byte [rax], 0
jne 0x14002e330
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.14002d440
test rax, rax
mov rdi, rax
jne 0x14002e375
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.140026100
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 0x140033000
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140055708]
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 0x140033047
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400232d0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140026a00
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400232d0
add rsp, 0x38
ret
Function at 0x140034620
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.1400280f0
xor ebx, ebx
cmp qword [0x14005bae8], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14003474c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14003485f
lea rdx, [0x1400480d8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003485f
mov rcx, rax
call fcn.140028020
lea rdx, [0x1400480c8]
mov rcx, rsi
mov qword [0x14005bae8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140028020
lea rdx, [0x1400480b0]
mov rcx, rsi
mov qword [0x14005baf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140028020
lea rcx, [rsp + 0x98]
mov qword [0x14005baf8], rax
call fcn.140025940
test eax, eax
je 0x1400346ff
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140026fb0
cmp dword [rsp + 0x98], 2
jne 0x14003474c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140028020
test rax, rax
mov qword [0x14005bb08], rax
je 0x14003474c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140028020
mov qword [0x14005bb00], rax
mov rcx, qword [0x14005bb00]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x1400347f8
cmp qword [0x14005bb08], rbp
je 0x1400347f8
call fcn.1400281e0
mov rcx, qword [0x14005bb08]
mov rsi, rax
call fcn.1400281e0
test rsi, rsi
mov r12, rax
je 0x1400347f8
test rax, rax
je 0x1400347f8
call rsi
test rax, rax
je 0x1400347c3
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 0x1400347c3
test byte [rsp + 0x40], 1
jne 0x1400347f8
lea rcx, [rsp + 0x30]
call fcn.140025990
test eax, eax
je 0x1400347e5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140026fb0
cmp dword [rsp + 0x30], 4
jb 0x1400347f2
bts edi, 0x15
jmp 0x140034836
bts edi, 0x12
jmp 0x140034836
mov rcx, qword [0x14005baf0]
cmp rcx, rbp
je 0x140034836
call fcn.1400281e0
test rax, rax
je 0x140034836
call rax
test rax, rax
mov rbx, rax
je 0x140034836
mov rcx, qword [0x14005baf8]
cmp rcx, rbp
je 0x140034836
call fcn.1400281e0
test rax, rax
je 0x140034836
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14005bae8]
call fcn.1400281e0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14003485f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140034861
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x140039c98
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140055708]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140023b30
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.140023b30
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 0x140039d2b
cmp dword [rsp + 0x24], 5
jb 0x140039d45
jmp 0x140039d41
cmp dword [rsp + 0x30], esi
jne 0x140039d45
cmp dword [rsp + 0x24], 4
ja 0x140039d41
jne 0x140039d45
cmp dword [rsp + 0x28], 0
jbe 0x140039d45
mov byte [rbx + 0x18], sil
lea rax, [0x140048ac8]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.140039b58
movzx ecx, byte [0x140057080]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x140057080], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400232d0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140726058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407261df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140726089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072606f
add dl, dl
jne 0x140726096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407260f6
xor eax, eax
add dl, dl
jne 0x1407260a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407261ad
add dl, dl
jne 0x1407260b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407260c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407260d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407260dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407260ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14072607e
mov eax, 1
add dl, dl
jne 0x140726106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140726113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407260fb
sub eax, ebx
mov ebx, 1
jne 0x14072614c
mov ecx, 1
add dl, dl
jne 0x14072612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14072613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140726123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140726168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140726175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072615d
cmp eax, 0x7d00
jae 0x14072619b
cmp eax, 0x500
jb 0x140726196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072607e
cmp eax, 0x7f
ja 0x14072619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407261d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14072607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001180
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx - 3]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r11d, r11d
lea rsi, [0x14000e090]
mov r10, rax
sub rbx, rax
movabs rdi, 0x69b4069b4069b407
lea r9, [rax + 1]
nop dword [rax + rax]
movsxd r8, r11d
lea r9, [r9 + 5]
mov rax, rdi
mov rcx, r8
mul r8
add r11d, 5
shr rdx, 7
imul rax, rdx, 0x136
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 1]
xor al, byte [rbx + r9 - 6]
mov byte [r9 - 6], al
mov rax, rdi
mul rcx
shr rdx, 7
imul rax, rdx, 0x136
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 2]
xor al, byte [r9 + rbx - 5]
mov byte [r9 - 5], al
mov rax, rdi
mul rcx
shr rdx, 7
imul rax, rdx, 0x136
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 3]
xor al, byte [rbx + r9 - 4]
mov byte [r9 - 4], al
mov rax, rdi
mul rcx
shr rdx, 7
imul rax, rdx, 0x136
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 4]
xor al, byte [rbx + r9 - 3]
mov byte [r9 - 3], al
mov rax, rdi
mul rcx
shr rdx, 7
imul rax, rdx, 0x136
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 - 2]
mov byte [r9 - 2], al
cmp r11d, 5
jb 0x1400011d0
mov rbx, qword [rsp + 0x30]
mov rax, r10
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400012b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x72]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r10d, r10d
lea rsi, [0x14000e090]
mov r11, rax
sub rbx, rax
movabs rdi, 0x69b4069b4069b407
lea r9, [rax + 1]
nop dword [rax + rax]
movsxd r8, r10d
lea r9, [r9 + 2]
mov rax, rdi
mov rcx, r8
mul r8
add r10d, 2
shr rdx, 7
imul rax, rdx, 0x136
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 1]
xor al, byte [rbx + r9 - 3]
mov byte [r9 - 3], al
mov rax, rdi
mul rcx
shr rdx, 7
imul rax, rdx, 0x136
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 - 2]
mov byte [r9 - 2], al
cmp r10d, 0x7a
jb 0x140001300
mov rbx, qword [rsp + 0x30]
mov rax, r11
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret