joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1503ec0f8
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov r9d, dword [rcx + 4]
lea r14, [0x150000000]
mov rbx, rcx
mov eax, r9d
shr eax, 0x10
mov r8d, r9d
shr r8, 0x18
mov rdi, rdx
movzx edx, al
mov esi, 8
mov eax, dword [rcx]
shr rax, 0x18
mov r10, qword [r14 + r8*8 + 0x16d890]
xor r10, qword [r14 + rdx*8 + 0x16d090]
xor r10, qword [r14 + rax*8 + 0x16b890]
mov eax, r9d
shr eax, 8
movzx ecx, al
mov eax, dword [rbx]
shr eax, 0x10
xor r10, qword [r14 + rcx*8 + 0x16c890]
movzx ecx, al
mov eax, dword [rbx]
shr eax, 8
xor r10, qword [r14 + rcx*8 + 0x16b090]
movzx ecx, al
movzx eax, r9b
xor r10, qword [r14 + rcx*8 + 0x16a890]
xor r10, qword [r14 + rax*8 + 0x16c090]
movzx eax, byte [rbx]
xor r10, qword [r14 + rax*8 + 0x16a090]
mov r11, r10
shr r11, 0x20
mov r9d, r10d
mov eax, r10d
xor eax, dword [rdi + 4]
mov r8d, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
ror r9d, 4
xor r9d, dword [rdi]
lea rdi, [rdi + 0x10]
shr rcx, 0x18
and ecx, 0x3f
mov edx, dword [r14 + rcx*4 + 0x169860]
xor edx, dword [r14 + rax*4 + 0x165400]
mov eax, r8d
shr rax, 8
and r8d, 0x3f
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x169960]
mov eax, r9d
shr rax, 0x18
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x165200]
mov eax, r9d
shr rax, 0x10
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x169650]
mov eax, r9d
shr rax, 8
and r9d, 0x3f
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x16e0d0]
xor edx, dword [r14 + r8*4 + 0x165500]
xor edx, dword [r14 + r9*4 + 0x169750]
xor r11d, edx
mov r9d, r11d
mov eax, r11d
xor eax, dword [rdi - 4]
mov r8d, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
ror r9d, 4
xor r9d, dword [rdi - 8]
shr rcx, 0x18
and ecx, 0x3f
mov edx, dword [r14 + rcx*4 + 0x169860]
xor edx, dword [r14 + rax*4 + 0x165400]
mov eax, r8d
shr rax, 8
and r8d, 0x3f
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x169960]
mov eax, r9d
shr rax, 0x18
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x165200]
mov eax, r9d
shr rax, 0x10
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x169650]
mov eax, r9d
shr rax, 8
and r9d, 0x3f
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x16e0d0]
xor edx, dword [r14 + r8*4 + 0x165500]
xor edx, dword [r14 + r9*4 + 0x169750]
xor r10d, edx
sub rsi, 1
jne 0x1503ec19e
mov rsi, qword [rsp + 0x10]
mov eax, r10d
mov rdi, qword [rsp + 0x18]
shr eax, 0x10
movzx ecx, al
mov edx, r10d
shr rdx, 0x18
mov eax, r11d
shr rax, 0x18
mov r8, qword [r14 + rdx*8 + 0x168e50]
xor r8, qword [r14 + rcx*8 + 0x168650]
xor r8, qword [r14 + rax*8 + 0x166e50]
mov eax, r10d
shr eax, 8
movzx ecx, al
mov eax, r11d
shr eax, 0x10
xor r8, qword [r14 + rcx*8 + 0x167e50]
movzx ecx, al
mov eax, r11d
shr eax, 8
xor r8, qword [r14 + rcx*8 + 0x166650]
movzx ecx, al
movzx eax, r10b
xor r8, qword [r14 + rcx*8 + 0x165e50]
xor r8, qword [r14 + rax*8 + 0x167650]
movzx eax, r11b
xor r8, qword [r14 + rax*8 + 0x165650]
mov r14, qword [rsp + 0x20]
mov dword [rbx], r8d
shr r8, 0x20
mov dword [rbx + 4], r8d
mov rbx, qword [rsp + 8]
ret
Function at 0x1503ed658
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov esi, r8d
mov rdi, rdx
mov rbp, rcx
test rcx, rcx
je 0x1503ed796
test rdx, rdx
je 0x1503ed796
test rbx, rbx
je 0x1503ed796
mov ecx, dword [r9]
call fcn.150359c40
test eax, eax
jne 0x1503ed79b
mov r8d, dword [r9 + 4]
lea eax, [r8 - 1]
cmp eax, 0x8f
ja 0x1503ed796
xor edx, edx
mov eax, esi
div r8d
test edx, edx
jne 0x1503ed796
movsxd rax, dword [r9]
lea r12, [0x1500454b0]
lea rcx, [rax + rax*2]
shl rcx, 6
mov r10, qword [rcx + r12 + 0x60]
test r10, r10
je 0x1503ed712
xor edx, edx
lea rcx, [r9 + 0x98]
mov eax, esi
mov qword [rsp + 0x20], rcx
div r8d
add r9, 8
mov rdx, rdi
mov r8d, eax
mov rcx, rbp
call r10
jmp 0x1503ed79b
test esi, esi
je 0x1503ed792
xor edx, edx
test r8d, r8d
jle 0x1503ed738
mov r8, rbp
lea rcx, [rbx + 8]
sub r8, rbx
mov al, byte [r8 + rcx - 8]
inc edx
xor byte [rcx], al
inc rcx
cmp edx, dword [rbx + 4]
jl 0x1503ed727
movsxd rax, dword [rbx]
lea r8, [rbx + 0x98]
mov rdx, rdi
lea rcx, [rbx + 8]
lea r9, [rax + rax*2]
shl r9, 6
call qword [r9 + r12 + 0x28]
test eax, eax
jne 0x1503ed79b
mov r8d, dword [rbx + 4]
xor r9d, r9d
test r8d, r8d
jle 0x1503ed784
mov rcx, rbx
mov rdx, rdi
sub rcx, rdi
mov al, byte [rdx]
inc r9d
mov byte [rcx + rdx + 8], al
inc rdx
mov r8d, dword [rbx + 4]
cmp r9d, r8d
jl 0x1503ed76f
movsxd rax, r8d
add rdi, rax
add rbp, rax
sub esi, r8d
jne 0x1503ed716
xor eax, eax
jmp 0x1503ed79b
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x1503ee5bc
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x150012098]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, r9
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
test rdx, rdx
je 0x1503ee6fb
test rcx, rcx
je 0x1503ee6fb
test rbx, rbx
je 0x1503ee6fb
mov ecx, dword [r9]
call fcn.150359c40
test eax, eax
jne 0x1503ee700
mov r11d, dword [r9 + 4]
lea eax, [r11 - 1]
cmp eax, 0x8f
ja 0x1503ee6fb
cmp r11d, 0x10
jg 0x1503ee6fb
xor edx, edx
mov eax, r8d
div r11d
test edx, edx
jne 0x1503ee6fb
movsxd rcx, dword [r9]
lea r15, [0x1500454b0]
lea r8, [rcx + rcx*2]
shl r8, 6
mov r14, qword [r8 + r15 + 0x68]
test r14, r14
je 0x1503ee680
xor edx, edx
lea r10, [r9 + 0x98]
mov eax, esi
mov qword [rsp + 0x20], r10
div r11d
add r9, 8
mov rdx, rbp
mov r8d, eax
mov rcx, rdi
call r14
jmp 0x1503ee700
test esi, esi
je 0x1503ee6f7
movsxd rax, dword [rbx]
lea r8, [rbx + 0x98]
lea rdx, [rsp + 0x30]
mov rcx, rdi
lea r9, [rax + rax*2]
shl r9, 6
call qword [r9 + r15 + gethostbyname]
test eax, eax
jne 0x1503ee700
mov ecx, dword [rbx + 4]
xor r11d, r11d
test ecx, ecx
jle 0x1503ee6ea
lea r8, [rsp + 0x30]
mov r9, rdi
sub r8, rbx
lea rdx, [rbx + 8]
sub r9, rbx
mov r10, rbp
sub r10, rbx
mov cl, byte [r8 + rdx - 8]
inc r11d
xor cl, byte [rdx]
mov al, byte [r9 + rdx - 8]
mov byte [rdx], al
mov byte [r10 + rdx - 8], cl
inc rdx
mov ecx, dword [rbx + 4]
cmp r11d, ecx
jl 0x1503ee6c9
movsxd rax, ecx
add rdi, rax
add rbp, rax
sub esi, ecx
jne 0x1503ee684
xor eax, eax
jmp 0x1503ee700
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.15040aca0
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1503eedac
Capabilities:
Hash data using sha512

Disassembly:
test rcx, rcx
jne 0x1503eedb5
lea eax, [rcx + 0x10]
ret
and dword [rcx + 0x48], 0
movabs rax, 0x6a09e667f3bcc908
and qword [rcx], 0
mov qword [rcx + 8], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x10], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x18], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x20], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x28], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x30], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x38], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x40], rax
xor eax, eax
ret
Function at 0x1503f026c
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov ebx, edx
mov rdi, rcx
test rcx, rcx
jne 0x1503f029e
lea eax, [rcx + 0x10]
jmp 0x1503f0382
and qword [rsp + 0x70], 0
lea r8, [0x15026c728]
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000020
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1503f02ee
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 0xf0000028
lea r8, [0x15026c728]
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1503f031e
mov rcx, qword [rsp + 0x70]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x70]
xor edx, edx
cmp eax, 1
jne 0x1503f0318
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
je 0x1503f031e
mov eax, ebx
jmp 0x1503f0382
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor r13d, r13d
xor ebp, ebp
mov r15d, ebx
test ebx, ebx
je 0x1503f0380
dec r15d
xor esi, esi
lea r14d, [rsi + 8]
dec r14d
call fcn.150441348
mov r12d, eax
jmp 0x1503f0343
xor ebp, 1
call fcn.150441348
cmp r12d, eax
je 0x1503f0340
call fcn.150441348
mov r12d, eax
jmp 0x1503f035b
xor r13d, 1
call fcn.150441348
cmp r12d, eax
je 0x1503f0357
cmp ebp, r13d
je 0x1503f0336
add esi, esi
or esi, ebp
test r14d, r14d
jne 0x1503f0333
mov byte [rdi], sil
inc rdi
test r15d, r15d
jne 0x1503f032a
jmp 0x1503f0314
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1503f8bac
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x150012098]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov r15d, edx
mov rdi, rcx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
xor edx, edx
mov r14d, r8d
mov esi, ebx
lea ecx, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1503f8d4b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1503f8ced
lea esi, [rbx + 1]
cmp dword [rsp + 0x20], 0x10
jb 0x1503f8ca8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1503f8ca8
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1503f8ca8
mov rdx, qword [rdi]
test rdx, rdx
jne 0x1503f8c6a
mov rcx, qword [0x150047248]
mov r8d, 0x200
mov dword [rdi + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x1503f8cd1
jmp 0x1503f8c9b
mov eax, dword [rdi + 8]
cmp dword [rdi + 0xc], eax
jb 0x1503f8c9b
mov rcx, qword [0x150047248]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rdi + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1503f8cd1
mov qword [rdi], rax
mov ecx, dword [rdi + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rdi + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1503f8c18
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1503f8ced
mov esi, ebx
cmp qword [rdi], rbx
je 0x1503f8ced
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x150047248]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1503f8d4b
cmp qword [rdi], rbx
je 0x1503f8d50
mov esi, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x1503f8d50
mov r8, qword [rdi]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x1503f8d42
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, r14d
mov edx, r15d
mov rcx, rbp
call fcn.1503f8a1c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rdi + 0xc]
jb 0x1503f8d06
jmp 0x1503f8d50
mov ebx, 9
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.15040aca0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1503f8d74
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x1503f8dd8
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x1503f8dc6
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1503f8dbf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x1503f8d93
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x150047248]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1503f8de8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x15007e6a0]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x1503f8e1e
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x40]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1503f8e54
mov eax, 0xa
jmp 0x1503f8ee3
test esi, esi
je 0x1503f8e76
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1503f8e97
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1503f8e97
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1503f8e91
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1503f8e97
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1503f9294
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x1503f92ab
cmp r8b, 0x90
je 0x1503f92ab
cmp r8b, 0xcc
jne 0x1503f92cd
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x1503f92c9
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x1503f92cd
add edx, r10d
cmp edx, r9d
jb 0x1503f92b9
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x1503f9634
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x1503f967e
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x15007e690]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
test rbx, rbx
je 0x1503f96bc
cmp rbx, r14
jb 0x1503f96b7
cmp rbx, r12
jae 0x1503f96b7
cmp qword [rbx + 8], rsi
jne 0x1503f9813
mov rbx, qword [rbx]
jmp 0x1503f969e
mov r15, rdi
cmp rdi, r14
jb 0x1503f9740
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
sub r15, r13
cmp r15, r14
jb 0x1503f9737
mov r8d, gethostbyname
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1503f9737
cmp dword [rbp - 0x10], 0x10000
je 0x1503f9707
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x1503f9737
jmp 0x1503f96d3
test r15, r15
je 0x1503f9737
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1503f97d8
cmp r15, r14
jae 0x1503f96c4
test rbx, rbx
jne 0x1503f97d8
cmp rdi, r12
ja 0x1503f9813
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x1503f9813
mov r8d, gethostbyname
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1503f9813
cmp dword [rbp - 0x10], 0x10000
je 0x1503f97ae
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jmp 0x1503f9767
test rdi, rdi
je 0x1503f9813
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x1503f973a
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x1503f97e4
mov rax, qword [0x15007e690]
mov qword [rbx], rax
mov qword [0x15007e690], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x150407310
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [0x15007de48]
test rcx, rcx
jne 0x150407389
and qword [rax + 0x18], rcx
lea r9d, [rcx + 1]
lea rcx, [rax + 0x18]
mov dword [rax - 0x18], 0xf0000020
lea r8, [0x150270250]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x15040737d
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 0xf0000028
lea r8, [0x150270250]
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x15040737d
or eax, 0xffffffff
jmp 0x15040739a
mov rcx, qword [rsp + 0x50]
mov qword [0x15007de48], rcx
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
dec eax
neg eax
sbb eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x150409b88
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, [0x15009e9d0]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x150409c0c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x15009e8d0]
cmp byte [rcx + rax], 0
je 0x150409c0c
dec r8
sub rdx, 1
jne 0x150409bf2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x15040bd84
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x150424dfb
call fcn.150425068
mov dword [rax], SafeArrayUnaccessData
call fcn.150419d04
xor eax, eax
jmp 0x150424e89
mov rdx, r9
mov rcx, r8
call fcn.150424d60
mov rbx, rax
test rax, rax
je 0x150424e86
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x150424c8c]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x150424e73
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.150424fdc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x150424e5a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x150424e69
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.150430d60
jmp 0x150424e86
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x150424e83
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1504256fc
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x150425567
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x150425567
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x150425567
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x150425567
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x150425567
cmp dword [rcx + 0x84], 0xe
jbe 0x150425567
cmp dword [rcx + 0xf8], 0
je 0x150425567
mov ecx, ebx
call fcn.150425618
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1504253f4
nop
cmp dword [rbp + 0x20], 0
je 0x1504255b5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1504255c0
int3
xor r8d, r8d
xor edx, edx
jmp 0x1504254f8
Function at 0x1504270e8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x15003b050]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x15042713f
cmp word [rdx], r13w
jne 0x15042713f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x150427144
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x150427269
mov r11d, SafeArrayGetDim
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x15042728a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x15042717d
mov rdx, r9
mov word [rbx], cx
jmp 0x1504271a4
cmp r9, r8
jae 0x1504271b4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x15042715e
jmp 0x150427269
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x15042725e
cmp dword [rsp + 0x80], esi
je 0x15042725e
lea r8, [0x15003b050]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x150427236
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x150427206
mov word [rbx], r13w
jmp 0x150427266
mov ecx, SafeArrayGetDim
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x150427213
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x150427266
cmp word [rsp + 0x70], r13w
jne 0x150427243
cmp rbx, r14
je 0x150427200
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.150436944
cmp word [rsp + 0x70], r13w
je 0x150427269
mov ecx, SafeArrayGetDim
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x15003b050]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x150427263
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x150427269