joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007c300
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18007c890
mov qword [rsp + 0x28], 0
cmp qword [0x1800c0318], 0
jne 0x18007c348
cmp qword [0x1800c0310], 0
je 0x18007c348
mov rax, qword [0x1800c0310]
mov qword [0x1800c0318], rax
cmp qword [0x1800c0318], 0
je 0x18007c3ee
mov rax, qword [0x1800c0318]
cmp qword [rax + 0x10], 0
je 0x18007c3ee
mov rax, qword [0x1800c0318]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18007c3ee
mov rax, qword [0x1800c0318]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18007c3ee
mov rax, qword [0x1800c0318]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18007c3b4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18007c3bb
xor eax, eax
jmp 0x18007c569
mov rax, qword [0x1800c0318]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x18007c569
mov rax, qword [0x1800c0310]
mov qword [0x1800c0318], rax
jmp 0x18007c410
mov rax, qword [0x1800c0318]
mov rax, qword [rax + 8]
mov qword [0x1800c0318], rax
cmp qword [0x1800c0318], 0
je 0x18007c45d
cmp qword [0x1800c0318], 0
je 0x18007c45b
mov rax, qword [0x1800c0318]
cmp qword [rax + 0x10], 0
je 0x18007c45b
mov rax, qword [0x1800c0318]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18007c45b
mov rax, qword [0x1800c0318]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18007c45b
jmp 0x18007c38c
jmp 0x18007c3fe
mov rcx, qword [rsp + 0x60]
call fcn.18007e4e0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18007c570
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18007c567
mov rax, qword [rsp + 0x48]
mov qword [0x1800c0318], rax
mov rax, qword [0x1800c0318]
mov dword [rax], 0x52727464
mov rax, qword [0x1800c0318]
mov qword [rax + 0x10], 0
mov rax, qword [0x1800c0318]
mov rcx, qword [0x1800c0310]
mov qword [rax + 8], rcx
mov rax, qword [0x1800c0318]
mov qword [0x1800c0310], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1800c0318]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18007c518
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18007c552
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18007c50e
mov rax, qword [0x1800c0318]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18007c38c
xor eax, eax
add rsp, 0x58
ret
Function at 0x18007d280
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18007d2c7
xor al, al
jmp 0x18007d369
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x18007d2f1
xor al, al
jmp 0x18007d369
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x18007d361
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x18007d361
mov al, 1
jmp 0x18007d369
jmp 0x18007d367
xor al, al
add rsp, 0x78
ret

Function at 0x18007d670
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800c0310]
mov qword [rsp + 0x28], rax
jmp 0x18007d690
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18007d6bf
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18007d6bd
call sub.KERNEL32.dll_GetLastError
jmp 0x18007d6c1
jmp 0x18007d682
xor eax, eax
add rsp, 0x38
ret
Function at 0x18007dd80
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1800c0328], eax
je 0x18007dd9b
mov eax, 0x10dd
jmp 0x18007dec0
mov rax, qword [0x1800c0340]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18007de45
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x18007de10
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x18007de10
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.18007c9d0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.18007fbf0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x18007dda7
mov qword [0x1800c0340], 0
call fcn.18007d430
mov rax, qword [0x1800c0338]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18007dea9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.18007fbf0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x18007de61
mov qword [0x1800c0338], 0
mov dword [0x1800c0328], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x18007e3f0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1800c032c], 0
je 0x18007e40d
mov eax, dword [0x1800c032c]
jmp 0x18007e4d3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x18007e420
xor eax, eax
jmp 0x18007e4d3
mov ecx, 0x10
call fcn.18007fbf8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18007e48e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x18007e473
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.18007fbf0
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1800c032c], eax
mov qword [0x1800c0330], 0
mov eax, dword [rsp + 0x20]
jmp 0x18007e4d3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x18007e4a8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x18007e449
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1800c0338]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1800c0338], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x18007f990
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18007fa14
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180085a90]
cmp byte [rcx + rax], 0
je 0x18007fa14
dec r8
sub rdx, 1
jne 0x18007f9fa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400115d8
Capabilities:
Read .ini file

Disassembly:
mov r11d, r9d
mov r10, r8
lea r9, [rcx + 8]
mov rax, rdx
cmp qword [r9 + 0x18], 8
jb 0x1400115ef
mov r9, qword [r9]
cmp qword [r8 + 0x18], 8
jb 0x1400115f9
mov r10, qword [r8]
cmp qword [rdx + 0x18], 8
jb case.default.0x14001160c
mov rax, qword [rdx]
mov r8d, r11d
mov rdx, r10
mov rcx, rax
jmp qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
invalid
jne 0x140037208
invalid

Function at 0x140011614
Capabilities:
Read .ini file

