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

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040eff0
mov ebx, eax
test ebx, ebx
je 0x40f04b
cmp dword [0x004864ec], 0xffffffff
jne 0x40f024
mov ecx, 0xe2
call fcn.004098e0
mov ecx, ebx
call fcn.0040efd0
test rax, rax
jne 0x40f03d
mov ecx, 0xe2
call fcn.004098e0
jmp 0x40f04b
mov ecx, dword [0x004864ec]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40f060
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00499d64], 0
je 0x40f09b
mov ecx, dword [0x004864ec]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40f0af
call fcn.0040f000
mov ecx, dword [0x004864ec]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40f0af
mov rax, qword [0x00499d98]
jmp 0x40f0af
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x004864ec]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x420ba0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
mov rbp, rsp
movdqa xmmword [rbp + 0x20], xmm6
mov rbx, rdx
movapd xmm6, xmm2
mov rcx, rbx
mov edx, 0xa
xor r8, r8
call fcn.00406870
movsd xmm0, qword [0x00420c60]
comisd xmm0, xmm6
jbe 0x420bd9
mov byte [rbx + 9], 0x80
movapd xmm0, xmm6
call fcn.00406720
call fcn.00406630
mov rcx, rax
xor r8, r8
jmp 0x420c41
mov r9d, 0x64
mov rax, rcx
cqo
idiv r9
mov r9, rdx
movsxd r10, r8d
mov r11d, 0xa
mov eax, r9d
cdq
idiv r11d
mov r11, rdx
mov esi, 0xa
mov eax, r9d
cdq
idiv esi
shl eax, 4
add r11b, al
mov byte [rbx + r10], r11b
mov r9d, 0x64
mov rax, rcx
cqo
idiv r9
mov rcx, rax
add r8d, 1
test rcx, rcx
jle 0x420c4c
cmp r8d, 9
jl 0x420bef
mov rax, rbx
movdqa xmm6, xmmword [rbp + 0x20]
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret

Function at 0x424b50
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x424b77
movzx rax, word [rbp + 0x2c]
jmp 0x424b79
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x4261b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00425f50
mov ebx, eax
mov rax, qword [0x00493ff0]
cmp byte [rax], 0
je 0x4262e8
mov rcx, qword [0x00493cb0]
call fcn.004067e0
call fcn.00405ac0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00426170]
mov r8d, 1
movsxd r9, esi
call fcn.0040c700
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x00426388]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x42632e
mov rcx, qword [0x00499d68]
call fcn.0040c870
mov rcx, rax
mov rax, qword [0x00493c28]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00426170]
call fcn.0040c740
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x428430
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040a320
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.0040ed30
mov esi, eax
cmp esi, 0x104
jbe 0x42848d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00405780
mov rdi, rax
jmp 0x428491
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.0040ed30
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x4284e7
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x4284cb
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x4284f9
mov rcx, rdi
call fcn.004057b0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x454db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov qword [rbp + 0x60], r8
mov rcx, rsi
mov rdx, qword [rbp + 0x60]
mov r8, r9
call sub.kernel32.dll_FindResourceW
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x20], 0
jne 0x454de7
mov rcx, rbp
call fcn.00454ca0
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_LoadResource
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x28], 0
jne 0x454e06
mov rcx, rbp
call fcn.00454ca0
mov rcx, qword [rbx + 0x28]
call sub.kernel32.dll_LockResource
mov rdi, rax
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_SizeofResource
mov rcx, rbx
mov rdx, rdi
mov r8d, eax
call fcn.00454750
lea rsp, [rbp + 0x28]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x45d1a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, rsp
mov rsi, rcx
lea rdi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
cmp qword [0x0049e418], 0
jne 0x45d255
xor rcx, rcx
mov edx, 0x1000
mov r8d, 0x1000
mov r9d, 0x40
call sub.kernel32.dll_VirtualAlloc_1
mov rbx, rax
mov rax, qword [0x0049e410]
mov qword [rbx], rax
lea rcx, [0x0048f600]
lea rdx, [rbx + 8]
mov r8d, 8
call fcn.00405b50
lea rax, [0x0045d160]
mov qword [rbx + 0x10], rax
lea rsi, [rbx + 0x18]
mov byte [rsi], 0xe8
mov rcx, rsi
lea rdx, [rbx + 8]
call fcn.0045d190
mov dword [rsi + 1], eax
mov rax, qword [0x0049e418]
mov qword [rsi + 5], rax
mov qword [0x0049e418], rsi
add rsi, 0x15
mov rax, rbx
neg rax
lea rax, [rsi + rax]
cmp rax, 0xfed
jl 0x45d213
mov qword [0x0049e410], rbx
mov rax, qword [0x0049e418]
mov rsi, qword [0x0049e418]
mov rcx, qword [rsi + 5]
mov qword [0x0049e418], rcx
lea rdi, [rsi + 5]
lea rsi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
lea rsp, [rbp + 0x38]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x46b490
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x268
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], 0
nop
xor rbx, rbx
mov dword [rbp + 0x4c], 0xff
mov rcx, 0xffffffff80000002
lea rdx, [0x0046b5f4]
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x258]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x46b58f
mov rcx, qword [rbp + 0x258]
lea rdx, [0x0046b634]
xor r8, r8
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x4c]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x46b518
mov bl, 1
jmp 0x46b583
mov rcx, 0xffffffff80000002
lea rdx, [0x0046b5f4]
xor r8, r8
mov r9d, 0x20119
lea rax, [rbp + 0x250]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x46b583
mov rcx, qword [rbp + 0x250]
lea rdx, [0x0046b634]
xor r8, r8
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x4c]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x46b577
mov bl, 1
mov rcx, qword [rbp + 0x250]
call sub.advapi32.dll_RegCloseKey_1
mov rcx, qword [rbp + 0x258]
call sub.advapi32.dll_RegCloseKey_1
test bl, bl
je 0x46b5b4
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x50]
mov r8d, pe_nt_image_headers64
call fcn.0040aff0
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x38]
call fcn.0041ca50
nop
lea rcx, [rbp + 0x38]
call fcn.00409af0
mov rax, qword [rbp + 0x30]
lea rsp, [rbp + 0x268]
pop rbx
pop rbp
ret

Function at 0x46bec0
Capabilities:
Encrypt data using rc6

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rcx, qword [0x0049e4e8]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
call fcn.00405b50
mov dword [0x0049e42c], 0xb7e15163
mov ebx, 1
lea rax, [0x0049e42c]
movsxd rcx, ebx
lea rdx, [0x0049e428]
movsxd r8, ebx
mov edx, dword [rdx + r8*4]
add edx, 0x9e3779b9
mov dword [rax + rcx*4], edx
add ebx, 1
cmp ebx, 0x2c
jne 0x46bef3
nop
xor rbx, rbx
xor rsi, rsi
xor r13, r13
xor r14, r14
mov edi, 1
lea rax, [0x0049e42c]
movsxd rcx, ebx
mov ecx, dword [rax + rcx*4]
add ecx, r13d
add ecx, r14d
mov edx, 3
call fcn.0046bd10
mov r13d, eax
lea rax, [0x0049e42c]
movsxd rcx, ebx
mov dword [rax + rcx*4], r13d
movsxd rax, esi
mov ecx, dword [rsp + rax*4 + 0x20]
add ecx, r13d
add ecx, r14d
mov edx, r13d
add edx, r14d
call fcn.0046bd10
mov r14d, eax
movsxd rax, esi
mov dword [rsp + rax*4 + 0x20], r14d
mov eax, ebx
add eax, 1
mov ecx, 0x2c
cdq
idiv ecx
mov rbx, rdx
mov eax, esi
add eax, 1
mov ecx, 0x10
cdq
idiv ecx
mov rsi, rdx
add edi, 1
cmp edi, 0x85
jne 0x46bf2f
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x471400
Capabilities:
Set registry value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, rsp
mov rbx, rdx
mov rsi, r8
mov rdi, r9
call fcn.0040af20
mov rcx, rdi
mov rdx, rax
xor r8, r8
lea r9, [0x004714d8]
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x2001f
mov qword [rsp + 0x30], 0
lea rax, [rbp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x54]
mov qword [rsp + 0x40], rax
call sub.advapi32.dll_RegCreateKeyExW
mov edi, eax
test edi, edi
jne 0x4714ac
xor rdi, rdi
test rsi, rsi
je 0x47146a
mov edi, dword [rsi - 4]
mov rcx, rbx
call fcn.0040af20
mov rbx, rax
mov rcx, rsi
call fcn.0040af20
mov rcx, qword [rbp + 0x58]
mov rdx, rbx
xor r8, r8
mov r9d, 1
mov qword [rsp + 0x20], rax
add edi, 1
add edi, edi
mov dword [rsp + 0x28], edi
call sub.advapi32.dll_RegSetValueExW
mov edi, eax
mov rcx, qword [rbp + 0x58]
call sub.advapi32.dll_RegCloseKey_1
test edi, edi
je 0x4714cd
mov rcx, qword [0x0046e158]
mov dl, 1
mov r8, qword [0x00493ce0]
call fcn.00426550
mov rcx, rax
call fcn.00408d50
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x4714e0
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.0040af20
mov rcx, rbx
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
add rsp, 0x20
pop rbx
ret

