joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009fb08
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140083860
sub rsp, rax
mov rax, qword [0x14010e0c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14009ce40
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14009fb57
mov rax, rbp
jmp 0x14009fc5f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x111c00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14009f74c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x111c00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14009fc5b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009fc5b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14009f74c
test rax, rax
js 0x14009fc5b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14009fc5b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14009fc4d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14009fc4d
cmp byte [rcx], 0xd
jne 0x14009fc33
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14009fc42
cmp byte [rcx + 1], 0xa
jne 0x14009fc42
inc rcx
jmp 0x14009fc42
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x10e4f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14009fc15
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14009fc5f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140082b40
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14009fd88
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140111c00]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14009fde6
cmp word [rdx], r12w
jne 0x14009fde6
or byte [rax + r8*8 + 0x38], cl
jmp 0x14009fdec
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14009ff47
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14009ff22
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14009fe25
mov rcx, r9
jmp 0x14009fe48
cmp r9, rdx
jae 0x14009fe5f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14009fe09
jmp 0x14009ff47
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009ff1c
cmp dword [rsp + 0x80], edi
je 0x14009ff1c
mov rdx, r14
lea r11, [0x140111c00]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14009fef5
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14009fec8
mov word [rbx], r12w
jmp 0x14009ff43
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14009fed1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14009ff43
cmp word [rsp + 0x70], r12w
jne 0x14009ff02
cmp rbx, rsi
je 0x14009fec2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14009f754
cmp word [rsp + 0x70], r12w
je 0x14009ff47
mov word [rbx], r13w
jmp 0x14009ff43
lea r11, [0x140111c00]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14009ff3f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14009ff47
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400a6928
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400a69af
mov rsi, rbx
cmp word [rax], bp
je 0x1400a696e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a6958
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a6954
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14009bca0
mov rdi, rax
test rax, rax
je 0x1400a699c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400ab940
mov rbp, rdi
xor ecx, ecx
call fcn.14009bc64
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400aab70
Capabilities:
Clear file content

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, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14009f754
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009f754
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400aacc0
cmp rax, 0xffffffffffffffff
je 0x1400aacc0
xor edi, edi
test rbp, rbp
jle 0x1400aac6b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009d72c
mov rbx, rax
test rax, rax
jne 0x1400aabf8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400aac61
mov edx, 0x8000
mov ecx, r14d
call fcn.14009afa8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14009f18c
cmp eax, 0xffffffff
je 0x1400aac41
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400aac08
mov edx, r15d
mov ecx, r14d
call fcn.14009afa8
jmp 0x1400aac61
cmp byte [rsi + 0x38], dil
je 0x1400aac58
cmp dword [rsi + 0x34], 5
jne 0x1400aac58
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x1400aac61
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14009bc64
jmp 0x1400aacd4
jns 0x1400aacd4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009f754
cmp rax, 0xffffffffffffffff
jne 0x1400aac8c
cmp byte [rsi + 0x30], dil
je 0x1400aacd4
mov edi, dword [rsi + 0x2c]
jmp 0x1400aacd4
mov ecx, r14d
call fcn.1400a6f74
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400aacd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x1400aacd4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400aaccd
mov eax, dword [rsi + 0x2c]
jmp 0x1400aacd2
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009f754
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400ab490
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400ab4b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400ab4b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001330
Capabilities:
Enumerate processes

Disassembly:
push rsi
sub rsp, 0x160
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rsi, rdx
test rdx, rdx
jne 0x14000135a
xor eax, eax
jmp 0x1400013fc
mov qword [rsp + 0x170], rbx
xor edx, edx
mov qword [rsp + 0x180], rbp
mov qword [rsp + 0x188], rdi
xor edi, edi
mov ebx, edi
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x1400013e2
nop dword [rax]
mov rdx, rsi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test eax, eax
jne 0x1400013d0
mov eax, dword [rsp + 0x3c]
cmp eax, ebx
jbe 0x1400013d0
mov edi, dword [rsp + 0x28]
mov ebx, eax
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400013b0
mov rbp, qword [rsp + 0x180]
mov eax, edi
mov rdi, qword [rsp + 0x188]
mov rbx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140002d70
add rsp, 0x160
pop rsi
ret
Function at 0x140001e80
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdx, qword [rcx + 0x10]
mov rax, rcx
mov r8, qword [rcx + 0x18]
cmp r8, 0x10
jb 0x140001ea9
mov rax, qword [rcx]
xor ebx, ebx
cmp rdx, 1
jne 0x140001f5d
cmp byte [rax], 0x31
jne 0x140001ebe
mov eax, ebx
jmp 0x140001ec3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140001f5d
lea ecx, [rax + 1]
call fcn.140002d98
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x140002cc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140001f4d
cmp dword [rsp + 0x38], 0
jne 0x140001f17
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x140001f3a
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140002d70
add rsp, 0x60
pop rbx
ret
mov dword [rsp + 0x38], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
cmp r8, 0x10
jb 0x140001f66
mov rcx, qword [rcx]
cmp rdx, 1
jne 0x140001f3a
cmp byte [rcx], 0x32
jne 0x140001f75
mov eax, ebx
jmp 0x140001f7a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140001f3a
lea ecx, [rax + 1]
call fcn.140002d98
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x140002cf0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140002000
cmp dword [rsp + 0x38], 0
jne 0x140001fca
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x140001fed
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140002d70
add rsp, 0x60
pop rbx
ret
mov dword [rsp + 0x38], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1408e0210
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1408e0397
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 0x1408e0241
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408e0227
add dl, dl
jne 0x1408e024e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408e02ae
xor eax, eax
add dl, dl
jne 0x1408e025d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408e0365
add dl, dl
jne 0x1408e026e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408e027b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408e0288
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408e0295
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408e02a2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408e0236
mov eax, 1
add dl, dl
jne 0x1408e02be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408e02cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408e02b3
sub eax, ebx
mov ebx, 1
jne 0x1408e0304
mov ecx, 1
add dl, dl
jne 0x1408e02e6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408e02f3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408e02db
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408e0236
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408e0320
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408e032d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408e0315
cmp eax, 0x7d00
jae 0x1408e0353
cmp eax, 0x500
jb 0x1408e034e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408e0236
cmp eax, 0x7f
ja 0x1408e0356
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408e0236
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408e038a
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 0x1408e0236
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001041
Capabilities:
Terminate process

Disassembly:
jmp 0x140003428
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.1400011fe
test al, al
je 0x1400032fc
xor dil, dil
mov byte [rsp + 0x20], dil
call fcn.140001163
mov bl, al
mov ecx, dword [0x14000ca38]
cmp ecx, 1
je 0x140003307
test ecx, ecx
jne 0x140003238
mov dword [0x14000ca38], 1
lea rdx, [0x140008770]
lea rcx, [0x140008440]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x140003219
mov eax, 0xff
jmp 0x1400032f1
lea rdx, [0x140008330]
lea rcx, [section..rdata]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x14000ca38], 2
jmp 0x140003240
mov dil, 1
mov byte [rsp + 0x20], dil
mov cl, bl
call fcn.140001249
call fcn.140001127
mov rbx, rax
cmp qword [rax], 0
je 0x140003273
mov rcx, rax
call fcn.140001190
test al, al
je 0x140003273
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x140010010]
call fcn.14000115e
mov rbx, rax
cmp qword [rax], 0
je 0x140003295
mov rcx, rax
call fcn.140001190
test al, al
je 0x140003295
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call fcn.140001014
movzx ebx, ax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
mov r8, rax
mov r9d, ebx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400011ae
mov ebx, eax
call fcn.1400011db
test al, al
je 0x140003311
test dil, dil
jne 0x1400032cb
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.1400011e0
mov eax, ebx
jmp 0x1400032f1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.14000118b
nop
mov ecx, 7
call fcn.14000118b
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
int3
sub rsp, 0x28
call fcn.14000121c
add rsp, 0x28
jmp 0x1400031b0

Function at 0x14000105f
Capabilities:
Terminate process

Disassembly:
jmp 0x140003494
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140001190
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x140003d50
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140003dde
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140003dde
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003dde
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140003dc5
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140003dbf
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140003dc7
add rdx, 0x28
jmp 0x140003da4
xor edx, edx
test rdx, rdx
jne 0x140003dd0
xor al, al
jmp 0x140003de4
cmp dword [rdx + 0x24], 0
jge 0x140003dda
xor al, al
jmp 0x140003de4
mov al, 1
jmp 0x140003de4
xor al, al
jmp 0x140003de4
add rsp, 0x18
ret

Function at 0x1400011ae
Capabilities:
Get system information on windows

Disassembly:
jmp 0x140002dc0
sub rsp, 0x68
mov edx, 1
mov byte [rsp + 0x20], 0
lea ecx, [rdx + 4]
call fcn.140001055
test eax, eax
je 0x140002e03
lea rdx, str.WINDOWS_XP
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
xor r9d, r9d
lea r8, [0x140008da0]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov edx, 2
lea ecx, [rdx + 3]
call fcn.140001055
test eax, eax
je 0x140002e3d
lea rdx, str.WINDOWS_SERVER_2003
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
xor r9d, r9d
lea r8, [0x140008da0]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor edx, edx
lea ecx, [rdx + 6]
call fcn.140001055
test eax, eax
je 0x140002e74
lea rdx, str.WINDOWS_VISTA
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
xor r9d, r9d
lea r8, [0x140008da0]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov edx, 1
lea ecx, [rdx + 5]
call fcn.140001055
test eax, eax
je 0x140002ee8
lea rdx, str.WINDOWS_7
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
xor r9d, r9d
lea r8, [0x140008da0]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [rsp + 0x28]
cmp cx, 9
je 0x140002eca
cmp cx, 6
jne 0x140002ee8
xor r9d, r9d
lea r8, [0x140008da0]
lea rdx, str.win7_x64
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call fcn.140001253
mov eax, 1
add rsp, 0x68
ret

Function at 0x1400011db
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000434c
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004397
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004397
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004397
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004397
cmp dword [rcx + 0x84], 0xe
jbe 0x140004397
cmp dword [rcx + 0xf8], 0
je 0x140004397
mov al, 1
jmp 0x140004399
xor al, al
add rsp, 0x28
ret
Function at 0x140002dc0
Capabilities:
Get system information on windows

Disassembly:
jmp 0x140002dc0
sub rsp, 0x68
mov edx, 1
mov byte [rsp + 0x20], 0
lea ecx, [rdx + 4]
call fcn.140001055
test eax, eax
je 0x140002e03
lea rdx, str.WINDOWS_XP
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
xor r9d, r9d
lea r8, [0x140008da0]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov edx, 2
lea ecx, [rdx + 3]
call fcn.140001055
test eax, eax
je 0x140002e3d
lea rdx, str.WINDOWS_SERVER_2003
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
xor r9d, r9d
lea r8, [0x140008da0]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor edx, edx
lea ecx, [rdx + 6]
call fcn.140001055
test eax, eax
je 0x140002e74
lea rdx, str.WINDOWS_VISTA
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
xor r9d, r9d
lea r8, [0x140008da0]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov edx, 1
lea ecx, [rdx + 5]
call fcn.140001055
test eax, eax
je 0x140002ee8
lea rdx, str.WINDOWS_7
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
xor r9d, r9d
lea r8, [0x140008da0]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [rsp + 0x28]
cmp cx, 9
je 0x140002eca
cmp cx, 6
jne 0x140002ee8
xor r9d, r9d
lea r8, [0x140008da0]
lea rdx, str.win7_x64
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call fcn.140001253
mov eax, 1
add rsp, 0x68
ret
Function at 0x7ff715063fb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x30
xor edi, edi
mov qword [rsp + 0x58], r15
mov r15, qword [r8 + 8]
mov r14, r8
sub r15, qword [r8]
mov rsi, rdx
mov qword [rdx], rdi
mov r12, rcx
mov qword [rdx + 8], rdi
mov qword [rdx + 0x10], rdi
je 0x7ff71506400f
mov rdx, r15
mov qword [rsp + 0x50], rbx
mov rcx, rsi
call fcn.7ff7150720e0
mov rbx, qword [rsi]
mov r8, r15
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [r15 + rbx]
mov rbx, qword [rsp + 0x50]
mov qword [rsi + 8], rax
mov rax, qword [r14 + 8]
mov r8d, edi
mov r10, rdi
mov r15, qword [rsp + 0x58]
cmp rax, qword [r14]
je 0x7ff7150640b7
nop word [rax + rax]
lea eax, [rdi + 1]
and eax, 0x800000ff
jge 0x7ff715064043
dec eax
or eax, 0xffffff00
inc eax
movsxd rdi, eax
mov r9d, dword [r12 + rdi*4]
lea rdx, [r12 + rdi*4]
add r8d, r9d
and r8d, 0x800000ff
jge 0x7ff715064067
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd rax, r8d
lea rcx, [r12 + rax*4]
mov eax, dword [r12 + rax*4]
mov dword [rdx], eax
mov dword [rcx], r9d
mov ecx, dword [rdx]
add ecx, r9d
and ecx, 0x800000ff
jge 0x7ff71506408e
dec ecx
or ecx, 0xffffff00
inc ecx
mov rax, qword [r14]
movsxd rcx, ecx
movzx edx, byte [r12 + rcx*4]
xor dl, byte [rax + r10]
mov rax, qword [rsi]
mov byte [r10 + rax], dl
inc r10
mov rax, qword [r14 + 8]
sub rax, qword [r14]
cmp r10, rax
jb 0x7ff715064030
mov rax, rsi
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r12
pop rdi
ret

Function at 0x7ff7150640d0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
xorps xmm0, xmm0
xor esi, esi
mov ecx, 4
xor edx, edx
mov qword [rsp + 0x34], rsi
movdqu xmmword [rsp + 0x24], xmm0
call qword [sym.imp.kernel32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.user32.dll_GetWindowThreadProcessId]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_Thread32First]
test eax, eax
je 0x7ff715064152
nop word [rax + rax]
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x2c], eax
je 0x7ff71506414e
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_Thread32Next]
test eax, eax
jne 0x7ff715064130
jmp 0x7ff715064152
mov esi, dword [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret