joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a220
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15d, edx
lea r14d, [rdx - 1]
mov rdi, rcx
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov ebp, r12d
test r14d, r14d
je 0x14000a42a
mov r8, qword [rdi + 8]
nop dword [rax]
nop word [rax + rax]
lea ecx, [r8 + 0xff]
shl esi, cl
add esi, esi
nop dword [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x14000a2e4
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x14000a2a0
mov ecx, dword [r10]
jmp 0x14000a3c7
cmp ecx, 0x4e0
jb 0x14000a3c7
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14000a300
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14000a350
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
mov edx, dword [rdi + 0x10]
cmp eax, edx
ja 0x14000a280
mov r8, qword [rdi + 8]
or esi, eax
lea ecx, [r8 + 0xff]
shl ebp, cl
add ebp, ebp
or ebp, edx
cmp ebp, r14d
jb 0x14000a270
xor edx, edx
mov eax, ebp
div r15d
mov ecx, eax
mov r8d, edx
xor edx, edx
mov eax, esi
div r15d
cmp eax, ecx
jb 0x14000a44a
cmp r8d, r14d
jne 0x14000a250
mov rbx, qword [rsp + 0x20]
mov eax, esi
mov rbp, qword [rsp + 0x28]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
div r15d
mov eax, edx
pop r15
pop r14
pop r12
ret
Function at 0x14000a550
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
mov qword [rbp - 0x10], rcx
xor edi, edi
mov dword [rbp - 0x30], edi
mov ecx, dword [0x140061b48]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
lea rsi, [0x14005ff40]
mov eax, dword [rax + rdx]
cmp dword [0x1400612c8], eax
jg 0x14000a75f
mov dword [rbp - 0x40], 0
mov dword [rbp - 0x3c], 0x10001
mov qword [rbp - 0x38], 0x10001
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rbp - 0x30], 1
lea r14, str.0123456789abcdef
cmp byte [rbp + rdi - 0x40], 0
je 0x14000a628
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14000a609
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000a601
mov rax, qword [rbx]
mov word [rax + rcx], 0x2d
jmp 0x14000a628
mov qword [rsp + 0x20], 1
lea r9, [0x140044a80]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140002340
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], 0x20
mov dword [rbp - 0x18], 0xffffffff
mov edx, 0x10
lea rcx, [rbp - 0x28]
call fcn.14000a220
movsxd rcx, eax
movzx r9d, byte [rcx + r14]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000a67d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000a672
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000a68c
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140006150
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], 0x20
mov dword [rbp - 0x18], 0xffffffff
mov edx, 0x10
lea rcx, [rbp - 0x28]
call fcn.14000a220
movsxd rcx, eax
movzx r9d, byte [rcx + r14]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000a6e1
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000a6d6
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000a6f0
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140006150
inc rdi
cmp rdi, 0x10
jl 0x14000a5d2
mov rax, rbx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov eax, r8d
shr eax, 0x1e
xor eax, r8d
imul r8d, eax, 0x6c078965
add r8d, edx
mov dword [rsi + rdx*4 + 4], r8d
inc rdx
cmp rdx, 0x270
jb 0x14000a720
mov dword [0x14005ff40], 0x270
lea rcx, [0x1400612c8]
call fcn.14001a458
jmp 0x14000a59f
lea rcx, [0x1400612c8]
call fcn.14001a4b8
cmp dword [0x1400612c8], 0xffffffff
jne 0x14000a59f
call fcn.140017e18
mov r8d, eax
mov dword [0x1400612c4], 0xffffffff
mov dword [0x14005ff44], eax
mov edx, 1
jmp 0x14000a720
Function at 0x140016510
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14005e8d8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x20], rdx
mov rdi, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14001654f
add rdi, qword [rdx]
mov rsi, qword [rdx]
jmp 0x140016555
add rdi, rbx
mov rsi, rbx
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r14w
mov rdx, rdi
sub rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.140015f80
xor r9d, r9d
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.140010f20
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp eax, 2
jne 0x14001663e
lea rcx, str.File_Not_Found_n
call fcn.140005e60
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140016600
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400165fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016694
call fcn.14001a0d8
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r14w
mov rcx, rbx
call fcn.140003080
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001a6e0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
lea rcx, str.Delete_Succesfull_n
lea rdx, str.Deletion_failed_n
test eax, eax
cmovne rcx, rdx
call fcn.140005e60
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140016600
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400165fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400165fb
call fcn.14002080c
int3
Function at 0x1400166a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
push rsi
sub rsp, 0x188
mov rax, qword [0x14005e8d8]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbx, rdx
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x1400166f8
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140016714
cmp eax, 2
jne 0x14001688e
mov al, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14001a6e0
add rsp, 0x188
pop rsi
pop rbx
ret
mov qword [rsp + 0x1b0], rbp
mov rcx, rbx
mov qword [rsp + 0x180], rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
add rdi, rbx
cmp byte [rdi - 1], 0x5c
je 0x140016742
mov byte [rdi], 0x5c
inc rdi
mov byte [rdi], 0
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x48]
xor ebp, ebp
mov dword [rsp + 0x48], 0x104
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x14001685b
nop dword [rax]
nop dword [rax + rax]
mov byte [rdi], bpl
mov ecx, 0x208
mov rax, rbx
nop dword [rax + rax]
cmp byte [rax], bpl
je 0x1400167ae
inc rax
sub rcx, 1
jne 0x1400167a0
test rcx, rcx
je 0x14001680c
mov eax, 0x208
mov edx, 0x208
sub rax, rcx
test rcx, rcx
cmove rax, rbp
sub rdx, rax
lea rax, [rax + rbx]
je 0x1400167fe
lea r9, [rsp + 0x60]
mov ecx, 0x7ffffffe
sub r9, rax
nop dword [rax]
test rcx, rcx
je 0x1400167fe
movzx r8d, byte [r9 + rax]
test r8b, r8b
je 0x1400167fe
mov byte [rax], r8b
dec rcx
inc rax
sub rdx, 1
jne 0x1400167e0
test rdx, rdx
lea rcx, [rax - 1]
cmovne rcx, rax
mov byte [rcx], bpl
mov rdx, rbx
mov rcx, rsi
call fcn.1400166a0
test al, al
je 0x14001685b
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x48]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x140016790
mov byte [rdi - 1], bpl
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rdi, qword [rsp + 0x180]
mov rbp, qword [rsp + 0x1b0]
test eax, eax
je 0x1400166f8
xor al, al
jmp 0x1400166fa
Function at 0x140017c74
Capabilities:
Delete directory
Delete file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rdi, [0x1400175e8]
mov r9, rdi
lea r8, str.SetFileInformationByHandle
lea rdx, str.kernel32.dll
lea rcx, [0x140061550]
call fcn.140017588
mov rsi, rax
cmp rax, rdi
jne 0x140017d1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor edi, edi
test eax, eax
je 0x140017cca
mov byte [rsp + 0x68], 1
mov dword [rsp + 0x6c], edi
mov rax, qword [rsp + 0x68]
jmp 0x140017d14
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x10b
jne 0x140017cea
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140017cba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsp + 0x78], dil
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x140017d0b
cmp eax, 0x35
je 0x140017d0b
cmp eax, 0x7b
mov dword [rsp + 0x7c], eax
jne 0x140017d0f
mov dword [rsp + 0x7c], edi
mov rax, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov r9d, 0x2200000
mov r8d, 0x10000
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140017c1c
xor edi, edi
test eax, eax
je 0x140017d75
mov byte [rsp + 0x78], dil
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x140017d56
cmp eax, 0x35
je 0x140017d56
cmp eax, 0x7b
mov dword [rsp + 0x7c], eax
jne 0x140017d5a
mov dword [rsp + 0x7c], edi
mov rcx, qword [rsp + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x140017d0f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140017e0f
jmp 0x140017d0f
mov dword [rsp + 0x70], 3
mov r9d, 4
lea r8, [rsp + 0x70]
lea edx, [r9 + 0x11]
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
mov rax, rsi
call qword [0x1400444b0]
test eax, eax
je 0x140017dac
mov byte [rsp + 0x78], 1
mov dword [rsp + 0x7c], edi
jmp 0x140017dfd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 1
je 0x140017dca
sub ecx, 0x31
je 0x140017dca
cmp ecx, 0x25
je 0x140017dca
mov byte [rsp + 0x78], dil
jmp 0x140017df9
mov byte [rsp + 0x68], 1
mov r9d, 1
lea r8, [rsp + 0x68]
lea edx, [r9 + 3]
mov rcx, rbx
mov rax, rsi
call qword [0x1400444b0]
test eax, eax
jne 0x140017da1
mov byte [rsp + 0x78], dil
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x7c], eax
cmp rbx, 0xffffffffffffffff
je 0x140017d0f
mov rcx, rbx
jmp 0x140017d65
call fcn.14002aaa4
int3

