joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cde90
Capabilities:
Query environment variable

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb0], 0xfffffffffffffffe
mov byte [rbp - 1], cl
xor cl, 0xff
test cl, 1
jne 0x1400cdeb8
jmp 0x1400cdecc
mov ecx, 0x384
call fcn.140081340
nop
add rsp, 0x140
pop rbp
ret
mov ecx, 0x2dd
call fcn.1400e5520
mov rcx, rax
mov al, byte [rbp - 1]
mov qword [rbp + 0xa8], rcx
test al, 1
jne 0x1400cdee9
jmp 0x1400cdeeb
jmp 0x1400cdf10
call sub.KERNEL32.dll_GetEnvironmentStringsW
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x88], rax
mov rcx, qword [rbp + 0x90]
call fcn.1400813b0
test al, 1
jne 0x1400cdf2e
jmp 0x1400cdf42
mov rcx, qword [rbp + 0xa8]
call fcn.1400e5600
mov rcx, rax
call fcn.14001f8d0
nop
add rsp, 0x140
pop rbp
ret
lea rcx, [0x1401b50f0]
call fcn.140083600
mov rcx, rax
call fcn.140001df0
jmp 0x1400cdf44
mov rax, qword [rbp + 0x90]
mov cx, word [rax]
call fcn.1400f0e00
xor al, 0xff
test al, 1
jne 0x1400cdf5b
jmp 0x1400cdf71
mov rcx, qword [rbp + 0x90]
call fcn.1400302e0
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rax
jmp 0x1400cdf7f
mov rcx, qword [rbp + 0x88]
call sub.KERNEL32.dll_FreeEnvironmentStringsW
jmp 0x1400cdf10
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x40]
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x90], rax
mov rcx, qword [rbp + 0x70]
mov edx, 0x3d
call fcn.140027280
mov byte [rbp - 0x19], al
jmp 0x1400cdfec
jmp 0x1400cdf44
mov rcx, qword [rbp + 0x70]
mov edx, 0x3d
call fcn.140035e60
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x28], rax
jmp 0x1400cdff5
mov al, byte [rbp - 0x19]
test al, 1
jne 0x1400cdfcb
jmp 0x1400cdfd0
mov rax, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
mov qword [rbp + 0x68], rdx
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x48], rax
mov rcx, qword [rbp + 0x50]
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0xa0], rcx
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp - 0x48], rax
mov rcx, qword [rbp + 0xa0]
call fcn.140034d20
mov qword [rbp - 0x40], rax
jmp 0x1400ce068
mov rdx, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x48]
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x18], rax
mov r8, qword [rbp + 0x10]
mov r9, qword [rbp + 0x18]
call fcn.1400e2ae0
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x50], rax
jmp 0x1400ce09d
mov rax, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x50]
mov qword [rbp], rcx
mov qword [rbp + 8], rax
jmp 0x1400cdf44
Function at 0x1400e6260
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0xf8
mov qword [rsp + 0x58], rcx
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x60], rax
mov al, byte [rsp + 0x128]
mov byte [rsp + 0x6b], al
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0x6c], eax
mov qword [rsp + 0x70], r9
mov byte [rsp + 0x7b], r8b
mov dword [rsp + 0x7c], edx
mov eax, dword [rsp + 0x6c]
mov cl, byte [rsp + 0x6b]
mov rdx, qword [rsp + 0x60]
mov r8b, byte [rsp + 0x7b]
mov r9, qword [rsp + 0x70]
mov r10d, dword [rsp + 0x7c]
mov dword [rsp + 0xd0], r10d
mov qword [rsp + 0xd8], r9
and r8b, 1
mov byte [rsp + 0xd4], r8b
mov qword [rsp + 0xc8], rdx
and cl, 1
mov byte [rsp + 0xc4], cl
mov dword [rsp + 0xc0], eax
mov edx, dword [rsp + 0xc0]
mov dword [rsp + 0x54], edx
cmp edx, 0
setl al
cmp edx, 0
setb cl
or al, cl
cmp edx, 0
setge cl
cmp edx, 0xffffffff
seta dl
and cl, dl
or al, cl
test al, 1
jne 0x1400e631d
jmp 0x1400e6322
call fcn.140001800
mov rcx, qword [rsp + 0x58]
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0xf4], eax
mov rdx, qword [rsp + 0xd8]
mov r10, qword [rsp + 0xc8]
xor eax, eax
mov r8d, eax
lea r9, [rsp + 0xf0]
lea rax, [rsp + 0xf4]
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x28], rax
call sub.ADVAPI32.dll_RegQueryValueExW
mov dword [rsp + 0xe0], 0xab
mov dword [rsp + 0xe8], eax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0xe0], 0x590
mov dword [rsp + 0xe8], eax
mov ecx, dword [rsp + 0xe8]
call fcn.140083350
test al, 1
jne 0x1400e63a3
jmp 0x1400e63f5
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0xb8], eax
mov eax, dword [rsp + 0xf4]
mov dword [rsp + 0xbc], eax
mov eax, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xbc]
mov dword [rsp + 0xa8], 0x19b
mov dword [rsp + 0xb4], ecx
mov dword [rsp + 0xb0], eax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x48], rax
jmp 0x1400e6407
mov ecx, dword [rsp + 0xe8]
call fcn.140083370
test al, 1
jne 0x1400e641a
jmp 0x1400e6440
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
mov rdx, qword [rcx + 8]
add rsp, 0xf8
ret
mov dword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x40], rax
jmp 0x1400e6452
mov ecx, dword [rsp + 0xe8]
call fcn.140083390
test al, 1
jne 0x1400e645e
jmp 0x1400e6489
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
jmp 0x1400e6407
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0xf4]
mov dword [rsp + 0x94], eax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
jmp 0x1400e64a4
mov edx, dword [rsp + 0xe8]
lea rcx, [0x1401b5ad0]
call fcn.1400833f0
mov rcx, rax
call fcn.140001df0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
mov ecx, dword [rcx + 4]
mov dword [rsp + 0x80], 0x19b
mov dword [rsp + 0x8c], ecx
mov dword [rsp + 0x88], eax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
jmp 0x1400e6452
Function at 0x14011ff90
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
xor eax, eax
lock cmpxchg qword [0x1402c3750], rdi
jne 0x14011ffcf
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rcx, rax
xor eax, eax
lock cmpxchg qword [0x1402c3750], rcx
je 0x14011ffcf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1402c3750]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx - 0x10]
lea rax, [rbx - 0x10]
sub qword [0x1402c3768], rcx
mov r9, rax
sub r9, qword [rax + 8]
cmp qword [r9], rdi
jne 0x14012000b
add qword [r9 + 0x20], rcx
mov rax, qword [r9 + 0x20]
mov qword [rax + r9 + 8], rax
jmp 0x140120033
mov qword [rax + 0x20], rcx
mov r9, rax
mov rcx, qword [0x1402c3760]
mov qword [rax], rdi
mov qword [rbx], rcx
mov qword [rax + 0x18], rdi
test rcx, rcx
je 0x14012002c
mov qword [rcx + 0x18], rax
mov qword [0x1402c3760], rax
mov rcx, qword [r9 + 0x20]
cmp qword [rcx + r9], rdi
lea rdx, [rcx + r9]
jne 0x140120081
add rcx, qword [rdx + 0x20]
mov qword [r9 + 0x20], rcx
mov r8, qword [rdx + 0x10]
test r8, r8
je 0x14012005a
mov rax, qword [rdx + 0x18]
mov qword [r8 + 0x18], rax
mov r8, qword [rdx + 0x18]
mov rax, qword [rdx + 0x10]
test r8, r8
je 0x14012006d
mov qword [r8 + 0x10], rax
jmp 0x140120074
mov qword [0x1402c3760], rax
mov rax, qword [r9 + 0x20]
mov qword [rax + r9 + 8], rax
lea rdx, [rax + r9]
cmp qword [r9 + 8], rdi
jne 0x1401200ee
cmp qword [rdx], 1
jne 0x1401200ee
mov rax, qword [0x1402c3768]
mov rdx, qword [0x1402c3770]
sub rdx, qword [r9 + 0x20]
lea rcx, [rax + rax*2]
shr rcx, 1
cmp rdx, rcx
jbe 0x1401200ee
mov rcx, qword [r9 + 0x10]
mov qword [0x1402c3770], rdx
test rcx, rcx
je 0x1401200c3
mov rax, qword [r9 + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 0x10]
test rcx, rcx
je 0x1401200d6
mov qword [rcx + 0x10], rax
jmp 0x1401200dd
mov qword [0x1402c3760], rax
xor edx, edx
mov r8d, 0x8000
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [0x1402c3750]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_ReleaseMutex]
Function at 0x140120710
Capabilities:
Allocate or change rwx memory
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rbx, rcx
xor eax, eax
lock cmpxchg qword [0x1402c3750], rbp
jne 0x140120754
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rcx, rax
xor eax, eax
lock cmpxchg qword [0x1402c3750], rcx
je 0x140120754
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1402c3750]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 0x30
cmp rbx, rdi
cmovae rdi, rbx
mov rbx, qword [0x1402c3760]
add rdi, 0x17
and rdi, 0xfffffffffffffff8
test rbx, rbx
je 0x140120798
mov rcx, qword [rbx + 0x20]
cmp rcx, rdi
jae 0x1401207e2
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140120786
lea rbx, [rdi + 0x1000f]
mov qword [rsp + 0x30], rsi
and rbx, 0xffffffffffff0000
mov r9d, 0x40
mov rdx, rbx
mov r8d, 0x3000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x140120859
mov rcx, qword [0x1402c3750]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
jmp 0x1401208dc
lea rax, [rdi + 0x40]
cmp rcx, rax
jbe 0x140120800
sub rcx, rdi
mov qword [rbx + 0x20], rcx
add rbx, rcx
mov qword [rbx + 8], rcx
mov qword [rbx + rdi + 8], rdi
jmp 0x14012082e
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x140120811
mov rax, qword [rbx + 0x18]
mov qword [rdx + 0x18], rax
mov rdx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
test rdx, rdx
je 0x140120824
mov qword [rdx + 0x10], rax
jmp 0x14012082b
mov qword [0x1402c3760], rax
mov rdi, rcx
add qword [0x1402c3768], rdi
mov qword [rbx], rdi
mov rcx, qword [0x1402c3750]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rax, [rbx + 0x10]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
sub rbx, 0x10
mov qword [rax + 8], rbp
add qword [0x1402c3770], rbx
lea rax, [rdi + 0x40]
cmp rbx, rax
jbe 0x1401208b2
mov rcx, qword [0x1402c3760]
lea rax, [rsi + rdi]
add qword [0x1402c3768], rdi
sub rbx, rdi
mov qword [rsi], rdi
mov qword [rax + 8], rdi
mov qword [rax], rbp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rbp
test rcx, rcx
je 0x1401208a5
mov qword [rcx + 0x18], rax
mov qword [0x1402c3760], rax
lea rcx, [rbx + rax]
jmp 0x1401208c0
add qword [0x1402c3768], rbx
lea rcx, [rsi + rbx]
mov qword [rsi], rbx
mov qword [rcx], 1
mov qword [rcx + 8], rbx
mov rcx, qword [0x1402c3750]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rax, [rsi + 0x10]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140120900
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rbx, rdx
mov rdi, rcx
cmp rdx, qword [rcx + 0x18]
jb 0x1401209a8
cmp rdx, qword [rcx + 8]
jae 0x1401209a8
mov rax, qword [0x1402c3758]
test rax, rax
jne 0x140120949
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
dec rax
mov qword [0x1402c3758], rax
mov r10, qword [rdi + 0x10]
not rax
mov rcx, rax
and r10, rax
and rcx, rbx
cmp rcx, r10
je 0x140120996
jae 0x14012097d
sub r10, rcx
mov r9d, 4
mov rdx, r10
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jmp 0x140120994
sub rcx, r10
mov r8d, 0x4000
mov rdx, rcx
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x1401209a8
mov qword [rdi + 0x10], rbx
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x50
pop rdi
ret

Function at 0x140127a00
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [0x1402c3840], 0
jne 0x140127a2a
lea rcx, [0x140431580]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x140431584]
mov qword [0x1402c3840], rax
call fcn.140132c20
mov rcx, qword [0x1402c3840]
lea rdx, [rsp + 0x20]
dec rcx
mov rbx, rax
not rcx
mov r8d, 0x30
and rbx, rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
je 0x140127a6f
lea rcx, str.Weird_VirtualQuery_result
call qword [0x1402c23e0]
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [rsp + 0x44]
mov ecx, 0xfffffcff
and rax, rcx
lea rcx, [rax - 4]
cmp rcx, 0x3c
ja 0x140127a95
movabs rdx, 0x1000000000000011
bt rdx, rcx
jb 0x140127aa9
cmp rax, 0x80
je 0x140127aa9
xor ecx, ecx
lea rax, [rcx + rbx]
add rsp, 0x50
pop rbx
ret
mov rax, qword [rsp + 0x38]
xor ecx, ecx
cmp dword [rsp + 0x40], 0x1000
cmovne rax, rcx
add rax, rbx
add rsp, 0x50
pop rbx
ret
Function at 0x1401285e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1402cc748], 0
mov esi, r8d
mov rdi, rdx
mov r11, rcx
je 0x140128755
cmp dword [0x1402c3848], 0
jne 0x140128755
cmp qword [0x1402c3860], 0
jne 0x140128755
mov rax, qword [0x1402c3840]
mov qword [rsp + 0x30], rbx
shl rdi, 0xc
lea r9, [rax - 1]
not r9
lea r10, [rax - 1]
add r10, rdi
mov rbx, r9
and rbx, rcx
add r10, rcx
and r10, r9
lea r9, [0x1402ce960]
lea rax, [rbx + 0x1000]
cmp r10, rax
jne 0x140128682
mov rax, rbx
mov rcx, rbx
shr rax, 0x12
and eax, 0x7fff
shr rcx, 0xc
and cl, 0x3f
mov rdx, qword [r9 + rax*8 + 0x467f0]
shr rdx, cl
test dl, 1
jne 0x140128750
mov r8, rbx
cmp rbx, r10
jae 0x1401286f9
nop word [rax + rax]
mov rdx, r8
shr rdx, 0xc
and edx, 0x1fffff
test esi, esi
je 0x1401286b0
cmp r8, r11
jb 0x1401286b0
lea rax, [rdi + r11]
cmp r8, rax
jb 0x1401286ed
nop
mov eax, 0xffffffff
xchg byte [0x1402c3854], al
cmp al, 0xff
je 0x1401286b0
mov rax, rdx
and edx, 0x3f
shr rax, 6
lea rcx, [rax*8]
mov rax, qword [rcx + r9 + 0x467f0]
bts rax, rdx
mov qword [rcx + r9 + 0x467f0], rax
nop
mov byte [0x1402c3854], 0
add r8, 0x1000
cmp r8, r10
jb 0x140128690
cmp dword [0x1402c3858], 0
lea r9, [0x1402cb880]
mov eax, 0x40
mov r8d, 4
cmovne r8d, eax
mov rcx, rbx
sub r10, rbx
mov rdx, r10
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140128750
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.un_VirtualProtect_failed:_errcode_0x_X_n
call fcn.14012c5c0
lea rcx, str.un_VirtualProtect_failed
call qword [0x1402c23e0]
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140128790
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
lea rcx, [0x140431580]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x140431584]
mov qword [0x1402c3840], rax
add rsp, 0x28
ret
Function at 0x140128ab0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1402c384c], 0
je 0x140128aee
lea rdx, [rcx + 0x1000]
cmp rcx, 0xffffffffffffefff
jb 0x140128ad6
mov rdx, 0xffffffffffffffff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea rbx, [rax + 0xfff]
and rbx, 0xfffffffffffff000
jmp 0x140128b40
xor edx, edx
cmp qword [0x1402c3860], rdx
sete dl
mov rax, rdx
not rax
cmp rcx, rax
jae 0x140128b0a
add rdx, rcx
jmp 0x140128b11
mov rdx, 0xffffffffffffffff
cmp dword [0x1402c3858], 0
mov eax, 0x40
mov r8d, dword [0x1402c385c]
mov r9d, 4
cmovne r9d, eax
or r8d, 0x3000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rbx, 0xfff
je 0x140128b5c
lea rcx, str.Bad_VirtualAlloc_result
call qword [0x1402c23e0]
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov rax, qword [0x1402cea68]
cmp rax, 0x14000
jb 0x140128b85
lea rcx, str.Too_many_heap_sections
call qword [0x1402c23e0]
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov rax, qword [0x1402cea68]
test rbx, rbx
je 0x140128b9c
lea rcx, [0x140355158]
mov qword [rcx + rax*8], rbx
inc qword [0x1402cea68]
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140129120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, eax
shr rdx, 8
xor rdx, rcx
lea rcx, [0x1402cb8a0]
movzx edx, dl
mov rdx, qword [rcx + rdx*8]
test rdx, rdx
je 0x140129155
cmp dword [rdx + 8], eax
je 0x140129155
mov rdx, qword [rdx]
test rdx, rdx
jne 0x140129148
movzx ecx, byte [rdx + 0x3a]
test ecx, ecx
je 0x140129186
movzx eax, word [rdx + 0x38]
inc ax
movzx r8d, ax
mov eax, 1
shl eax, cl
mov word [rdx + 0x38], r8w
cmp r8d, eax
jae 0x140129180
xor eax, eax
add rsp, 0x28
ret
xor eax, eax
mov word [rdx + 0x38], ax
inc cl
lea rax, [rdx + 0x3a]
mov byte [rdx + 0x3a], cl
add rsp, 0x28
ret

Function at 0x14012a3a0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rdi, [0x1402cb8a0]
lea rbp, [0x1402cc0a0]
lea rsi, [0x1402cc0a0]
nop dword [rax]
mov rbx, qword [rdi]
test rbx, rbx
je 0x14012a450
cmp byte [rbx + 0x3b], 0
je 0x14012a448
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x14012a400
lea rcx, str.ResumeThread_failed
call qword [0x1402c23e0]
call qword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [0x1402cc748], 0
je 0x14012a42d
cmp dword [0x1402c3848], 0
jne 0x14012a42d
cmp rbx, rsi
je 0x14012a42d
xor r8d, r8d
mov rcx, rbx
and rcx, 0xfffffffffffff000
lea edx, [r8 + 1]
call fcn.1401285e0
mov byte [rbx + 0x3b], 0
mov rax, qword [0x1402cc698]
test rax, rax
je 0x14012a448
mov rdx, qword [rbx + 0x10]
mov ecx, 0xb
call rax
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14012a3d8
add rdi, 8
cmp rdi, rbp
jl 0x14012a3d0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14012cfb0
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x188
mov rax, qword [0x1402c2498]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
jne 0x14012cfde
xor eax, eax
jmp 0x14012d177
cmp dword [0x1402cc710], 0
mov qword [rsp + 0x1b0], rbx
jne 0x14012cff8
cmp dword [0x1402cb890], 0
je 0x14012d005
lea rcx, [0x1402ce920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402cc6f0]
test rbx, rbx
jne 0x14012d0f9
mov qword [rsp + 0x180], rdi
lea rdx, [rsp + 0x50]
mov r8d, 0x105
lea rcx, str.GC_LOG_FILE
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0x104
jae 0x14012d045
lea edi, [rbx + 1]
jmp 0x14012d07c
mov r8d, 0x105
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, 4
jle 0x14012d06b
lea edx, [rax - 4]
movsxd rcx, edx
cmp byte [rsp + rcx + 0x50], 0x2e
cmove eax, edx
cdqe
movabs rcx, 0x676f6c2e63672e
mov qword [rsp + rax + 0x50], rcx
cmp dword [0x1402cc6cc], 2
mov eax, 0x80
mov ecx, 0x80000080
mov qword [rsp + 0x30], 0
cmove ecx, eax
mov edx, 0x40000000
mov dword [rsp + 0x28], ecx
lea eax, [rdi*2 + 2]
xor r9d, r9d
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x50]
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
test edi, edi
mov rdi, qword [rsp + 0x180]
mov rbx, rax
je 0x14012d0f2
cmp rax, 0xffffffffffffffff
je 0x14012d0f2
mov r9d, 2
mov dword [rsp + 0x40], 0
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [0x1402cc6f0], rbx
cmp rbx, 0xffffffffffffffff
jne 0x14012d125
cmp dword [0x1402cc710], 0
jne 0x14012d111
cmp dword [0x1402cb890], 0
je 0x14012d11e
lea rcx, [0x1402ce920]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xffffffff
jmp 0x14012d16f
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x1402cc710], 0
mov ebx, eax
jne 0x14012d156
cmp dword [0x1402cb890], 0
je 0x14012d163
lea rcx, [0x1402ce920]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
mov eax, 0xffffffff
cmovne eax, dword [rsp + 0x44]
mov rbx, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140136b90
add rsp, 0x188
pop rsi
pop rbp
ret
Function at 0x14012d570
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1402cc6ac], 0
mov ebx, ecx
jne 0x14012d679
cmp dword [0x1402cc748], 0
mov qword [rsp + 0x38], rdi
je 0x14012d67f
call fcn.140125380
test eax, eax
je 0x14012d67f
mov eax, dword [0x1402c3810]
mov qword [rsp + 0x30], rsi
mov esi, dword [0x1402c2440]
imul esi, ebx
mov ebx, 1
cmp dword [0x1402c241c], 0xf423f
cmovne eax, ebx
mov ebx, dword [0x1402cc7a4]
mov dword [0x1402c3810], eax
cmp ebx, esi
jge 0x14012d5f1
nop word [rax + rax]
xor ecx, ecx
call fcn.140126120
test eax, eax
jne 0x14012d5f1
inc ebx
cmp ebx, esi
jl 0x14012d5e0
xor edi, edi
mov dword [0x1402c3810], edi
cmp ebx, esi
jge 0x14012d659
cmp dword [0x1402cc710], edi
je 0x14012d60a
call fcn.14012ac00
mov eax, dword [0x1402c2444]
cmp dword [0x1402cc77c], eax
jge 0x14012d648
cmp dword [0x1402c241c], 0xf423f
je 0x14012d648
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x14012eb00]
mov dword [0x1402cc778], eax
call fcn.14012e820
test eax, eax
jne 0x14012d654
inc dword [0x1402cc77c]
jmp 0x14012d659
lea rcx, [0x14012d1e0]
call fcn.14012e820
call fcn.14012dbe0
cmp dword [0x1402cc7a4], edi
jle 0x14012d66f
sub dword [0x1402cc7a4], esi
jns 0x14012d66f
mov dword [0x1402cc7a4], edi
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
call fcn.14012e6f0
test eax, eax
je 0x14012d674
cmp dword [0x1402cc748], 0
jne 0x14012d6b0
lea rcx, [0x14012d1e0]
call fcn.14012ec80
xor edi, edi
mov dword [0x1402cc7a0], edi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
cmp dword [0x1402cc710], 0
je 0x14012d6be
call fcn.14012ac00
cmp dword [0x1402cc764], 0
jne 0x14012d6d9
mov edi, dword [0x1402cc7a0]
cmp edi, dword [0x1402c2418]
jge 0x14012d6d9
inc edi
jmp 0x14012d72b
cmp dword [0x1402cc6cc], 0
je 0x14012d6fd
mov edx, dword [0x1402cc708]
lea rcx, str._Full_mark_for_collection__lu_after__lu_allocd_bytes_n
mov r8d, dword [0x1402ce9a0]
inc edx
call fcn.14012c5c0
call fcn.1401339d0
mov ebx, 1
xor ecx, ecx
mov edx, ebx
call fcn.1401313b0
mov rax, qword [0x1402cc700]
test rax, rax
je 0x14012d71e
call rax
call fcn.140125350
xor edi, edi
mov dword [0x1402cc784], ebx
mov ecx, dword [0x1402c241c]
mov dword [0x1402cc7a0], edi
cmp ecx, 0xf423f
je 0x14012d751
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x1402c241c]
mov dword [0x1402cc778], eax
cmp ecx, 0xf423f
lea rax, [0x14012d1e0]
lea rdx, [0x14012eb00]
cmove rdx, rax
mov rcx, rdx
call fcn.14012e820
test eax, eax
je 0x14012d784
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp fcn.14012dbe0
cmp dword [0x1402cc784], 0
jne 0x14012d674
inc dword [0x1402cc77c]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret