joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ed3c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x8a0
mov rax, qword [0x140055118]
xor rax, rsp
mov qword [rsp + 0x890], rax
mov rbx, rcx
lea r8, [0x140059be0]
lea rcx, [rsp + 0x20]
mov edx, 0x432
xor edi, edi
call fcn.14001b7c4
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x432
call fcn.14001b740
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14000eda7
lea rcx, [rsp + 0x20]
call fcn.14001f0e8
mov edi, 1
mov eax, edi
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.140014010
mov rbx, qword [rsp + 0x8b8]
add rsp, 0x8a0
pop rdi
ret

Function at 0x14000edcc
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x28
lea rcx, [0x14003d7d0]
call fcn.14000ed3c
lea rcx, [0x14003d430]
call fcn.14000ed3c
lea rcx, [0x14003d770]
call fcn.14000ed3c
lea rcx, [0x14003d830]
call fcn.14000ed3c
lea rcx, [0x14003d890]
call fcn.14000ed3c
lea rcx, [0x14003b760]
call fcn.14000ed3c
lea rcx, [0x14003d680]
add rsp, 0x28
jmp fcn.14000ed3c

Function at 0x14000eef0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xf8
mov rax, qword [0x140055118]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor eax, eax
lea rcx, [rsp + 0x74]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
xor edx, edx
movups xmmword [rsp + 0x50], xmm0
lea r8d, [rax + 0x64]
call fcn.140015c00
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x48], rax
lea rdx, [0x14005abe0]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
and qword [rsp + 0x38], 0
xor ecx, ecx
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000ef8c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140014010
add rsp, 0xf8
ret

Function at 0x14000efa8
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140055118]
xor rax, rsp
mov qword [rsp + 0x38], rax
and qword [r11 - 0x18], 0
lea rax, [r11 - 0x18]
mov rdi, rdx
mov qword [r11 - 0x28], rax
mov rdx, rcx
mov rbx, r8
mov rcx, 0xffffffff80000002
mov r9d, 0xf003f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000f036
cmp qword [rsp + 0x30], 0
je 0x14000f036
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140014010
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140013518
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140055118]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebp, edx
mov rsi, rcx
xor ebx, ebx
lea rdx, str.SoftwareIntelDisplayigfxcuiMISC
lea ecx, [rbx + 1]
call fcn.1400050a8
mov rdi, rax
test rax, rax
je 0x140013582
lea r9d, [rbx + 4]
mov dword [rsp + 0x30], ebp
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov al, bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140014010
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400136e0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140055118]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov edi, r8d
lea rdx, str.Received_Post_Shell_Event__ld_n
lea rcx, [0x140057030]
call fcn.1400069fc
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
and dword [rsp + 0x38], eax
and qword [rsp + 0x40], rax
lea rdx, str.SoftwareIntelDisplayigfxcuiMISC
lea ecx, [rax + 1]
call fcn.1400050a8
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140013787
mov dword [rsp + 0x48], 2
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.InstallStage
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
and dword [rsp + 0x38], ebx
call fcn.14000de40
xor edx, edx
mov ecx, edi
call fcn.14000e07c
mov byte [0x14005c558], 1
test rbx, rbx
je 0x1400137aa
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140014010
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14001e7b0
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 0x14001e60f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001e60f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001e60f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001e60f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001e60f
cmp dword [rcx + 0x84], 0xe
jbe 0x14001e60f
cmp dword [rcx + 0xf8], 0
je 0x14001e60f
mov ecx, ebx
call fcn.14001e6cc
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.14001e49c
nop
cmp dword [rbp + 0x20], 0
je 0x14001e65d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001e668
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001e5a0

