joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022c10
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xa8], rbx
mov rax, qword [0x1400e9088]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rbx
mov word [rcx], bx
lea r8d, [rbx + 7]
lea rdx, [0x1400bece8]
call fcn.140011700
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x50], rbx
cmp qword [r14 + 0x18], 8
jb 0x140022c83
mov r14, qword [r14]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140022da0
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x58], ebx
cmp qword [rdi + 0x18], 8
jb 0x140022cc2
mov rdx, qword [rdi]
jmp 0x140022cc5
mov rdx, rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140022d95
cmp dword [rsp + 0x58], 1
jne 0x140022d95
xor eax, eax
mov qword [rsp + 0x60], rax
mov edx, dword [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.1400238c0
nop
mov rax, qword [rsp + 0x60]
mov byte [rax], 0
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0
cmp qword [rdi + 0x18], 8
jb 0x140022d2b
mov rdi, qword [rdi]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140022d86
mov rdx, qword [rsp + 0x60]
cmp word [rdx], ax
je 0x140022d7a
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140022d70
mov r8, rbx
mov rcx, rsi
call fcn.140011700
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140022d95
call fcn.1400560a4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rsi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140056080
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret
Function at 0x140023990
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x1400e9088]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov rbp, qword [r8 + 0x18]
mov rdi, r8
mov r13, qword [r8 + 0x10]
mov r12, rdx
mov rsi, rcx
cmp rbp, 8
jb 0x1400239cd
mov r8, qword [r8]
lea r9, [r13*2]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test r9, r9
je 0x140023a04
movabs r10, 0x100000001b3
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, r10
cmp rcx, r9
jb 0x1400239f0
mov rcx, qword [rsi + 0x30]
and rcx, rdx
mov rdx, qword [rsi + 0x18]
mov rsi, qword [rsi + 8]
mov rax, rcx
add rax, rax
mov rbx, qword [rdx + rax*8]
lea rax, [rcx + rcx]
mov r14, qword [rdx + rax*8]
lea r15, [rdx + rax*8]
nop dword [rax]
cmp r14, rsi
jne 0x140023a3a
mov rax, rsi
jmp 0x140023a41
mov rax, qword [r15 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x140023aaf
cmp rbp, 8
jb 0x140023a51
mov r8, qword [rdi]
jmp 0x140023a54
mov r8, rdi
cmp qword [rbx + 0x28], 8
jb 0x140023a61
mov rcx, qword [rbx + 0x10]
jmp 0x140023a65
lea rcx, [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov r9, r13
call fcn.140011140
test eax, eax
je 0x140023a7a
mov rbx, qword [rbx]
jmp 0x140023a30
cmp qword [rbx + 0x28], 8
jb 0x140023a87
mov r8, qword [rbx + 0x10]
jmp 0x140023a8b
lea r8, [rbx + 0x10]
cmp rbp, 8
jb 0x140023a94
mov rdi, qword [rdi]
mov r9, qword [rbx + 0x20]
mov rdx, r13
mov rcx, rdi
call fcn.140011140
test eax, eax
cmovne rbx, rsi
mov qword [r12], rbx
jmp 0x140023ab3
mov qword [r12], rsi
mov rax, r12
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.140056080
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140027850
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rdi, rcx
cmp qword [rcx + 0x20], 8
jb 0x14002787d
mov rsi, qword [rcx + 8]
jmp 0x140027881
lea rsi, [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop
sub eax, dword [rdi]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rsi
lea rax, str.___s_took__d_ms
mov qword [rsp + 0x20], rax
lea r9, str.HP::PdsmqShim::Timer::Timer
mov r8d, 0x6e
lea rdx, str...PdsmqShim.Native.DynamicCommon.cpp
lea ecx, [r8 - 0x6b]
call fcn.140022620
nop
mov r8, qword [rdi + 0x20]
cmp r8, 8
jb 0x1400278d8
inc r8
mov rdx, qword [rdi + 8]
lea rcx, [rdi + 8]
call fcn.140012760
nop
mov qword [rdi + 0x20], 7
xor eax, eax
mov qword [rdi + 0x18], rax
mov word [rdi + 8], ax
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1400279e0
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rbp, r8
mov r14, rdx
mov rsi, rcx
xor r12d, r12d
mov dword [rax - 0x38], r12d
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r12
mov word [rcx], r12w
mov dword [rax - 0x38], 1
lea rcx, [r8 + 2]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
mov r15, rdx
shr r15, 1
shl r15, 2
mov ebx, r12d
lea r13, [0x140000000]
test r8, r8
je 0x140027b1c
cmp rbx, r8
jae 0x140027a6c
movzx eax, byte [rbx + r14]
inc rbx
jmp 0x140027a6f
mov eax, r12d
cmp rbx, rbp
jae 0x140027a7e
movzx edx, byte [rbx + r14]
inc rbx
jmp 0x140027a81
mov edx, r12d
cmp rbx, rbp
jae 0x140027a90
movzx ecx, byte [rbx + r14]
inc rbx
jmp 0x140027a93
mov ecx, r12d
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
mov edi, eax
shr rax, 0x12
and eax, 0x3f
movsx r8d, byte [rax + r13 + 0xbedd0]
mov edx, 1
mov rcx, rsi
call fcn.140016b00
mov eax, edi
shr rax, 0xc
and eax, 0x3f
movsx r8d, byte [rax + r13 + 0xbedd0]
mov edx, 1
mov rcx, rsi
call fcn.140016b00
mov eax, edi
shr rax, 6
and eax, 0x3f
movsx r8d, byte [rax + r13 + 0xbedd0]
mov edx, 1
mov rcx, rsi
call fcn.140016b00
and edi, 0x3f
movsx r8d, byte [rdi + r13 + 0xbedd0]
mov edx, 1
mov rcx, rsi
call fcn.140016b00
cmp rbx, rbp
jb 0x140027a62
movabs rax, 0xaaaaaaaaaaaaaaab
mul rbp
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rbp, rax
mov rdx, qword [r13 + rbp*8 + 0xbedb0]
test rdx, rdx
je 0x140027b6f
lea rax, [r15 + r15]
mov r8d, 0x3d
nop word [rax + rax]
cmp qword [rsi + 0x18], 8
jb 0x140027b5c
mov rcx, qword [rsi]
jmp 0x140027b5f
mov rcx, rsi
mov word [rax + rcx - 2], r8w
sub rax, 2
sub rdx, 1
jne 0x140027b50
mov rax, rsi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14002b7c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400e9088]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp byte [0x1400ef309], 0
jne 0x14002b878
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareHPNGTrackingPdsmq
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002b871
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x38], eax
lea rdx, str.TrackingDisabled
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x38]
mov dword [rsp + 0x3c], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002b866
cmp dword [rsp + 0x38], 1
sete byte [0x1400ef308]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x1400ef309], 1
movzx eax, byte [0x1400ef308]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140056080
add rsp, 0x58
ret
Function at 0x140030d90
Capabilities:
Hash data using sha1

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x1b0], rbx
mov rax, qword [0x1400e9088]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x70], SafeArrayLock
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x58], sil
mov dword [rsp + 0x40], 0x67452301
mov dword [rsp + 0x44], 0xefcdab89
mov dword [rsp + 0x48], 0x98badcfe
mov dword [rsp + 0x4c], 0x10325476
mov dword [rsp + 0x50], 0xc3d2e1f0
mov qword [rsp + 0x78], rsi
xor r8d, r8d
lea rdx, [0x1400be6c2]
lea rcx, [rsp + 0x58]
call fcn.140003800
nop
xor edx, edx
mov r8d, 0xf0
lea rcx, [rbp - 0x80]
call fcn.140077610
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140031150
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.14002f440
nop
lea rcx, [rbp + 0x10]
call fcn.1400310c0
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x10], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0x10]
call fcn.14003a34c
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14002f6b0
mov dword [rsp + 0x20], 1
mov r8, qword [rsp + 0x70]
cmp r8, 0x10
jb 0x140030ebf
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.140003c00
mov qword [rsp + 0x70], SafeArrayLock
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x58], 0
mov rax, rdi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140056080
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400565a4
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140056635
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140056635
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140056635
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140056619
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140056613
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14005661b
add rdx, 0x28
jmp 0x1400565f8
xor edx, edx
test rdx, rdx
jne 0x140056624
xor al, al
jmp 0x14005663b
test dword [rdx + 0x24], 0x80000000
je 0x140056631
xor al, al
jmp 0x14005663b
mov al, 1
jmp 0x14005663b
xor al, al
jmp 0x14005663b
add rsp, 0x18
ret