Disassembly:
push rbx
add rcx, 8
mov r10, r9
mov r11, r8
mov rbx, rdx
cmp qword [rcx + 0x18], 8
jb case.default.0x140011649
mov rcx, qword [rcx]
mov eax, dword [rsp + 0x38]
mov r8, r10
mov r9, qword [rsp + 0x30]
mov rdx, r11
mov qword [rsp + 0x38], rcx
mov rcx, rbx
mov dword [rsp + 0x30], eax
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cld
add dword [rdx - 0x15], edi
xor al, 0xe3
add al, 0xe2
invalid
cmp eax, 0xa999bdec
sbb esi, dword [rsi - 6]
mov cl, byte [rsi]
cmp ch, byte [rsi + 0xd]
xchg ebp, eax
dec dl
lock or edi, dword [rbx + 0x15]
invalid
lahf
pop rbp
invalid
jo 0x140037197
enter 0x74c1, 0xfffffffffffffff3
invalid
fdivr qword [rax]
cmp al, 0x91
adc esp, esp
mov dword [rbx - 0x57], eax
sbb esi, dword [rbx + 2]
in eax, dx
invalid
mov r11b, dil
invalid
xchg edi, eax
sbb esp, dword [rcx + 0x57]
jle 0x14003715d
jle 0x14003715d
jp 0x14003715f
and byte [rdx - 0x59510aa2], 0xeb
test al, 0xf6
mov edi, 0x7734f5f
invalid
invalid
mov esi, 0xc8a3e73e
mov dh, 0x3a
cmp bl, byte [0xe280fc1f]
cmpsd dword [rsi], dword [rdi]
pop rbx
jne 0x140037151
invalid
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020504]
cmp r15, 1
jne 0x140004953
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205e4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205e4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205e4]
call fcn.14000dd0c
mov rcx, qword [0x1400205e4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205ec]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f180]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020630]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020630]
call fcn.1400123b8
lea rcx, [0x140021200]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pushfq
mov esi, dword [rdx + 0x40b36990]
mov bh, 0xaa
hlt
in eax, dx
jae case.0x140007272.1
test dh, bl
cmpsd dword [rsi], dword [rdi]
invalid
or dword [rdx + rbp*8], 0x5b
push rax
stc
jle 0x14003f6e5
push rsp
mov cs, eax
invalid
invalid
jae 0x14003f685
fcomp qword [rax + 0x57]
pop rax
push rdi
pop rax
push rdi
pop rdx
and esi, dword [rdx]
ficom word [rbx + 0x1e]
and ecx, dword [r14]
pushfq
adc byte [rbp + 0x3033a9ca], al
retf 0x33a9
xor esi, dword [rax]
xor esi, dword [rax]
pop rsi
jo 0x14003f6a7
or al, 0x39
invalid
invalid
push rsi
sbb byte [rdi + rdx*4], al
add al, 0xb6
ror dword [rcx + 0x39b974f1], cl
sbb al, al
pop rdx
test dword [rbp + 0x5f], r10d
sbb al, 0x36
sub eax, 0xf471a1e7
out 0xa1, eax
jno 0x14003f6e0
out 0xa1, eax
jno 0x14003f6e0
add byte [rbp - 0x665fb63a], bl
invalid
xor dword [0x19e6cba5d], esp
xor ch, bh
movsb byte [rdi], byte [rsi]
insb byte [rdi], dx
fucomp st(6)
pop rsi
pop rbp
invalid
Function at 0x140002484
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [0x140001018]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, section..text
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140007070], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x140001028]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140007068], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x140001040]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140007060], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x140001060]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140007058], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x140001078]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140007050], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x140001090]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140007048], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400010b0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140007040], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400010d4]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140007038], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400010dc]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140007030], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400010e4]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140007028], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400010ec]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140007020], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400010f4]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140007018], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400010fc]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x140001104]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140007010], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x14000110c]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140007008], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x140001114]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [section..data], rax
add rsp, 0x20
pop rbx
ret
Function at 0x140002a58
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor r13d, r13d
mov rbx, rcx
mov edi, r13d
cmp dword [rax + rcx + 0x8c], r13d
je 0x140002ae2
mov esi, dword [rax + rcx + 0x88]
mov ebp, r13d
add rsi, rcx
mov r14d, dword [rsi + 0x1c]
mov r15d, dword [rsi + 0x20]
add r14, rcx
add r15, rcx
cmp dword [rsi + 0x14], r13d
jbe 0x140002ae2
mov r12d, ebp
lea rdx, [0x1400015b4]
mov ecx, dword [r15 + r12*4]
add rcx, rbx
call qword [0x140007020]
test eax, eax
je 0x140002ad0
inc ebp
cmp ebp, dword [rsi + 0x14]
jb 0x140002aac
jmp 0x140002ae2
mov ecx, dword [rsi + 0x24]
add rcx, rbx
movzx eax, word [rcx + r12*2]
mov edi, dword [r14 + rax*4]
add rdi, rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x140007080]
mov rbx, qword [rsp + 0x50]
cmp eax, 0x7fff
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmova rdi, r13
mov rax, rdi
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140003998
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rdi, rcx
mov dword [rbp - 0x80], 0x11c
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rbp - 0x7c], 6
jae 0x140003abc
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor ebx, ebx
xor ecx, ecx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003a69
mov ecx, dword [rsp + 0x78]
xor edx, edx
mov rax, qword [rsp + 0x20]
div rcx
test rdx, rdx
jne 0x140003a3d
cmp qword [rsp + 0x38], 0x1000
jne 0x140003a3d
cmp dword [rsp + 0x40], 0x1000
jne 0x140003a3d
cmp dword [rsp + 0x48], 0x20000
jne 0x140003a3d
cmp dword [rsp + 0x44], 4
jne 0x140003a3d
movabs rax, 0x74636a6e696d7678
cmp qword [rbx], rax
je 0x140003a50
add rbx, qword [rsp + 0x38]
cmp rbx, 0x7fff0000
jae 0x140003abc
mov rcx, rbx
jmp 0x1400039df
mov r8d, 0x20
mov rdx, rbx
mov rcx, rdi
call qword [0x140007038]
mov eax, 1
jmp 0x140003ac1
or edi, 0xffffffff
lea rdx, [0x140001268]
mov r8d, edi
lea rcx, [0x140007090]
call fcn.14000289c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r8d, 0xa
call fcn.1400027cc
mov r8d, edi
lea rdx, [0x14000127c]
lea rcx, [0x140007090]
call fcn.14000289c
mov r8d, 0x10
mov edx, ebx
call fcn.1400027cc
xor eax, eax
jmp 0x140003ac1
mov eax, 2
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x601e80
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x0061f040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x38], rcx
xor r15d, r15d
mov dword [rsp + 0x38], r15d
mov rcx, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x601ebf
mov rcx, qword [rdx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x40000001
mov edx, dword [rdx + 0x10]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
xorps xmm0, xmm0
mov ebp, dword [rsp + 0x38]
movdqu xmmword [rsp + 0x40], xmm0
mov rdi, r15
mov qword [rsp + 0x50], r15
test rbp, rbp
je 0x601f54
cmp rbp, 0x1000
jb 0x601f27
lea rcx, [rbp + 0x27]
cmp rcx, rbp
jbe 0x602000
call fcn.006037ec
test rax, rax
je 0x601ffa
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x601f32
mov rcx, rbp
call fcn.006037ec
mov rbx, rax
mov qword [rsp + 0x40], rbx
lea rdi, [rbx + rbp]
mov qword [rsp + 0x50], rdi
mov r8, rbp
xor edx, edx
mov rcx, rbx
call fcn.006125d0
mov qword [rsp + 0x48], rdi
jmp 0x601f59
mov rbx, qword [rsp + 0x40]
mov rcx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x601f66
mov rcx, qword [rsi]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8d, 0x40000001
mov edx, dword [rsi + 0x10]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov r8d, dword [rsp + 0x38]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], r15
mov rdx, rbx
mov rcx, r14
call fcn.00601ab0
nop
test rbx, rbx
je 0x601fd6
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x601fcb
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x601ffa
mov rdx, rdi
mov rcx, rbx
call fcn.00603a68
mov rax, r14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.00603530
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.00609ebc
int3
call fcn.006012b0
int3
Function at 0x602510
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x170
mov rax, qword [0x0061f040]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor r14d, r14d
mov dword [rsp + 0x28], 0x101
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
xorps xmm0, xmm0
test eax, eax
jne 0x602584
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
lea r8d, [r14 + 0xa]
lea rdx, str.Error404
mov rcx, rdi
call fcn.00601ab0
jmp 0x60264d
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x50]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], r14b
jne 0x6025a2
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.00601ab0
nop
lea rcx, [rsp + 0x30]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
cmp rbp, 0xf
cmova rcx, rsi
mov r8, qword [rsp + 0x40]
test r8, r8
jne 0x602678
lea rdx, [0x0061bb1b]
call fcn.00613010
test eax, eax
jne 0x602678
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
lea r8d, [rax + 0xa]
lea rdx, str.Error400
mov rcx, rdi
call fcn.00601ab0
nop
cmp rbp, 0xf
jbe 0x60264d
lea rdx, [rbp + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x602645
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x6026d9
mov rcx, rsi
call fcn.00603a68
mov rax, rdi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.00603530
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
lea rax, [rsp + 0x50]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x602690
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.00601ab0
nop
cmp rbp, 0xf
jbe 0x60264d
lea rdx, [rbp + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x602645
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x602645
call fcn.00609ebc
int3