joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bddf0
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov rdi, rdx
mov dword [rsp + 0x20], 0
mov r9d, 2
lea r8, [rsp + 0x50]
lea edx, [r9 + 0xb]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400bdedb
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.1400090f0
nop
mov dword [rsp + 0x30], 1
lea rax, [0x1402593e0]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140017dc0
test al, al
je 0x1400bdeaf
lea edx, [rbx + 2]
mov rcx, rdi
call fcn.1400b1290
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x1400bde9f
cmp eax, ebx
je 0x1400bdee5
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1400bdee5
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
jmp 0x1400bdee5
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x1400bdecd
cmp eax, 0xffffffff
je 0x1400bdedb
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1400bdedb
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
xor edx, edx
mov rcx, rdi
call fcn.1400b1290
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400be250
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rax, qword [0x14042b130]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
xor edi, edi
mov dword [rsp + 0x28], edi
lea r9d, [rdi + 0xf]
lea r8, [rsp + 0x38]
lea edx, [rdi + 0x29]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400be2e6
or edi, 0xffffffff
mov r8d, edi
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.1400090f0
nop
mov rdx, rax
mov rcx, rbx
call fcn.1400b1160
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400be2d6
cmp eax, edi
je 0x1400be2f0
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1400be2f0
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
jmp 0x1400be2f0
mov dword [rbx + 8], 0x80000000
mov qword [rbx], rdi
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14010b650
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400be980
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14042b130]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [rcx + 4], 0
mov rbx, rcx
jne 0x1400bea44
mov ecx, dword [rcx]
lea r8, [rsp + 0x20]
mov r9d, 8
mov edx, 0x1014
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400be9dd
mov dword [rbx + 4], 3
mov eax, 3
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14010b650
add rsp, 0x50
pop rbx
ret
movzx eax, word [rsp + 0x20]
cmp ax, 0x31
jne 0x1400be9f1
mov dword [rbx + 4], 3
jmp 0x1400bea44
cmp ax, 0x30
jne 0x1400bea00
mov dword [rbx + 4], 1
jmp 0x1400bea44
cmp ax, 0x32
jne 0x1400bea0f
mov dword [rbx + 4], 2
jmp 0x1400bea44
mov ecx, dword [rbx]
lea r8, [rsp + 0x30]
mov r9d, 0xb
lea edx, [r9 + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400be9be
movzx ecx, word [rsp + 0x30]
xor edx, edx
movzx eax, word [rsp + 0x20]
add ecx, 2
cmp eax, ecx
setne dl
add edx, 2
mov dword [rbx + 4], edx
mov eax, dword [rbx + 4]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14010b650
add rsp, 0x50
pop rbx
ret

Function at 0x1400bfbf0
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x250
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x270], rbx
mov rax, qword [0x14042b130]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, edx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], 0
lea rcx, [0x140193080]
mov qword [rbx], rcx
mov dword [rsp + 0x20], 1
mov r9d, 0xff
lea r8, [rsp + 0x40]
mov edx, 0x5a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400bfcad
or edi, 0xffffffff
mov r8d, edi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.1400090f0
mov rdx, qword [rbx]
mov qword [rsp + 0x30], rdx
mov rcx, qword [rax]
mov qword [rbx], rcx
mov qword [rax], rdx
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x1400bfc9f
cmp eax, edi
je 0x1400bfcad
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1400bfcad
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14010b650
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
Function at 0x1400c6b30
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
mov dword [rsp + 0x70], 0x1000
xor edi, edi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1400c6b79
mov edi, dword [rsp + 0x60]
jmp 0x1400c6b8b
cmp byte [rbx + 0x4b], dil
jne 0x1400c6b8b
mov byte [rbx + 0x4b], 1
mov rcx, rbx
call fcn.1400f6fc0
mov dword [rsp + 0x78], edi
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x78]
cmp edi, 0x1000
cmovae rax, rcx
mov edi, dword [rax]
cmp byte [rbx + 0x4b], 0
jne 0x1400c6cbc
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400c6bd6
mov rdx, qword [rbx + 0x30]
mov rax, rcx
sub rax, rdx
cmp rdi, rax
jle 0x1400c6bd6
mov rdi, rcx
sub rdi, rdx
test rdi, rdi
jle 0x1400c6cbc
lea rcx, [rbx + 0x28]
mov rdx, rdi
call fcn.140083e20
mov rsi, rax
mov word [rbx + 0x48], 0x100
cmp qword [rbx + 0x18], 0
jne 0x1400c6c09
mov ecx, 0x28
call fcn.14010b674
mov qword [rsp + 0x68], rax
mov qword [rax + 0x20], rbx
mov qword [rbx + 0x18], rax
mov rax, qword [rbx + 0x18]
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
lea rax, [0x1400c6ac0]
mov qword [rsp + 0x20], rax
mov r9, qword [rbx + 0x18]
mov r8d, edi
mov rdx, rsi
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x1400c6cbc
mov byte [rbx + 0x49], al
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, eax
sub ecx, 0x6d
je 0x1400c6cb0
cmp ecx, 0x7c
je 0x1400c6cb0
mov edx, 0x22
lea rcx, str.QWindowsPipeReader::startAsyncRead
call fcn.14001b460
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x68]
mov edx, edi
mov rcx, rbx
call fcn.1400f70c0
nop
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x1400c6ca0
cmp eax, 0xffffffff
je 0x1400c6cbc
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400c6cbc
mov rcx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
jmp 0x1400c6cbc
mov byte [rbx + 0x4b], 1
mov rcx, rbx
call fcn.1400f6fc0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400c72e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
cmp byte [rcx + 0x31], 0
mov rsi, rdx
mov rbx, rcx
je 0x1400c7303
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp qword [rcx + 0x18], 0
mov qword [rsp + 0x48], rdi
jne 0x1400c7326
mov ecx, 0x28
call fcn.14010b674
mov qword [rsp + 0x40], rax
mov qword [rax + 0x20], rbx
mov qword [rbx + 0x18], rax
mov rax, qword [rbx + 0x18]
xor ecx, ecx
mov rdx, rsi
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
lea rcx, [rbx + 0x20]
call fcn.14002e070
mov rdx, qword [rbx + 0x20]
lea rax, [0x1400c73d0]
mov r9, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
mov word [rbx + 0x30], 0x100
mov r8d, dword [rdx + 4]
add rdx, qword [rdx + 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
jne 0x1400c73b0
lea rcx, [rbx + 0x20]
mov byte [rbx + 0x31], al
call fcn.14002e790
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
je 0x1400c739e
lea rdx, str.QWindowsPipeWriter::write_failed.
mov ecx, eax
call fcn.140010f80
xor al, al
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rdi, qword [rsp + 0x48]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret

Function at 0x1400c7bc0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x268], rbx
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x30], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
cmp eax, 0x104
jbe 0x1400c7c4d
mov dword [rsp + 0x260], eax
lea rcx, [rsp + 0x30]
lea rax, [rsp + 0x260]
cmp edi, dword [rsp + 0x30]
cmovge rcx, rax
mov r8d, dword [rcx]
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.14005fcf0
mov edx, edi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
mov r8d, edi
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1400090f0
nop
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
cmp rcx, rax
je 0x1400c7c72
call fcn.14012ef24
mov rax, rbx
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret

Function at 0x1400c7c90
Capabilities:
Terminate process

Disassembly:
test edx, edx
jne 0x1400c7cbd
test r8d, r8d
je 0x1400c7cab
cmp r8d, 1
jne 0x1400c7cdb
mov rax, qword [r9 + 8]
movzx edx, byte [rax]
jmp fcn.140088220
mov rdx, qword [r9 + 8]
movzx r8d, byte [rsp + 0x10]
mov rdx, qword [rdx]
jmp fcn.1400c7ce0
cmp edx, 0xa
jne 0x1400c7cdb
mov rax, qword [r9 + 8]
lea rcx, [fcn.1400c7ce0]
cmp qword [rax], rcx
jne 0x1400c7cdb
mov rax, qword [r9]
mov dword [rax], 0
ret
Function at 0x1400e0970
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1b8]
sub rsp, 0x2b0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14042b130]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, rcx
mov qword [rbp - 0x68], rcx
xor esi, esi
mov dword [rsp + 0x70], esi
lea rax, [0x1401930f8]
mov qword [rcx], rax
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x68], rsi
or r8d, 0xffffffff
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionTime_Zones
lea rcx, [rsp + 0x78]
call fcn.140004090
nop
mov rcx, rax
call fcn.140022410
mov rdx, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400e0a32
cmp eax, 0xffffffff
je 0x1400e0a40
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400e0a40
mov rcx, qword [rsp + 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
test bl, bl
je 0x1400e0b79
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400e0b6e
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400e0b6e
mov ebx, esi
mov dword [rsp + 0x74], 0xff
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x74]
lea r8, [rbp - 0x60]
mov edx, ebx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400e0b62
or r8d, 0xffffffff
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x78]
call fcn.1400090f0
nop
lea rdx, [rbp - 0x80]
mov rcx, rax
call fcn.14000d720
nop
mov rdx, rax
mov rcx, rdi
call fcn.14002e450
nop
mov rcx, qword [rbp - 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x1400e0b26
cmp eax, 0xffffffff
je 0x1400e0b35
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400e0b35
mov rcx, qword [rbp - 0x80]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.14002d570
nop
mov rcx, qword [rbp - 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400e0b54
cmp eax, 0xffffffff
je 0x1400e0b62
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400e0b62
mov rcx, qword [rbp - 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x1400e0aa2
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14010b650
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400e2900
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x14042b130]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, r8
mov dword [rsp + 0x34], 0
mov rbx, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.14012ca10
mov rcx, qword [rbx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or r8d, 0xffffffff
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400090f0
mov rax, rsi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14010b650
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400e2d00
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14042b130]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, 0x10
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
xor ebx, ebx
lea r8, [rsp + 0x40]
mov ecx, eax
mov word [rsp + 0x20], bx
lea r9d, [rbx + 3]
lea edx, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp eax, 3
jne 0x1400e2d7b
mov qword [rsp + 0x30], 3
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.140072230
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14010b650
add rsp, 0x50
pop rbx
ret
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14010b650
add rsp, 0x50
pop rbx
ret
Function at 0x140107cb0
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x140432c40]
test rcx, rcx
jne 0x140107cda
xor r8d, r8d
lea edx, [rcx + 1]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x140432c40], rax
jmp 0x140107ce3
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r10, qword [0x140432c68]
lea rax, [rbx - 0x10]
mov rcx, qword [rax]
mov r9, rax
sub r9, qword [rax + 8]
sub r10, rcx
mov qword [0x140432c68], r10
cmp qword [r9], 0
jne 0x140107d1a
add qword [r9 + 0x20], rcx
lea r8, [r9 + 0x20]
mov rax, qword [r8]
mov qword [rax + r9 + 8], rax
jmp 0x140107d49
xor edx, edx
mov qword [rax + 0x20], rcx
mov rcx, qword [0x140432c60]
lea r8, [rax + 0x20]
mov qword [rax], rdx
mov r9, rax
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdx
test rcx, rcx
je 0x140107d42
mov qword [rcx + 0x18], rax
mov qword [0x140432c60], rax
mov rcx, qword [r8]
cmp qword [rcx + r9], 0
lea rdx, [rcx + r9]
jne 0x140107d95
add rcx, qword [rdx + 0x20]
mov qword [r8], rcx
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x140107d6f
mov rax, qword [rdx + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [rdx + 0x18]
mov rax, qword [rdx + 0x10]
test rcx, rcx
je 0x140107d82
mov qword [rcx + 0x10], rax
jmp 0x140107d89
mov qword [0x140432c60], rax
mov rax, qword [r8]
mov qword [rax + r9 + 8], rax
lea rdx, [rax + r9]
cmp qword [r9 + 8], 0
jne 0x140107dfb
cmp qword [rdx], 1
jne 0x140107dfb
mov rcx, qword [0x140432c70]
lea rax, [r10 + r10*2]
sub rcx, qword [r8]
shr rax, 1
cmp rcx, rax
jbe 0x140107dfb
mov qword [0x140432c70], rcx
mov rcx, qword [r9 + 0x10]
test rcx, rcx
je 0x140107dd0
mov rax, qword [r9 + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 0x10]
test rcx, rcx
je 0x140107de3
mov qword [rcx + 0x10], rax
jmp 0x140107dea
mov qword [0x140432c60], rax
xor edx, edx
mov r8d, 0x8000
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [0x140432c40]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_ReleaseMutex]