Function at 0x140058a3c
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140058a4f
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1400590b4
lea rdx, [0x1400e6438]
lea rcx, [rsp + 0x20]
call fcn.140075a20
int3
Function at 0x140064d10
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400ee190]
xor edx, edx
jmp fcn.140058a3c

Function at 0x140065700
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400ee190]
jmp fcn.140058a3c

Function at 0x140072c68
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 0x30]
mov rdi, rcx
mov rdx, qword [rax + 0x18]
mov ecx, dword [rdx + 0xb0]
call sub.KERNEL32.dll_TlsGetValue
mov r8, rax
test rax, rax
je 0x140072cb3
mov dl, al
and dl, 3
cmp dl, 1
jne 0x140072cb3
and r8, 0xfffffffffffffffe
je 0x140072cb3
mov rax, qword [rdi + 0x80]
cmp r8, rax
jne 0x140072cb3
and qword [r8 + 0x20], 0
jmp 0x140072ce8
and dword [rsp + 0x28], 0
lea rax, [0x140058e90]
mov qword [rsp + 0x30], rax
jmp 0x140072cdc
mov rax, qword [rdi + 0x88]
test rax, rax
jne 0x140072ce8
lea rcx, [rsp + 0x20]
call fcn.140057dbc
mov rax, qword [rdi + 0x80]
test rax, rax
jne 0x140072cc6
mov rax, qword [rdi]
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call fcn.140056cf8
mov edx, 1
mov rcx, rdi
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
jmp rax

