joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027d80
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.14002c070
sub rsp, rax
mov rax, qword [0x14006b180]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x140027e42
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x140027ded
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140027de0
cmp rcx, 1
jb 0x140027e9a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140027e10
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14003b62c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140027dd0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140027e73
lea rcx, [rsp + 0x80]
call fcn.14003e464
jmp 0x140027e75
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14002bda0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14003b3d8
int3
Function at 0x14002b920
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14006b180]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14002b9c5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14002b97d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14002b970
cmp rcx, 1
jb 0x14002b9f6
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14002b993
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14003b62c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14002b960
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002bda0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14003b3d8
int3

Function at 0x14002bc30
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14006b180]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14002bcd5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14002bc8d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14002bc80
cmp rcx, 1
jb 0x14002bd07
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14002bca3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14003b62c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14002bc70
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002bda0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14003b3d8
int3

Function at 0x14002c7d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002c81e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002c81e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002c81e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002c81e
cmp dword [rcx + 0x84], 0xe
jbe 0x14002c81e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002c820
xor al, al
add rsp, 0x28
ret
Function at 0x140031c18
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 0x140031a83
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140031a83
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140031a83
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140031a83
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140031a83
cmp dword [rcx + 0x84], 0xe
jbe 0x140031a83
cmp dword [rcx + 0xf8], 0
je 0x140031a83
mov ecx, ebx
call fcn.140031b34
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.140031910
nop
cmp dword [rbp + 0x20], 0
je 0x140031ad1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140031adc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140031a14
Function at 0x1400436d0
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 0x140043757
mov rsi, rbx
cmp word [rax], bp
je 0x140043716
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140043700
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400436fc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003e550
mov rdi, rax
test rax, rax
je 0x140043744
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140049a50
mov rbp, rdi
xor ecx, ecx
call fcn.14003f484
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 0x1400472cc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400472e2
mov al, 1
jmp 0x140047342
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400472f3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140047340
mov ecx, dword [rcx + 0x18]
nop
call fcn.140043e74
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140047340
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140047340
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140047340
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140047342
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140049830
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140026088
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140026088
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140026088
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14002607c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14002609a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14002606a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14002608a

Function at 0x140027518
Capabilities:
Parse pe header

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

Function at 0x140030538
Capabilities:
Parse pe header

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

Function at 0x140001ebc
Capabilities:
Parse pe header

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

Disassembly:
call fcn.140b1728f
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 0x140b17139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b1711f
add dl, dl
jne 0x140b17146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b171a6
xor eax, eax
add dl, dl
jne 0x140b17155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b1725d
add dl, dl
jne 0x140b17166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b17173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b17180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b1718d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b1719a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b1712e
mov eax, 1
add dl, dl
jne 0x140b171b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b171c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b171ab
sub eax, ebx
mov ebx, 1
jne 0x140b171fc
mov ecx, 1
add dl, dl
jne 0x140b171de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b171eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b171d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b1712e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b17218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b17225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b1720d
cmp eax, 0x7d00
jae 0x140b1724b
cmp eax, 0x500
jb 0x140b17246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b1712e
cmp eax, 0x7f
ja 0x140b1724e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b1712e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b17282
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 0x140b1712e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001ac20
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14002ae68], rbx
je 0x14001ac6c
cmp rax, rbx
jne 0x14001ac5f
mov ebx, 1
mov esi, ebx
jmp 0x14001ac71
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14001ac44
mov ebx, 1
mov eax, dword [0x14002ae70]
cmp eax, ebx
jne 0x14001ac87
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14001acec
mov eax, dword [0x14002ae70]
test eax, eax
jne 0x14001ace6
mov dword [0x14002ae70], ebx
lea r15, [0x140020378]
lea rdi, [0x140020360]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x14001acd8
test eax, eax
jne 0x14001acdc
cmp qword [rdi], 0
je 0x14001accd
mov rax, qword [rdi]
mov rcx, qword [0x1400202c0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14001acae
test eax, eax
je 0x14001acec
mov eax, 0xff
jmp 0x14001adc8
mov dword [0x14002a320], ebx
mov eax, dword [0x14002ae70]
cmp eax, ebx
jne 0x14001ad13
lea rdx, [0x140020358]
lea rcx, [0x1400202c8]
call sub.msvcrt.dll__initterm
mov dword [0x14002ae70], 2
test esi, esi
jne 0x14001ad20
xor eax, eax
xchg qword [0x14002ae68], rax
cmp qword [0x14002ae88], 0
je 0x14001ad54
lea rcx, [0x14002ae88]
call fcn.14001b530
test eax, eax
je 0x14001ad54
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14002ae88]
mov r9, qword [0x1400202c0]
call r9
mov r8, qword [0x14002a338]
mov rdx, qword [0x14002a330]
mov ecx, dword [0x14002a328]
call fcn.140004f04
mov dword [0x14002a31c], eax
cmp dword [0x14002a340], 0
jne 0x14001ad84
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14002a320], 0
jne 0x14001ad99
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002a31c]
jmp 0x14001adc8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400bc000
add rsp, 0x28
jmp 0x14001ac20

Function at 0x14001b42c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001b478
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001b470
cmp dword [rcx + 0x3c], edx
jl 0x14001b470
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14001b470
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14001b478
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001870
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r14
mov r14, rcx
mov rsi, r8
mov rbp, rdx
sub r14, qword [r8 + 0x30]
je 0x1400019f2
test byte [r8 + 0x5e], 0x40
jne 0x14000189d
xor eax, eax
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
movzx edx, word [rsi + 0x14]
movzx eax, word [rsi + 6]
add rdx, 0x18
mov r8d, dword [r8 + 0xb0]
add rdx, rsi
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x1400019f2
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400018d6
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400018ed
add rdx, 0x28
cmp rdx, r9
jb 0x1400018c4
mov eax, 1
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
mov qword [rsp + 0x18], rbx
mov ebx, dword [rdx + 0x14]
sub rbx, rcx
mov qword [rsp + 0x28], r15
mov r15d, dword [rsi + 0xb4]
add rbx, r8
add rbx, rbp
add r15, rbx
test rbx, rbx
je 0x1400019e8
cmp rbx, r15
jae 0x1400019e8
mov qword [rsp + 0x20], rdi
mov eax, dword [rbx + 4]
test eax, eax
je 0x1400019e3
add eax, 0xfffffff8
shr eax, 1
je 0x1400019d4
lea r11, [rbx + 8]
mov edi, eax
movzx r8d, word [r11]
movzx eax, r8w
shr ax, 0xc
and r8d, 0x80000fff
jge 0x140001962
dec r8d
or r8d, 0xfffff000
inc r8d
cmp ax, 3
je 0x14000196e
cmp ax, 0xa
jne 0x1400019c6
movzx eax, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add rax, 0x18
mov r9d, dword [rbx]
add rax, rsi
lea rdx, [rcx + rcx*4]
lea r10, [rax + rdx*8]
cmp rax, r10
jae 0x1400019bb
nop dword [rax]
mov edx, dword [rax + 0xc]
cmp r9, rdx
jb 0x1400019a2
mov ecx, dword [rax + 8]
add ecx, edx
cmp r9, rcx
jb 0x1400019ad
add rax, 0x28
cmp rax, r10
jb 0x140001990
jmp 0x1400019bb
mov ecx, dword [rax + 0x14]
sub rcx, rdx
add rcx, r9
add rcx, rbp
jne 0x1400019be
mov rcx, rbp
movzx eax, r8w
add qword [rax + rcx], r14
add r11, 2
sub rdi, 1
jne 0x140001940
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r15
jb 0x140001924
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
mov r15, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov eax, 1
pop r14
pop rsi
ret
Function at 0x140001a00
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r13
sub rsp, 0x38
movzx eax, word [r9 + 0x14]
lea r10, [r9 + 0x18]
mov r11d, dword [r9 + 0x90]
add r10, rax
movzx eax, word [r9 + 6]
mov rbp, r9
mov r13, r8
mov edi, edx
mov rsi, rcx
lea r9, [rax + rax*4]
lea r8, [r10 + r9*8]
cmp r10, r8
jae 0x140001a63
mov ecx, dword [r10 + 0xc]
cmp r11, rcx
jb 0x140001a5a
mov eax, dword [r10 + 8]
add eax, ecx
cmp r11, rax
jb 0x140001aee
add r10, 0x28
cmp r10, r8
jb 0x140001a42
xor eax, eax
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
test r11d, r11d
je 0x140001acb
cmp dword [rbp + 0x94], 0
je 0x140001acb
lea rbx, [rax + 0x10]
movzx edx, word [rbp + 0x14]
movzx eax, word [rbp + 6]
add rdx, 0x18
mov r8d, dword [rbx - 4]
add rdx, rbp
mov qword [rsp + 0x78], rbx
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x140001acb
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140001ac2
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140001b00
add rdx, 0x28
cmp rdx, r9
jb 0x140001ab0
mov eax, 1
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x70]
add rsp, 0x38
pop r13
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [r10 + 0x14]
sub rax, rcx
add rax, r11
add rax, r13
jmp 0x140001a65
mov r15d, dword [rdx + 0x14]
sub r15, rcx
add r15, r8
add r15, r13
je 0x140001acb
mov r8, r15
mov edx, edi
mov rcx, rsi
call fcn.140001070
mov r12, rax
test rax, rax
je 0x140001c39
movzx edx, word [rbp + 0x14]
movzx eax, word [rbp + 6]
add rdx, 0x18
mov r8d, dword [rbx]
add rdx, rbp
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x140001b62
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140001b59
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140001b87
add rdx, 0x28
cmp rdx, r9
jb 0x140001b47
xor r14d, r14d
mov rdi, qword [r14]
test rdi, rdi
je 0x140001c1e
jns 0x140001b96
xor edx, edx
mov rcx, r15
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
movzx edx, di
jmp 0x140001be2
mov r14d, dword [rdx + 0x14]
sub r14, rcx
add r14, r8
add r14, r13
jmp 0x140001b65
movzx eax, word [rbp + 0x14]
movzx ecx, word [rbp + 6]
add rax, 0x18
add rax, rbp
lea rdx, [rcx + rcx*4]
lea r8, [rax + rdx*8]
cmp rax, r8
jae 0x140001bcd
mov edx, dword [rax + 0xc]
cmp rdi, rdx
jb 0x140001bc4
mov ecx, dword [rax + 8]
add ecx, edx
cmp rdi, rcx
jb 0x140001c2b
add rax, 0x28
cmp rax, r8
jb 0x140001bb2
xor esi, esi
xor edx, edx
mov rcx, r15
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rdx, [rsi + 2]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov rcx, rbx
sub rdi, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [rdi + r12]
mov qword [r14], rax
add r14, 8
mov rdi, qword [r14]
test rdi, rdi
jne 0x140001b71
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x60]
mov edi, dword [rsp + 0x68]
add rbx, 0x14
jmp 0x140001a8b
mov esi, dword [rax + 0x14]
sub rsi, rdx
add rsi, rdi
add rsi, r13
jmp 0x140001bcf
jmp 0x140001ad0
Function at 0x140002280
Capabilities:
Encode data using xor
Execute command

Disassembly:
sub rsp, 0x68
cmp byte [0x140004555], 0
mov eax, dword [0x140004550]
movups xmm0, xmmword [str.2b_af]
mov dword [rsp + 0x40], eax
movzx eax, word [0x140004554]
movups xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x44], ax
je 0x14000244d
xor ecx, ecx
cmp dword [0x140006088], 2
jl 0x140002409
movdqa xmm0, xmmword [str.7777777777777777O]
lea rdx, [rsp + 0x34]
movdqa xmm5, xmmword [0x140004560]
movdqa xmm4, xmmword [0x1400045a0]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x50], xmm6
movdqa xmm6, xmmword [str.4444]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140004580]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140004580]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x140002300
movaps xmm6, xmmword [rsp + 0x50]
cmp ecx, 0x16
jge 0x14000244d
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x4ec4ec4f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, cl
inc ecx
sub al, dl
add al, 0x37
xor byte [r8 - 1], al
cmp ecx, 0x16
jl 0x140002420
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rsp + 0x30]
call fcn.140002490
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140001c40
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x68
ret

Function at 0x140003170
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400031ba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400031ba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400031ba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400031ba
cmp dword [rcx + 0x84], 0xe
jbe 0x1400031ba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400031bc
xor al, al
add rsp, 0x28
ret
Function at 0x140003630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x70
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rax + 0x10], esi
cmp rdx, rcx
jne 0x140003696
mov r9d, 0x2e6
lea r8, [0x140130368]
lea edx, [rsi + 3]
lea rcx, [rax - 0x48]
call fcn.140023920
nop
mov esi, 1
mov dword [rsp + 0x88], esi
lea rdx, [0x140130398]
mov rcx, rax
call fcn.140023b20
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.1400239d0
nop
test sil, 1
je 0x1400036a6
lea rcx, [rsp + 0x30]
call fcn.140023990
mov dword [rsp + 0x20], 0
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, rdi
call fcn.1400d6ce8
test rax, rax
jne 0x1400036e7
mov rdx, rbx
mov rcx, rdi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
jmp fcn.14003a920
mov rdx, rax
mov rcx, rbx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
jmp fcn.140003710