joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004044b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004044c0]
mov dword [rax], 1
mov rax, qword [0x004044d0]
mov dword [rax], 1
mov rax, qword [0x004044a0]
mov dword [rax], 1
mov rax, qword [0x00404390]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00404490]
mov dword [0x0040700c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00404450]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00404340]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401560
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
call dbg.__main
movabs rax, 0x30207269646b6d
mov qword [rbp - 0x38], rax
mov dword [rbp - 4], 0x41
jmp 0x4015a8
mov eax, dword [rbp - 4]
mov edx, dword [rbp - 4]
mov dword [rbp + rax*4 - 0x30], edx
mov eax, dword [rbp - 4]
mov eax, dword [rbp + rax*4 - 0x30]
mov byte [rbp - 0x32], al
lea rax, [rbp - 0x38]
mov rcx, rax
call sym.system
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0x4a
jbe 0x401584
mov eax, 0
add rsp, 0x60
pop rbp
ret

Function at 0x401a70
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x14000bbf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14000bc70
cmp r11, r10
ja 0x14000bce7
cmp r10, rdx
ja 0x14000bcf9
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x14000bc72
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000bc50
jmp 0x14000bcd4
ja 0x14000bc7a
mov r11, r10
cmp rax, r8
jne 0x14000bc1e
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14000bcb0
mov rdi, r8
sub ecx, edx
jns 0x14000bccb
jmp 0x14000bcd6
cmp r8, rsi
je 0x14000bd08
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000bcd6
xor al, 1
cmp rdi, rsi
jne 0x14000bc90
jmp 0x14000bcd6
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14002f7f0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002f530
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14002f800
int3
Function at 0x140011010
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x140011035
cmp rax, rcx
je 0x14001103b
cmp rdx, 4
jae 0x14001103f
xor eax, eax
xor r8d, r8d
jmp 0x1400110d0
pop rbp
jmp fcn.140009540
xor eax, eax
pop rbp
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140031480]
movdqa xmm3, xmmword [0x140031490]
pxor xmm1, xmm1
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140011060
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1400110e7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1400110d0
pop rbp
ret
Function at 0x1400196f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
movzx eax, byte [rdx + 0x3a]
test al, al
setne r8b
cmp r9b, 1
ja 0x140019776
test al, al
jne 0x14001974f
movzx esi, byte [rdx + 0x10]
lea eax, [rsi - 5]
cmp al, 1
ja 0x14001974f
invalid
mov r10, qword [rdx]
xor r8d, r8d
xor eax, eax

Function at 0x14001fab4
Capabilities:
Parse pe header

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

Function at 0x140024368
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140024164
Function at 0x14002742c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14002745c
xor eax, eax
jmp 0x14002751f
mov rbp, rbx
cmp word [rax], si
je 0x140027481
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140027468
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140027464
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14002734c
movsxd r14, eax
test eax, eax
jne 0x1400274bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140027455
mov rcx, r14
call fcn.140028308
mov rdi, rax
test rax, rax
jne 0x1400274d8
xor ecx, ecx
call fcn.1400259ac
jmp 0x1400274b4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14002734c
test eax, eax
jne 0x140027509
mov rcx, rdi
call fcn.1400259ac
jmp 0x140027513
xor ecx, ecx
call fcn.1400259ac
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14002aa10
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14002641c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002aa9a
cmp byte [rbp - 0x21], r15b
je 0x14002aa95
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002aad0
call fcn.140028b18
test eax, eax
jne 0x14002aabc
cmp byte [rbp - 0x21], r15b
je 0x14002aab4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002aad0
cmp byte [rbp - 0x21], r15b
je 0x14002aacd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400259fc
test eax, eax
jne 0x14002ab70
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002641c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002ab0f
cmp byte [rbp - 0x21], r15b
je 0x14002ab44
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002ab44
call fcn.140028b18
test eax, eax
jne 0x14002ab30
cmp byte [rbp - 0x21], r15b
je 0x14002ab29
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002ab44
cmp byte [rbp - 0x21], r15b
je 0x14002ab41
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400259fc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002ab70
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002ab73
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002ab81
mov rcx, rdi
call fcn.1400259ac
cmp byte [rbp + 0x3f], r15b
je 0x14002ab90
mov rcx, qword [rbp + 0x27]
call fcn.1400259ac
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14002da70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002da98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002da98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140160a68
Capabilities:
Encode data using xor