Function at 0x14002c994
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002c7c0
Function at 0x140057850
Capabilities:
Send data
Send data on socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, qword [rsp + 0x90]
mov rax, qword [rcx + 8]
lock inc dword [rax + 0x30]
test r9b, r9b
je 0x140057894
mov rbx, qword [rdi + 8]
mov dword [rsi + 0x30], 1
lea rax, [0x1400ac630]
mov qword [rsi], rax
mov qword [rsi + 0x10], 0
jmp 0x140057937
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
je 0x14005791a
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
mov ebp, 1
lea r9, [rsp + 0x3c]
mov rdx, r8
mov r8d, 1
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmovne ecx, eax
mov r14, qword [rdi + 8]
test ebx, ebx
je 0x14005797b
cmp ecx, 0x3e5
je 0x14005797b
mov eax, dword [rsp + 0x3c]
mov dword [rsi + 0x30], 1
lea rdx, [0x1400ac630]
mov qword [rsi], rdx
mov dword [rsi + 0x10], ecx
mov dword [rsi + 0x14], eax
jmp 0x14005798b
mov rbx, qword [rdi + 8]
mov dword [rsi + 0x30], 1
lea rax, [0x1400ac630]
mov qword [rsi], rax
mov qword [rsi + 0x10], 0x2719
mov rcx, qword [rbx + 0x28]
mov r8d, 2
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x140057a15
lea rdi, [rbx + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsi + 0x20], 0
mov rax, qword [rbx + 0x98]
test rax, rax
je 0x1400579cb
mov qword [rax + 0x20], rsi
jmp 0x1400579d2
xor eax, eax
lock cmpxchg dword [rsi + 0x30], ebp
cmp eax, 1
jne 0x140057a15
mov rcx, qword [r14 + 0x28]
mov r8d, 2
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x140057a15
lea rdi, [r14 + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsi + 0x20], 0
mov rax, qword [r14 + 0x98]
test rax, rax
je 0x1400579f5
mov qword [rax + 0x20], rsi
jmp 0x1400579fc
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0x98], rsi
mov eax, 1
xchg dword [rbx + 0x58], eax
mov rcx, rdi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [r14 + 0x90], rsi
mov qword [r14 + 0x98], rsi
mov eax, 1
xchg dword [r14 + 0x58], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140079240
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
xor esi, esi
test rcx, rcx
je 0x140079390
mov rdi, rcx
lea rcx, str.INTEL_ISA_DISABLE
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
je 0x140079390
mov rcx, rax
movzx eax, byte [rax]
xor esi, esi
test al, al
je 0x140079390
lea rdx, [0x1400b4870]
xor r8d, r8d
lea r9, [rcx + 1]
mov r10d, 1
xor r11d, r11d
cmp al, 0x2c
jne 0x1400792b3
nop dword [rax]
movzx eax, byte [rcx + r11 + 1]
inc r11
dec r10
inc r9
cmp al, 0x2c
je 0x1400792a0
movzx eax, al
test eax, eax
je 0x140079390
nop
mov rax, r9
movzx ebx, byte [r9]
inc r9
cmp ebx, 0x2c
je 0x1400792e0
test ebx, ebx
je 0x1400792e0
mov r8, rax
jmp 0x1400792c0
mov rax, r8
sub rax, rcx
inc rax
cmp rax, r11
jne 0x140079301
dec r9
movzx eax, byte [r9]
mov rcx, r9
test al, al
jne 0x14007928b
jmp 0x140079390
cmp byte [0x1400b4860], 0
jne 0x14007930f
call fcn.140078780
mov rax, rcx
neg rax
add r11, rcx
mov rbx, r8
not rbx
add rbx, r11
mov ecx, 1
jmp 0x140079339
inc rcx
cmp rcx, 0x47
je 0x1400792ee
lea r14, [rcx + rcx*2]
mov r14, qword [rdx + r14*8 + 0x10]
test r14, r14
je 0x140079330
xor r15d, r15d
nop word [rax + rax]
movzx ebp, byte [r11 + r15]
cmp bpl, byte [r14 + r15]
jne 0x140079330
inc r15
mov r12, rbx
add r12, r15
jne 0x140079350
add r14, r8
add r14, rax
cmp byte [r10 + r14], 0
jne 0x140079330
cmp ecx, 2
jb 0x1400792ee
mov rax, rdi
call fcn.1400791e0
cmp eax, 1
adc rsi, 0
jmp 0x1400792ee
mov eax, esi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14007ddcc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14007de06
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007de0b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14007de54
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140081010]
cmp byte [rcx + rax], 0
je 0x14007de54
dec r8
sub rdx, 1
jne 0x14007de3a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14007e55c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007e5a6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007e5a6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007e5a6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007e5a6
cmp dword [rcx + 0x84], 0xe
jbe 0x14007e5a6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14007e5a8
xor al, al
add rsp, 0x28
ret
Function at 0x140865058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408651df
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 0x140865089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14086506f
add dl, dl
jne 0x140865096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408650f6
xor eax, eax
add dl, dl
jne 0x1408650a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408651ad
add dl, dl
jne 0x1408650b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408650c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408650d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408650dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408650ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14086507e
mov eax, 1
add dl, dl
jne 0x140865106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140865113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408650fb
sub eax, ebx
mov ebx, 1
jne 0x14086514c
mov ecx, 1
add dl, dl
jne 0x14086512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14086513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140865123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14086507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140865168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140865175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14086515d
cmp eax, 0x7d00
jae 0x14086519b
cmp eax, 0x500
jb 0x140865196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14086507e
cmp eax, 0x7f
ja 0x14086519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14086507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408651d2
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 0x14086507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140ed8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140ed81df
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 0x140ed8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ed806f
add dl, dl
jne 0x140ed8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ed80f6
xor eax, eax
add dl, dl
jne 0x140ed80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ed81ad
add dl, dl
jne 0x140ed80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ed80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ed80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ed80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ed80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ed807e
mov eax, 1
add dl, dl
jne 0x140ed8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ed8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ed80fb
sub eax, ebx
mov ebx, 1
jne 0x140ed814c
mov ecx, 1
add dl, dl
jne 0x140ed812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ed813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ed8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ed807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ed8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ed8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ed815d
cmp eax, 0x7d00
jae 0x140ed819b
cmp eax, 0x500
jb 0x140ed8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ed807e
cmp eax, 0x7f
ja 0x140ed819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ed807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ed81d2
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 0x140ed807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400017d0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x140147910]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 0x120], 0
je 0x14000188d
mov eax, dword [0x140147910]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x160], 1
je 0x140001889
mov ecx, dword [rsi + 0x1928]
test ecx, ecx
jne 0x140001889
mov ecx, 1
lock xadd dword [rsi + 0x1928], ecx
cmp ecx, 0x7fffffff
je 0x140001897
test rsi, rsi
je 0x14000189a
lea rbx, [rax + 0x160]
call fcn.14005d200
mov edx, 0x568
mov rcx, rax
xor r8d, r8d
call fcn.140001b10
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14005d2c0
mov ecx, dword [0x14014ae98]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [rbx], rdi
lock dec dword [rsi + 0x1928]
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
xor edi, edi
jmp 0x14000187e
call fcn.1400a12f8
jmp 0x1400017fa
int3
int3