Function at 0x14010f48c
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14010f49f
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.140119678
lea rdx, [0x140425b28]
lea rcx, [rsp + 0x20]
call fcn.14012c194
int3

Function at 0x14011a050
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x140433ce0]
xor edx, edx
jmp fcn.14010f48c

Function at 0x14011aa40
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x140433ce0]
jmp fcn.14010f48c
Function at 0x14013d870
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 0x14013d644
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14013d644
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14013d644
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14013d644
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14013d644
cmp dword [rcx + 0x84], 0xe
jbe 0x14013d644
cmp dword [rcx + 0xf8], esi
je 0x14013d644
mov ecx, r14d
call fcn.14013d78c
mov ecx, 2
call fcn.14013acc8
nop
cmp byte [0x140434310], 0
jne 0x14013d70e
mov r15d, 1
mov eax, r15d
xchg dword [0x140434300], eax
test ebx, ebx
jne 0x14013d6b7
mov rdi, qword [0x14042b130]
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 [0x140434308]
cmp rcx, rax
je 0x14013d6ae
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140007370]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140434428]
jmp 0x14013d6c3
cmp ebx, r15d
jne 0x14013d6c9
lea rcx, [0x140434440]
call fcn.14013dfdc
nop
test ebx, ebx
jne 0x14013d6e0
lea rdx, [0x14015da08]
lea rcx, [0x14015d9e0]
call fcn.14013e2a4
lea rdx, [0x14015da18]
lea rcx, [0x14015da10]
call fcn.14013e2a4
movzx eax, byte [0x140434310]
test esi, esi
cmove eax, r15d
mov byte [0x140434310], al
jmp 0x14013d70e
mov ecx, 2
call fcn.14013ad1c
test esi, esi
jne 0x14013d725
mov ecx, r14d
call fcn.14013d740
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 0x14013d5d4
Function at 0x140140618
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
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1401404b8
call fcn.14012ece8
mov dword [rax], 0x16
call fcn.14012e6e4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401404a0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401404a0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1401404ea
lock or dword [rax + 0x14], 0x10
jmp 0x1401404a0
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140140507
mov rcx, qword [rbp + 0x10]
call fcn.140141864
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140139b2c
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140137ecc
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14014055e
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1401404a0
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401405ca
mov rcx, qword [rbp + 0x10]
call fcn.140139b2c
cmp eax, 0xffffffff
je 0x1401405b1
mov rcx, qword [rbp + 0x10]
call fcn.140139b2c
cmp eax, 0xfffffffe
je 0x1401405b1
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140139b2c
movsxd rdi, eax
lea rsi, [0x140434480]
mov rcx, rbx
sar rdi, 6
call fcn.140139b2c
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1401405b8
lea rax, [0x14042b630]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401405ca
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140140600
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401405fc
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401405fc
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1401404a3
jmp 0x140140470
Function at 0x1403840b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140384237
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 0x1403840e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1403840c7
add dl, dl
jne 0x1403840ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14038414e
xor eax, eax
add dl, dl
jne 0x1403840fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140384205
add dl, dl
jne 0x14038410e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14038411b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140384128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140384135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140384142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1403840d6
mov eax, 1
add dl, dl
jne 0x14038415e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14038416b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140384153
sub eax, ebx
mov ebx, 1
jne 0x1403841a4
mov ecx, 1
add dl, dl
jne 0x140384186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140384193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14038417b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1403840d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1403841c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1403841cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1403841b5
cmp eax, 0x7d00
jae 0x1403841f3
cmp eax, 0x500
jb 0x1403841ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1403840d6
cmp eax, 0x7f
ja 0x1403841f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1403840d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14038422a
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 0x1403840d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x1400018e4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000192e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000192e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000192e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000192e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000192e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001930
xor al, al
add rsp, 0x28
ret