Function at 0x14001f0e8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001f108
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001b5ec
or eax, 0xffffffff
jmp 0x14001f10a
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400293d0
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1400290f2
call fcn.14001b678
mov dword [rax], 0x16
call fcn.14001b50c
jmp 0x140029242
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140029242
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140029242
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140029121
lock or dword [rcx + 0x14], 0x10
jmp 0x140029242
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140029135
call fcn.1400297d0
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x140029145
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x140029148
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140028da8
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.140033cbc
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140029230
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1400291db
mov rcx, rbx
call fcn.140028da8
cmp eax, 0xffffffff
je 0x1400291c6
mov rcx, rbx
call fcn.140028da8
cmp eax, 0xfffffffe
je 0x1400291c6
mov rcx, rbx
call fcn.140028da8
movsxd rdi, eax
lea rsi, [0x14005d680]
mov rcx, rbx
sar rdi, 6
call fcn.140028da8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1400291cd
lea rdx, [0x140055520]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400291db
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1400291ff
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1400291ff
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1400291ff
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x14002921d
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x140029228
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x140029247
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1400290bc
Function at 0x14002ad9c
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.1400144b0
sub rsp, rax
mov rax, qword [0x140055118]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140028da8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002adeb
mov rax, rbp
jmp 0x14002aef3
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 + 0x5d680]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002b28c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5d680]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002aeef
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 0x14002aeef
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002b28c
test rax, rax
js 0x14002aeef
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002aeef
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002aee1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002aee1
cmp byte [rcx], 0xd
jne 0x14002aec7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002aed6
cmp byte [rcx + 1], 0xa
jne 0x14002aed6
inc rcx
jmp 0x14002aed6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x55c60]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002aea9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002aef3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140014010
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 0x14002cfa4
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 0x14002d02b
mov rsi, rbx
cmp word [rax], bp
je 0x14002cfea
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002cfd4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002cfd0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400277f4
mov rdi, rax
test rax, rax
je 0x14002d018
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140016a70
mov rbp, rdi
xor ecx, ecx
call fcn.1400270dc
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 0x140033810
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, [0x14005d680]
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 0x14003386e
cmp word [rdx], r12w
jne 0x14003386e
or byte [rax + r8*8 + 0x38], cl
jmp 0x140033874
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400339cf
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400339aa
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400338ad
mov rcx, r9
jmp 0x1400338d0
cmp r9, rdx
jae 0x1400338e7
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 0x140033891
jmp 0x1400339cf
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 0x1400339a4
cmp dword [rsp + 0x80], edi
je 0x1400339a4
mov rdx, r14
lea r11, [0x14005d680]
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 0x14003397d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140033950
mov word [rbx], r12w
jmp 0x1400339cb
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 0x140033959
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400339cb
cmp word [rsp + 0x70], r12w
jne 0x14003398a
cmp rbx, rsi
je 0x14003394a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002b294
cmp word [rsp + 0x70], r12w
je 0x1400339cf
mov word [rbx], r13w
jmp 0x1400339cb
lea r11, [0x14005d680]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400339c7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400339cf
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 0x140036bd8
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.14002b294
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002b294
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140036d28
cmp rax, 0xffffffffffffffff
je 0x140036d28
xor edi, edi
test rbp, rbp
jle 0x140036cd3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002b338
mov rbx, rax
test rax, rax
jne 0x140036c60
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140036cc9
mov edx, 0x8000
mov ecx, r14d
call fcn.140020eec
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.14002a77c
cmp eax, 0xffffffff
je 0x140036ca9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140036c70
mov edx, r15d
mov ecx, r14d
call fcn.140020eec
jmp 0x140036cc9
cmp byte [rsi + 0x38], dil
je 0x140036cc0
cmp dword [rsi + 0x34], 5
jne 0x140036cc0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140036cc9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400270dc
jmp 0x140036d3c
jns 0x140036d3c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002b294
cmp rax, 0xffffffffffffffff
jne 0x140036cf4
cmp byte [rsi + 0x30], dil
je 0x140036d3c
mov edi, dword [rsi + 0x2c]
jmp 0x140036d3c
mov ecx, r14d
call fcn.14002d4ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140036d3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140036d3c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140036d35
mov eax, dword [rsi + 0x2c]
jmp 0x140036d3a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002b294
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 0x140003700
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140010240]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
lea rcx, [rsp + 0x30]
call fcn.140003b4c
lea rcx, [rsp + 0x30]
call fcn.140003c14
nop
lea rdi, [rbx + 8]
lea rcx, [rsp + 0x30]
call fcn.140001658
mov r9, rax
mov qword [rsp + 0x28], rdi
and dword [rsp + 0x20], 0
lea r8, [0x140003c60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140003792
lea rcx, [rsp + 0x30]
call fcn.140003b88
nop
lea rcx, [rsp + 0x30]
call fcn.140003ba4
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000b3d0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
and dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x1400038d4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140010240]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
lea rcx, [rsp + 0x30]
call fcn.140003b4c
lea rcx, [rsp + 0x30]
call fcn.140003e28
nop
lea rdi, [rbx + 8]
lea rcx, [rsp + 0x30]
call fcn.140001658
mov r9, rax
mov qword [rsp + 0x28], rdi
and dword [rsp + 0x20], 0
lea r8, [0x140003e58]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140003966
lea rcx, [rsp + 0x30]
call fcn.140003b54
nop
lea rcx, [rsp + 0x30]
call fcn.140003b70
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000b3d0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
and dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x14000a580
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x14000a5c0
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x140010b40]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x14000a5fe
cmp rsi, r14
jb 0x14000a5f6
cmp rsi, r15
jae 0x14000a5f6
cmp qword [rsi + 8], 0
jne 0x14000a7c7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14000a5e1
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x14000a692
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x14000a689
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000a689
cmp dword [rsp + 0x70], 0x10000
je 0x14000a70b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x14000a689
sub rbx, rbp
cmp rbx, r14
jae 0x14000a650
test rsi, rsi
jne 0x14000a770
cmp rdi, r15
ja 0x14000a7af
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x14000a7af
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000a7af
cmp dword [rsp + 0x70], 0x10000
je 0x14000a741
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x14000a6c2
jmp 0x14000a7af
test rbx, rbx
je 0x14000a689
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x14000a770
cmp rbx, r14
jae 0x14000a630
jmp 0x14000a692
test rdi, rdi
je 0x14000a7af
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x14000a770
cmp rdi, r15
jbe 0x14000a6a0
jmp 0x14000a7af
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x14000a780
mov rax, qword [0x140010b40]
mov qword [rsi], rax
mov qword [0x140010b40], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x14000c094
Capabilities:
Parse pe header

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

Function at 0x1400478a2
Capabilities:
Encode data using xor

Disassembly:
test dl, 0xba
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x20], 0x12ff5852
push qword [rsp + 8]
popfq
lea rsp, [rsp + 0x20]
call fcn.140068406
add eax, 0x9d39f0c4
pop rbp
imul edi, esi, 0xfffffff1
xor dword [rbp - 0x2c], esi
sub ebp, dword [rax]
movabs al, byte [0x2bd9002a4d9774e5]
mov dl, 0x3c
add qword [rax + 0x2c], r9
sbb eax, 0xe0a03712
xchg ebp, eax
cmp eax, 0x33d65868
jbe 0x1400478c2
hlt
Function at 0x100407f50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov eax, 0x20
lea rbp, [0x100414bc0]
lea rdi, [0x100414928]
mov r12, rcx
mov word [rsp + 0x20], ax
lea rsi, [0x100414929]
call sub.cygwin1.dll_strlen
mov rdx, qword [0x10041b180]
lea rcx, [rax*8 + 8]
lea rbx, [0x100414936]
call fcn.100409e10
lea r11, [0x100414932]
xor r9d, r9d
xor r10d, r10d
nop dword [rax + rax]
movzx r13d, byte [r12]
lea r8, [r12 + 1]
test r13b, r13b
je 0x100408046
cmp r13b, 0x87
je 0x100408160
jg 0x100408070
cmp r13b, 0x83
je 0x100408134
jg 0x1004080d4
cmp r13b, 0x81
je 0x100408150
cmp r13b, 0x82
jne 0x1004080f0
movsx r10d, byte [r12 + 1]
lea r8, [r12 + 2]
mov edx, 0x24
mov ecx, r10d
and ecx, 0xf
cmp cl, 0xa
mov rcx, r11
cmovne rcx, rbx
add rcx, 1
mov r12, r8
nop
add rax, 1
add rcx, 1
mov byte [rax - 1], dl
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x100408020
movzx r13d, byte [r12]
lea r8, [r12 + 1]
test r13b, r13b
jne 0x100407fc3
and r9d, 1
je 0x100408053
mov byte [rax], 0x22
add rax, 1
mov byte [rax], 0
mov qword [0x10041b180], rax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
cmp r13b, 0x24
je 0x10040817b
jle 0x100408100
cmp r13b, 0x3d
jne 0x100408194
test r10d, r10d
je 0x1004081af
mov edx, r10d
lea ecx, [r9 + r9]
and edx, 0xf
cmp edx, 1
movsxd rdx, edx
cmovne r9d, ecx
test r10b, 0x10
lea rcx, [rbp + rdx*4]
je 0x1004081b7
mov byte [rax], 0x3a
movzx edx, byte [rcx]
add rax, 1
add rcx, 1
test dl, dl
mov r12, r8
jne 0x100408020
jmp 0x100407fb0
cmp r13b, 0x84
je 0x100408120
cmp r13b, 0x86
mov edx, 0x24
lea rcx, [0x10041492b]
je 0x100408017
mov byte [rax], r13b
mov r12, r8
add rax, 1
jmp 0x100407fb0
cmp r13b, 0x88
jne 0x100408171
xor r9d, 1
mov r12, r8
mov r13d, 0x22
mov byte [rax], r13b
add rax, 1
jmp 0x100407fb0
lea rcx, [0x10041493a]
mov r12, r8
mov edx, 0x24
jmp 0x100408020
test r9b, 1
mov rcx, rsi
cmovne rcx, rdi
sar r9d, 1
xor r10d, r10d
movzx edx, byte [rcx]
jmp 0x1004080c0
movzx r13d, byte [r12 + 1]
add r12, 2
jmp 0x100408113
mov edx, 0x29
lea rcx, [0x10041492f]
jmp 0x100408017
cmp r13b, 0x22
jne 0x1004080f0
mov byte [rax], 0x5c
mov byte [rsp + 0x20], r13b
mov edx, r13d
add rax, 1
lea rcx, [rsp + 0x20]
jmp 0x100408017
cmp r13b, 0x5c
je 0x10040817b
cmp r13b, 0x27
je 0x10040817b
mov byte [rax], r13b
mov r12, r8
add rax, 1
jmp 0x100407fb0
mov r12, r8
jmp 0x100408113
movzx edx, byte [rcx]
jmp 0x1004080c0