Disassembly:
not byte [rsp + 0xf]
lea rsp, [rsp + 0x10]
je 0x14015c697
push 0xffffffffb430708d
shr word [rsp + 3], 0xa5
mov qword [rsp], r10
push rdi
mov edi, 0x94123db5
shr rdi, 0x6d
lea r10, [0x140160238]
test rdx, rdx
jmp 0x14015c60e
Function at 0x141074058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1410741df
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 0x141074089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14107406f
add dl, dl
jne 0x141074096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410740f6
xor eax, eax
add dl, dl
jne 0x1410740a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410741ad
add dl, dl
jne 0x1410740b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410740c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410740d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410740dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410740ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14107407e
mov eax, 1
add dl, dl
jne 0x141074106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141074113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410740fb
sub eax, ebx
mov ebx, 1
jne 0x14107414c
mov ecx, 1
add dl, dl
jne 0x14107412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14107413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141074123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14107407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141074168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141074175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14107415d
cmp eax, 0x7d00
jae 0x14107419b
cmp eax, 0x500
jb 0x141074196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14107407e
cmp eax, 0x7f
ja 0x14107419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14107407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410741d2
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 0x14107407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001730
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x13c0
call fcn.14000be20
sub rsp, rax
mov rax, qword [0x140039080]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
mov ebp, r8d
mov esi, edx
call fcn.14000a6d4
mov dword [rsp + 0x24], eax
mov r9d, 1
mov dword [rsp + 0x13a4], 0xffffffff
nop
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, r9d
mov dword [rsp + r9*4 + 0x24], eax
inc r9
cmp r9, 0x270
jb 0x140001780
mov r8d, 0x270
mov dword [rsp + 0x20], r8d
nop dword [rax]
cmp esi, 0xffffffff
jne 0x140001930
cmp r8d, 0x270
jne 0x140001813
lea r8, [rsp + 0x28]
mov r9d, 0x270
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x1400017d0
mov r8d, dword [rsp + 0x20]
jmp 0x1400018f2
cmp r8d, 0x4e0
jb 0x1400018f2
xor r8d, r8d
mov eax, dword [rsp + r8*4 + 0x9e4]
mov edx, eax
xor edx, dword [rsp + r8*4 + 0x9e8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rsp + r8*4 + 0x1018]
xor ecx, edx
mov dword [rsp + r8*4 + 0x24], ecx
inc r8
cmp r8, 0xe3
jb 0x140001823
mov r8d, 0xe3
nop dword [rax]
mov eax, dword [rsp + r8*4 + 0x9e4]
mov edx, eax
xor edx, dword [rsp + r8*4 + 0x9e8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rsp + r8*4 - 0x368]
xor ecx, edx
mov dword [rsp + r8*4 + 0x24], ecx
inc r8
cmp r8, 0x26f
jb 0x140001870
mov edx, dword [rsp + 0x13a0]
mov eax, dword [rsp + 0x24]
and edx, 0x80000000
btr eax, 0x1f
or edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, edx
xor ecx, dword [rsp + 0x654]
xor r8d, r8d
mov dword [rsp + 0x9e0], ecx
mov dword [rsp + 0x20], r8d
mov eax, r8d
inc r8d
mov edx, dword [rsp + rax*4 + 0x24]
mov eax, edx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
xor edx, eax
mov dword [rsp + 0x20], r8d
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
jmp 0x14000197d
lea rcx, [rsp + 0x20]
lea ebx, [rsi + 1]
call fcn.140004bb0
mov ecx, eax
mov edi, ebx
imul rcx, rdi
cmp ecx, ebx
jae 0x140001974
mov eax, ebx
xor edx, edx
neg eax
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x140001974
nop word [rax + rax]
lea rcx, [rsp + 0x20]
call fcn.140004bb0
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x140001960
mov r8d, dword [rsp + 0x20]
shr rcx, 0x20
cmp ecx, ebp
jne 0x140001989
test esi, esi
jne 0x1400017b0
mov eax, ecx
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.14000b700
lea r11, [rsp + 0x13c0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400019c0
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm7
mov rax, qword [0x140039080]
xor rax, rsp
mov qword [rsp + 0x58], rax
xorps xmm7, xmm7
mov qword [r11 + 8], rbp
mov eax, edx
xor edi, edi
movzx ebp, cl
lea rcx, [r11 - 0x60]
mov qword [r11 + 0x18], r14
cvtsi2ss xmm7, rax
lea ebx, [rdi + 1]
movaps xmm6, xmm7
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14d, dword [rsp + 0x48]
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetLogicalProcessorInformation]
test eax, eax
jne 0x140001aa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140001aa3
mov ecx, dword [rsp + 0x20]
mov qword [rsp + 0x98], rsi
call fcn.140012618
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLogicalProcessorInformation]
test eax, eax
je 0x140001a8e
mov edx, dword [rsp + 0x20]
shr edx, 5
test edx, edx
je 0x140001a8e
lea rcx, [rsi + 0x10]
nop dword [rax]
cmp dword [rcx - 8], 2
jne 0x140001a85
cmp byte [rcx], 3
jne 0x140001a85
mov eax, dword [rcx + 4]
shr rax, 0xa
add rdi, rax
add rcx, 0x20
sub rdx, rbx
jne 0x140001a70
test rsi, rsi
je 0x140001a9b
mov rcx, rsi
call fcn.140012180
mov rsi, qword [rsp + 0x98]
movd xmm0, ebp
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
cvtsi2ss xmm1, r14
divss xmm0, dword [0x140033860]
mulss xmm0, xmm1
call fcn.140026374
mov r14, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cvttss2si rcx, xmm0
cmp ecx, ebx
jbe 0x140001b8d
xorps xmm1, xmm1
test rdi, rdi
js 0x140001aef
cvtsi2ss xmm1, rdi
jmp 0x140001b03
mov rax, rdi
and edi, ebx
shr rax, 1
or rax, rdi
cvtsi2ss xmm1, rax
addss xmm1, xmm1
lea eax, [rcx - 1]
cmp eax, 8
jb 0x140001b78
nop dword [rax + rax]
movaps xmm0, xmm7
addss xmm0, xmm6
movaps xmm6, xmm0
comiss xmm6, xmm1
ja 0x140001b8d
addss xmm6, xmm7
comiss xmm6, xmm1
ja 0x140001bd5
addss xmm6, xmm7
comiss xmm6, xmm1
ja 0x140001bd0
addss xmm6, xmm7
comiss xmm6, xmm1
ja 0x140001bcb
addss xmm6, xmm7
comiss xmm6, xmm1
ja 0x140001bc6
addss xmm6, xmm7
comiss xmm6, xmm1
ja 0x140001bc1
addss xmm6, xmm7
comiss xmm6, xmm1
ja 0x140001bbc
addss xmm6, xmm7
comiss xmm6, xmm1
ja 0x140001bb7
add ebx, 8
lea eax, [rcx - 7]
cmp ebx, eax
jb 0x140001b10
cmp ebx, ecx
jae 0x140001b8d
movaps xmm0, xmm7
addss xmm0, xmm6
comiss xmm0, xmm1
movaps xmm6, xmm0
ja 0x140001b8d
inc ebx
cmp ebx, ecx
jb 0x140001b78
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000b700
mov rbx, qword [rsp + 0xa8]
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x60]
add rsp, 0x80
pop rdi
ret
add ebx, 7
jmp 0x140001b8d
add ebx, 6
jmp 0x140001b8d
add ebx, 5
jmp 0x140001b8d
add ebx, 4
jmp 0x140001b8d
add ebx, 3
jmp 0x140001b8d
add ebx, 2
jmp 0x140001b8d
inc ebx
jmp 0x140001b8d
Function at 0x140004bb0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140004c11
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140004bd0
mov ecx, dword [r9]
jmp 0x140004cfb
cmp ecx, 0x4e0
jb 0x140004cfb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140004c30
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140004c80
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x1400051e0
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140039080]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor r8d, r8d
mov qword [rsp + 0x20], 0
mov rcx, rax
lea r9, [0x140004d40]
lea edx, [r8 + 0x65]
call qword [sym.imp.USER32.dll_CreateDialogParamA]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x14000526d
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x140005240
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000b700
add rsp, 0x78
ret
Function at 0x140008160
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140008182
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400081fc
mov rdi, r14
mov rcx, rbx
call fcn.140009b60
test rax, rax
jle 0x1400081d4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140026460
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400081ec
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400081f4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140008196
sub r14, rdi
jmp 0x1400082df
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140008213
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008215
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140008247
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140026460
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400082dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140008282
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1400082bd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400148c4
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400082dc
cmp rbp, rax
ja 0x140008290
test rbp, rbp
je 0x1400082dc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400148c4
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x14000c480
Capabilities:
Parse pe header

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

Function at 0x1400165b8
Capabilities:
Parse pe header

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