joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002270
Capabilities:
Parse pe header

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

Function at 0x140728058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407281df
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 0x140728089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072806f
add dl, dl
jne 0x140728096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407280f6
xor eax, eax
add dl, dl
jne 0x1407280a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407281ad
add dl, dl
jne 0x1407280b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407280c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407280d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407280dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407280ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14072807e
mov eax, 1
add dl, dl
jne 0x140728106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140728113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407280fb
sub eax, ebx
mov ebx, 1
jne 0x14072814c
mov ecx, 1
add dl, dl
jne 0x14072812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14072813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140728123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140728168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140728175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072815d
cmp eax, 0x7d00
jae 0x14072819b
cmp eax, 0x500
jb 0x140728196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072807e
cmp eax, 0x7f
ja 0x14072819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407281d2
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 0x14072807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x907c00
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x14a8
call fcn.00937180
sub rsp, rax
movaps xmmword [rsp + 0x1490], xmm15
movaps xmmword [rsp + 0x1480], xmm14
movaps xmmword [rsp + 0x1470], xmm13
movaps xmmword [rsp + 0x1460], xmm12
movaps xmmword [rsp + 0x1450], xmm11
movaps xmmword [rsp + 0x1440], xmm10
movaps xmmword [rsp + 0x1430], xmm9
movdqa xmmword [rsp + 0x1420], xmm8
movaps xmmword [rsp + 0x1410], xmm7
movaps xmmword [rsp + 0x1400], xmm6
movdqa xmm9, xmmword [0x0093f5e0]
xor eax, eax
movdqa xmm12, xmmword [0x0093f5f0]
pxor xmm2, xmm2
movdqa xmm4, xmmword [0x0093f610]
movdqa xmm6, xmmword [0x0093f630]
movdqa xmm13, xmmword [0x0093f670]
movdqa xmm14, xmmword [0x0093f680]
movdqa xmm15, xmmword [0x0093f690]
movdqa xmm7, xmmword [0x0093f6a0]
movdqa xmm10, xmmword [0x0093f6b0]
movdqa xmm11, xmmword [0x0093f6c0]
nop dword [rax + rax]
Function at 0x910140
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub cl, byte [rdi]
test byte [rsi + rcx*2 + 0x75], dh
jmp 0x171985c
test byte [rsi + 0xf000002], dh
test dword [rax + 2], esi
add byte [rax], al
add byte [rax - 0x3f7bc3fc], cl
mov rax, qword [rcx + 0x10]
mov edx, dword [rcx + 0x3c]
jmp 0x91020a
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 8], 0x5b41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 0xa], 0x5a41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 0xc], 0x5941
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 0xe], 0x5841
je 0x9102b4
jne 0x9102b4
jmp 0x1ffeb52
ret
mov qword [rcx + 0x10], rdx
jmp 0x910385
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 6], 0x5c41
jmp 0x91014e
cmp edx, 0x8664
je 0x9102d1
cmp edx, 0x14c
jne 0x91018b
je 0x91026b
jne 0x91026b
jmp 0x918bbe
jne 0x9102c6
add byte [rax], al
add byte [rax], al
jmp 0x910193
jne 0x910342
je 0x10da8d3d
mov r9, qword [rcx + 0x10]
lea rdx, [r9 + 1]
mov qword [rcx + 0x10], rdx
je 0x910303
jne 0x910303
jmp 0x9102f4
je 0x910285
jne 0x910285
add byte [rax], al
add byte [rax], al
mov rdx, qword [rcx + 8]
mov byte [rdx + r8], 0x58
mov qword [rcx + 0x10], r9
jmp 0x91018b
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x11], 0x5e
mov rdx, qword [rcx + 8]
je 0x91028c
jne 0x91028c
je 0x2a14706
mov byte [rax + rdx + 2], 0x5d
pop rbp
je 0x910342
jmp 0x9101e5
mov byte [rax + rdx + 4], 0x5a
mov rdx, qword [rcx + 8]
lea r8, [rax + 6]
je 0x9102c6
jmp 0x9101d7
mov byte [rax + rdx + 3], 0x5b
mov rdx, qword [rcx + 8]
jmp 0x91024b
mov rdx, qword [rcx + 8]
mov byte [rdx + rax], 0x5f
mov rdx, qword [rcx + 8]
mov byte [rax + rdx + 1], 0x5e
mov rdx, qword [rcx + 8]
je 0x91023c
jne 0x91023c
jmp 0x902972
jmp 0x9101b0
jne 0x9102f4
mov byte [r9 + rdx + 0x12], 0x5d
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x13], 0x5b
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x14], 0x5a
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x15], 0x59
jmp 0x9102dd
je 0x8e28e00
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x10], 0x5f
jmp 0x910228
jne 0x910317
jmp 0x5a14790
mov byte [rax + rdx + 5], 0x59
lea r9, [rax + 7]
jmp 0x9102e5
mov r8, qword [rcx + 8]
lea rdx, [rax + 1]
jmp 0x910339
lea r8, [r9 + 0x16]
add r9, 0x17
je 0x910212
jne 0x910212
jmp 0x9102b2
jmp 0x9101a0
je 0x910317
jmp 0x9102c3
mov byte [r8 + r9], 0x8b
mov r8, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
je 0x910383
jne 0x910383
jmp 0x910317
mov qword [rcx + 0x10], rdx
mov byte [r8 + r9], 0xe5
mov r8, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
lea rdx, [r9 + 1]
jmp 0x91035d
lea rdx, [r9 + 1]
jmp 0x9102f9
mov qword [rcx + 0x10], rdx
je 0x91036d
jne 0x91036d
jmp 0x8e28e8e
mov rdx, qword [rcx + 8]
je 0x91025f
jne 0x91025f
je 0x901641
inc dword [rax]
add byte [rax], al
add byte [rdi], cl
test byte [rsi - 2], bh
invalid
je 0x9101e1
jne 0x9101e1
add byte [rax], al
add byte [rax], al
mov byte [r8 + rax], 0x48
mov r8, qword [rcx + 8]
je 0x9101ed
jne 0x9101ed
jmp 0xffffffffc6d4ae72
jmp 0x91032f
mov byte [r8 + r9], 0x5d
mov r8, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
mov word [r8 + r9], 0x5f41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 2], 0x5e41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 4], 0x5d41
je 0x9102f4
jmp 0x91028a
invalid
Function at 0x91a860
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
jmp 0x91aab8
mov edi, edx
jmp 0x91ab91
je 0x91aabe
jne 0x91aabe
je 0x53e70218
push rsi
push rdi
push rbp
push rbx
jmp 0x91abba
sub rsp, 0xa8
jmp 0x91a9b8

Function at 0x928c50
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
lea rax, [rdx + 0x10]
cmp r8d, 0x100
cmovne rax, rdx
lea r8, str.expand_32_byte_kexpand_16_byte_k
lea r9, [0x0093fbe0]
cmove r9, r8
mov edx, dword [rax]
mov dword [rcx + 0x20], edx
mov edx, dword [rax + 4]
mov dword [rcx + 0x24], edx
mov edx, dword [rax + 8]
mov dword [rcx + 0x28], edx
mov eax, dword [rax + 0xc]
mov dword [rcx + 0x2c], eax
mov dword [rcx], 0x61707865
mov rax, qword [r9 + 4]
mov qword [rcx + 4], rax
mov eax, dword [r9 + 0xc]
mov dword [rcx + 0xc], eax
ret

Function at 0x928d90
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov qword [rsp + 0x50], rcx
mov eax, dword [rdx]
mov dword [rsp + 0xc], eax
mov eax, dword [rdx + 4]
mov dword [rsp + 0x10], eax
mov eax, dword [rdx + 8]
mov dword [rsp + 0x14], eax
mov r12d, dword [rdx + 0xc]
mov r13d, dword [rdx + 0x10]
mov r14d, dword [rdx + 0x14]
mov r15d, dword [rdx + 0x18]
mov r10d, dword [rdx + 0x1c]
mov edi, dword [rdx + 0x20]
mov r11d, dword [rdx + 0x24]
mov ebx, dword [rdx + 0x28]
mov ebp, dword [rdx + 0x2c]
mov ecx, dword [rdx + 0x30]
mov eax, dword [rdx + 0x34]
mov r9d, dword [rdx + 0x38]
mov r8d, dword [rdx + 0x3c]
mov dword [rsp + 0x4c], 0xfffffff8
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x3c], ecx
mov edx, ecx
mov dword [rsp + 0x38], ebp
mov dword [rsp + 8], ebp
mov dword [rsp + 0x34], ebx
mov dword [rsp], ebx
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x2c], edi
mov ebp, edi
mov dword [rsp + 0x28], r10d
mov edi, r10d
mov dword [rsp + 0x24], r15d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
mov dword [rsp + 0x1c], r13d
mov dword [rsp + 0x18], r12d
mov r14d, r12d
mov r12d, dword [rsp + 0x14]
mov r10d, dword [rsp + 0x10]
mov ecx, dword [rsp + 0xc]
nop

Function at 0x92ed00
Capabilities:
Hash data using sha512

Disassembly:
test rcx, rcx
je 0x92ed8b
mov qword [rcx + 0x48], 0
mov qword [rcx], 0
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx + 8], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x10], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x18], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x20], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x28], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x30], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x38], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x40], rax
xor eax, eax
ret
mov eax, 1
ret
Function at 0x92f7b0
Capabilities:
Encrypt data using curve25519

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov edx, 0x20
mov rcx, r8
mov r8, rsi
call fcn.0092f520
and byte [rsi], 0xf8
mov al, byte [rsi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [rsi + 0x1f], al
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rsi
call fcn.0092c170
mov rcx, rdi
mov rdx, rbx
call fcn.0092c0f0
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
Function at 0x92f810
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
mov qword [rsp + 0x28], rcx
xor eax, eax
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
mov byte [rsp + rax + 0x30], cl
add rax, 1
cmp rax, 0x20
jne 0x92f830
and byte [rsp + 0x30], 0xf8
mov al, byte [rsp + 0x4f]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x4f], al
lea rbp, [rsp + 0x140]
mov rcx, rbp
call fcn.00929570
lea rbx, [rsp + 0x170]
mov rcx, rbx
call fcn.00929200
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
call fcn.00929220
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.0092b4a0
mov rcx, rbx
mov rdx, rbx
call fcn.00929800
mov rcx, rbp
mov rdx, rsi
mov r8, rbx
call fcn.00929fa0
lea rcx, [rsp + 0x80]
call fcn.00929200
lea rdi, [rsp + 0x110]
mov rcx, rdi
call fcn.009291e0
lea rcx, [rsp + 0x50]
mov rdx, rbp
call fcn.00929550
lea r14, [rsp + 0xe0]
mov rcx, r14
call fcn.00929200
mov r13d, 0xfe
xor r15d, r15d
nop word cs:[rax + rax]
nop
mov ebp, r15d
mov eax, r13d
shr rax, 3
movzx r15d, byte [rsp + rax + 0x30]
mov ecx, r13d
and cl, 7
shr r15d, cl
and r15d, 1
xor ebp, r15d
lea rsi, [rsp + 0x80]
mov rcx, rsi
lea r12, [rsp + 0x50]
mov rdx, r12
mov r8d, ebp
call fcn.009293b0
mov rcx, rdi
mov rdx, r14
mov r8d, ebp
call fcn.009293b0
lea rbp, [rsp + 0xb0]
mov rcx, rbp
mov rdx, r12
mov r8, r14
call fcn.0092b4a0
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
call fcn.0092b4a0
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.00929220
mov rcx, rdi
mov rdx, r12
mov r8, r14
call fcn.00929220
mov rcx, r14
mov rdx, rbp
mov r8, rsi
call fcn.00929fa0
mov rcx, rdi
mov rdx, rdi
mov r8, rbx
call fcn.00929fa0
mov rcx, rbp
mov rdx, rbx
call fcn.00929a90
mov rcx, rbx
mov rdx, rsi
call fcn.00929a90
mov rcx, r12
mov rdx, r14
mov r8, rdi
call fcn.00929220
mov rcx, rdi
mov rdx, r14
mov r8, rdi
call fcn.0092b4a0
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.00929fa0
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.0092b4a0
mov rcx, rdi
mov rdx, rdi
call fcn.00929a90
mov rcx, r14
mov rdx, rbx
call fcn.0092aae0
mov rcx, r12
mov rdx, r12
call fcn.00929a90
mov rcx, rbp
mov rdx, rbp
mov r8, r14
call fcn.00929220
mov rcx, r14
lea rdx, [rsp + 0x140]
mov r8, rdi
call fcn.00929fa0
mov rcx, rdi
mov rdx, rbx
mov r8, rbp
call fcn.00929fa0
add r13d, 0xffffffff
cmp r13d, 0xffffffff
jne 0x92f900
lea rsi, [rsp + 0x80]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8d, r15d
call fcn.009293b0
lea rdi, [rsp + 0x110]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
mov r8d, r15d
call fcn.009293b0
mov rcx, rdi
mov rdx, rdi
call fcn.00929800
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.00929fa0
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.0092a810
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140022900
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002290d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002291d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140022905
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140022935
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140022922
sub eax, 3
jb 0x14002294f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140022986
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140022976
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140022974
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140022963
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400228c2
jmp 0x14002290d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1a00
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400229d2
cmp rsi, rcx
jae 0x1400229da
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400229b9
cmp al, 0x8f
ja 0x1400229b9
cmp byte [rsi - 2], 0xf
je 0x1400229bf
sub al, 0xe8
cmp al, 1
ja 0x1400229a3
cmp rsi, rcx
jae 0x1400229da
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400229a9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400229da
lodsb al, byte [rsi]
jmp 0x1400229b9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x20000]
mov eax, dword [rdi]
or eax, eax
je 0x140022a37
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x22000]
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 0x1400229e7
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 0x140022a31
mov qword [rbx], rax
add rbx, 8
jmp 0x140022a07
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 0x140022a71
cmp al, 0xef
ja 0x140022a63
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140022a43
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140022a52
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 + 0x1af]
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
mov byte [fcn.140022af0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140022af0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140022ae0
sub rsp, 0xffffffffffffff80
jmp 0x1400014d0
Function at 0x40754c
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor ecx, ecx
cmp eax, ecx
setne al
add rsp, 0x28
ret

Function at 0x407564
Capabilities:
Get common file path

Disassembly:
push rbx
push rdi
sub rsp, 0x278
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, rcx
mov dword [rcx + 8], 0
mov rax, qword [rcx]
mov word [rax], 0
mov word [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x114
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
je 0x407666
cmp ebx, 0x114
jae 0x4075d0
mov word [rsp + 0x268], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.00403730
mov al, 1
jmp 0x407666
lea rcx, [rsp + 0x20]
call fcn.0040354c
nop
cmp ebx, dword [rsp + 0x2c]
jbe 0x4075ed
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.00403220
mov rdx, qword [rsp + 0x20]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r11d, eax
test eax, eax
jne 0x40760f
mov rcx, qword [rsp + 0x20]
call fcn.00402388
xor al, al
jmp 0x407666
mov rcx, qword [rsp + 0x20]
mov word [rcx + rbx*2], 0
xor eax, eax
cmp word [rcx], ax
je 0x40762d
inc eax
add rcx, 2
cmp word [rcx], 0
jne 0x407621
mov dword [rsp + 0x28], eax
cmp eax, r11d
jne 0x40765a
lea eax, [rbx - 1]
cmp eax, r11d
jne 0x40765a
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.00403798
nop
mov rcx, qword [rsp + 0x20]
call fcn.00402388
mov al, 1
jmp 0x407666
mov rcx, qword [rsp + 0x20]
call fcn.00402388
xor al, al
add rsp, 0x278
pop rdi
pop rbx
ret

Function at 0x4077b4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbp, r9
mov rsi, r8
mov r12b, dl
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
shl ebx, 2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor edi, ebx
shl edi, 0xc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r13d, eax
xor r13d, edi
xor edi, edi
mov ebx, edi
lea r15d, [rdi + 1]
mov dword [rsi + 8], edi
mov rcx, qword [rsi]
mov byte [rcx], dil
cmp r12b, dil
je 0x40787c
mov r10d, r13d
mov r9, rdi
mov r11d, 8
mov r8d, r10d
and r8d, 0xf
shr r10d, 4
lea edx, [r8 + 0x30]
lea eax, [r8 + 0x37]
movzx ecx, al
movzx eax, dl
cmp r8d, 0xa
cmovb ecx, eax
mov byte [rsp + r9 + 0x38], cl
add r9, r15
sub r11, r15
jne 0x407820
mov byte [rsp + r9 + 0x38], dil
cmp rbp, rdi
je 0x40785f
mov rcx, rsi
call fcn.00403d68
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.00402fac
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 2
cmove eax, r15d
add r13d, eax
mov r12b, r15b
cmp rbp, rdi
je 0x407893
lea rdx, str..tmp
mov rcx, rsi
call fcn.00402fac
mov rdx, r14
lea rcx, [rsp + 0x28]
call fcn.004035b8
nop
mov rdx, qword [rsi]
lea rcx, [rsp + 0x28]
call fcn.004039f0
mov rcx, qword [rsp + 0x28]
int3
Function at 0x409414
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbp, rcx
movsxd rbx, dword [rcx + 8]
mov rdi, rbx
test ebx, ebx
je 0x409464
shl rdi, 3
add ebx, 0xffffffff
sub rdi, 8
mov rax, qword [rbp]
mov rsi, qword [rdi + rax]
test rsi, rsi
je 0x409460
mov rcx, qword [rsi]
call fcn.00402388
mov rcx, rsi
call fcn.00402388
test ebx, ebx
jne 0x40943c
mov dword [rbp + 8], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test eax, eax
je 0x409569
mov rcx, rdi
xor ebx, ebx
mov qword [rsp + 0x80], rbx
test eax, eax
je 0x4094a3
add rcx, rcx
call fcn.00402350
mov rbx, rax
mov qword [rsp + 0x80], rax
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
test eax, eax
je 0x40955f
cmp eax, edi
ja 0x40955f
lea rcx, [rsp + 0x28]
call fcn.0040354c
nop
xor r13d, r13d
xor edi, edi
test esi, esi
je 0x409540
mov r12, rbx
cmp word [r12], 0
jne 0x409536
lea rdx, [rbx + r13*2]
lea rcx, [rsp + 0x28]
call fcn.00403730
lea r13d, [rdi + 1]
mov rcx, rbp
int3
inc edi
add r12, 2
cmp edi, esi
jb 0x4094d7
cmp r13d, esi
sete dil
mov rcx, qword [rsp + 0x28]
call fcn.00402388
nop
mov rcx, rbx
call fcn.00402388
mov al, dil
jmp 0x409569
mov rcx, rbx
call fcn.00402388
xor al, al
add rsp, 0x48
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x409638
Capabilities:
Get file size

Disassembly:
push rbx
push rdi
sub rsp, 0x28
cmp byte [rcx + 9], 0
mov rbx, rdx
je 0x409657
cmp byte [rcx + 0xa], 0
je 0x409657
mov rax, qword [rcx + 0x10]
mov qword [rdx], rax
jmp 0x409693
mov rcx, qword [rcx]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov edi, eax
jne 0x409682
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x409682
xor al, al
jmp 0x409695
mov ecx, dword [rsp + 0x40]
mov rax, rdi
shl rcx, 0x20
add rcx, rdi
mov qword [rbx], rcx
mov al, 1
add rsp, 0x28
pop rdi
pop rbx
ret

Function at 0x4097b8
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
setne al
mov dword [rbx], ecx
add rsp, 0x30
pop rbx
ret

Function at 0x4097f4
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x400000
cmp r8d, eax
cmova r8d, eax
jmp fcn.004097b8

Function at 0x4098b8
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov eax, 0x400000
mov rbx, r9
cmp r8d, eax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
cmova r8d, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret