joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140095c40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x118
mov rax, qword [0x140130098]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov dword [rsp + 0x38], 0x419
movsd xmm0, qword [0x1401139d0]
movsd qword [rsp + 0x58], xmm0
lea rdx, [0x1400f1ae0]
lea rcx, [rsp + 0xe8]
call fcn.14009a810
mov dword [rsp + 0x3c], 0x735
movsd xmm0, qword [0x140115ee8]
movsd qword [rsp + 0x60], xmm0
mov byte [rsp + 0x22], 1
lea rdx, [0x1400f1bd0]
lea rcx, [rsp + 0x88]
call fcn.14009a810
mov qword [rsp + 0x40], rax
lea rdx, [0x1400f1d60]
lea rcx, [rsp + 0x68]
call fcn.14009a810
mov rcx, qword [rsp + 0x40]
mov rdx, rcx
mov rcx, rax
call fcn.140098370
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x68]
call fcn.14009b9a0
lea rcx, [rsp + 0x88]
call fcn.14009b9a0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140095d2f
mov dword [rsp + 0x24], 0x34
jmp 0x140095d24
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jle 0x140095d2f
jmp 0x140095d1a
lea rdx, [0x1400f1e40]
lea rcx, [rsp + 0xc8]
call fcn.14009a810
mov qword [rsp + 0x48], rax
lea rdx, str.ysqgcjlydxehhsnnheaohdzhvvcsshfkkhiblajrptsehmwxalmlvutdknkofhof
lea rcx, [rsp + 0xa8]
call fcn.14009a810
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
mov rcx, rax
call fcn.140098340
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0xa8]
call fcn.14009b9a0
lea rcx, [rsp + 0xc8]
call fcn.14009b9a0
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x140095db2
mov dword [rsp + 0x28], 4
jmp 0x140095da7
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jle 0x140095db2
jmp 0x140095d9d
xor eax, eax
test eax, eax
je 0x140095dd7
mov dword [rsp + 0x2c], 0x35
jmp 0x140095dcc
mov eax, dword [rsp + 0x2c]
dec eax
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jle 0x140095dd7
jmp 0x140095dc2
xor eax, eax
test eax, eax
je 0x140095dfc
mov dword [rsp + 0x30], 0x16
jmp 0x140095df1
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jle 0x140095dfc
jmp 0x140095de7
xor eax, eax
test eax, eax
je 0x140095e21
mov dword [rsp + 0x34], 0x20
jmp 0x140095e16
mov eax, dword [rsp + 0x34]
dec eax
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jle 0x140095e21
jmp 0x140095e0c
movsd xmm0, qword [0x140115ac0]
movsd qword [rsp + 0x50], xmm0
lea rcx, [rsp + 0xe8]
call fcn.14009b9a0
mov rcx, qword [rsp + 0x128]
call fcn.14009b9a0
mov rcx, qword [rsp + 0x138]
call fcn.14009b9a0
mov rcx, qword [rsp + 0x168]
call fcn.14009b9a0
movsd xmm0, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.1400a4b80
add rsp, 0x118
ret
Function at 0x140096930
Capabilities:
Get common file path
Get program files directory

Disassembly:
push rdi
sub rsp, 0x2d0
mov rax, qword [0x140130098]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
xor r9d, r9d
mov r8d, 0x26
lea rdx, [rsp + 0xb0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140096a26
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x30]
call fcn.14009ab80
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.1400967e0
lea rcx, [rsp + 0x30]
call fcn.14009b9d0
lea rdx, [rsp + 0x70]
lea rcx, [0x140130fb0]
call fcn.14009bef0
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x20]
call fcn.14009c5f0
mov rcx, rax
call fcn.14009c0b0
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14009a810
lea r8, [rsp + 0x50]
lea rdx, [0x140130fb0]
lea rcx, [rsp + 0x90]
call fcn.140098450
mov rdx, rax
lea rcx, [0x140130f70]
call fcn.14009be90
lea rcx, [rsp + 0x90]
call fcn.14009b9a0
lea rcx, [rsp + 0x50]
call fcn.14009b9a0
lea rcx, [rsp + 0x70]
call fcn.14009b9a0
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1400a4b80
add rsp, 0x2d0
pop rdi
ret

Function at 0x140096a50
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x160
mov rax, qword [0x140130098]
xor rax, rsp
mov qword [rsp + 0x150], rax
call fcn.140096930
lea rcx, [rsp + 0x110]
call fcn.140096c00
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.14009c3d0
mov rcx, rax
call fcn.14009c090
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.14009a810
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140117c70]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jl 0x140096bb8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x90]
call fcn.14009ab80
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xd0]
call fcn.1400967e0
lea rcx, [rsp + 0x90]
call fcn.14009b9d0
lea r8, [0x1400d25ec]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x130]
call fcn.140098530
lea r8, [rsp + 0xf0]
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.1400983b0
lea rcx, [rsp + 0x130]
call fcn.14009b9a0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x38]
call fcn.14009a790
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x40]
call fcn.14009a790
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
mov rcx, rax
call fcn.140096c90
lea rcx, [rsp + 0xb0]
call fcn.14009b9a0
lea rcx, [rsp + 0xd0]
call fcn.14009b9a0
lea rcx, [rsp + 0xf0]
call fcn.14009b9a0
lea rcx, [rsp + 0x110]
call fcn.14009b9a0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400a4b80
add rsp, 0x160
pop rdi
ret
Function at 0x140096d60
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov rax, qword [0x140130098]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov r8, qword [rsp + 0x100]
lea rdx, [0x1400d2304]
lea rcx, [rsp + 0xc0]
call fcn.1400985f0
mov rdx, rax
mov rcx, qword [rsp + 0x100]
call fcn.14009be90
lea rcx, [rsp + 0xc0]
call fcn.14009b9a0
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0xa0]
call fcn.1400a21f0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x70
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x70
mov dword [rsp + 0x34], 0x40
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
lea rax, str.cmd.exe
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0xa0]
call fcn.14009f820
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0xa0]
call fcn.14009b9d0
mov rcx, qword [rsp + 0x100]
call fcn.14009b9a0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400a4b80
add rsp, 0xf0
pop rdi
ret

Function at 0x140096ec0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process filename

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x50], 0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rax, 0x48
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 8], 0
jne 0x140096f4c
xor eax, eax
jmp 0x140096fa6
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call fcn.140096fc0
mov rcx, rax
call fcn.140097710
mov dword [rsp + 0x20], eax
mov ecx, 0x6391f6a9
call fcn.1400977d0
mov ecx, dword [rsp + 0x20]
cmp ecx, eax
jne 0x140096f88
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x50], rax
jmp 0x140096fa1
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jne 0x140096f2e
mov rax, qword [rsp + 0x50]
add rsp, 0x68
ret
Function at 0x140097710
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0x1505
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
test eax, eax
je 0x140097758
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x20]
add rax, 2
mov qword [rsp + 0x20], rax
mov eax, dword [rsp]
shl eax, 5
add eax, dword [rsp]
add eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x140097720
mov eax, dword [rsp]
add rsp, 0x18
ret

Function at 0x140097770
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0x1505
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
cmp dword [rsp + 8], 0
je 0x1400977ba
mov eax, dword [rsp]
shl eax, 5
add eax, dword [rsp]
add eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x140097780
mov eax, dword [rsp]
add rsp, 0x18
ret

Function at 0x140097e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x30], 0
movzx eax, word [rsp + 0x50]
mov r8d, 0xa
mov edx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140097e61
jmp 0x140097ea8
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140097e80
jmp 0x140097ea8
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x140130ee8], rax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x140130ef0], eax
add rsp, 0x48
ret
Function at 0x140097ec0
Capabilities:
Encrypt data using xtea

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax]
mov dword [rsp + 4], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax]
mov dword [rsp + 8], eax
mov dword [rsp + 0x10], 0x9e3779b9
mov eax, dword [rsp + 0x10]
imul eax, dword [rsp + 0x30]
mov dword [rsp], eax
mov dword [rsp + 0xc], 0
jmp 0x140097f24
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0xc], eax
jae 0x140097fba
mov eax, dword [rsp + 4]
shl eax, 4
mov ecx, dword [rsp + 4]
shr ecx, 5
xor eax, ecx
add eax, dword [rsp + 4]
mov ecx, dword [rsp]
shr ecx, 0xb
and ecx, 3
mov ecx, ecx
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rdx + rcx*4]
mov edx, dword [rsp]
add edx, ecx
mov ecx, edx
xor eax, ecx
mov ecx, dword [rsp + 8]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0x10]
mov ecx, dword [rsp]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 8]
shl eax, 4
mov ecx, dword [rsp + 8]
shr ecx, 5
xor eax, ecx
add eax, dword [rsp + 8]
mov ecx, dword [rsp]
and ecx, 3
mov ecx, ecx
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rdx + rcx*4]
mov edx, dword [rsp]
add edx, ecx
mov ecx, edx
xor eax, ecx
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
jmp 0x140097f1a
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov edx, dword [rsp + 4]
mov dword [rcx + rax], edx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x38]
mov edx, dword [rsp + 8]
mov dword [rcx + rax], edx
add rsp, 0x28
ret