Function at 0x474050
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
xor rbx, rbx
call sub.kernel32.dll_GetCommandLineW_1
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
xor rdx, rdx
xor r8, r8
call fcn.00473ec0
jmp 0x474077
add ebx, 1
lea rcx, [rsp + 0x28]
xor rdx, rdx
xor r8, r8
call fcn.00473ec0
test al, al
jne 0x474074
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x479d00
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, rsp
mov edi, ecx
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
jmp 0x479d5f
lea rcx, [rbp + 0x30]
xor rdx, rdx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 1
call sub.user32.dll_PeekMessageW
test eax, eax
je 0x479d4d
lea rcx, [rbp + 0x30]
call sub.user32.dll_TranslateMessage
lea rcx, [rbp + 0x30]
call sub.user32.dll_DispatchMessageW
mov ecx, 1
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
sub ebx, esi
cmp ebx, edi
jl 0x479d1d
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14006885c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14006864b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006864b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006864b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006864b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006864b
cmp dword [rcx + 0x84], 0xe
jbe 0x14006864b
cmp dword [rcx + 0xf8], 0
je 0x14006864b
mov ecx, ebx
call fcn.14006877c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400683d0
cmp dword [rbp + 0x20], 0
je 0x140068698
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400686a0
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400685e4
Function at 0x140009e70
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14000f880], rbx
je 0x140009ebc
cmp rax, rbx
jne 0x140009eaf
mov ebx, 1
mov esi, ebx
jmp 0x140009ec1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140009e94
mov ebx, 1
mov eax, dword [0x14000f888]
cmp eax, ebx
jne 0x140009ed7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140009f3c
mov eax, dword [0x14000f888]
test eax, eax
jne 0x140009f36
mov dword [0x14000f888], ebx
lea r15, [0x14000b540]
lea rdi, [0x14000b528]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140009f28
test eax, eax
jne 0x140009f2c
cmp qword [rdi], 0
je 0x140009f1d
mov rax, qword [rdi]
mov rcx, qword [0x14000b508]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140009efe
test eax, eax
je 0x140009f3c
mov eax, 0xff
jmp 0x14000a018
mov dword [0x14000d034], ebx
mov eax, dword [0x14000f888]
cmp eax, ebx
jne 0x140009f63
lea rdx, [0x14000b520]
lea rcx, [0x14000b510]
call sub.msvcrt.dll__initterm
mov dword [0x14000f888], 2
test esi, esi
jne 0x140009f70
xor eax, eax
xchg qword [0x14000f880], rax
cmp qword [0x14000f890], 0
je 0x140009fa4
lea rcx, [0x14000f890]
call fcn.14000a220
test eax, eax
je 0x140009fa4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000f890]
mov r9, qword [0x14000b508]
call r9
mov r8, qword [0x14000d048]
mov rdx, qword [0x14000d040]
mov ecx, dword [0x14000d038]
call fcn.140001008
mov dword [0x14000d030], eax
cmp dword [0x14000d050], 0
jne 0x140009fd4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000d034], 0
jne 0x140009fe9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000d030]
jmp 0x14000a018
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140130000
add rsp, 0x28
jmp 0x140009e70

Function at 0x14000a10c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000a158
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000a150
cmp dword [rcx + 0x3c], edx
jl 0x14000a150
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000a150
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000a158
mov rax, rdx
add rsp, 0x18
ret
Function at 0x180001500
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x180001557
mov qword [0x180055c68], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rbx
mov qword [0x180055c80], rax
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x1800013c0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x180002dc0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180055880]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x180002e0f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800564b0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180002e4d
cmp rsi, r14
jb 0x180002e45
cmp rsi, r15
jae 0x180002e45
cmp qword [rsi + 8], 0
jne 0x180003017
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180002e30
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180002ee2
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180002ed9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180002ed9
cmp dword [rsp + 0x40], 0x10000
je 0x180002f5b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180002ed9
sub rbx, rbp
cmp rbx, r14
jae 0x180002ea0
test rsi, rsi
jne 0x180002fc0
cmp rdi, r15
ja 0x180002fff
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180002fff
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180002fff
cmp dword [rsp + 0x40], 0x10000
je 0x180002f91
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180002f12
jmp 0x180002fff
test rbx, rbx
je 0x180002ed9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180002fc0
cmp rbx, r14
jae 0x180002e80
jmp 0x180002ee2
test rdi, rdi
je 0x180002fff
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180002fc0
cmp rdi, r15
jbe 0x180002ef0
jmp 0x180002fff
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180002fd0
mov rax, qword [0x1800564b0]
mov qword [rsi], rax
mov qword [0x1800564b0], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180042860
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x180003840
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x1800564ac]
mov ebx, edi
test ecx, ecx
je 0x18000397b
mov rax, qword [0x1800564a0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180003898
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180003870
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18000397b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180003be0
mov r8d, dword [0x1800564ac]
cmp ebx, r8d
jae 0x180003908
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1800564a0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180003901
mov edx, esi
mov ecx, ebx
call fcn.180003ab0
mov edi, eax
test eax, eax
jne 0x180003908
mov r8d, dword [0x1800564ac]
inc ebx
cmp ebx, r8d
jb 0x1800038d0
cmp qword [rsp + 0x20], 0
je 0x18000397b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180003967
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180003958
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180003930
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180055d08]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180003ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180055880]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1800564a0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180003b23
mov eax, 0xa
jmp 0x180003bb6
test esi, esi
je 0x180003b45
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180003b68
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180003b68
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180003b61
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180003b68
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180042860
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret