joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400048ea
Capabilities:
Create directory
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x258
mov rdi, rcx
mov rax, qword [0x14007f040]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rsi, [rsp + 0x40]
mov dword [rsi], 0xaaaaaaaa
lea rcx, str.Logging
mov rdx, rsi
call fcn.14000421b
xor ecx, ecx
test eax, eax
jne 0x14000492f
mov ecx, dword [rsp + 0x40]
mov dword [0x140082608], ecx
test cl, 0x20
jne 0x140004958
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400174b0
nop
add rsp, 0x258
pop rbx
pop rdi
pop rsi
pop r14
ret
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
mov cx, 6
mov dx, 3
xor r8d, r8d
call fcn.14001664f
test al, al
je 0x1400049d1
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140049940
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x1c
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x1400049c0
cmp byte [rsp + 0x37], 0
jns 0x14000493a
mov rcx, qword [rsp + 0x20]
call fcn.140016970
jmp 0x14000493a
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x40]
call fcn.14001652c
jmp 0x140004a2f
lea r9, [rsp + 0x40]
mov qword [r9], 0
lea rcx, section..rdata
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
je 0x140004a0c
lea rcx, [0x140064010]
lea r9, [rsp + 0x40]
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x1400049aa
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140004b57
lea rcx, [rsp + 0x20]
call fcn.14001652c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [0x140070d24]
lea rbx, [rsp + 0x20]
mov r8d, 0xa
mov rcx, rbx
call fcn.140013432
cmp byte [rax + 0x17], 0
jns 0x140004a52
mov rax, qword [rax]
mov r14, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rax
xor edx, edx
call r14
lea rdx, str.EdgeBho
mov r8d, 8
mov rcx, rbx
call fcn.140013432
cmp byte [rax + 0x17], 0
jns 0x140004a7f
mov rax, qword [rax]
mov rcx, rax
xor edx, edx
call r14
lea rdx, [0x140070d4c]
mov r8d, 1
mov rcx, rbx
call fcn.140013432
mov rcx, rbx
mov rdx, rdi
call fcn.1400165f4
test byte [0x140082609], 0x20
je 0x140004b0b
lea rdx, [0x140070d50]
lea rdi, [rsp + 0x20]
mov r8d, 1
mov rcx, rdi
call fcn.140013432
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, rsi
mov edx, eax
call fcn.1400631f4
movsx r8, byte [rsp + 0x57]
test r8, r8
jns 0x140004aef
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.140013432
cmp byte [rsp + 0x57], 0
jns 0x140004b0b
mov rcx, qword [rsp + 0x40]
call fcn.140016970
lea rdx, [0x140070d54]
mov r8d, 4
mov rcx, rbx
call fcn.140013432
xor r8d, r8d
bt dword [0x140082608], 0xc
setae r8b
shl r8d, 5
or r8d, 0x10
cmp byte [rsp + 0x37], 0
jns 0x140004b43
mov rbx, qword [rsp + 0x20]
lea rcx, [0x1400824c0]
mov rdx, rbx
call fcn.140005098
jmp 0x1400049aa
lea rcx, [0x14006f9fa]
lea rdx, str....._third_partylibc_srcinclude_string:2706:_assertion___s___nullptr_failed:_string::assign_received_nullptr_n
call fcn.140063582
int3
Function at 0x140004e8a
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x14007f040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [rcx]
movsxd rcx, dword [rax + 4]
add rcx, rsi
lea rdi, [rsp + 0x20]
mov rdx, rdi
call fcn.140005dfa
lea rdx, [0x140083088]
mov rcx, rdi
call fcn.1400129ee
mov rcx, qword [rax]
mov r8, qword [rcx + 0x58]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x140074030]
mov ebx, eax
mov rcx, rdi
call fcn.140006bae
mov rcx, rsi
mov edx, ebx
call fcn.14004bc2c
mov rcx, rsi
call fcn.14004b3cc
lea rcx, [rsi + 8]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14006e630]
movaps xmmword [rdi], xmm0
lea rdi, [rsp + 0x38]
mov rdx, rdi
call fcn.14004c4ce
mov rdx, qword [rdi]
mov r8, qword [rdi + 8]
lea rdi, [rsp + 0x20]
mov rcx, rdi
call fcn.140013252
mov eax, dword [0x140082608]
test al, 0x10
je 0x140004f6b
movsx r8, byte [rsp + 0x37]
test r8, r8
cmovs r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
cmovns rdx, rdi
lea rcx, [0x140082960]
call fcn.14004c59f
mov eax, dword [0x140082608]
test al, 0x20
je 0x140004fb0
cmp qword [0x140082540], 0
je 0x140004fb0
lea rdx, [rsp + 0x20]
movsx r8, byte [rdx + 0x17]
test r8, r8
cmovs r8, qword [rdx + 8]
cmovs rdx, qword [rdx]
lea rcx, [0x1400824c0]
call fcn.14004c59f
cmp dword [rsi + 0x108], 2
jl 0x140004fb0
lea rcx, [0x1400824c0]
call fcn.14004b3cc
test byte [0x140082608], 0x40
je 0x140004fd8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140004fd8
cmp byte [rsp + 0x37], 0
jns 0x140004fcf
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rsi + 0x108], 3
jne 0x140004fe7
call qword [sym.imp.KERNEL32.dll_DebugBreak]
cmp byte [rsp + 0x37], 0
jns 0x140004ff8
mov rcx, qword [rsp + 0x20]
call fcn.140016970
add rsi, 0x70
mov rcx, rsi
call fcn.14004da94
mov rcx, rsi
call fcn.14004b10c
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400174b0
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001707c
Capabilities:
Parse pe header

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

Function at 0x1400289bc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140028b04
Function at 0x140028b04
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140028b04
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 0x140028b73
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140028b73
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140028b73
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140028b73
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140028b73
cmp dword [rcx + 0x84], 0xe
jbe 0x140028b73
cmp dword [rcx + 0xf8], 0
je 0x140028b73
mov ecx, ebx
call fcn.140028a3c
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.140028c98
nop
cmp dword [rbp + 0x20], 0
je 0x140028bc1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140028ad0
int3

Function at 0x1400317d8
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.140017450
sub rsp, rax
mov rax, qword [0x14007f040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003ae70
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140031827
mov rax, rbp
jmp 0x14003192f
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 + 0x81d80]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140042154
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x81d80]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003192b
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 0x14003192b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140042154
test rax, rax
js 0x14003192b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003192b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003191d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003191d
cmp byte [rcx], 0xd
jne 0x140031903
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140031912
cmp byte [rcx + 1], 0xa
jne 0x140031912
inc rcx
jmp 0x140031912
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7f9a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400318e5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003192f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400174b0
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 0x140033890
Capabilities:
Parse pe header

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

Function at 0x14003da98
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140037574
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14003db39
cmp ebx, dword [rsp + 0x30]
je 0x14003db32
test esi, esi
je 0x14003db32
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14003db0d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14003db1a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14003daf7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14003db1e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14003db3b
mov eax, 1
jmp 0x14003db3b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003e5f0
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 0x14003e677
mov rsi, rbx
cmp word [rax], bp
je 0x14003e636
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003e620
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003e61c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140039dc4
mov rdi, rax
test rax, rax
je 0x14003e664
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400492a0
mov rbp, rdi
xor ecx, ecx
call fcn.140036c28
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 0x140041488
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.1400420b0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400420b0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400415d8
cmp rax, 0xffffffffffffffff
je 0x1400415d8
xor edi, edi
test rbp, rbp
jle 0x140041583
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140036bb0
mov rbx, rax
test rax, rax
jne 0x140041510
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140041579
mov edx, 0x8000
mov ecx, r14d
call fcn.14002cafc
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.1400407c0
cmp eax, 0xffffffff
je 0x140041559
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140041520
mov edx, r15d
mov ecx, r14d
call fcn.14002cafc
jmp 0x140041579
cmp byte [rsi + 0x38], dil
je 0x140041570
cmp dword [rsi + 0x34], 5
jne 0x140041570
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140041579
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140036c28
jmp 0x1400415ec
jns 0x1400415ec
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400420b0
cmp rax, 0xffffffffffffffff
jne 0x1400415a4
cmp byte [rsi + 0x30], dil
je 0x1400415ec
mov edi, dword [rsi + 0x2c]
jmp 0x1400415ec
mov ecx, r14d
call fcn.14002b6ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400415ec
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 0x1400415ec
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400415e5
mov eax, dword [rsi + 0x2c]
jmp 0x1400415ea
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400420b0
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 0x140041e54
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140081d80]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140041eab
cmp word [rdx], r13w
jne 0x140041eab
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140041eb0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140041fd5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140041ff6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140041ee9
mov rdx, r9
mov word [rbx], cx
jmp 0x140041f10
cmp r9, r8
jae 0x140041f20
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140041eca
jmp 0x140041fd5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140041fca
cmp dword [rsp + 0x80], esi
je 0x140041fca
lea r8, [0x140081d80]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140041fa2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140041f72
mov word [rbx], r13w
jmp 0x140041fd2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140041f7f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140041fd2
cmp word [rsp + 0x70], r13w
jne 0x140041faf
cmp rbx, r14
je 0x140041f6c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400420b0
cmp word [rsp + 0x70], r13w
je 0x140041fd5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140081d80]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140041fcf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140041fd5

Function at 0x1400427bc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400427d2
mov al, 1
jmp 0x140042832
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400427e3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140042830
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002b6ec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140042830
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140042830
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140042830
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140042832
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004e5e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x14004e72e
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14007f040]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x60], 0
je 0x14004e791
mov edi, dword [rsi + 0x5c]
test bl, bl
je 0x14004e76a
mov dword [rsi + 0x5c], 0xffffffff
mov byte [rsi + 0x60], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400174b0
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edi, 0xffffffff
jmp 0x14004e76a
cmp byte [rsi + 0x61], 0
je 0x14004e7c7
mov rcx, qword [rsi + 0x40]
call fcn.1400321c0
cmp eax, 0xffffffff
je 0x14004e78a
test bl, bl
je 0x14004e7b1
movzx edi, al
mov dword [rsi + 0x5c], edi
jmp 0x14004e76a
mov rdx, qword [rsi + 0x40]
movzx edi, al
mov ecx, edi
call fcn.140032988
cmp eax, 0xffffffff
cmove edi, eax
jmp 0x14004e76a
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], rdi
mov eax, dword [rsi + 0x58]
cmp eax, 2
mov r15d, 1
cmovge r15d, eax
xor r14d, r14d
mov rcx, qword [rsi + 0x40]
call fcn.1400321c0
cmp eax, 0xffffffff
je 0x14004e78a
mov byte [rsp + r14 + 0x58], al
inc r14
cmp r15, r14
jne 0x14004e7e9
lea rax, [rsp + 0x58]
mov byte [rax - 1], 0xaa
lea rax, [rsp + 0x48]
mov qword [rax], rdi
lea rbp, [rsp + 0x40]
mov qword [rbp], rdi
mov edi, 0xffffffff
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r14d, dword [rdx]
movzx r12d, word [rdx + 4]
movzx r13d, word [rdx + 6]
lea r9, [rsp + r15 + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x57]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x58]
call qword [0x140074030]
cmp eax, 1
jne 0x14004e8b1
mov rax, qword [rsi + 0x50]
mov dword [rax], r14d
mov word [rax + 4], r12w
mov word [rax + 6], r13w
cmp r15d, 8
je 0x14004e76a
mov rcx, qword [rsi + 0x40]
call fcn.1400321c0
cmp eax, 0xffffffff
je 0x14004e76a
mov byte [rsp + r15 + 0x58], al
inc r15
jmp 0x14004e823
cmp eax, 2
je 0x14004e76a
cmp eax, 3
jne 0x14004e8c7
mov al, byte [rsp + 0x58]
mov byte [rsp + 0x57], al
test bl, bl
je 0x14004e8df
movzx edi, byte [rsp + 0x57]
jmp 0x14004e7ac
movzx edi, byte [rsp + 0x57]
jmp 0x14004e76a
test r15, r15
jle 0x14004e8d5
mov rdx, qword [rsi + 0x40]
movzx ecx, byte [rsp + r15 + 0x57]
dec r15
call fcn.140032988
cmp eax, 0xffffffff
jne 0x14004e8df
jmp 0x14004e76a

Function at 0x14004f240
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x14004f277
movabs rcx, 0xf000000000000000
shl rax, 4
movsx r9, byte [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
inc rdx
cmp rdx, r8
jne 0x14004f251
ret

Function at 0x14004f2f0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x14004f328
movabs rcx, 0xf000000000000000
shl rax, 4
movzx r9d, word [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
add rdx, 2
cmp rdx, r8
jne 0x14004f301
ret
Function at 0x140055100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov r15b, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x14005516d
movzx edx, word [rbp + 0x60]
movzx r8d, r15b
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], r8d
mov word [rsp + 0x20], dx
mov rdx, rsi
mov r8, rdi
call qword [0x140074030]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rsi], rdi
test al, al
jns 0x14005514f
call fcn.140016970
jmp 0x14005514f
lea rbx, [rbp - 0x20]
mov rcx, r9
mov rdx, rbx
call fcn.140005dfa
lea rdx, [0x140083118]
mov rcx, rbx
call fcn.1400129ee
mov r14, rax
mov rcx, qword [rbp - 0x20]
lea rax, [0x140082f30]
cmp rcx, rax
je 0x1400551b9
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x1400551b9
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140074030]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x14006e630]
movaps xmmword [rbx], xmm0
mov rax, qword [r14]
xor r15b, 1
movzx ecx, r15b
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, r14
mov rdx, rbx
call qword [0x140074030]
movsx rax, byte [rbx + 0x17]
test rax, rax
mov rcx, qword [rbx]
mov rdx, qword [rbx + 8]
mov r8, rax
cmovs r8, rdx
test r8, r8
je 0x14005515f
test al, al
mov r14, rbx
cmovs r14, rcx
jmp 0x14005525b
xor edi, edi
jmp 0x140055239
lea rdx, [rcx + 2]
mov qword [rdi + 0x30], rdx
mov word [rcx], ax
cmp ax, 0xffff
jne 0x14005522e
xor edi, edi
mov al, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add r14, 2
test al, al
mov r8, rbx
cmovs r8, rcx
movzx r9d, al
cmovs r9, rdx
lea r8, [r8 + r9*2]
cmp r14, r8
je 0x14005515f
test rdi, rdi
je 0x140055217
movzx eax, word [r14]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
jne 0x14005521b
mov rcx, qword [rdi]
mov r8, qword [rcx + 0x60]
mov rcx, rdi
mov edx, eax
mov rax, r8
call qword [0x140074030]
jmp 0x140055226
Function at 0x10001020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1000105b
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x28
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x1000109f
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x1000109a
cmp rbx, r11
jae 0x1000109f
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x10001088
cmp rbx, r11
jb 0x100010a3
xor eax, eax
jmp 0x100010af
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x28
ret