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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x50]
mov r12, qword [rcx + 0x58]
mov ebx, 1
cmp rdi, r12
je 0x1400e8ad4
mov rsi, r8
mov r14, rcx
lea r15, [rsp + 0x20]
mov rcx, rdi
mov rdx, r15
call fcn.1400e8350
test al, al
jne 0x1400e8a9c
add rdi, 0x70
cmp rdi, r12
jne 0x1400e8a81
mov rdi, r12
cmp rdi, qword [r14 + 0x58]
je 0x1400e8ad4
cmp byte [rdi + 0x27], 0
js 0x1400e8aae
lea rcx, [rdi + 0x10]
jmp 0x1400e8ab2
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
mov ebx, 1
cmovne ebx, ecx
test ebx, ebx
jne 0x1400e8ad4
mov qword [rsi], rdi
xor ebx, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140092d80
mov eax, ebx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400e8c60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov r14, qword [rcx + 0x50]
mov r12, qword [rcx + 0x58]
mov esi, 1
cmp r14, r12
je 0x1400e8cdb
mov rdi, r9
mov ebp, r8d
mov rbx, rcx
lea r15, [rsp + 0x20]
mov rcx, r14
mov rdx, r15
call fcn.1400e8350
test al, al
jne 0x1400e8cc0
add r14, 0x70
cmp r14, r12
jne 0x1400e8ca5
mov r14, r12
cmp r14, qword [rbx + 0x58]
je 0x1400e8cdb
mov eax, dword [r14 + 0x68]
cmp eax, ebp
je 0x1400e8cf9
xor ecx, ecx
cmp eax, 1
sete cl
lea esi, [rcx + rcx*2]
inc esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140092d80
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp byte [r14 + 0x27], 0
js 0x1400e8d06
lea rcx, [r14 + 0x10]
jmp 0x1400e8d0a
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e8cdb
shr eax, 3
and eax, 2
mov esi, eax
jne 0x1400e8cdb
mov byte [rbx + 0x48], 1
mov qword [rdi], r14
xor esi, esi
jmp 0x1400e8cdb
Function at 0x1400f1ff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1400f201a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f203c
mov edi, eax
test bl, bl
jne 0x1400f2034
mov eax, edi
and eax, 0x400
jne 0x1400f204a
and edi, 0x10
shr edi, 4
jmp 0x1400f204c
mov ecx, 2
call fcn.140076430
test al, al
jne 0x1400f2069
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140092d80
mov eax, edi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x82
mov r9d, 2
call fcn.1400e34e0
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400c5b20
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.140067420
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400f20e9
and r8d, 0x7f
jmp 0x1400f20f3
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1400c5b20
cmp byte [rsp + 0x57], 0
jns 0x1400f210f
mov rcx, qword [rsp + 0x40]
call fcn.1400918a8
lea rcx, [rsp + 0x58]
call fcn.1400e3560
jmp 0x1400f204a

Function at 0x1400f2120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1400f2147
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f2177
test eax, 0x410
sete sil
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140092d80
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140076430
test al, al
jne 0x1400f2189
xor esi, esi
jmp 0x1400f215b
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x75
mov r9d, 2
call fcn.1400e34e0
lea rcx, [rsp + 0x60]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400c5b20
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.140067420
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400f2209
and r8d, 0x7f
jmp 0x1400f2213
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.1400c5b20
cmp byte [rsp + 0x4f], 0
jns 0x1400f222f
mov rcx, qword [rsp + 0x38]
call fcn.1400918a8
lea rcx, [rsp + 0x50]
call fcn.1400e3560
jmp 0x1400f2185
Function at 0x1400f2240
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1400f2267
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f227e
and eax, 0x410
cmp eax, 0x410
je 0x1400f22c3
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400f228a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
jne 0x1400f22a7
mov ecx, 2
call fcn.140076430
test al, al
jne 0x1400f22e4
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140092d80
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140092d80
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.1400f23a0
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x95
mov r9d, 2
call fcn.1400e34e0
lea rcx, [rsp + 0x60]
lea rdx, str.DeleteFile
mov r8d, 0xb
call fcn.1400c5b20
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.140067420
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400f2364
and r8d, 0x7f
jmp 0x1400f236e
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.1400c5b20
cmp byte [rsp + 0x4f], 0
jns 0x1400f238a
mov rcx, qword [rsp + 0x38]
call fcn.1400918a8
lea rcx, [rsp + 0x50]
call fcn.1400e3560
jmp 0x1400f22a5

Function at 0x1400f23a0
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rdi, rcx
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1400f23c8
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x1400f23e2
mov ecx, 2
call fcn.140076430
test al, al
jne 0x1400f2404
test esi, esi
setne bl
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140092d80
mov eax, ebx
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x30
mov r9d, 2
call fcn.1400e34e0
lea rcx, [rsp + 0x68]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.1400c5b20
mov rbx, rax
movzx eax, byte [rdi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rdi]
cmovns rax, rdi
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
cmovs rcx, qword [rdi + 8]
mov qword [rdx + 8], rcx
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.140067420
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
js 0x1400f2484
and r8d, 0x7f
jmp 0x1400f248e
mov r8, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rcx, rbx
mov rdx, rdi
call fcn.1400c5b20
cmp byte [rsp + 0x57], 0
jns 0x1400f24aa
mov rcx, qword [rsp + 0x40]
call fcn.1400918a8
lea rcx, [rsp + 0x58]
call fcn.1400e3560
jmp 0x1400f23e2
Function at 0x1400f4710
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x1400f474e
test rax, rax
je 0x1400f4817
mov rcx, qword [rbx]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
sub rax, qword [rsi]
mov r15, rax
sar r15, 3
lea rcx, [r15 + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x1400f4843
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r14, rax
sar r14, 2
cmp r14, rcx
cmovbe r14, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r14, rdx
test r14, r14
jne 0x1400f480a
xor eax, eax
shl r15, 3
add r15, rax
je 0x1400f4817
lea rax, [rax + r14*8]
mov rcx, qword [rbx]
mov qword [r15], rcx
lea rcx, [r15 + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
cmp r8, rdx
je 0x1400f47d8
mov r9, qword [r8 - 8]
add r8, 0xfffffffffffffff8
mov qword [r15 - 8], r9
add r15, 0xfffffffffffffff8
cmp r8, rdx
jne 0x1400f47c0
mov rdx, qword [rsi]
mov qword [rsi], r15
mov qword [rsi + 8], rcx
mov r8, qword [rsi + 0x10]
mov qword [rsi + 0x10], rax
test rdx, rdx
je 0x1400f4742
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1400f4d80
mov rcx, rdi
mov rdx, r14
call fcn.1400f5350
jmp 0x1400f479d
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1400c6370
mov rcx, rsi
call fcn.1400c62e0
int3

Function at 0x1400fa390
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400fa3cc
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400fa3d6
add rdi, rbx
sub rsi, rbx
jne 0x1400fa3aa
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400aa390
int3

Function at 0x1400fe2b0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400fe2fe
mov rdx, rcx
add rdi, rdx
cmp al, 1
je 0x1400fe33c
cmp rdi, rsi
jae 0x1400fe33c
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1400fe2f7
jmp 0x1400fe2f4
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140092d80
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140175050
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x140264040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x20], 0x18
mov byte [rsp + 0x21], 0x68
mov byte [rsp + 0x22], 0x5e
mov byte [rsp + 0x23], 0x5b
mov byte [rsp + 0x24], 0x69
mov byte [rsp + 0x25], 0x41
mov byte [rsp + 0x26], 0x53
mov byte [rsp + 0x27], 0x49
mov byte [rsp + 0x28], 0x72
mov byte [rsp + 0x29], 0x70
mov byte [rsp + 0x2a], 0x52
mov byte [rsp + 0x2b], 0
lea rcx, [rsp + 0x20]
call fcn.140225400
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140228960
add rsp, 0x48
ret
Function at 0x1401bfdc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x140264040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x20], 0x20
mov byte [rsp + 0x21], 0x6d
mov byte [rsp + 0x22], 0x50
mov byte [rsp + 0x23], 0x76
mov byte [rsp + 0x24], 0x4d
mov byte [rsp + 0x25], 0x50
mov byte [rsp + 0x26], SafeArrayAccessData
mov byte [rsp + 0x27], SafeArrayAccessData
mov byte [rsp + 0x28], 0x65
mov byte [rsp + 0x29], 0x4e
mov byte [rsp + 0x2a], 0x54
mov byte [rsp + 0x2b], 0x52
mov byte [rsp + 0x2c], 0x59
mov byte [rsp + 0x2d], 0
lea rcx, [rsp + 0x20]
call fcn.1402252c0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140228960
add rsp, 0x48
ret

Function at 0x14022981c
Capabilities:
Parse pe header

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

Function at 0x14022f5b0
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 0x14022f61f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14022f61f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14022f61f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14022f61f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14022f61f
cmp dword [rcx + 0x84], 0xe
jbe 0x14022f61f
cmp dword [rcx + 0xf8], 0
je 0x14022f61f
mov ecx, ebx
call fcn.14022f6d0
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.14022f4ac
nop
cmp dword [rbp + 0x20], 0
je 0x14022f66d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14022f678
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14022f5b0

Function at 0x14022f7b4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14022f5b0
Function at 0x140232868
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 0x140232898
xor eax, eax
jmp 0x14023295b
mov rbp, rbx
cmp word [rax], si
je 0x1402328bd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1402328a4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1402328a0
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.140232788
movsxd r14, eax
test eax, eax
jne 0x1402328fb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140232891
mov rcx, r14
call fcn.140230dac
mov rdi, rax
test rax, rax
jne 0x140232914
xor ecx, ecx
call fcn.140230e84
jmp 0x1402328f0
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.140232788
test eax, eax
jne 0x140232945
mov rcx, rdi
call fcn.140230e84
jmp 0x14023294f
xor ecx, ecx
call fcn.140230e84
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 0x140236078
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.14023014c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140236102
cmp byte [rbp - 0x21], r15b
je 0x1402360fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140236138
call fcn.140233e3c
test eax, eax
jne 0x140236124
cmp byte [rbp - 0x21], r15b
je 0x14023611c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140236138
cmp byte [rbp - 0x21], r15b
je 0x140236135
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.140230ed4
test eax, eax
jne 0x1402361d8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14023014c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140236177
cmp byte [rbp - 0x21], r15b
je 0x1402361ac
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1402361ac
call fcn.140233e3c
test eax, eax
jne 0x140236198
cmp byte [rbp - 0x21], r15b
je 0x140236191
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1402361ac
cmp byte [rbp - 0x21], r15b
je 0x1402361a9
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.140230ed4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1402361d8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1402361db
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1402361e9
mov rcx, rdi
call fcn.140230e84
cmp byte [rbp + 0x3f], r15b
je 0x1402361f8
mov rcx, qword [rbp + 0x27]
call fcn.140230e84
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 0x140238a80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140238aa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140238aa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1415b4058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1415b41df
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 0x1415b4089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415b406f
add dl, dl
jne 0x1415b4096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415b40f6
xor eax, eax
add dl, dl
jne 0x1415b40a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415b41ad
add dl, dl
jne 0x1415b40b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415b40c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415b40d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415b40dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1415b40ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1415b407e
mov eax, 1
add dl, dl
jne 0x1415b4106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415b4113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415b40fb
sub eax, ebx
mov ebx, 1
jne 0x1415b414c
mov ecx, 1
add dl, dl
jne 0x1415b412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415b413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415b4123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415b407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1415b4168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415b4175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415b415d
cmp eax, 0x7d00
jae 0x1415b419b
cmp eax, 0x500
jb 0x1415b4196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415b407e
cmp eax, 0x7f
ja 0x1415b419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415b407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1415b41d2
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 0x1415b407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1405d4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405d41df
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 0x1405d4089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405d406f
add dl, dl
jne 0x1405d4096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405d40f6
xor eax, eax
add dl, dl
jne 0x1405d40a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405d41ad
add dl, dl
jne 0x1405d40b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d40c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d40d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d40dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405d40ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405d407e
mov eax, 1
add dl, dl
jne 0x1405d4106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d4113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405d40fb
sub eax, ebx
mov ebx, 1
jne 0x1405d414c
mov ecx, 1
add dl, dl
jne 0x1405d412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405d413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405d4123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405d407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405d4168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405d4175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405d415d
cmp eax, 0x7d00
jae 0x1405d419b
cmp eax, 0x500
jb 0x1405d4196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405d407e
cmp eax, 0x7f
ja 0x1405d419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405d407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405d41d2
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 0x1405d407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002590
Capabilities:
Parse pe header

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