joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140043dd0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r12, r8
mov rsi, rdx
movzx r15d, byte [r8]
movabs rax, 0xcbf29ce484222325
xor r15, rax
movabs rcx, 0x100000001b3
imul r15, rcx
movzx eax, byte [r8 + 1]
xor r15, rax
imul r15, rcx
movzx eax, byte [r8 + 2]
xor r15, rax
imul r15, rcx
movzx eax, byte [r8 + 3]
xor r15, rax
imul r15, rcx
mov rcx, qword [0x1400b18f0]
and rcx, r15
add rcx, rcx
mov rax, qword [0x1400b18d8]
mov rbx, qword [rax + rcx*8 + 8]
mov r14, qword [0x1400b18c8]
cmp rbx, r14
jne 0x140043e5c
mov rbx, r14
mov rbp, r14
jmp 0x140043e9d
mov rcx, qword [rax + rcx*8]
mov eax, dword [r8]
cmp eax, dword [rbx + 0x10]
je 0x140043e76
cmp rbx, rcx
je 0x140043e97
mov rbx, qword [rbx + 8]
cmp eax, dword [rbx + 0x10]
jne 0x140043e68
mov qword [rdx], rbx
mov byte [rdx + 8], 0
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov r14, rbx
mov rbp, rbx
movabs rax, 0x492492492492492
cmp qword [0x1400b18d0], rax
je 0x14004403e
lea rax, [0x1400b18c8]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
mov ecx, 0x38
call fcn.140049038
mov rdi, rax
mov qword [rsp + 0x28], rax
mov eax, dword [r12]
mov dword [rdi + 0x10], eax
lea rcx, [rdi + 0x18]
lea rdx, [r12 + 8]
call fcn.140047150
nop
mov rdx, qword [0x1400b18d0]
lea rcx, [rdx + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x140043f0b
cvtsi2ss xmm0, rcx
jmp 0x140043f20
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [0x1400b18f8]
xorps xmm1, xmm1
test rcx, rcx
js 0x140043f36
cvtsi2ss xmm1, rcx
jmp 0x140043f4b
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [0x1400b18c0]
seta al
test al, al
je 0x140043fc8
call fcn.140043b40
mov rcx, qword [0x1400b18f0]
and rcx, r15
add rcx, rcx
mov rdx, qword [0x1400b18d8]
mov rax, qword [rdx + rcx*8 + 8]
mov rbx, qword [0x1400b18c8]
cmp rax, rbx
jne 0x140043f92
mov qword [rsp + 0x28], 0
jmp 0x140043fb4
mov rdx, qword [rdx + rcx*8]
mov ecx, dword [rdi + 0x10]
cmp ecx, dword [rax + 0x10]
je 0x140043fb1
nop
mov rbx, rax
cmp rax, rdx
je 0x14004400b
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x140043fa0
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rbp, rbx
mov r14, qword [rsp + 0x20]
mov rdx, qword [0x1400b18d0]
mov r8, qword [rbx + 8]
inc rdx
mov qword [0x1400b18d0], rdx
mov qword [rdi], r14
mov qword [rdi + 8], r8
mov qword [r8], rdi
mov qword [rbx + 8], rdi
mov rax, qword [0x1400b18f0]
and rax, r15
add rax, rax
mov rcx, qword [0x1400b18d8]
mov rdx, qword [rcx + rax*8]
cmp rdx, qword [0x1400b18c8]
jne 0x14004401b
mov qword [rcx + rax*8], rdi
jmp 0x14004402d
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
jmp 0x140043fb9
cmp rdx, rbp
jne 0x140044026
mov qword [rcx + rax*8], rdi
jmp 0x140044032
cmp qword [rcx + rax*8 + 8], r8
jne 0x140044032
mov qword [rcx + rax*8 + 8], rdi
mov qword [rsi], rdi
mov byte [rsi + 8], 1
jmp 0x140043e7d
lea rcx, str.unordered_map_set_too_long
call fcn.1400481c0
int3
Function at 0x140048b90
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 0x140048c14
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140070630]
cmp byte [rcx + rax], 0
je 0x140048c14
dec r8
sub rdx, 1
jne 0x140048bfa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140049c5c
Capabilities:
Parse pe header

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

Function at 0x14004fa64
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14004fa9b
call fcn.14005bce8
mov dword [rax], 0x16
call fcn.14004f824
xor eax, eax
jmp 0x14004fb29
mov rdx, r9
mov rcx, r8
call fcn.14004fa00
mov rbx, rax
test rax, rax
je 0x14004fb26
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14004f92c]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14004fb13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14005bc5c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14004fafa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14004fb09
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14005bd80
jmp 0x14004fb26
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004fb23
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14004fe88
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400683f0
sub rsp, rax
mov rax, qword [0x1400af020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14005c408
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004fed7
mov rax, rbp
jmp 0x14004ffdf
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xb1230]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005c698
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xb1230]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004ffdb
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004ffdb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005c698
test rax, rax
js 0x14004ffdb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004ffdb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004ffcd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004ffcd
cmp byte [rcx], 0xd
jne 0x14004ffb3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004ffc2
cmp byte [rcx + 1], 0xa
jne 0x14004ffc2
inc rcx
jmp 0x14004ffc2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xaf300]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004ff95
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004ffdf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140048dc0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140059c10
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140059a7b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140059a7b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140059a7b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140059a7b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140059a7b
cmp dword [rcx + 0x84], 0xe
jbe 0x140059a7b
cmp dword [rcx + 0xf8], 0
je 0x140059a7b
mov ecx, ebx
call fcn.140059b2c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140059908
nop
cmp dword [rbp + 0x20], 0
je 0x140059ac9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140059ad4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140059a0c
Function at 0x14005c744
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400b1230]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14005c79b
cmp word [rdx], r13w
jne 0x14005c79b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14005c7a0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14005c8c5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005c8e6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14005c7d9
mov rdx, r9
mov word [rbx], cx
jmp 0x14005c800
cmp r9, r8
jae 0x14005c810
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14005c7ba
jmp 0x14005c8c5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005c8ba
cmp dword [rsp + 0x80], esi
je 0x14005c8ba
lea r8, [0x1400b1230]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005c892
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005c862
mov word [rbx], r13w
jmp 0x14005c8c2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14005c86f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005c8c2
cmp word [rsp + 0x70], r13w
jne 0x14005c89f
cmp rbx, r14
je 0x14005c85c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14005c6a0
cmp word [rsp + 0x70], r13w
je 0x14005c8c5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400b1230]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005c8bf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14005c8c5
Function at 0x14005ec30
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14005ec46
mov al, 1
jmp 0x14005eca6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14005ec57
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14005eca4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14006309c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005eca4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005eca4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14005eca4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14005eca6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140060cb4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140060cd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14005bc5c
or eax, 0xffffffff
jmp 0x140060cd6
xor eax, eax
add rsp, 0x28
ret
Function at 0x140062944
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140062974
xor eax, eax
jmp 0x140062a37
mov rbp, rbx
cmp word [rax], si
je 0x140062999
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140062980
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14006297c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140062864
movsxd r14, eax
test eax, eax
jne 0x1400629d7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14006296d
mov rcx, r14
call fcn.14005f26c
mov rdi, rax
test rax, rax
jne 0x1400629f0
xor ecx, ecx
call fcn.14005bd80
jmp 0x1400629cc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140062864
test eax, eax
jne 0x140062a21
mov rcx, rdi
call fcn.14005bd80
jmp 0x140062a2b
xor ecx, ecx
call fcn.14005bd80
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140066b1c
Capabilities:
Clear file content

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 r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14005c6a0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005c6a0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140066c6c
cmp rax, 0xffffffffffffffff
je 0x140066c6c
xor edi, edi
test rbp, rbp
jle 0x140066c17
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14005bd08
mov rbx, rax
test rax, rax
jne 0x140066ba4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140066c0d
mov edx, 0x8000
mov ecx, r14d
call fcn.14005af9c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14005e42c
cmp eax, 0xffffffff
je 0x140066bed
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140066bb4
mov edx, r15d
mov ecx, r14d
call fcn.14005af9c
jmp 0x140066c0d
cmp byte [rsi + 0x38], dil
je 0x140066c04
cmp dword [rsi + 0x34], 5
jne 0x140066c04
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140066c0d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14005bd80
jmp 0x140066c80
jns 0x140066c80
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005c6a0
cmp rax, 0xffffffffffffffff
jne 0x140066c38
cmp byte [rsi + 0x30], dil
je 0x140066c80
mov edi, dword [rsi + 0x2c]
jmp 0x140066c80
mov ecx, r14d
call fcn.14006309c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140066c80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140066c80
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140066c79
mov eax, dword [rsi + 0x2c]
jmp 0x140066c7e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005c6a0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1406da058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406da1df
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 0x1406da089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406da06f
add dl, dl
jne 0x1406da096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406da0f6
xor eax, eax
add dl, dl
jne 0x1406da0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406da1ad
add dl, dl
jne 0x1406da0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406da0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406da0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406da0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406da0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406da07e
mov eax, 1
add dl, dl
jne 0x1406da106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406da113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406da0fb
sub eax, ebx
mov ebx, 1
jne 0x1406da14c
mov ecx, 1
add dl, dl
jne 0x1406da12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406da13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406da123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406da07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406da168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406da175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406da15d
cmp eax, 0x7d00
jae 0x1406da19b
cmp eax, 0x500
jb 0x1406da196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406da07e
cmp eax, 0x7f
ja 0x1406da19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406da07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406da1d2
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 0x1406da07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401550
Capabilities:
Contain obfuscated stackstrings
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xb0
call fcn.004017a0
mov byte [rbp - 0x50], 2
mov byte [rbp - 0x4f], 0xe
mov byte [rbp - 0x4e], 5
mov byte [rbp - 0x4d], 4
mov byte [rbp - 0x4c], 3
mov byte [rbp - 0x4b], 0x18
mov byte [rbp - 0x4a], 0x3a
mov byte [rbp - 0x49], 0x31
mov byte [rbp - 0x48], 0x31
mov byte [rbp - 0x47], 0x35
mov byte [rbp - 0x46], 0x39
mov byte [rbp - 0x45], 0x1e
mov byte [rbp - 0x44], 1
mov byte [rbp - 0x43], 0x33
mov byte [rbp - 0x42], 0x22
mov byte [rbp - 0x41], 0x29
mov byte [rbp - 0x40], 0x70
mov byte [rbp - 0x3f], 0x37
mov byte [rbp - 0x3e], 4
mov byte [rbp - 0x3d], 0x1e
mov byte [rbp - 0x3c], 1
mov byte [rbp - 0x3b], 0x2f
mov byte [rbp - 0x3a], 5
mov byte [rbp - 0x39], 0x1e
mov byte [rbp - 0x38], 0x33
mov byte [rbp - 0x37], 0x73
mov byte [rbp - 0x36], 0x26
mov byte [rbp - 0x35], 8
mov byte [rbp - 0x34], 0x32
mov byte [rbp - 0x33], 0x35
mov byte [rbp - 0x32], 0x13
mov byte [rbp - 0x31], 0x38
mov byte [rbp - 0x30], 0x3c
mov dword [rbp - 8], 0x21
mov dword [rbp - 4], 0
jmp 0x40160c
mov eax, dword [rbp - 4]
movzx eax, byte [rbp + rax - 0x50]
xor eax, 0x41
mov edx, eax
mov eax, dword [rbp - 4]
mov byte [rbp + rax - 0x50], dl
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, dword [rbp - 8]
jb 0x4015f4
lea rdx, section..rdata
mov ecx, 0
call sub.msvcrt.dll_setlocale
lea rax, str.SoftwareMyApplication
mov qword [rbp - 0x10], rax
lea rax, str.NotV1rus
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x20], rax
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x40], 0
lea rax, [rbp - 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call rax
test eax, eax
jne 0x4016de
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sub.msvcrt.dll_strlen
lea ecx, [rax + 1]
mov rax, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x18]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp - 0x20]
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp - 0x58]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 0
add rsp, 0xb0
pop rbp
ret
Function at 0x401c10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00407624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401d98
mov rax, qword [0x00407628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401c5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401ce5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401c40
mov rcx, rbx
call fcn.004028b0
test rax, rax
mov r12, rax
je 0x401dcd
mov rax, qword [0x00407628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004029e0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401db0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401cde
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401d40
add dword [0x00407624], 1
cmp edi, 8
jae 0x401d13
test dil, 4
jne 0x401d84
test edi, edi
je 0x401d08
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401d9f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401d08
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401d2c
jmp 0x401d08
add rsi, qword [0x00407628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401cde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00402db0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401d08
xor esi, esi
jmp 0x401c67
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401d08
mov rax, qword [0x00407628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00402db0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00402db0
nop
nop dword [rax]

Function at 0x402520
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x402574
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40256b
test rsi, rsi
je 0x40256b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402550
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]