joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c260
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
je 0x46c388
cmp eax, 1
je 0x46c2bb
call fcn.0046b1f0
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.0046ab20
mov r12d, dword [rbx]
test r12d, r12d
je 0x46c2d0
cmp r12d, 1
jne 0x46c360
mov rcx, rbp
call fcn.0046adf0
test rdi, rdi
je 0x46c2bb
mov rcx, rdi
call fcn.0046b580
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x0046b660]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.0046b8e0
mov ecx, dword [0x00482358]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x46c3c8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.0046b8e0
mov ecx, dword [0x00482358]
call r12
test rax, rax
je 0x46c3b0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.0046b8e0
mov ecx, dword [0x00482358]
call r12
test rax, rax
je 0x46c3a0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x46c2a6
mov ecx, 2
call qword [fcn.00468e10]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x46c2a6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.0046b990
test rax, rax
jne 0x46c349
jmp 0x480ff5
call fcn.0046b990
test rax, rax
jne 0x46c325
jmp 0x48100e
call fcn.0046b990
test rax, rax
jne 0x46c2ff
jmp 0x481004
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x46c650
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.0046b8e0
mov ecx, dword [0x00482358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x46c6c8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.0046b100
cmp esi, dword [rbx + 0x48]
jae 0x46c6a3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x46c6a3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.0046b140
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.0046b990
mov rbx, rax
jmp 0x46c67d
Function at 0x46c6e0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.0046b8e0
mov ecx, dword [0x00482358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x46c7f0
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.0046b100
cmp esi, dword [rbx + 0x48]
jae 0x46c770
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.0046b140
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.msvcrt.dll_realloc
test rax, rax
mov rdi, rax
je 0x46c7fd
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.msvcrt.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x46c7fd
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.msvcrt.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x46c734
call fcn.0046b990
mov rbx, rax
jmp 0x46c71f
mov rcx, r14
call fcn.0046b140
mov eax, 0xc
jmp 0x46c752

Function at 0x46c880
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.0046b8e0
mov ecx, dword [0x00482358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x46c8a8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.0046b990
test rax, rax
jne 0x46c89a
add rsp, 0x28
ret

Function at 0x46c910
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.0046b8e0
mov ecx, dword [0x00482358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x46c938
add rax, 0x18
add rsp, 0x28
ret
call fcn.0046b990
test rax, rax
jne 0x46c92a
jmp 0x46c92e

Function at 0x46ca50
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x004ec228]
test eax, eax
jne 0x46ca68
xor eax, eax
add rsp, 0x28
ret
call fcn.0046b8e0
mov ecx, dword [0x00482358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x46ca98
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x46ca5e
test byte [rax + 0x40], 3
je 0x46ca5e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x46ca60
call fcn.0046b990
test rax, rax
jne 0x46ca7e
jmp 0x46ca5e

Function at 0x46cab0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.0046b8e0
mov ecx, dword [0x00482358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x46caf0
test ebx, ebx
jle 0x46cae0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.0046b990
test rax, rax
jne 0x46cacd
add rsp, 0x20
pop rbx
ret
Function at 0x46cbe0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.0046b8e0
mov ecx, dword [0x00482358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x46cc58
test byte [rbx + 0x40], 0xc
jne 0x46cc0f
mov eax, dword [0x004ec228]
test eax, eax
jne 0x46cc20
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.0046ab20
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x46cc43
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x46cc43
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x46cc6c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.0046adf0
call fcn.0046b990
test rax, rax
mov rbx, rax
jne 0x46cbff
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x46cc8a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.0046adf0
call fcn.0046cb00
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x46cd10
call fcn.0046a8e0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x46cd48
call fcn.0046b8e0
mov ecx, dword [0x00482358]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x46cda0
test esi, esi
je 0x46cd26
call fcn.0046cbe0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x46cd80
mov edx, edi
call fcn.0046a990
call fcn.0046cbe0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.0046b8e0
mov ecx, dword [0x00482358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x46cd90
call fcn.0046cbe0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0046cbe0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.0046b8e0
mov ecx, dword [0x00482358]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x46cce5
call fcn.0046b990
mov rbx, rax
jmp 0x46cce5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x46ccfe
call fcn.0046b990
jmp 0x46cd26
call fcn.0046b990
mov rbx, rax
jmp 0x46cce1
Function at 0x46cca0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.0046b8e0
mov ecx, dword [0x00482358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x46cc58
test byte [rbx + 0x40], 0xc
jne 0x46cc0f
mov eax, dword [0x004ec228]
test eax, eax
jne 0x46cc20
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.0046ab20
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x46cc43
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x46cc43
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x46cc6c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.0046adf0
call fcn.0046b990
test rax, rax
mov rbx, rax
jne 0x46cbff
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x46cc8a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.0046adf0
call fcn.0046cb00
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x46cd10
call fcn.0046a8e0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x46cd48
call fcn.0046b8e0
mov ecx, dword [0x00482358]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x46cda0
test esi, esi
je 0x46cd26
call fcn.0046cbe0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x46cd80
mov edx, edi
call fcn.0046a990
call fcn.0046cbe0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.0046b8e0
mov ecx, dword [0x00482358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x46cd90
call fcn.0046cbe0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0046cbe0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.0046b8e0
mov ecx, dword [0x00482358]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x46cce5
call fcn.0046b990
mov rbx, rax
jmp 0x46cce5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x46ccfe
call fcn.0046b990
jmp 0x46cd26
call fcn.0046b990
mov rbx, rax
jmp 0x46cce1

Function at 0x46cdb0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.0046b8e0
mov ecx, dword [0x00482358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x46ce20
test esi, esi
je 0x46ce00
call fcn.0046cbe0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x46ce30
mov edx, esi
call fcn.0046a990
call fcn.0046cbe0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.0046cbe0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0046cbe0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.0046b990
mov rbx, rax
jmp 0x46cdd1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x46cdea
Function at 0x1355680
Capabilities:
Encode data using xor

Disassembly:
jmp 0x135568a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x13556b3
pop rbp
sub rbp, 0x33
sub rbp, 0xf55680
sub rsp, 0x20
jmp 0x13556d2
mov rax, 0xf55680
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffe67bed51
xor byte [rax], dl
inc rax
dec rcx
jne 0x13556f1
jmp 0x1355708
sbb eax, ebx
mov eax, 0x516dd8da
push rcx
push rcx
sbb eax, edx
nop
pop rcx
push rax
push rcx
push rcx
sbb dword [rax - 0x48], edx
sbb dword [rsi + 0x51515291], edx
push rcx
sbb dword [rsi + 0x51517993], edx
push rcx
sbb dword [rsi - 0x6fafe64d], esp
fcmovbe st(0), st(0)
pop rbp
push rcx
push rcx
push rcx
sbb dword [rax - 0x47], edx
add dword [rcx], eax
sbb ecx, ebp
invalid

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

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

Disassembly:
mov rax, qword [0x140006008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140006008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140006008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x29cc590
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x29cc59d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x29cc5ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x29cc595
lea eax, [rcx + 1]
jmp 0x29cc5bb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x29cc5ce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x29cc5b4
sub eax, 3
jb 0x29cc5ee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x29cc63d
sar eax, 1
movsxd rbp, eax
jb 0x29cc624
jmp 0x29cc5fc
add ebx, ebx
jne 0x29cc5fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x29cc624
inc ecx
add ebx, ebx
jne 0x29cc60a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x29cc624
call r11
adc ecx, ecx
add ebx, ebx
jne 0x29cc61d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x29cc60c
add ecx, 2
jmp 0x29cc629
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.029cc552
jmp 0x29cc59d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x25aa000]
mov eax, dword [rdi]
or eax, eax
je 0x29cc699
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x25cc000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x29cc649
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x29cc693
mov qword [rbx], rax
add rbx, 8
jmp 0x29cc669
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x29cc6dd
cmp al, 0xef
ja 0x29cc6c5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x29cc6a5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x29cc6b4
mov eax, dword [rdi]
add rdi, 4
jmp 0x29cc6b4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.029cc75c], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.029cc75c
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x29cc74c
sub rsp, 0xffffffffffffff80
jmp 0x4014e0
Function at 0x140001070
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
sub rsp, 0x20
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
jne 0x140001094
lea eax, [rbp + 1]
add rsp, 0x20
pop rbp
ret
mov qword [rsp + 0x30], rbx
xor ecx, ecx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
xor edi, edi
mov qword [rsp + 0x48], r14
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rsi, rax
mov r14d, 0x8001
nop dword [rax + rax]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 2
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
or ax, bx
test r14w, ax
je 0x1400010ef
inc edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rsi, rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__difftime64]
cvttsd2si eax, xmm0
cmp eax, 0x78
jg 0x140001113
cmp edi, 0xa
jle 0x1400010c0
jmp 0x14000111f
lea rcx, str.Sandbox_Detected___n
call fcn.140001010
lea rcx, str.Legitimate_user_detected___n
call fcn.140001010
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r14, qword [rsp + 0x48]
xor eax, eax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rbp
ret

Function at 0x140001a20
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a6a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a6a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a6a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a6a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a6a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a6c
xor al, al
add rsp, 0x28
ret
Function at 0x408240
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [0x0070e0a8], 0
je 0x4082f8
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.004104f0
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, qword [0x006cd0e0]
call fcn.004104f0
mov rcx, rsi
mov rdx, qword [0x006cd0e0]
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, rbx
call fcn.004104f0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40830b
xor ecx, ecx
mov rdx, rbx
mov r8, rsi
mov r9d, 0x2010
call sub.user32.dll_MessageBoxA
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x40d9b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov ebx, edx
mov rax, qword [rbp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rbp + 0x28]
call fcn.0040e000
mov esi, eax
test sil, sil
jne 0x40db65
test ebx, ebx
je 0x40db65
xor edi, edi
test r13d, r13d
jle 0x40da91
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40da75
cmp ebx, 0xffffffff
je 0x40da23
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40da23
xor esi, esi
jmp 0x40db65
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40da75
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40da63
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40da63
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40db65
lea rcx, [rbp + 0x3c]
call fcn.0040d550
sub r13d, 1
test r13d, r13d
jg 0x40da0a
nop
cmp ebx, 0xffffffff
je 0x40da91
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40da8f
xor esi, esi
jmp 0x40db65
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40d9cd
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40da91
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040dc10
xor ecx, ecx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x0070e9a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40daf4
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jae 0x40daf2
sub ebx, eax
jmp 0x40daf4
xor ebx, ebx
test sil, sil
je 0x40db26
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40db23
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40daf9
mov dil, 1
nop
jmp 0x40db43
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40db26
mov dil, 1
test dil, dil
je 0x40dab4
nop
test sil, sil
je 0x40db65
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret
Function at 0x40f710
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0070e0a8], 0
je 0x40f7aa
cmp word [0x0070e3b8], 0xd7b2
jne 0x40f743
cmp dword [0x0070e3c0], 0
jbe 0x40f743
lea rcx, [0x0070e3b0]
call qword [0x0070e3d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x006cf000]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x0040f7e0]
call fcn.00410b80
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40f7cb
cmp byte [0x006cd05a], 0
jne 0x40f7cb
xor ecx, ecx
lea rdx, [0x006cf000]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40fa90
Capabilities:
Create thread

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x38], rcx
mov ebx, edx
mov rsi, r8
mov rdi, r9
cmp qword [0x006cd060], 0
je 0x40fac1
mov rcx, rsi
mov rdx, rdi
call qword [0x006cd060]
mov r13, rax
jmp 0x40fad6
mov ecx, 0x10
call fcn.00409240
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x0070e0a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040fa20]
mov r9, r13
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
mov rbx, rax
test rbx, rbx
jne 0x40fb1b
mov rcx, r13
call fcn.00409270
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x414df0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00712f00]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00712f28], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00712ef8], al
cmp byte [0x00712ef8], 0
je 0x414e8f
lea rcx, [0x00414e94]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00414eae]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00712ee0], rax
lea rcx, [0x00414e94]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00414ecc]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00712ee8], rax
lea rcx, [0x00414e94]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00414eea]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00712ef0], rax
add rsp, 0x28
ret