joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400021f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a7f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002210
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002218
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002210
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000226d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002264
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002210
add rax, 0x28
cmp rax, r9
jne 0x140002250
xor eax, eax
ret

Function at 0x140002270
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a7f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000228f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002298
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000228f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a7f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000234f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002358
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140007c20
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x170
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], rcx
mov dword [rbp + 0xec], 0
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0xffffffffffffffff
jne 0x140007c7a
lea rax, str.Failed_to_take_Snapshot_
mov rcx, rax
call fcn.140007d40
mov eax, 0xffffffff
jmp 0x140007d34
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
mov dword [rbp + 0xe8], eax
mov dword [rbp + 0xe4], 0
lea rax, str.Starting..._n
mov rcx, rax
call fcn.140007d40
jmp 0x140007d12
add dword [rbp + 0xe4], 1
mov eax, dword [rbp + 0xe4]
mov edx, eax
lea rax, str.i___d
mov rcx, rax
call fcn.140007d40
lea rax, [rbp - 0x60]
lea rdx, [rax + 0x2c]
mov rax, qword [rbp + 0x100]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140007cf9
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0xec], eax
jmp 0x140007d1b
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
mov dword [rbp + 0xe8], eax
cmp dword [rbp + 0xe8], 0
jne 0x140007cb5
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp + 0xec]
add rsp, 0x170
pop rbp
ret
Function at 0x1400550d0
Capabilities:
Parse pe header

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

Function at 0x140065cc4
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.14005ef58
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 0x140065d65
cmp ebx, dword [rsp + 0x30]
je 0x140065d5e
test esi, esi
je 0x140065d5e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140065d39
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140065d46
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140065d23
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140065d4a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140065d67
mov eax, 1
jmp 0x140065d67
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400663f4
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 0x14006647b
mov rsi, rbx
cmp word [rax], bp
je 0x14006643a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140066424
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140066420
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14005ed28
mov rdi, rax
test rax, rax
je 0x140066468
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140051c10
mov rbp, rdi
xor ecx, ecx
call fcn.14005ecec
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 0x14006b81c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006b832
mov al, 1
jmp 0x14006b892
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14006b843
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14006b890
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400668ec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006b890
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14006b890
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14006b890
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14006b892
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140008550
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x98
mov rax, qword [0x140041010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rcx, qword [0x140042fb8]
cmp dword [rcx + 0x24cdb10], 1
jne 0x140008720
mov r9d, 0xa
mov qword [r11 - 8], rdi
add rcx, 0x24ccae0
mov qword [r11 + 8], rbx
lea rdx, str.K_0_0_c_c
lea r8d, [r9 + 3]
call fcn.1400010b0
mov rdx, qword [0x140042fb8]
xor edi, edi
cmp dword [rdx + 0x24cdb10], 1
jne 0x1400085f8
mov rbx, qword [rdx + 0x2637f48]
cmp dword [rbx + 8], 1
je 0x1400085f8
add rdx, 0x24ccae0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], dil
jne 0x1400085d2
mov rcx, qword [rbx + 0xe00028]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbx + 0xe00020], edi
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0x1f4
call fcn.14000b5a0
movsxd r8, eax
test eax, eax
je 0x140008710
mov rbx, qword [0x140042fb8]
mov edx, edi
mov rcx, qword [rbx + 0x2637f48]
jle 0x140008659
mov r9d, dword [rcx + 0xe00018]
mov eax, dword [rcx + 0xe0001c]
cmp r9d, eax
je 0x140008659
inc eax
mov dword [rcx + 0xe0001c], eax
cmp eax, 0x700000
jb 0x140008652
mov dword [rcx + 0xe0001c], edi
inc edx
cmp edx, r8d
jl 0x140008632
xorps xmm0, xmm0
mov byte [r8 + rbx + 0x1db2ae0], dil
movups xmmword [rsp + 0x60], xmm0
lea r11, [rbx + 0x1db2ae6]
mov r10, rdi
movups xmmword [rsp + 0x70], xmm0
nop dword [rax + rax]
mov r8d, edi
mov r9d, edi
mov rax, rdi
nop dword [rax]
movzx edx, byte [rax + r11]
lea ecx, [rdx - 0x30]
cmp cl, 9
ja 0x1400086aa
movsx ecx, cl
lea edx, [r8 + r8*4]
lea r8d, [rcx + rdx*2]
jmp 0x1400086b5
cmp dl, 0x2d
jne 0x1400086c0
mov r9d, 1
inc rax
cmp rax, 0x10
jl 0x140008690
jmp 0x1400086c8
cmp dl, 0x2c
jne 0x1400086c8
inc rax
add r11, rax
mov eax, r8d
neg eax
cmp r9d, 1
movzx ecx, byte [r11]
cmovne eax, r8d
mov dword [rsp + r10*4 + 0x40], eax
lea eax, [rcx - 0x30]
cmp al, 9
jbe 0x1400086f0
sub cl, 0x2c
cmp cl, 1
ja 0x1400086fc
inc r10
cmp r10, 0x1000
jl 0x140008680
cmp dword [rsp + 0x6c], 0x128e0
jl 0x140008710
mov eax, dword [rsp + 0x70]
mov dword [rbx + 0x2637ed8], eax
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400137d0
add rsp, 0x98
ret
Function at 0x140009000
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rax, qword [0x140041010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r9, qword [0x140042fb8]
lea rdx, str.RAMP__d__d_r_n
movsd xmm6, qword [0x14003ccc0]
movsd xmm0, qword [r9 + 0x18]
lea rcx, [r9 + 0x24ccae0]
mov r9d, dword [r9 + 0x50]
mulsd xmm0, xmm6
cvttsd2si r8d, xmm0
call fcn.1400010b0
mov rdx, qword [0x140042fb8]
xor edi, edi
cmp dword [rdx + 0x24cdb10], 1
jne 0x1400090b6
mov rbx, qword [rdx + 0x2637f48]
cmp dword [rbx + 8], 1
je 0x1400090b6
add rdx, 0x24ccae0
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], dil
jne 0x140009090
mov rcx, qword [rbx + 0xe00028]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbx + 0xe00020], edi
mov r8d, 0x1f4
call fcn.14000b5a0
movsxd r8, eax
test eax, eax
jg 0x1400090d2
mov eax, 0xffffffff
jmp 0x140009200
mov rbx, qword [0x140042fb8]
mov edx, edi
mov byte [r8 + rbx + 0x1db2ae0], dil
mov rcx, qword [rbx + 0x2637f48]
mov r9d, dword [rcx + 0xe00018]
mov eax, dword [rcx + 0xe0001c]
cmp r9d, eax
je 0x140009118
inc eax
mov dword [rcx + 0xe0001c], eax
cmp eax, 0x700000
jb 0x140009111
mov dword [rcx + 0xe0001c], edi
inc edx
cmp edx, r8d
jl 0x1400090f1
xorps xmm0, xmm0
lea r11, [rbx + 0x1db2ae5]
movups xmmword [rsp + 0x40], xmm0
mov r10, rdi
movups xmmword [rsp + 0x50], xmm0
nop
mov r8d, edi
mov r9d, edi
mov rdx, rdi
nop dword [rax]
movzx ecx, byte [rdx + r11]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140009159
movsx eax, al
lea ecx, [r8 + r8*4]
lea r8d, [rax + rcx*2]
jmp 0x140009164
cmp cl, 0x2d
jne 0x14000916f
mov r9d, 1
inc rdx
cmp rdx, 0x10
jl 0x140009140
jmp 0x140009177
cmp cl, 0x2c
jne 0x140009177
inc rdx
add r11, rdx
mov eax, r8d
neg eax
cmp r9d, 1
movzx ecx, byte [r11]
cmovne eax, r8d
mov dword [rsp + r10*4 + 0x40], eax
lea eax, [rcx - 0x30]
cmp al, 9
jbe 0x14000919f
sub cl, 0x2c
cmp cl, 1
ja 0x1400091ab
inc r10
cmp r10, 0x1000
jl 0x140009130
movd xmm0, dword [rsp + 0x48]
movd xmm1, dword [rsp + 0x58]
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x4c]
cvtdq2pd xmm0, xmm0
mov dword [rbx + 0x10], eax
xor eax, eax
mov dword [rbx + 0x14], ecx
mov dword [rbx + 0x2637ed8], ecx
cvtdq2pd xmm1, xmm1
divsd xmm0, xmm6
divsd xmm1, xmm6
movsd qword [rbx + 0x24cdb48], xmm0
movd xmm0, dword [rsp + 0x54]
cvtdq2pd xmm0, xmm0
movsd qword [rbx + 0x24cdb18], xmm1
divsd xmm0, xmm6
movsd qword [rbx + 8], xmm0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400137d0
mov rbx, qword [rsp + 0xb0]
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rdi
ret
Function at 0x140009230
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x140041010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r9d, 0xa
lea rdx, str.DELSAMPLE_0_0_c_c
lea rcx, [rsp + 0x80]
lea r8d, [r9 + 3]
call fcn.1400010b0
mov rdi, qword [0x140042fb8]
xor ebx, ebx
cmp dword [rdi + 0x24cdb10], 1
jne 0x1400092ce
mov rdi, qword [rdi + 0x2637f48]
cmp dword [rdi + 8], 1
je 0x1400092ce
lea rax, [rsp + 0x80]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], bl
jne 0x1400092a0
mov rcx, qword [rdi + 0xe00028]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rdi + 0xe00020], ebx
call fcn.14000ccb0
mov rcx, qword [0x140042fb8]
test eax, eax
jne 0x1400093e2
mov qword [rsp + 0xe0], rsi
add rcx, 0x1db2ae0
movabs rsi, 0x100100002401
mov edx, ebx
nop dword [rax]
movzx eax, byte [rcx]
cmp al, 0x2c
ja 0x14000930d
bt rsi, rax
jb 0x14000931a
inc rcx
inc edx
cmp edx, 0x100
jl 0x140009300
lea rdx, [rsp + 0x38]
mov r8d, ebx
lea rdi, [rcx + 1]
movzx ecx, byte [rdi]
cmp cl, 0x2c
ja 0x140009334
bt rsi, rcx
jb 0x14000934a
mov byte [rdx], cl
inc rdi
inc rdx
inc r8d
cmp r8d, 0x100
jl 0x140009326
jmp 0x14000934c
mov byte [rdx], bl
lea rcx, [rsp + 0x38]
call fcn.14001c420
lea rdx, [rsp + 0x38]
inc rdi
mov r8d, ebx
movzx ecx, byte [rdi]
cmp cl, 0x2c
ja 0x14000936f
bt rsi, rcx
jb 0x140009385
mov byte [rdx], cl
inc rdi
inc rdx
inc r8d
cmp r8d, 0x100
jl 0x140009361
jmp 0x140009387
mov byte [rdx], bl
lea rcx, [rsp + 0x38]
call fcn.14001c420
lea rax, [rsp + 0x58]
sub rdi, rax
lea rcx, [rsp + 0x58]
nop
movzx edx, byte [rdi + rcx + 1]
cmp dl, 0x2c
ja 0x1400093b0
bt rsi, rdx
jb 0x1400093c1
mov byte [rcx], dl
inc ebx
inc rcx
cmp ebx, 0x100
jl 0x1400093a0
jmp 0x1400093c4
mov byte [rcx], 0
lea rcx, [rsp + 0x58]
call fcn.14001c420
mov rcx, qword [0x140042fb8]
mov rsi, qword [rsp + 0xe0]
mov dword [rcx + 0x6c], eax
jmp 0x1400093f0
mov eax, dword [rcx + 0x24cdbd4]
test eax, eax
cmovg ebx, eax
mov dword [rcx + 0x6c], ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400137d0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret
Function at 0x1400097e0
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x1a0
mov rax, qword [0x140041010]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rax, qword [0x140042fb8]
lea rcx, [rsp + 0x70]
mov dword [rax + 0x24cdb8c], 0
call fcn.14001b58c
lea rcx, [rsp + 0x70]
call fcn.14001b8f8
mov r8, qword [0x140042fb8]
mov rbx, rax
movups xmm0, xmmword [rax]
cmp dword [r8 + 0x24cdb74], 0
movups xmmword [r8 + 0x2637ee8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r8 + 0x2637ef8], xmm1
mov ecx, dword [rax + 0x20]
mov dword [r8 + 0x2637f08], ecx
je 0x1400099ff
add r8, 0x1db23e0
lea rdx, str._sLogFile
lea rcx, [rsp + 0x90]
call fcn.1400010b0
lea rcx, [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
cmp eax, 1
je 0x140009897
xor edx, edx
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rax, qword [0x140042fb8]
cmp dword [rax + 0x24cdbb4], 0
jne 0x140009907
cmp dword [rax + 0x24cdb78], 2
jne 0x140009907
mov edx, dword [rbx + 0x10]
lea rcx, [rax + 0x1db24e0]
mov eax, dword [rbx]
lea r8, [rsp + 0x90]
mov r9d, dword [rbx + 0x14]
inc edx
mov dword [rsp + 0x48], 0x2e
add r9d, 0x76c
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea rdx, str._slog__04d__02d_02d__02d_02d_02d_RAW_cbin
call fcn.1400010b0
jmp 0x1400099ac
cmp dword [rax + 0x2637f10], 1
lea rcx, [0x14003b7f8]
lea rdx, [0x14003b7f4]
cmovne rdx, rcx
lea rcx, [rsp + 0x78]
call fcn.1400010b0
mov rax, qword [0x140042fb8]
lea r10, [rsp + 0x78]
mov r8d, dword [rbx + 0x10]
mov r9d, dword [rbx + 0x14]
inc r8d
mov dword [rsp + 0x60], 0x2e
add r9d, 0x76c
movsd xmm0, qword [rax + 0x18]
lea rcx, [rax + 0x1db24e0]
mov eax, dword [rax + 0x5c]
mulsd xmm0, qword [0x14003ccc0]
mov qword [rsp + 0x58], r10
mov dword [rsp + 0x50], eax
mov eax, dword [rbx]
cvttsd2si edx, xmm0
mov dword [rsp + 0x48], edx
lea rdx, str._slog__04d__02d_02d__02d_02d_02d_R_05d_Th_02d__s_ccsv
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
lea r8, [rsp + 0x90]
call fcn.1400010b0
mov rax, qword [0x140042fb8]
xorps xmm0, xmm0
mov dword [rax + 0x2637ee4], 1
movups xmmword [rax + 0x1db2350], xmm0
movups xmmword [rax + 0x1db2360], xmm0
movups xmmword [rax + 0x1db2370], xmm0
movups xmmword [rax + 0x1db2380], xmm0
movups xmmword [rax + 0x1db2390], xmm0
movups xmmword [rax + 0x1db23a0], xmm0
movups xmmword [rax + 0x1db23b0], xmm0
movups xmmword [rax + 0x1db23c0], xmm0
movups xmmword [rax + 0x1db23d0], xmm0
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400137d0
add rsp, 0x1a0
pop rbx
ret
Function at 0x14000cd80
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140041010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r8, qword [0x140042fb8]
cmp dword [r8 + 0x2637fc4], 0
je 0x14000ce44
lea rcx, [r8 + 0x24ccae0]
mov dword [rsp + 0x20], 0xa
mov r8d, dword [r8 + 0x2637fc0]
lea rdx, str.AVERAGE__d_c_c
mov r9d, InitCommonControls
call fcn.1400010b0
mov rdx, qword [0x140042fb8]
cmp dword [rdx + 0x24cdb10], 1
jne 0x14000ce34
mov qword [rsp + 0x40], rbx
mov rbx, qword [rdx + 0x2637f48]
cmp dword [rbx + 8], 1
je 0x14000ce2f
add rdx, 0x24ccae0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14000ce00
mov rcx, qword [rbx + 0xe00028]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbx + 0xe00020], 0
mov rbx, qword [rsp + 0x40]
call fcn.14000ccb0
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400137d0
add rsp, 0x48
ret
Function at 0x14000e1a0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x140042fb8]
lea rdx, [0x14003b918]
add rcx, 0x1db26e0
call fcn.140017b24
mov rbx, rax
test rax, rax
jne 0x14000e1ce
add rsp, 0x20
pop rbx
ret
mov rcx, qword [0x140042fb8]
mov edx, 0x80
add rcx, 0x1db2ae0
mov qword [rsp + 0x30], rdi
mov r9, rbx
lea r8d, [rdx - 0x7f]
call fcn.14001fd0c
mov rcx, qword [0x140042fb8]
xor edi, edi
add rcx, 0x1db2ae0
mov r9, rbx
lea edx, [rdi + 0x20]
lea r8d, [rdi + 1]
call fcn.14001fd0c
cmp eax, 1
jl 0x14000e28d
mov r8, qword [0x140042fb8]
mov r9, rbx
movzx ecx, byte [r8 + 0x1db2ae8]
movzx eax, byte [r8 + 0x1db2ae9]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 0x1db2aea]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 0x1db2aeb]
shl ecx, 8
or ecx, eax
sub ecx, 0x20
movsxd rdx, ecx
lea rcx, [r8 + 0x1db2b00]
mov r8d, 1
call fcn.14001fd0c
mov rcx, qword [0x140042fb8]
mov edx, 0x20
add rcx, 0x1db2ae0
mov r9, rbx
inc edi
lea r8d, [rdx - 0x1f]
call fcn.14001fd0c
cmp eax, 1
jge 0x14000e216
mov rcx, rbx
call fcn.1400180a4
mov rcx, rbx
call fcn.1400180a4
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x14049b33c
Capabilities:
Set console window title

Disassembly:
mov edx, 2
jmp 0x14049b33c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x14049e022], 0
mov edi, edx
mov rbx, rcx
jne 0x14049b35a
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff6
mov dword [0x14049e588], edi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x14049f880], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x14049f8a0], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [0x14049f8a0]
lea rdx, [0x14049f8c0]
mov qword [0x14049f8e0], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov edi, 1
lea rcx, [0x14049b318]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test rbx, rbx
je 0x14049b3cc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, [0x14049f840]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14049f900]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x14049b43c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
test r9d, r9d
je 0x14049b4b3
mov rcx, qword [0x14049f78c]
add esi, 2
xor edx, edx
lea eax, [rsi + 1]
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14049b4b3
mov rcx, rax
test rbx, rbx
je 0x14049b4a4
mov rdx, rbx
call sub.msvcrt.dll_wcscpy
lea rdx, [0x14049c104]
mov rcx, rdi
call sub.msvcrt.dll_wcscat
jmp 0x14049b4b0
lea rdx, [0x14049c104]
call sub.msvcrt.dll_wcscpy
mov rbx, rdi
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x14049b53d
mov eax, dword [0x14049e588]
cmp eax, 2
je 0x14049b508
cmp eax, 0x18
je 0x14049b4fe
and qword [rsp + 0x20], 0
lea r8d, [rsi + rsi]
lea r9, [rsp + 0x58]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14049b53d
mov rcx, rbx
call fcn.14049b780
jmp 0x14049b510
mov rcx, rbx
call fcn.14049b860
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_strlen
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8, rax
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call fcn.14049b770
test rdi, rdi
je 0x14049b554
mov rcx, qword [0x14049f78c]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1410bd058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1410bd1df
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 0x1410bd089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410bd06f
add dl, dl
jne 0x1410bd096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410bd0f6
xor eax, eax
add dl, dl
jne 0x1410bd0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410bd1ad
add dl, dl
jne 0x1410bd0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410bd0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410bd0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410bd0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410bd0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1410bd07e
mov eax, 1
add dl, dl
jne 0x1410bd106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410bd113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410bd0fb
sub eax, ebx
mov ebx, 1
jne 0x1410bd14c
mov ecx, 1
add dl, dl
jne 0x1410bd12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410bd13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410bd123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410bd07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1410bd168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410bd175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410bd15d
cmp eax, 0x7d00
jae 0x1410bd19b
cmp eax, 0x500
jb 0x1410bd196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410bd07e
cmp eax, 0x7f
ja 0x1410bd19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410bd07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410bd1d2
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 0x1410bd07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20