joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001000
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub rsp, 0x28
call fcn.180001464
lea rcx, str.C:Users
call fcn.180001140
add rsp, 0x28
jmp 0x180001030
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
xor r9d, r9d
lea rax, [rbp - 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x10]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x180001128
lea rdx, str.what.txt
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
and qword [rsp + 0x30], 0
lea rcx, [rbp - 0x70]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180001128
movaps xmm0, xmmword [str.I_believe_youve_encountered_some_problems._Email_to_hoyoverse_for_solutions.]
lea r9, [rbp + 0xb0]
movaps xmm1, xmmword [0x1800020c0]
lea rdx, [rsp + 0x40]
mov eax, dword [0x1800020f8]
mov r8d, 0x4d
and qword [rsp + 0x20], 0
mov rcx, rbx
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [0x1800020d0]
movaps xmmword [rsp + 0x60], xmm0
movsd xmm0, qword [0x1800020f0]
movaps xmmword [rsp + 0x50], xmm1
movaps xmm1, xmmword [0x1800020e0]
mov dword [rbp - 0x78], eax
movzx eax, word [0x1800020fc]
movsd qword [rbp - 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm1
mov word [rbp - 0x74], ax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x1a0
pop rbp
ret

Function at 0x180001030
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub rsp, 0x28
call fcn.180001464
lea rcx, str.C:Users
call fcn.180001140
add rsp, 0x28
jmp 0x180001030
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
xor r9d, r9d
lea rax, [rbp - 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x10]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x180001128
lea rdx, str.what.txt
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
and qword [rsp + 0x30], 0
lea rcx, [rbp - 0x70]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180001128
movaps xmm0, xmmword [str.I_believe_youve_encountered_some_problems._Email_to_hoyoverse_for_solutions.]
lea r9, [rbp + 0xb0]
movaps xmm1, xmmword [0x1800020c0]
lea rdx, [rsp + 0x40]
mov eax, dword [0x1800020f8]
mov r8d, 0x4d
and qword [rsp + 0x20], 0
mov rcx, rbx
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [0x1800020d0]
movaps xmmword [rsp + 0x60], xmm0
movsd xmm0, qword [0x1800020f0]
movaps xmmword [rsp + 0x50], xmm1
movaps xmm1, xmmword [0x1800020e0]
mov dword [rbp - 0x78], eax
movzx eax, word [0x1800020fc]
movsd qword [rbp - 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm1
mov word [rbp - 0x74], ax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x1a0
pop rbp
ret
Function at 0x180001140
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov rbx, rcx
call fcn.1800012a0
test eax, eax
jne 0x180001233
mov rcx, rbx
call fcn.180001250
test eax, eax
jne 0x180001233
mov rdx, rbx
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [0x180002094]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180001233
cmp byte [rsp + 0x4c], 0x2e
jne 0x1800011d4
mov cl, byte [rsp + 0x4d]
test cl, cl
je 0x180001218
cmp cl, 0x2e
jne 0x1800011d4
cmp byte [rsp + 0x4e], 0
je 0x180001218
mov rdx, rbx
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [0x180002098]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x4c]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [rsp + 0x20], 0x10
lea rcx, [rbp + 0x60]
je 0x180001213
call fcn.180001140
jmp 0x180001218
call fcn.1800012f0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1800011b9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x180001250
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x140
xor r9d, r9d
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x140
pop rbx
ret

Function at 0x1800012a0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x140
xor r9d, r9d
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x140
pop rbx
ret
Function at 0x1800012f0
Capabilities:
Move file
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10050]
mov eax, 0x10150
call fcn.1800014f0
sub rsp, rax
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jl 0x180001333
cdqe
cmp byte [rax + rsi - 2], 0x2e
jne 0x180001333
cmp byte [rax + rsi - 1], 0x6b
je 0x180001446
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov rcx, rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x180001446
and dword [rbp + 0x10098], 0
xor eax, eax
mov dword [rbp + 0x1009c], eax
xor r15d, r15d
mov rbx, qword [rbp + 0x10098]
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x10088]
mov r8d, 0x10000
lea rdx, [rbp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000140f
mov eax, dword [rbp + 0x10088]
test eax, eax
je 0x18000140f
mov edi, 0x80000
lea rcx, [rbp + 0x50]
sub rdi, r15
cmp rax, rdi
cmovb rdi, rax
mov rdx, rdi
call fcn.1800014cc
mov rdx, rbx
mov rcx, r14
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x10090]
mov r8d, edi
lea rdx, [rbp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rbx, rdi
add r15, rdi
cmp r15, 0x80000
jb 0x180001384
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [0x180002090]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov rbx, qword [rsp + 0x10180]
add rsp, 0x10150
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x180001464
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x38
lea rcx, [rsp + 0x58]
movaps xmmword [rsp + 0x20], xmm6
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movsd xmm6, qword [0x180002110]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x48]
xorps xmm1, xmm1
sub rax, qword [rsp + 0x50]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x58]
cvtsi2sd xmm1, rax
divsd xmm1, xmm0
comisd xmm6, xmm1
ja 0x18000148b
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1800014cc
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x1800014dd
xor byte [rcx], 0xaa
inc rcx
sub rdx, 1
jne 0x1800014d1
ret
Function at 0x14002df60
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002df6d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002df7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14002df65
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14002df95
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14002df82
sub eax, 3
jb 0x14002dfaf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14002dfe6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14002dfd6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14002dfd4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14002dfc3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14002df22
jmp 0x14002df6d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2b000]
mov eax, dword [rdi]
or eax, eax
je 0x14002e042
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2e1dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14002dff2
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14002e03c
mov qword [rbx], rax
add rbx, 8
jmp 0x14002e012
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14002e07c
cmp al, 0xef
ja 0x14002e06e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14002e04e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14002e05d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x21f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14002e0d0
sub rsp, 0xffffffffffffff80
jmp 0x140011352
Function at 0x14000c7a5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
xor ebx, ebx
mov dword [rsp + 0x20], 0x615f535f
mov dword [rsp + 0x24], 0x414a2169
mov dword [rsp + 0x28], 0x32774748
mov dword [rsp + 0x2c], 0x4a4f4035
mov dword [rsp + 0x30], 0x53577167
mov word [rsp + 0x50], bx
mov byte [rsp + 0x34], 0
mov dword [rsp + 0x38], 0x65006b
mov dword [rsp + 0x3c], 0x6e0072
mov dword [rsp + 0x40], 0x6c0065
mov dword [rsp + 0x44], 0x320033
mov dword [rsp + 0x48], 0x64002e
mov dword [rsp + 0x4c], 0x6c006c
mov edx, 0x3d0924
nop dword [rax]
nop dword [rax + rax]
mov eax, ebx
lea rcx, [rbp - 0x69]
nop word [rax + rax]
mov byte [rcx], al
inc eax
lea rcx, [rcx + 1]
cmp eax, 0x72
jb 0x14000c845
dec rdx
jne 0x14000c835
cmp byte [rbp - 0x28], 0x41
jne 0x14000c86c
lea rcx, [rsp + 0x38]
call fcn.14000ce65
mov rdi, rax
jmp 0x14000c870
mov rdi, qword [rbp + 0x6f]
mov edx, 0xec122
mov rcx, rdi
call fcn.14000cec5
invalid
cmpsb byte [rsi], byte [rdi]
push rsp

Function at 0x14000cec5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor r8d, r8d
mov ebx, edx
mov r9d, dword [rax + rcx + 0x88]
mov r11, rcx
add r9, rcx
mov r10d, dword [r9 + 0x20]
mov edi, dword [r9 + 0x1c]
mov esi, dword [r9 + 0x24]
mov r9d, dword [r9 + 0x18]
add r10, rcx
add rdi, rcx
add rsi, rcx
test r9d, r9d
je 0x14000cf24
mov ecx, dword [r10]
add rcx, r11
call fcn.14000ce15
cmp eax, ebx
je 0x14000cf36
inc r8d
add r10, 4
cmp r8d, r9d
jb 0x14000cf09
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx ecx, word [rsi + r8*2]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, dword [rdi + rcx*4]
add rax, r11
add rsp, 0x20
pop rdi
ret
Function at 0x14201e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14201e1df
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 0x14201e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14201e06f
add dl, dl
jne 0x14201e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14201e0f6
xor eax, eax
add dl, dl
jne 0x14201e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14201e1ad
add dl, dl
jne 0x14201e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14201e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14201e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14201e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14201e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14201e07e
mov eax, 1
add dl, dl
jne 0x14201e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14201e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14201e0fb
sub eax, ebx
mov ebx, 1
jne 0x14201e14c
mov ecx, 1
add dl, dl
jne 0x14201e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14201e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14201e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14201e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14201e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14201e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14201e15d
cmp eax, 0x7d00
jae 0x14201e19b
cmp eax, 0x500
jb 0x14201e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14201e07e
cmp eax, 0x7f
ja 0x14201e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14201e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14201e1d2
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 0x14201e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140081d50]
mov dword [rax], 1
mov rax, qword [0x140081d60]
mov dword [rax], 1
mov rax, qword [0x140081d70]
mov dword [rax], 1
mov rax, qword [0x140081d00]
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 0x140043ae0
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.140064cd0
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.140059280
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140043b39
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x1400639b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140075130
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140075130
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140064682
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14008bd08]
test eax, eax
je 0x14006471a
lea rax, [0x14008bce0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14008bd10]
mov qword [rbp - 8], rax
jmp 0x1400646fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400646f2
cmp qword [rbp - 0x10], 0
je 0x1400646f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400646b8
lea rax, [0x14008bce0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14006471b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140064820
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140064848
mov eax, 0
jmp 0x140064896
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 0x140064871
mov eax, 0
jmp 0x140064896
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140064891
mov eax, 0
jmp 0x140064896
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14006489c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14006491a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140064911
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140064911
mov rax, qword [rbp - 8]
jmp 0x14006492f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400648e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180388b40
Capabilities:
Parse pe header

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

Disassembly:
call fcn.18066a1df
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 0x18066a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18066a06f
add dl, dl
jne 0x18066a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18066a0f6
xor eax, eax
add dl, dl
jne 0x18066a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18066a1ad
add dl, dl
jne 0x18066a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18066a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18066a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18066a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18066a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18066a07e
mov eax, 1
add dl, dl
jne 0x18066a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18066a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18066a0fb
sub eax, ebx
mov ebx, 1
jne 0x18066a14c
mov ecx, 1
add dl, dl
jne 0x18066a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18066a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18066a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18066a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18066a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18066a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18066a15d
cmp eax, 0x7d00
jae 0x18066a19b
cmp eax, 0x500
jb 0x18066a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18066a07e
cmp eax, 0x7f
ja 0x18066a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18066a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18066a1d2
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 0x18066a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20