Function at 0x14009ae70
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.14009ae20
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x14009c8d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x14009c8f2
mov rcx, qword [rsp + 0x40]
call fcn.14009ea70
jmp 0x14009c909
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x14009c909
mov rcx, qword [rsp + 0x40]
call fcn.14009e8a0
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x14009d910
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x140130098]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x68], 0
je 0x14009d94d
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14009d954
mov al, 1
jmp 0x14009da9c
call fcn.1400a0750
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
mov edx, eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x18]
mov dword [rsp + 0x38], eax
call fcn.1400a0750
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x3c]
call fcn.1400a0790
movzx eax, al
test eax, eax
je 0x14009d9a5
xor al, al
jmp 0x14009da9c
mov qword [rsp + 0x58], 0x20
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x74
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x60]
mov rdx, rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x68]
call fcn.1400a28d0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14009da0a
cmp dword [rsp + 0x30], 1
je 0x14009da16
cmp dword [rsp + 0x30], 3
je 0x14009da8a
jmp 0x14009da9a
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x14009da61
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.1400ac16c
cmp qword [rsp + 0x40], rax
je 0x14009da61
xor al, al
jmp 0x14009da9c
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14009da7b
mov dword [rsp + 0x34], 1
jmp 0x14009da83
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x14009da9c
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14009da9c
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400a4b80
add rsp, 0x98
ret
Function at 0x14009e8a0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov qword [rsp + 0x18], 0
jmp 0x14009e8c1
mov rax, qword [rsp + 0x18]
inc rax
mov qword [rsp + 0x18], rax
cmp qword [rsp + 0x18], 0xe3
jae 0x14009e945
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x18]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x14009e910
mov dword [rsp + 4], 0x9908b0df
jmp 0x14009e918
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14009e8b4
jmp 0x14009e954
mov rax, qword [rsp + 0x18]
inc rax
mov qword [rsp + 0x18], rax
cmp qword [rsp + 0x18], 0x26f
jae 0x14009e9db
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x18]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
and eax, 1
test eax, eax
je 0x14009e9a5
mov dword [rsp + 0xc], 0x9908b0df
jmp 0x14009e9ad
mov dword [rsp + 0xc], 0
mov eax, dword [rsp + 8]
shr eax, 1
xor eax, dword [rsp + 0xc]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14009e947
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x18]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x14009ea22
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x14009ea2a
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x30]
xor eax, dword [rdx + rcx + 4]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
mov dword [rcx + rdx*4 + 4], eax
mov rax, qword [rsp + 0x30]
mov dword [rax], 0
add rsp, 0x28
ret
Function at 0x14009ea70
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x14009ea91
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x14009eb15
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x14009eae0
mov dword [rsp + 4], 0x9908b0df
jmp 0x14009eae8
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14009ea84
add rsp, 0x18
ret

Function at 0x1400ab028
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 0x1400aaebb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400aaebb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400aaebb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400aaebb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400aaebb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400aaebb
cmp dword [rcx + 0xf8], 0
je 0x1400aaebb
mov ecx, ebx
call fcn.1400aaf5c
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.1400aad4c
cmp dword [rbp + 0x20], 0
je 0x1400aaf08
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400aaf10
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400aae54
Function at 0x140002490
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r13d, r13d
mov r15, rdx
mov rdi, rcx
mov r12d, r9d
mov r14d, r8d
mov esi, r13d
lea edx, [r13 + 0x41]
lea ecx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140001b3f
lea ebp, [r13 + 7]
cmp r14d, ebp
jb 0x140001a5a
mov edx, r14d
lea rcx, str.ERROR_kull_m_busylight_request_create___count_u__max_is_7__n
call fcn.14000bdc8
cmp r14d, ebp
cmovb ebp, r14d
mov r10d, r13d
mov esi, 1
test ebp, ebp
je 0x140001b09
lea r9, [r15 + 2]
movzx edx, byte [r9 - 2]
mov cl, dl
mov al, dl
or al, 0x10
and cl, 0xf0
movzx eax, al
lea ecx, [r10*8 + 2]
cmove edx, eax
lea eax, [r10*8 + 1]
mov byte [rax + rbx], dl
mov al, byte [r9 - 1]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 3]
mov al, byte [r9]
lea r9, [r9 + 8]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 4]
mov al, byte [r9 - 7]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 5]
mov al, byte [r9 - 6]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 6]
mov al, byte [r9 - 5]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 7]
mov al, byte [r9 - 4]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 8]
mov al, byte [r9 - 3]
add r10d, esi
mov byte [rcx + rbx], al
cmp r10d, ebp
jb 0x140001a72
or word [rbx + 0x3d], 0xffff
lea rdx, [rbx + 1]
mov dword [rbx + 0x39], 0xff550404
movzx ecx, r13w
mov r8d, 0x3e
movzx eax, byte [rdx]
add rdx, rsi
add cx, ax
sub r8, rsi
jne 0x140001b24
movzx eax, cx
mov byte [rbx + 0x40], cl
shr ax, 8
mov byte [rbx + 0x3f], al
test esi, esi
je 0x140001be6
jmp 0x140001bd4
mov ebp, r13d
test rdi, rdi
je 0x140001bb6
mov rcx, qword [rdi + 0x78]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001bb6
movzx r9d, word [rdi + 0x2a]
mov r8d, Ordinal_69
cmp r9d, r8d
jb 0x140001ba5
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r13
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
test eax, eax
jne 0x140001bc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rdi + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__WriteFile__0x_08x__n
mov r8d, eax
call fcn.14000bdc8
jmp 0x140001bc5
mov edx, dword [rdi + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__Size_is_not_valide__siz___u__max___u__n
call fcn.14000bdc8
jmp 0x140001bc5
mov edx, dword [rdi + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__Invalid_Device_Busy_Handle_n
call fcn.14000bdc8
and esi, ebp
test r12d, r12d
je 0x140001bd1
mov rdi, qword [rdi]
jmp 0x140001bd4
mov rdi, r13
test rdi, rdi
jne 0x140001b4c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x40]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret