joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14037b364
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x140519680]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x140426a08]
mov rbp, rcx
call fcn.140384420
xor edi, edi
test rax, rax
je 0x14037b44a
mov ebx, edi
call fcn.140375678
mov r14d, dword [rax]
call fcn.140375678
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.14038fc24
mov rsi, rax
test rax, rax
je 0x14037b3db
call fcn.140375678
mov dword [rax], r14d
jmp 0x14037b405
call fcn.140375678
cmp dword [rax], 0x22
jne 0x14037b442
call fcn.140375678
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14038fc24
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14037b442
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14037b409
cmp rax, 3
je 0x14037b424
mov rcx, rsi
call fcn.14037b2c0
test al, al
je 0x14037b435
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
jbe 0x14037b435
mov dil, 1
mov rcx, rbx
call fcn.1403756ac
mov al, dil
jmp 0x14037b44c
mov rcx, rbx
call fcn.1403756ac
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140367840
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14037bffc
Capabilities:
Parse pe header

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

Function at 0x1403823ac
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x1403823cc
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.1403755ec
or eax, 0xffffffff
jmp 0x1403823ce
xor eax, eax
add rsp, 0x28
ret
Function at 0x1403827ac
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, [0x1407b16b0]
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 0x14038280a
cmp word [rdx], r12w
jne 0x14038280a
or byte [rax + r8*8 + 0x38], cl
jmp 0x140382810
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14038296b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140382946
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140382849
mov rcx, r9
jmp 0x14038286c
cmp r9, rdx
jae 0x140382883
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 0x14038282d
jmp 0x14038296b
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 0x140382940
cmp dword [rsp + 0x80], edi
je 0x140382940
mov rdx, r14
lea r11, [0x1407b16b0]
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 0x140382919
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1403828ec
mov word [rbx], r12w
jmp 0x140382967
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 0x1403828f5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140382967
cmp word [rsp + 0x70], r12w
jne 0x140382926
cmp rbx, rsi
je 0x1403828e6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140384124
cmp word [rsp + 0x70], r12w
je 0x14038296b
mov word [rbx], r13w
jmp 0x140382967
lea r11, [0x1407b16b0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140382963
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14038296b
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 0x14038eee4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14038ef16
call fcn.140375678
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14036eed0
jmp 0x14038f035
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14038f035
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14038f035
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14038ef45
lock or dword [rcx + 0x14], 0x10
jmp 0x14038f035
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14038ef59
call fcn.14038f050
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14037517c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140382c58
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14038f023
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14038efee
mov rcx, rsi
call fcn.14037517c
cmp eax, edi
je 0x14038efd9
mov rcx, rsi
call fcn.14037517c
cmp eax, 0xfffffffe
je 0x14038efd9
mov rcx, rsi
call fcn.14037517c
movsxd rbx, eax
lea r14, [0x1407b16b0]
mov rcx, rsi
sar rbx, 6
call fcn.14037517c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14038efe0
lea rdx, [0x140519b60]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14038efee
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14038f012
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14038f012
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14038f012
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14038f038
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140390688
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.140384124
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140384124
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1403907d8
cmp rax, 0xffffffffffffffff
je 0x1403907d8
xor edi, edi
test rbp, rbp
jle 0x140390783
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14038a420
mov rbx, rax
test rax, rax
jne 0x140390710
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140390779
mov edx, 0x8000
mov ecx, r14d
call fcn.14037ac00
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.140383b9c
cmp eax, 0xffffffff
je 0x140390759
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140390720
mov edx, r15d
mov ecx, r14d
call fcn.14037ac00
jmp 0x140390779
cmp byte [rsi + 0x38], dil
je 0x140390770
cmp dword [rsi + 0x34], 5
jne 0x140390770
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140390779
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14038a498
jmp 0x1403907ec
jns 0x1403907ec
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140384124
cmp rax, 0xffffffffffffffff
jne 0x1403907a4
cmp byte [rsi + 0x30], dil
je 0x1403907ec
mov edi, dword [rsi + 0x2c]
jmp 0x1403907ec
mov ecx, r14d
call fcn.14036f65c
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
jne 0x1403907ec
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1403907ec
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1403907e5
mov eax, dword [rsi + 0x2c]
jmp 0x1403907ea
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140384124
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 0x1403922a8
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 0x1403922d8
xor eax, eax
jmp 0x14039239b
mov rbp, rbx
cmp word [rax], si
je 0x1403922fd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1403922e4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1403922e0
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.1403900d0
movsxd r14, eax
test eax, eax
jne 0x14039233b
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
jmp 0x1403922d1
mov rcx, r14
call fcn.14038b26c
mov rdi, rax
test rax, rax
jne 0x140392354
xor ecx, ecx
call fcn.14038a498
jmp 0x140392330
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.1403900d0
test eax, eax
jne 0x140392385
mov rcx, rdi
call fcn.14038a498
jmp 0x14039238f
xor ecx, ecx
call fcn.14038a498
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 0x1403923b8
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 0x14039243f
mov rsi, rbx
cmp word [rax], bp
je 0x1403923fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1403923e8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1403923e4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14038b26c
mov rdi, rax
test rax, rax
je 0x14039242c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140399490
mov rbp, rdi
xor ecx, ecx
call fcn.14038a498
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 0x1403981bc
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.140375858
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140398246
cmp byte [rbp - 0x21], r15b
je 0x140398241
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14039827c
call fcn.14038a7f4
test eax, eax
jne 0x140398268
cmp byte [rbp - 0x21], r15b
je 0x140398260
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14039827c
cmp byte [rbp - 0x21], r15b
je 0x140398279
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.14037946c
test eax, eax
jne 0x14039831c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140375858
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1403982bb
cmp byte [rbp - 0x21], r15b
je 0x1403982f0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1403982f0
call fcn.14038a7f4
test eax, eax
jne 0x1403982dc
cmp byte [rbp - 0x21], r15b
je 0x1403982d5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1403982f0
cmp byte [rbp - 0x21], r15b
je 0x1403982ed
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.14037946c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14039831c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14039831f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14039832d
mov rcx, rdi
call fcn.14038a498
cmp byte [rbp + 0x3f], r15b
je 0x14039833c
mov rcx, qword [rbp + 0x27]
call fcn.14038a498
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 0x1403990e0
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400da3e0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400da3f0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.14001a680
jmp 0x14000123c
mov rax, qword [0x1400da3f0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400da3f0]
mov dword [rax], 1
mov rax, qword [0x1400da450]
mov rdx, rax
mov rax, qword [0x1400da440]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140108024], 1
mov rax, qword [0x1400da3f0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400da430]
mov rdx, rax
mov rax, qword [0x1400da420]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400da3f0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400da3e0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400da320]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400da320]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14000f258
mov rax, qword [0x1400da490]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400da3d0]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14000ea50
mov eax, dword [0x140108004]
lea rdx, [0x140108008]
mov ecx, eax
call fcn.14000147c
call fcn.14000e7e7
mov rax, qword [0x1400da360]
mov rax, qword [rax]
mov rdx, qword [0x140108010]
mov qword [rax], rdx
mov rcx, qword [0x140108010]
mov rdx, qword [0x140108008]
mov eax, dword [0x140108004]
mov r8, rcx
mov ecx, eax
call fcn.1400cd460
mov dword [0x14010801c], eax
mov eax, dword [0x140108020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14010801c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140108024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14010801c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400da390]
mov dword [rax], 1
mov rax, qword [0x1400da3a0]
mov dword [rax], 1
mov rax, qword [0x1400da3b0]
mov dword [rax], 1
mov rax, qword [0x1400da350]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002308
Capabilities:
Capture screenshot

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
mov rbx, qword [rcx + 8]
mov rsi, qword [rcx]
xor ecx, ecx
lea rax, [rsp + 0x88]
mov qword [rsp + 0x80], rcx
lea rbp, [rsp + 0x78]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x98], rbx
cmp rbx, 7
jbe 0x140002374
lea rdx, [rsp + 0x98]
xor r8d, r8d
mov rcx, rbp
call fcn.1400b0ea0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x78]
xor eax, eax
cmp rbx, rax
je 0x14000238e
movsx cx, byte [rsi + rax]
mov word [rdx + rax*2], cx
inc rax
jmp 0x14000237b
mov rdx, qword [rsp + 0x98]
mov rcx, rbp
call fcn.1400aee90
xor ecx, ecx
mov edx, 1
call qword [sym.imp.USER32.dll_MonitorFromPoint]
mov rcx, rax
test rax, rax
je 0x1400024fb
mov dword [rsp + 0x98], 0x48
lea rdx, [rsp + 0x98]
call qword [sym.imp.USER32.dll_GetMonitorInfoA]
test eax, eax
jne 0x1400023e5
mov rcx, qword [0x1401080c0]
call sub.gdiplus.dll_GdiplusShutdown
jmp 0x1400024fb
xor ecx, ecx
mov r12d, dword [rsp + 0xa4]
mov r14d, dword [rsp + 0xa8]
sub r12d, dword [rsp + 0x9c]
sub r14d, dword [rsp + 0xa0]
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r8d, r14d
mov edx, r12d
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rcx, rsi
mov r15, qword [sym.imp.GDI32.dll_SelectObject]
mov rdi, rax
mov rdx, rax
call r15
mov r9d, r12d
xor r8d, r8d
xor edx, edx
mov r13, rax
xor eax, eax
lea r12, [rsp + 0x50]
mov dword [rsp + 0x20], r14d
mov rcx, rsi
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
call qword [sym.imp.GDI32.dll_BitBlt]
xor edx, edx
mov r8, r12
mov rcx, rdi
mov qword [rsp + 0x50], rdx
lea rax, fcn.140027570
xor edx, edx
mov qword [rsp + 0x60], rax
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov r14, qword [rsp + 0x50]
mov rdx, r12
lea rcx, str.image_jpeg
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x68], r14
call fcn.140002263
mov rdx, qword [rsp + 0x78]
xor r9d, r9d
mov r8, r12
mov rcx, r14
call sub.gdiplus.dll_GdipSaveImageToFile
test eax, eax
je 0x1400024cb
mov dword [rsp + 0x70], eax
mov rdx, r13
mov rcx, rsi
call r15
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.USER32.dll_ReleaseDC]
lea rcx, [rsp + 0x60]
call fcn.140027570
mov rcx, rbp
call fcn.1400ae6b0
nop
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140002518
Capabilities:
Get session user name

Disassembly:
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
lea rsi, [rsp + 0x30]
lea rdx, [rsp + 0x2c]
mov dword [rsp + 0x2c], 0x100
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov rdx, rsi
mov rcx, rbx
call fcn.14000181c
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
ret
Function at 0x140002c2c
Capabilities:
Create process on windows
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0xf0
mov rcx, qword [0x1401080c0]
lea rbx, [rsp + 0x88]
lea rsi, [rsp + 0x50]
call sub.gdiplus.dll_GdiplusShutdown
mov rdi, rbx
xor eax, eax
mov ecx, 0x1a
rep stosd dword [rdi], eax
mov ecx, 6
mov rdi, rsi
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x68]
mov rcx, rdi
call fcn.14000292c
xor eax, eax
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rbx
xor ecx, ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], edx
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, rdi
call fcn.1400aa4f0
mov rcx, qword [rsp + 0x50]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x58]
call rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140003803
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push r13
mov eax, 0x13d8
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000fd80
sub rsp, rax
lea rax, [rsp + 0x30]
lea rdi, [rsp + 0x40]
mov rsi, rcx
mov ebp, edx
lea rbx, [rsp + 0xa08]
mov qword [rsp + 0x20], rax
xor eax, eax
lea rdx, [0x1400d4126]
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x30], 0
call fcn.14000181c
mov rdx, rbx
mov rcx, rdi
call fcn.140099ac0
mov rcx, rbx
call fcn.1400aa4f0
mov rcx, rdi
call fcn.140099cc0
mov edx, 1
mov dword [rsp + 0xa08], eax
mov eax, dword [rbx + rdx*4 - 4]
mov ecx, eax
shr ecx, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rbx + rdx*4], eax
inc rdx
cmp rdx, 0x270
jne 0x140003876
mov qword [rsp + 0x13c8], 0x270
xor r12d, r12d
lea r13, [rsp + 0x20]
cmp r12d, ebp
jge 0x1400038f1
mov rcx, rbx
call fcn.1400a5f00
mov edx, eax
imul rdx, rdx, 0x1a
mov eax, edx
cmp edx, 0x19
ja 0x1400038dd
cmp eax, 0x15
ja 0x1400038dd
mov rcx, rbx
call fcn.1400a5f00
mov edx, eax
imul rdx, rdx, 0x1a
mov eax, edx
jmp 0x1400038c6
shr rdx, 0x20
mov rcx, r13
inc r12d
add edx, 0x61
call fcn.1400ad290
jmp 0x1400038ac
lea rbx, [rsp + 0x20]
lea rdx, str.____
mov rcx, rsi
mov r8, rbx
call fcn.1400c9df0
mov rcx, rdi
call fcn.140099a40
mov rcx, rbx
call fcn.1400aa4f0
mov rax, rsi
add rsp, 0x13d8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret