joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140043df0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140043e28
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.140043e40
nop
add rsp, 0x38
ret

Function at 0x140043e40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140043e83
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, case.0x140031a9b.114
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1400bf910
ud2
Function at 0x140053060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400530da
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400530d0
cmp r11, r10
ja 0x140053171
cmp r10, rdx
ja 0x140053183
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400530d2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400530b0
jmp 0x140053147
ja 0x1400530da
mov r11, r10
cmp rax, r8
jne 0x140053082
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14005314b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140053120
mov r8, r10
sub ecx, r9d
jns 0x14005313e
jmp 0x14005314d
cmp r10, rdx
je 0x140053159
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14005314d
xor al, 1
cmp r8, rdx
jne 0x140053100
jmp 0x14005314d
xor eax, eax
jmp 0x14005314d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400f4f3b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400bf9e0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400bfeb0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400bfe30
int3

Function at 0x1400544c0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
cmp rbx, 0x20
jb 0x14005459d
mov rdx, qword [rcx + 8]
mov r9, qword [rcx + 0x18]
mov rax, rdx
mov r8, qword [rcx + 0x10]
mov r11, r9
mov r10, qword [rcx + 0x20]
rol r11, 0xc
rol rax, 1
add r11, rax
mov qword [rsp + 0x30], rsi
movabs rsi, 0x9e3779b185ebca87
mov qword [rsp + 0x38], rdi
movabs rdi, 0xc2b2ae3d27d4eb4f
mov rax, r8
rol rax, 7
add r11, rax
mov rax, r10
imul rdx, rdi
imul r8, rdi
imul r10, rdi
imul r9, rdi
mov rdi, qword [rsp + 0x38]
rol rax, 0x12
add r11, rax
rol rdx, 0x1f
imul rdx, rsi
movabs rax, 0x7a1435883d4d519d
rol r8, 0x1f
xor r11, rdx
rol r10, 0x1f
imul r11, rsi
imul r8, rsi
imul r10, rsi
sub r11, rax
rol r9, 0x1f
xor r11, r8
imul r11, rsi
imul r9, rsi
sub r11, rax
xor r11, r9
imul r11, rsi
sub r11, rax
xor r11, r10
movabs r10, 0x85ebca77c2b2ae63
imul r11, rsi
mov rsi, qword [rsp + 0x30]
add r10, r11
jmp 0x1400545ae
mov r10, qword [rcx + 0x18]
movabs rdx, 0x27d4eb2f165667c5
add r10, rdx
add r10, rbx
lea rdx, [rcx + 0x28]
mov rcx, r10
xor r9d, r9d
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400543c0
Function at 0x1400bda3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400bda86
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400bda86
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400bda86
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400bda86
cmp dword [rcx + 0x84], 0xe
jbe 0x1400bda86
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400bda88
xor al, al
add rsp, 0x28
ret
Function at 0x1400010d0
Capabilities:
Create thread
Enumerate processes
Inject dll
Inject thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x2d0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edi, edi
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400011c9
lea rcx, str.Hata:_Olu
call fcn.140001010
mov ebx, edi
xor edx, edx
lea rcx, [rsp + 0x1b0]
mov r8d, 0x104
call fcn.140002370
xor r9d, r9d
lea r8, [rsp + 0x1b0]
mov edx, 0x104
lea rcx, str.system32.dll
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
xorps xmm0, xmm0
xor eax, eax
mov word [rsp + 0x1a0], ax
movups xmmword [rsp + 0x170], xmm0
movups xmmword [rsp + 0x180], xmm0
movups xmmword [rsp + 0x190], xmm0
test ebx, ebx
je 0x14000130a
mov r8d, ebx
mov qword [rsp + 0x2e8], rsi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x140001227
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.OpenProcess___ba
lea rcx, [rsp + 0x170]
call fcn.140001070
lea rcx, [rsp + 0x170]
call fcn.140001010
jmp 0x140001302
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x130
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140001115
nop word [rax + rax]
lea rdx, str.craftrise
lea rcx, [rsp + 0x6c]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x14000121e
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400011f0
jmp 0x140001115
mov ebx, dword [rsp + 0x48]
jmp 0x140001117
mov qword [rsp + 0x2e0], rbp
lea rcx, str.kernel32.dll
mov qword [rsp + 0x2f0], r14
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.LoadLibraryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, 0xffffffffffffffff
mov r14, rax
lea rax, [rsp + 0x1b0]
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], dil
jne 0x140001270
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
lea rax, [rsp + 0x1b0]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], dil
jne 0x1400012a0
mov r9, rbx
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x1b0]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], rdi
mov r9, r14
mov dword [rsp + 0x28], edi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x2f0]
mov edi, 1
mov rbp, qword [rsp + 0x2e0]
mov rsi, qword [rsp + 0x2e8]
lea rax, str.Color_0A
test edi, edi
lea rcx, str.Color_04
cmovne rcx, rax
call fcn.1400058bc
lea rax, str.JONKER_FOR_CRAFTRISE_ENABLED
test edi, edi
lea rcx, str.CRAFTRISEYI_AC_
cmovne rcx, rax
call fcn.140001010
call fcn.140003508
xor eax, eax
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140001380
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2d0
pop rdi
ret
Function at 0x140001d74
Capabilities:
Parse pe header

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

Function at 0x1400066c4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400064f0

Function at 0x140014790
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400147b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400147b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x40224e
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x0042b200]
test rax, rax
je 0x402261
call rax
mov ecx, 2
call qword [fcn.00417900]
mov r8d, 0xe
mov edx, 1
lea rcx, str.out_of_memory_n
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x407620
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9d, 0x40
mov r8d, 0x1000
mov rbx, rdx
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_memmove
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov r9, rax
call qword [sym.imp.CRYPT32.dll_CryptEnumOIDInfo]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x40768f
Capabilities:
Execute shellcode via windows callback function

Disassembly:
mov rax, qword [0x00424bc0]
movsxd rdx, dword [rax]
mov rax, qword [0x00424bb0]
mov rcx, qword [rax]
jmp fcn.00407620
sub rsp, 0x28
call fcn.0040767a
nop
add rsp, 0x28
jmp 0x40768f

Function at 0x4076aa
Capabilities:
Execute shellcode via windows callback function

Disassembly:
mov rax, qword [0x00424bc0]
movsxd rdx, dword [rax]
mov rax, qword [0x00424bb0]
mov rcx, qword [rax]
jmp fcn.00407620
sub rsp, 0x28
call fcn.0040767a
nop
add rsp, 0x28
jmp 0x40768f
Function at 0x411300
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0042b844]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x411488
mov rax, qword [0x0042b848]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x41134c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4113d5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x411330
mov rcx, rbx
call fcn.00411fa0
test rax, rax
mov r12, rax
je 0x4114bd
mov rax, qword [0x0042b848]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004120d0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0042b848]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4114a0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4113ce
sub eax, 0x40
and eax, 0xffffffbf
jne 0x411430
add dword [0x0042b844], 1
cmp edi, 8
jae 0x411403
test dil, 4
jne 0x411474
test edi, edi
je 0x4113f8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x41148f
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 0x4113f8
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 0x41141c
jmp 0x4113f8
add rsi, qword [0x0042b848]
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 0x4113ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0041f210
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4113f8
xor esi, esi
jmp 0x411357
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4113f8
mov rax, qword [0x0042b848]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.0041f210
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0041f210
nop
nop dword [rax]

Function at 0x411c10
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0042bb20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0042bb00]
test rbx, rbx
je 0x411c64
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 0x411c5b
test rsi, rsi
je 0x411c5b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x411c40
lea rcx, [0x0042bb20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x411fa0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00424a70]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x41200d
mov rcx, r8
call fcn.00411e80
test eax, eax
je 0x41200d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x41200d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x412004
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x41200f
add rax, 0x28
cmp rax, r9
jne 0x411ff0
xor eax, eax
add rsp, 0x28
ret

Function at 0x418120
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x00420508], eax
je 0x41813a
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x418640
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x418663
call fcn.0041b380
cmp eax, 1
je 0x41866e
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
lea rbx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x4186e5
mov eax, 0x28
jmp 0x4186ca
add rax, 1
cmp rax, 0x6b
je 0x4186d7
cmp byte [rbx + rax], 0
mov edx, eax
jne 0x4186c0
cmp eax, 0x6a
jne 0x4186ea
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
jmp 0x4186d7
Function at 0x418790
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x0042c600], 1
je 0x4187a6
call fcn.00418700
mov ecx, dword [0x00420508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x4187d0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.00418580
cmp qword [0x0042f050], 0
mov rsi, rax
je 0x4187ba
test rax, rax
je 0x4187ba
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rsi + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x38], 0xffffffffffffffff
mov qword [rsi + 0x30], rax
call fcn.00418640
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rbx
mov dword [rsp + 0x30], 2
mov r8, rbp
mov rdx, rdi
mov dword [rsp + 0x28], 0
lea r9, [rsi + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4188c0
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rsi
mov ecx, dword [0x00420508]
mov dword [rsi + 0xbc], 0
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4188c0
mov rbx, rsi
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]

Function at 0x41f210
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00417900
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00417900
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x1400f62fc
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402e1540]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400f6346
call fcn.1400dc330
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400dc350
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400d8558
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400c0640
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400f6351
lea eax, [rbx + 1]
jmp 0x1400f6333
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400f6331
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400f6333

Function at 0x1406de058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406de1df
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 0x1406de089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406de06f
add dl, dl
jne 0x1406de096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406de0f6
xor eax, eax
add dl, dl
jne 0x1406de0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406de1ad
add dl, dl
jne 0x1406de0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406de0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406de0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406de0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406de0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406de07e
mov eax, 1
add dl, dl
jne 0x1406de106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406de113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406de0fb
sub eax, ebx
mov ebx, 1
jne 0x1406de14c
mov ecx, 1
add dl, dl
jne 0x1406de12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406de13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406de123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406de07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406de168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406de175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406de15d
cmp eax, 0x7d00
jae 0x1406de19b
cmp eax, 0x500
jb 0x1406de196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406de07e
cmp eax, 0x7f
ja 0x1406de19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406de07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406de1d2
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 0x1406de07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400420fc
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov eax, 0x10090
call fcn.140043d90
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1400610b0]
xor rax, rsp
mov qword [rsp + 0x10080], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x24], ebp
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x20]
mov rdx, rdi
call fcn.140041c2c
mov edx, dword [rsp + 0x24]
shr rdx, 1
lea r12d, [rbp + 7]
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], rbp
mov word [rsp + 0x60], bp
xor r8d, r8d
lea rcx, [rsp + 0x58]
call fcn.140005a8c
nop
mov r9d, dword [rsp + 0x20]
lea r8d, [rbp + 1]
mov rdx, rdi
mov rcx, rbx
call fcn.140041f3c
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r8, qword [rsp + 0x60]
mov r9d, dword [rsp + 0x24]
mov rdx, rdi
mov rcx, rbx
call fcn.140041d5c
or rdi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x70]
cmp rcx, rbp
je 0x140042211
lea rbx, [rcx - 1]
cmp rcx, rbx
ja 0x1400421d2
call fcn.1400404a4
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rax, qword [rsp + 0x60]
cmp word [rax + rbx*2], bp
jne 0x140042211
lea rdx, [rcx - 1]
cmp rdx, rcx
ja 0x140042201
mov r8, rdi
lea rcx, [rsp + 0x58]
call fcn.140004cf0
jmp 0x140042211
xor r8d, r8d
sub rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.140005c68
cmp dword [rsp + 0x20], 2
jne 0x14004228b
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
mov r8d, 0x8000
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea r8d, [rax - 1]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rbp
mov word [rsp + 0x30], bp
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x28]
call fcn.140004b80
nop
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x58]
call fcn.1400044d0
nop
cmp qword [rsp + 0x48], 8
jb 0x14004228b
mov rcx, qword [rsp + 0x30]
call fcn.14001bf18
mov qword [rsi + 0x20], r12
mov qword [rsi + 0x18], rbp
mov word [rsi + 8], bp
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.1400044d0
nop
cmp qword [rsp + 0x78], 8
jb 0x1400422bd
mov rcx, qword [rsp + 0x60]
call fcn.14001bf18
mov rax, rsi
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14002c2c0
add rsp, 0x10090
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140f729c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f729ca
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 0x140f729f3
pop rbp
sub rbp, 0x33
sub rbp, 0xf729c0
sub rsp, 0x20
sub edi, esi
add byte [rax - 0x7f], cl
in al, dx
and byte [rax], al
add byte [rax], al
jmp 0x140f72a12
mov rax, 0xf729c0
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x70757c6a
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f72a31
jmp 0x140f72a48
and ah, bl
and ecx, 0xffffffe3
push rsi
push 0x6a
push 0x22
jmp 0x140f729ff