joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140042c20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x6010], 0
lea rbx, [rcx + 0x6018]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140042cc7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x140042c7a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140045450
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14002c3b0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x6010]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x6020]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400915e1]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x140042ccf
mov rcx, rbx
call fcn.14002c3b0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140042ff0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x140091650]
xor ebp, ebp
cmp byte [rbx + 0x5f68], bpl
jne 0x1400430cf
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400430c8
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.14002baf0
mov rsi, rax
test rax, rax
je 0x1400430c8
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140043054
mov rcx, rax
call fcn.140043220
mov r8, qword [0x140091650]
test r8, r8
je 0x1400430bf
movsx rdx, word [r8 + 0x60f0]
lea rcx, [r8 + 0x60f4]
mov r9d, dword [r8 + 0x3f58]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1400430b4
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rcx, [r8 + 0x60f4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x60ec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5f68], 1
movss xmm0, dword [rbx + 0x5f6c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14004315e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f6c], xmm0
jb 0x14004315e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140043151
mov rax, qword [0x140091650]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5f6c], ebp
call fcn.140043480
lea rdx, [0x140081a7c]
mov rcx, rdi
mov rsi, rax
call fcn.14002b960
mov rdi, rax
test rax, rax
je 0x140043158
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140043158
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5f6c], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140043180
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140091650]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x1400431e3
mov qword [rsp], rbx
lea rbx, [0x140081f60]
nop dword [rax]
cmp r9b, 0x23
jne 0x1400431c3
cmp byte [r8], r9b
jne 0x1400431c3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1400431b0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f80]
not eax
mov r8, qword [r10 + 0x5f88]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14004320f
cmp dword [r8 + 8], eax
je 0x140043216
add r8, 0x48
cmp r8, rcx
jne 0x140043200
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x140058810
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbp
push rsi
sub rsp, 0x58
mov rsi, qword [0x140091650]
mov rbp, rcx
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140058a2e
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140058a2e
mov qword [rsp + 0x70], rbx
mov ecx, 0x50
mov qword [rsp + 0x50], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x140091650]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x1400588d2
movsx rdx, word [r8 + 0x60f0]
lea rax, [r8 + 0x60f4]
mov r9d, dword [r8 + 0x3f58]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x1400588c7
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rax, [rax*8 + 0x60f4]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x60e8]
test rdi, rdi
je 0x1400588ef
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x1400588f2
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x14005893b
mov rsi, qword [r8 + 0x90]
jmp 0x14005893e
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140058969
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x140091650]
mov rcx, qword [rax + 0x4b10]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x28], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x48], rax
mov byte [rdi + 0x31], 1
nop
mov rcx, qword [rsp + rbx*8 + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x1400589ef
inc rbx
cmp rbx, 5
jl 0x1400589c0
mov rdi, qword [rsp + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x58
pop rsi
pop rbp
ret
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x70]
mov qword [rdi + 0x48], rax
mov al, 1
mov rdi, qword [rsp + 0x50]
add rsp, 0x58
pop rsi
pop rbp
ret
xor al, al
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x14005a7d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140091650]
mov rcx, qword [rax + 0x4e18]
mov r9, qword [rax + 0x4000]
movups xmm0, xmmword [r9 + 0x248]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x248], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x232]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x2a8]
add rsp, 0x38
jmp fcn.1400518b0

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

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140091650]
mov rcx, qword [rax + 0x4e18]
mov r10, qword [rax + 0x4000]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2a8]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x248], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2a8]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp fcn.1400518b0
Function at 0x140071350
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
test dword [rcx + 0x10], 0x100000
mov rdi, rdx
je 0x1400713dc
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x1400713b0
lea r11, [0x140081f60]
nop
cmp r9b, 0x23
jne 0x140071393
cmp byte [r8], r9b
jne 0x140071393
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140071380
mov rcx, qword [0x140091650]
not eax
cmp dword [rcx + 0x4064], eax
jne 0x1400713c7
mov dword [rcx + 0x4068], eax
cmp dword [rcx + 0x4094], eax
jne 0x140071439
mov byte [rcx + 0x4098], 1
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x140091650]
xor edx, edx
mov qword [rsp + 0x30], rbx
mov rcx, rdi
mov qword [rsp + 0x38], rsi
mov rbx, qword [rax + 0x4000]
movsxd rax, dword [rbx + 0x100]
mov r8, qword [rbx + 0x108]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.14002b8b0
mov rcx, qword [rbx]
mov esi, eax
mov rbx, qword [rsp + 0x30]
cmp dword [rcx + 0x404c], eax
jne 0x140071432
mov r8, rdi
mov edx, 0xb
mov ecx, eax
call fcn.1400443e0
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14007d978
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140002348
Function at 0x140008060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
movsxd rax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
je 0x140008153
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x1400080ed
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
je 0x1400080eb
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400080cf
jmp 0x140008153
mov rax, qword [rsp + 0x28]
mov byte [rax], 0
mov dword [rsp + 0x24], 0
jmp 0x140008109
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
movzx eax, word [rsp + 0x58]
cmp dword [rsp + 0x24], eax
jge 0x14000814b
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x60]
lea eax, [rax + rcx*2 + 2]
cdqe
movzx ecx, byte [rsp + 0x20]
mov rdx, qword [rsp + 0x50]
movzx eax, byte [rdx + rax]
xor eax, ecx
mov ecx, dword [rsp + 0x24]
mov edx, dword [rsp + 0x60]
lea ecx, [rcx + rdx*2 + 2]
movsxd rcx, ecx
mov rdx, qword [rsp + 0x50]
mov byte [rdx + rcx], al
jmp 0x1400080ff
mov rax, qword [rsp + 0x30]
mov byte [rax], 0
mov al, 1
add rsp, 0x48
ret
Function at 0x140001300
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400610c0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x24], 0
jmp 0x14000133b
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x2710
jge 0x14000136a
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x24]
inc eax
mov ecx, dword [rsp + 0x2c]
imul ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
jmp 0x140001331
lea rdx, [0x140031420]
lea rcx, [0x140062500]
call fcn.1400097d0
lea rdx, [0x14000ac50]
mov rcx, rax
call fcn.14000cf00
lea rdx, [rsp + 0x140]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ecx, ecx
call fcn.140001170
mov ecx, eax
call fcn.14001b598
call fcn.14001b56c
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x21]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x20]
call fcn.140001650
mov rcx, rax
call fcn.14000f540
mov qword [rsp + 0x80], rax
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x120]
call fcn.140010f30
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x21]
call fcn.1400015d0
mov rcx, rax
call fcn.14000f4a0
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x100]
call fcn.14000b650
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x50]
mov r8, rax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0xe0]
call fcn.140009b70
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0xc0]
call fcn.140009b20
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x80]
mov r8, rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0xa0]
call fcn.140009b70
nop
lea rcx, [rsp + 0xc0]
call fcn.14000ca90
nop
lea rcx, [rsp + 0xe0]
call fcn.14000ca90
nop
lea rcx, [rsp + 0x100]
call fcn.14000ca90
nop
lea rcx, [rsp + 0x120]
call fcn.14000ca90
mov dword [rsp + 0x28], 0
jmp 0x14000151b
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x2710
jge 0x140001550
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x28]
cdq
mov ecx, dword [rsp + 0x3c]
idiv ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x30]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x140001511
lea rdx, [0x140031430]
lea rcx, [0x140062500]
call fcn.1400097d0
lea rdx, [0x14000ac50]
mov rcx, rax
call fcn.14000cf00
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x270]
call fcn.14000b580
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0xa0]
call fcn.14000ca90
mov rax, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140012e30
add rsp, 0x260
pop rdi
ret
Function at 0x140001830
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov dword [rsp + 0x50], 0
jmp 0x140001851
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0x2710
jge 0x140001886
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x58]
cdq
mov ecx, dword [rsp + 0x60]
idiv ecx
mov dword [rsp + 0x58], eax
jmp 0x140001847
lea rdx, [0x140031460]
lea rcx, [0x140062500]
call fcn.1400097d0
lea rdx, [0x14000ac50]
mov rcx, rax
call fcn.14000cf00
mov dword [rsp + 0x80], 0x68
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
mov dword [rsp + 0xbc], 1
xor eax, eax
mov word [rsp + 0xc0], ax
mov rcx, qword [rsp + 0x100]
call fcn.14000f130
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x54], 0
jmp 0x14000196d
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0x2710
jge 0x14000199c
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x54]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x54]
inc eax
mov ecx, dword [rsp + 0x5c]
imul ecx, eax
mov eax, ecx
mov dword [rsp + 0x5c], eax
jmp 0x140001963
lea rdx, [0x140031470]
lea rcx, [0x140062500]
call fcn.1400097d0
lea rdx, [0x14000ac50]
mov rcx, rax
call fcn.14000cf00
add rsp, 0xf0
pop rdi
ret
Function at 0x140022e14
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.140012dd0
sub rsp, rax
mov rax, qword [0x1400610c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140021780
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140022e63
mov rax, rbp
jmp 0x140022f6b
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 + 0x63500]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140023f34
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x63500]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140022f67
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 0x140022f67
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140023f34
test rax, rax
js 0x140022f67
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140022f67
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140022f59
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140022f59
cmp byte [rcx], 0xd
jne 0x140022f3f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140022f4e
cmp byte [rcx + 1], 0xa
jne 0x140022f4e
inc rcx
jmp 0x140022f4e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x61500]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140022f21
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140022f6b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140012e30
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 0x14002318c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400231a2
mov al, 1
jmp 0x140023202
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400231b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140023200
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400287b4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140023200
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140023200
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140023200
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140023202
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400232d4
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, [0x140063500]
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 0x14002332b
cmp word [rdx], r13w
jne 0x14002332b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140023330
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140023455
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140023476
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140023369
mov rdx, r9
mov word [rbx], cx
jmp 0x140023390
cmp r9, r8
jae 0x1400233a0
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 0x14002334a
jmp 0x140023455
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 0x14002344a
cmp dword [rsp + 0x80], esi
je 0x14002344a
lea r8, [0x140063500]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140023422
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400233f2
mov word [rbx], r13w
jmp 0x140023452
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 0x1400233ff
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140023452
cmp word [rsp + 0x70], r13w
jne 0x14002342f
cmp rbx, r14
je 0x1400233ec
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140023f3c
cmp word [rsp + 0x70], r13w
je 0x140023455
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, [0x140063500]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002344f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140023455