Function at 0x140089fd0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140089da4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140089da4
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140089da4
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140089da4
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140089da4
cmp dword [rcx + 0x84], 0xe
jbe 0x140089da4
cmp dword [rcx + 0xf8], esi
je 0x140089da4
mov ecx, r14d
call fcn.140089eec
mov ecx, 2
call fcn.140082d44
nop
cmp byte [0x1400ee6b8], 0
jne 0x140089e6e
mov r15d, 1
mov eax, r15d
xchg dword [0x1400ee6a8], eax
test ebx, ebx
jne 0x140089e17
mov rdi, qword [0x1400e9088]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400ee6b0]
cmp rcx, rax
je 0x140089e0e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000fb50]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400ee8f0]
jmp 0x140089e23
cmp ebx, r15d
jne 0x140089e29
lea rcx, [0x1400ee908]
call fcn.14008acec
nop
test ebx, ebx
jne 0x140089e40
lea rdx, [0x1400a87b8]
lea rcx, [0x1400a8788]
call fcn.14008afdc
lea rdx, [0x1400a87c8]
lea rcx, [0x1400a87c0]
call fcn.14008afdc
movzx eax, byte [0x1400ee6b8]
test esi, esi
cmove eax, r15d
mov byte [0x1400ee6b8], al
jmp 0x140089e6e
mov ecx, 2
call fcn.140082d98
test esi, esi
jne 0x140089e85
mov ecx, r14d
call fcn.140089ea0
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140089d34
Function at 0x140090ec8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140090d2e
call fcn.14007d408
mov dword [rax], SafeArrayPutElement
call fcn.14007c2f8
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140090d10
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140090d10
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x140090d60
lock or dword [rax + 0x14], 0x10
jmp 0x140090d10
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140090d7d
mov rcx, qword [rbp + 0x20]
call fcn.1400912b4
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x140090d92
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x140090d98
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.14008e0b8
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14009ad40
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x140090deb
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x140090d10
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140090e57
mov rcx, qword [rbp + 0x20]
call fcn.14008e0b8
cmp eax, 0xffffffff
je 0x140090e3e
mov rcx, qword [rbp + 0x20]
call fcn.14008e0b8
cmp eax, 0xfffffffe
je 0x140090e3e
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.14008e0b8
movsxd rdi, eax
lea r15, [0x1400ee990]
mov rcx, rbx
sar rdi, 6
call fcn.14008e0b8
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x140090e45
lea rax, [0x1400e9640]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140090e57
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x140090e8d
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140090e89
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140090e89
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x140090eab
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x140090eb6
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x140090d15
jmp 0x140090cdc
Function at 0x140001bb4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rbp, rdx
lea rdx, [rax - 0x18]
mov esi, r9d
mov rdi, r8
call qword [sym.imp.USER32.dll_GetClientRect]
xor r10d, r10d
cmp dword [rbx + 0x28], r10d
jle 0x140001c19
test r10d, r10d
js 0x140001c07
cmp r10d, dword [rbx + 0x28]
jge 0x140001c07
movsxd rax, r10d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x18]
lea r8, [rax + rcx*8]
jmp 0x140001c0a
xor r8d, r8d
cmp qword [r8], rdi
je 0x140001c1c
add r10d, 1
cmp r10d, dword [rbx + 0x28]
jl 0x140001beb
xor r8d, r8d
test r8, r8
je 0x140001c8d
mov edx, dword [rsp + 0x4c]
mov r9d, dword [rsp + 0x48]
mov dword [rsp + 0x38], 4
sub edx, dword [rbx + 0x3c]
sub r9d, dword [rbx + 0x38]
mov ecx, edx
mov eax, r9d
imul edx, dword [rsp + 0x80]
imul r9d, esi
add r9d, dword [r8 + 8]
add edx, dword [r8 + 0xc]
imul ecx, dword [rsp + 0x90]
imul eax, dword [rsp + 0x88]
add ecx, dword [r8 + 0x14]
add eax, dword [r8 + 0x10]
sub ecx, dword [r8 + 0xc]
sub eax, dword [r8 + 8]
xor r8d, r8d
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.USER32.dll_DeferWindowPos]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140004c90
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
jne 0x140004d8e
lea rcx, str.advapi32.dll
call fcn.14000ab14
lea rdx, str.CryptAcquireContextW
mov rcx, rax
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptReleaseContext
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptCreateHash
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptGetHashParam
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptHashData
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDestroyHash
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDecrypt
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDeriveKey
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDuplicateKey
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptImportKey
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDestroyKey
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x58], rax
add rsp, 0x20
pop rbx
ret
Function at 0x1400055f0
Capabilities:
Authenticate hmac
Encode data using add xor sub operations
Encode data using xor

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, 0x340
mov rdi, r9
mov ebp, r8d
mov r13d, edx
mov r12, rcx
call fcn.140005374
mov ebx, dword [rsp + 0x380]
cmp ebp, ebx
mov r14d, 0xff
lea rcx, [rsp + 0x41]
cmovb ebx, ebp
xor esi, esi
mov r8, r14
xor edx, edx
mov byte [rsp + 0x40], sil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x141]
mov r8, r14
xor edx, edx
mov byte [rsp + 0x140], sil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x241]
mov r8, r14
xor edx, edx
mov byte [rsp + 0x240], sil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x40]
mov r8, rbx
mov rdx, rdi
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x140]
mov r8, rbx
mov rdx, rdi
call sub.msvcrt.dll_memcpy
cmp ebp, esi
jbe 0x1400056be
mov rax, rbp
xor byte [rsp + rsi + 0x40], 0x5c
xor byte [rsp + rsi + 0x140], 0x36
add rsi, 1
sub rax, 1
jne 0x1400056a7
lea rax, [rsp + 0x240]
lea r8, [rsp + 0x140]
mov r9d, ebp
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x390]
mov edx, r13d
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x388]
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.1400054f4
mov edx, r13d
mov rcx, r12
call fcn.1400053e8
mov rcx, qword [rsp + 0x398]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x240]
mov r9d, ebp
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.1400054f4
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x140005a0c
Capabilities:
Authenticate hmac
Encode data using xor

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, 0x350
mov rdi, r9
mov r12d, r8d
mov r13d, edx
mov rbp, rcx
mov ebx, 0x14
call fcn.140005374
cmp r12d, ebx
mov r14d, 0xff
lea rcx, [rsp + 0x151]
cmovb ebx, r12d
xor esi, esi
mov r8, r14
xor edx, edx
mov byte [rsp + 0x150], sil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x51]
mov r8, r14
xor edx, edx
mov byte [rsp + 0x50], sil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x251]
mov r8, r14
xor edx, edx
mov byte [rsp + 0x250], sil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x150]
mov r8, rbx
mov rdx, rdi
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x50]
mov r8, rbx
mov rdx, rdi
call sub.msvcrt.dll_memcpy
cmp r12d, esi
jbe 0x140005ade
mov rax, rsi
mov rcx, r12
xor byte [rsp + rax + 0x150], 0x5c
xor byte [rsp + rax + 0x50], 0x36
add rax, 1
sub rcx, 1
jne 0x140005ac7
lea rax, [rsp + 0x250]
lea r8, [rsp + 0x50]
mov r9d, r12d
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x3a0]
mov edx, r13d
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x398]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.1400054f4
mov rcx, rbp
call fcn.140005374
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0xc0]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov r8d, r13d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
call fcn.140004ddc
cmp eax, esi
je 0x140005bc1
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rbp + 0xc0]
lea r8, [rsp + 0x150]
mov r9d, r12d
mov dword [rsp + 0x20], esi
call fcn.140004e84
cmp eax, esi
je 0x140005bb0
mov edx, r13d
mov rcx, rbp
call fcn.1400053e8
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rbp + 0xc0]
lea r8, [rsp + 0x250]
mov r9d, eax
mov dword [rsp + 0x20], esi
call fcn.140004e84
cmp eax, esi
je 0x140005bb0
mov rcx, qword [rsp + 0x3a8]
mov rax, qword [rsp + 0x40]
mov esi, 1
mov qword [rcx], rax
jmp 0x140005bc1
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rbp + 0xc0]
call fcn.140004edc
lea r11, [rsp + 0x350]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret