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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, qword [rdx]
mov edi, dword [rdx + 8]
test edi, edi
je 0x140126dc0
mov qword [rbp - 0x40], rsi
test r8b, r8b
je 0x140126df6
lea r14, [rbp - 0x44]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
xor ecx, ecx
mov qword [rsp + 0x20], rcx
mov rcx, rbx
mov qword [rbp - 0x5c], rcx
mov rdx, rsi
mov qword [rbp - 0x64], rdx
mov r8d, edi
mov dword [rbp - 0x54], r8d
mov r9, r14
mov qword [rbp - 0x6c], r9
lea rcx, [rbp - 0x98]
call fcn.14000ec80
mov rcx, qword [rbp - 0x5c]
mov rdx, qword [rbp - 0x64]
mov r8d, dword [rbp - 0x54]
mov r9, qword [rbp - 0x6c]
call sub.KERNEL32.dll_WriteFile
mov edi, eax
lea rcx, [rbp - 0x98]
call fcn.14000ecd0
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
call fcn.140005c3f
mov dword [rax + 0x120], ebx
xor ebx, ebx
test edi, edi
setne bl
xor r8d, r8d
mov qword [rbp - 0x40], r8
test ebx, ebx
je 0x140126dc4
xor eax, eax
jmp 0x140126de2
call fcn.140005c3f
mov eax, dword [rax + 0x120]
cmp eax, 0xe8
je 0x140126dc0
cmp eax, 0x6d
je 0x140126dc0
cmp eax, 0xe9
je 0x140126dc0
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
xor r8d, r8d
mov qword [rsp + 0x20], r8
mov r8d, edi
shr r8d, 1
lea r9, [rbp - 0x50]
mov rcx, rbx
mov rdx, rsi
call fcn.140126440
mov ebx, eax
jmp 0x140126db5

Function at 0x14012ac50
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x58], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov edi, r8d
mov rsi, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1402efec0
nop
mov qword [rbp - 0x50], rsi
lea r14, [rbx + 0x10]
xor ecx, ecx
test rbx, rbx
cmove r14, rcx
mov qword [rbp - 0x58], r14
mov rcx, qword [rbp - 0x48]
mov rbx, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15d, dword [rbp + 0x30]
mov dword [rsp + 0x20], r15d
mov rcx, rbx
mov qword [rbp - 0x64], rcx
mov rdx, r14
mov qword [rbp - 0x6c], rdx
mov r8d, edi
mov dword [rbp - 0x5c], r8d
mov r9, rsi
mov qword [rbp - 0x74], r9
lea rcx, [rbp - 0xa0]
call fcn.14000ec80
mov rcx, qword [rbp - 0x64]
mov rdx, qword [rbp - 0x6c]
mov r8d, dword [rbp - 0x5c]
mov r9, qword [rbp - 0x74]
call sub.KERNEL32.dll_K32EnumProcessModulesEx
mov ebx, eax
lea rcx, [rbp - 0xa0]
call fcn.14000ecd0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x58], rcx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
test ebx, ebx
setne bl
movzx ebx, bl
cmp byte [rbp - 0x40], 0
je 0x14012ad42
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1402eff00
call fcn.140005c3f
mov dword [rax + 0x120], esi
movzx eax, bl
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14012b550
Capabilities:
Create process on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xd8
lea rbp, [rsp + 0x110]
xor eax, eax
mov qword [rbp - 0x68], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x60], xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov r14, qword [rbp + 0x48]
mov rsi, qword [rbp + 0x50]
mov rdi, qword [rbp + 0x58]
xor r15d, r15d
cmp byte [rbp + 0x30], 0
setne r15b
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x48], rsi
test r14, r14
je 0x14012b5cb
add r14, 0xc
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x58], r9
mov r13, r9
mov qword [rbp - 0x60], r8
mov r12, r8
test rcx, rcx
je 0x14012b5d0
add rcx, 0xc
mov rax, rcx
jmp 0x14012b5d2
xor r14d, r14d
jmp 0x14012b5ab
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x70], rax
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov dword [rsp + 0x20], r15d
mov r15d, dword [rbp + 0x38]
mov dword [rsp + 0x28], r15d
mov r15, qword [rbp + 0x40]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov rcx, qword [rbp - 0x70]
mov qword [rbp - 0x78], rcx
mov rdx, rbx
mov qword [rbp - 0x80], rdx
mov r8, r12
mov qword [rbp - 0x88], r8
mov r9, r13
mov qword [rbp - 0x90], r9
lea rcx, [rbp - 0xb8]
call fcn.14000ec80
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x88]
mov r9, qword [rbp - 0x90]
call sub.KERNEL32.dll_CreateProcessW
mov ebx, eax
lea rcx, [rbp - 0xb8]
call fcn.14000ecd0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
test ebx, ebx
setne bl
movzx ebx, bl
call fcn.140005c3f
mov dword [rax + 0x120], esi
movzx eax, bl
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14012b6b0
Capabilities:
Terminate process

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov ebx, edx
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1402efec0
mov rcx, qword [rbp - 0x48]
mov rsi, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rsi
mov qword [rbp - 0x54], rcx
mov edx, ebx
mov dword [rbp - 0x4c], edx
lea rcx, [rbp - 0x80]
call fcn.14000ec80
mov rcx, qword [rbp - 0x54]
mov edx, dword [rbp - 0x4c]
call sub.KERNEL32.dll_TerminateProcess
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.14000ecd0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
test ebx, ebx
setne bl
movzx ebx, bl
cmp byte [rbp - 0x40], 0
je 0x14012b743
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1402eff00
call fcn.140005c3f
mov dword [rax + 0x120], esi
movzx eax, bl
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14012c600
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0xe0]
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rbx, r8
mov r14d, r9d
xor ecx, ecx
mov dword [rbp - 0x3c], ecx
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x50], rcx
mov byte [rbp - 0x5c], 0
lea rcx, [0x140690b88]
call fcn.1405e8230
mov qword [rbp - 0x68], rax
mov byte [rbp - 0x60], 0
lea rcx, [0x140690b88]
call fcn.1405e8230
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x58], rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
lea rcx, [rbp - 0x48]
mov qword [rbp - 0x7c], rcx
lea rdx, [rbp - 0x50]
mov qword [rbp - 0x84], rdx
mov r8, rbx
mov qword [rbp - 0x8c], r8
mov r9d, r14d
mov dword [rbp - 0x74], r9d
lea rcx, [rbp - 0xb8]
call fcn.14000ec80
mov rcx, qword [rbp - 0x7c]
mov rdx, qword [rbp - 0x84]
mov r8, qword [rbp - 0x8c]
mov r9d, dword [rbp - 0x74]
call sub.KERNEL32.dll_CreatePipe
mov ebx, eax
lea rcx, [rbp - 0xb8]
call fcn.14000ecd0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x58], rcx
mov dword [rbp - 0x3c], 1
mov rcx, qword [rbp - 0x50]
mov byte [rbp - 0x5c], 1
mov rax, qword [rbp - 0x68]
mov qword [rax + 8], rcx
mov rcx, qword [rbp - 0x48]
mov byte [rbp - 0x60], 1
mov r8, qword [rbp - 0x70]
mov qword [r8 + 8], rcx
test ebx, ebx
setne bl
movzx ebx, bl
mov rcx, qword [rbp + 0x18]
mov rdx, rax
call fcn.14000ea70
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x70]
call fcn.14000ea70
nop
call fcn.140005c3f
mov dword [rax + 0x120], esi
movzx eax, bl
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140133370
Capabilities:
Enumerate process modules

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x14069c248]
cmp qword [rcx - 8], 0
jne 0x1401333ae
mov rcx, rbx
call fcn.140132e70
test eax, eax
jne 0x14013339c
add rsp, 0x20
pop rbx
jmp fcn.140134880
mov rcx, rbx
mov edx, 1
add rsp, 0x20
pop rbx
jmp fcn.140134800
call fcn.140001179
jmp 0x140133386
Function at 0x14023e280
Capabilities:
Encode data using xor

Disassembly:
push rax
xor eax, eax
mov qword [rsp], rax
mov dword [rsp + 0x18], edx
mov rax, qword [rcx]
mov qword [rsp], rax
movsxd rdx, dword [rcx + 8]
lea r10, [rax + rdx]
cmp rdx, 4
jl 0x14023e2f9
mov r9d, dword [rsp + 0x18]
lea ecx, [r8*8]
ror r9d, cl
cmp rdx, 0x10
jl 0x14023e2da
movd xmm0, r9d
pshufd xmm0, xmm0, 0
movups xmm1, xmmword [rax]
pxor xmm1, xmm0
movups xmmword [rax], xmm1
add rax, 0x10
mov rcx, r10
sub rcx, rax
cmp rcx, 0x10
jge 0x14023e2c0
mov rcx, r10
sub rcx, rax
cmp rcx, 4
jl 0x14023e2f9
xor dword [rax], r9d
add rax, 4
mov rcx, r10
sub rcx, rax
cmp rcx, 4
jge 0x14023e2e6
lea rcx, [rsp + 0x18]
cmp rax, r10
je 0x14023e32e
nop dword [rax + rax]
nop dword [rax + rax]
mov rdx, rax
lea rax, [rdx + 1]
movsxd r9, r8d
movzx r9d, byte [rcx + r9]
xor byte [rdx], r9b
inc r8d
and r8d, 3
cmp rax, r10
jne 0x14023e310
xor eax, eax
mov qword [rsp], rax
mov eax, r8d
add rsp, 8
ret

Function at 0x140247c20
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov r8d, edx
mov dword [rbp - 0x3c], r8d
mov rdx, rcx
mov qword [rbp - 0x48], rdx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
mov r9d, 2
mov dword [rbp - 0x40], r9d
lea rcx, [rbp - 0x78]
call fcn.14000ec80
mov r8d, dword [rbp - 0x3c]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
mov r9d, dword [rbp - 0x40]
call sub.bcrypt.dll_BCryptGenRandom
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.14000ecd0
test ebx, ebx
jne 0x140247c94
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp ebx, 0xc0000017
jne 0x140247cbb
lea rcx, [0x1406e4fb0]
call fcn.14000e7f0
mov rbx, rax
mov rcx, rbx
call fcn.140280910
mov rcx, rbx
call fcn.14000fb90
lea rcx, [0x1406e4570]
call fcn.14000e7f0
mov rbx, rax
mov rcx, rbx
call fcn.14027a810
mov rcx, rbx
call fcn.14000fb90
int3

Function at 0x140248290
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x50]
mov rbx, rcx
mov eax, dword [rbx + 0x38]
cmp eax, 0xffffffff
je 0x1402482ad
add rsp, 0x48
pop rbx
pop rbp
ret
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov r9d, 4
call fcn.14031b720
mov ecx, eax
test ecx, ecx
jne 0x14024833a
xor eax, eax
mov ecx, 0x40000000
test byte [rbp - 0x10], 0x30
cmove eax, ecx
mov ecx, eax
or ecx, 0x80000000
test byte [rbp - 0x10], 2
cmovne eax, ecx
mov ecx, eax
or ecx, 0x10000000
test dword [rbp - 0x10], 0x800
cmovne eax, ecx
mov ecx, eax
or ecx, 0x8000000
test byte [rbp - 0x10], 4
cmovne eax, ecx
mov ecx, eax
or ecx, 0x4000000
test dword [rbp - 0x10], 0x1000
cmovne eax, ecx
mov ecx, eax
or ecx, 0x20000000
test byte [rbp - 0x10], 8
cmovne eax, ecx
mov dword [rbx + 0x38], eax
add rsp, 0x48
pop rbx
pop rbp
ret
call fcn.14031b5d0
mov ecx, eax
lea rdx, [0x140624128]
call fcn.1402dbd80
mov rcx, rax
call fcn.14000fb90
int3
Function at 0x1402637a0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rdi
push rsi
push rbp
push rbx
push rax
xor eax, eax
mov qword [rsp], rax
mov r10, rdx
mov r11d, dword [rsp + 0x60]
mov edx, 0x55555556
mov eax, edx
imul r9d
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [rax + rax*2]
mov edx, r9d
sub edx, eax
sub r9d, edx
add r9d, r8d
xor eax, eax
xor ebx, ebx
lea rsi, [0x14092e0c0]
mov qword [rsp], rsi
cmp r8d, r9d
jge 0x1402638bb
movzx edi, r11b
test edi, edi
jne 0x1402639cb
movsxd rbp, r8d
movzx r14d, byte [r10 + rbp]
and r14d, 0xfc
sar r14d, 2
movsxd r14, r14d
movzx r14d, byte [r14 + rsi]
movsxd r15, eax
mov word [rcx + r15*2], r14w
movzx ebp, byte [r10 + rbp]
and ebp, 3
shl ebp, 4
lea r14d, [r8 + 1]
movsxd r14, r14d
movzx r15d, byte [r10 + r14]
and r15d, 0xf0
sar r15d, 4
or ebp, r15d
movsxd rbp, ebp
movzx ebp, byte [rsi + rbp]
lea r15d, [rax + 1]
movsxd r15, r15d
mov word [rcx + r15*2], bp
movzx ebp, byte [r10 + r14]
and ebp, 0xf
shl ebp, 2
lea r14d, [r8 + 2]
movsxd r14, r14d
movzx r15d, byte [r10 + r14]
and r15d, 0xc0
sar r15d, 6
or ebp, r15d
movsxd rbp, ebp
movzx ebp, byte [rsi + rbp]
lea r15d, [rax + 2]
movsxd r15, r15d
mov word [rcx + r15*2], bp
movzx ebp, byte [r10 + r14]
and ebp, 0x3f
movsxd rbp, ebp
movzx ebp, byte [rsi + rbp]
lea r14d, [rax + 3]
movsxd r14, r14d
mov word [rcx + r14*2], bp
add eax, 4
add r8d, 3
cmp r8d, r9d
jl 0x1402637f2
mov r8d, r9d
movzx edi, r11b
test edi, edi
jne 0x1402639f8
cmp edx, 1
je 0x14026397a
cmp edx, 2
jne 0x140263967
movsxd r9, r8d
movzx r11d, byte [r10 + r9]
and r11d, 0xfc
sar r11d, 2
movsxd rdx, r11d
movzx edx, byte [rdx + rsi]
movsxd r9, eax
mov word [rcx + r9*2], dx
movsxd rdx, r8d
movzx edx, byte [r10 + rdx]
and edx, 3
shl edx, 4
inc r8d
movsxd r8, r8d
movzx r9d, byte [r10 + r8]
and r9d, 0xf0
sar r9d, 4
or edx, r9d
movsxd rdx, edx
movzx edx, byte [rdx + rsi]
lea r9d, [rax + 1]
movsxd r9, r9d
mov word [rcx + r9*2], dx
movzx r10d, byte [r10 + r8]
and r10d, 0xf
shl r10d, 2
movsxd rdx, r10d
movzx edx, byte [rdx + rsi]
lea r8d, [rax + 2]
movsxd r8, r8d
mov word [rcx + r8*2], dx
lea edx, [rax + 3]
movsxd rdx, edx
mov word [rcx + rdx*2], 0x3d
add eax, 4
xor ecx, ecx
mov qword [rsp], rcx
add rsp, 8
pop rbx
pop rbp
pop rsi
pop rdi
pop r14
pop r15
ret
movsxd rdx, r8d
movzx edx, byte [r10 + rdx]
and edx, 0xfc
sar edx, 2
movsxd rdx, edx
movzx edx, byte [rdx + rsi]
movsxd r9, eax
mov word [rcx + r9*2], dx
movsxd r8, r8d
movzx r10d, byte [r10 + r8]
and r10d, 3
shl r10d, 4
movsxd rdx, r10d
movzx edx, byte [rdx + rsi]
lea r8d, [rax + 1]
movsxd r8, r8d
mov word [rcx + r8*2], dx
lea edx, [rax + 2]
movsxd rdx, edx
mov word [rcx + rdx*2], 0x3d
jmp 0x140263958
cmp ebx, 0x4c
jne 0x1402639f0
lea ebx, [rax + 1]
cdqe
mov word [rcx + rax*2], recv
mov eax, ebx
lea ebx, [rax + 1]
cdqe
mov word [rcx + rax*2], 0xa
xor eax, eax
mov ebp, eax
mov eax, ebx
mov ebx, ebp
add ebx, 4
jmp 0x1402637fa
test edx, edx
je 0x1402638ca
cmp ebx, 0x4c
jne 0x1402638ca
mov r9d, eax
lea eax, [r9 + 1]
movsxd r9, r9d
mov word [rcx + r9*2], send
mov r9d, eax
lea eax, [r9 + 1]
movsxd r9, r9d
mov word [rcx + r9*2], 0xa
jmp 0x1402638ca
Function at 0x1402791f0
Capabilities:
Hash data using murmur3

Disassembly:
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x28
mov rbx, rcx
mov esi, dword [rbx + 0x1c]
mov edi, esi
and edi, 3
cmp esi, 4
jb 0x14027926c
mov eax, dword [rbx]
rol eax, 1
mov ecx, dword [rbx + 4]
rol ecx, 7
add eax, ecx
mov ecx, dword [rbx + 8]
rol ecx, 0xc
add eax, ecx
mov ecx, dword [rbx + 0xc]
rol ecx, 0x12
add eax, ecx
lea eax, [rax + rsi*4]
test edi, edi
je 0x140279242
imul ecx, dword [rbx + 0x10], 0xc2b2ae3d
add eax, ecx
rol eax, 0x11
imul eax, eax, 0x27d4eb2f
cmp edi, 1
ja 0x140279284
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
imul eax, ecx, 0x85ebca77
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul eax, ecx, 0xc2b2ae3d
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
add rsp, 0x28
pop rbx
pop rbp
pop rsi
pop rdi
ret
lea rbp, [0x14069c818]
cmp qword [rbp - 8], 0
jne 0x1402792af
mov eax, dword [rbp]
add eax, 0x165667b1
jmp 0x140279224
imul ecx, dword [rbx + 0x14], 0xc2b2ae3d
add ecx, eax
rol ecx, 0x11
imul eax, ecx, 0x27d4eb2f
cmp edi, 2
jbe 0x140279242
imul ecx, dword [rbx + 0x18], 0xc2b2ae3d
add ecx, eax
rol ecx, 0x11
imul eax, ecx, 0x27d4eb2f
jmp 0x140279242
call fcn.1400013da
jmp 0x14027927a
Function at 0x14030e140
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x40]
xorps xmm4, xmm4
movaps xmmword [rbp + 0x70], xmm4
xor eax, eax
mov qword [rbp + 0x80], rax
mov rax, qword [0x140ba8780]
mov qword [rbp + 0x50], rax
mov rsi, rcx
mov rbx, rdx
mov edi, dword [rbx + 8]
shl edi, 2
cmp edi, 0x400
jge 0x14030e1d2
mov edx, edi
mov r14, rdx
test r14, r14
je 0x14030e1c8
mov rcx, r14
add rcx, 0xf
and rcx, 0xfffffffffffffff0
add rsp, 0x40
neg rcx
add rcx, rsp
jb 0x14030e1aa
xor ecx, ecx
test dword [rsp], esp
sub rsp, 0x1000
cmp rsp, rcx
jae 0x14030e1aa
mov rsp, rcx
test dword [rsp], esp
sub rsp, 0x40
lea r14, [rsp + 0x40]
test edi, edi
jl 0x14030e344
jmp 0x14030e1e8
movsxd rdx, edi
lea rcx, [0x14080f8b0]
call fcn.14000e910
lea r14, [rax + 0x10]
mov edi, dword [rax + 8]
mov qword [rbp + 0x58], r14
mov qword [rbp + 0xd8], rbx
lea rcx, [rbx + 0xc]
mov qword [rbp + 0x80], rcx
mov r15, qword [rbp + 0x80]
xor r13d, r13d
test edi, edi
cmovne r13, r14
mov qword [rbp + 0x60], r13
mov qword [rbp + 0x78], r13
lea rcx, [rbp]
call fcn.14000ec80
call sub.KERNEL32.dll_GetConsoleOutputCP
mov ebx, eax
lea rcx, [rbp]
call fcn.14000ecd0
mov ecx, ebx
mov r8, r15
mov rbx, qword [rbp + 0xd8]
mov r9d, dword [rbx + 8]
mov r13, qword [rbp + 0x60]
mov rdx, r13
mov dword [rsp + 0x28], edi
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov dword [rbp + 0x4c], ecx
mov qword [rbp + 0x3c], r8
mov dword [rbp + 0x48], r9d
mov qword [rsp + 0x20], rdx
xor edx, edx
mov dword [rbp + 0x44], edx
lea rcx, [rbp]
call fcn.14000ec80
mov ecx, dword [rbp + 0x4c]
mov r8, qword [rbp + 0x3c]
mov r9d, dword [rbp + 0x48]
mov edx, dword [rbp + 0x44]
call sub.KERNEL32.dll_WideCharToMultiByte
mov ebx, eax
lea rcx, [rbp]
call fcn.14000ecd0
xor ecx, ecx
mov qword [rbp + 0x78], rcx
mov qword [rbp + 0x80], rcx
test edi, edi
cmovne rcx, qword [rbp + 0x58]
mov qword [rbp + 0x70], rcx
mov rdi, rcx
lea r14, [rbp + 0x6c]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
xor ecx, ecx
mov qword [rsp + 0x20], rcx
mov rcx, rsi
mov qword [rbp + 0x3c], rcx
mov rdx, rdi
mov qword [rbp + 0x34], rdx
mov r8d, ebx
mov dword [rbp + 0x44], r8d
mov r9, r14
mov qword [rbp + 0x2c], r9
lea rcx, [rbp]
call fcn.14000ec80
mov rcx, qword [rbp + 0x3c]
mov rdx, qword [rbp + 0x34]
mov r8d, dword [rbp + 0x44]
mov r9, qword [rbp + 0x2c]
call sub.KERNEL32.dll_WriteFile
lea rcx, [rbp]
call fcn.14000ecd0
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
call fcn.140005c3f
mov dword [rax + 0x120], ebx
xor eax, eax
mov qword [rbp + 0x70], rax
lea rcx, [0x140ba8780]
mov rcx, qword [rcx]
cmp qword [rbp + 0x50], rcx
je 0x14030e32f
call fcn.140010600
nop
lea rsp, [rbp + 0x88]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.140284780
int3
Function at 0x140317c00
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], rax
xor ebx, ebx
test r8b, r8b
setne bl
xor eax, eax
mov dword [rbp - 0x3c], eax
mov rsi, rcx
mov rdi, rdx
test rsi, rsi
je 0x140317c5a
cmp dword [rsi + 8], 0x104
jge 0x140317d4b
mov rcx, rsi
call fcn.1402da8e0
test eax, eax
jne 0x140317d4b
test rdi, rdi
je 0x140317c7c
cmp dword [rdi + 8], 0x104
jge 0x140317d5b
mov rcx, rdi
call fcn.1402da8e0
test eax, eax
jne 0x140317d5b
lea r14, [rbp - 0x3c]
test rdi, rdi
je 0x140317d29
add rdi, 0xc
mov qword [rbp - 0x48], rdi
test rsi, rsi
je 0x140317d30
add rsi, 0xc
mov qword [rbp - 0x50], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x28], ebx
mov rcx, rsi
mov qword [rbp - 0x58], rcx
mov rdx, rdi
mov qword [rbp - 0x60], rdx
xor r8d, r8d
mov qword [rbp - 0x68], r8
xor r9d, r9d
mov qword [rbp - 0x70], r9
lea rcx, [rbp - 0x98]
call fcn.14000ec80
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x68]
mov r9, qword [rbp - 0x70]
call sub.KERNEL32.dll_CopyFileExW
mov ebx, eax
lea rcx, [rbp - 0x98]
call fcn.14000ecd0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
test ebx, ebx
setne bl
movzx ebx, bl
call fcn.140005c3f
mov dword [rax + 0x120], esi
test ebx, ebx
je 0x140317d6b
xor eax, eax
jmp 0x140317d37
xor edi, edi
jmp 0x140317c8d
xor esi, esi
jmp 0x140317c9e
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rsi
call fcn.1402da960
mov rsi, rax
jmp 0x140317c5a
mov rcx, rdi
call fcn.1402da960
mov rdi, rax
jmp 0x140317c7c
call fcn.140005c3f
mov eax, dword [rax + 0x120]
jmp 0x140317d37

Function at 0x140317d80
Capabilities:
Create directory

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rdx
test rcx, rcx
je 0x140317daf
add rcx, 0xc
mov rsi, rcx
jmp 0x140317db1
xor esi, esi
mov qword [rbp - 0x40], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rsi
mov qword [rbp - 0x48], rcx
mov rdx, rbx
mov qword [rbp - 0x50], rdx
lea rcx, [rbp - 0x78]
call fcn.14000ec80
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x50]
call sub.KERNEL32.dll_CreateDirectoryW
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.14000ecd0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
test ebx, ebx
setne bl
movzx ebx, bl
call fcn.140005c3f
mov dword [rax + 0x120], esi
movzx eax, bl
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1403182e0
Capabilities:
Delete file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x90]
xor eax, eax
mov qword [rbp - 0x40], rax
test rcx, rcx
je 0x14031830c
add rcx, 0xc
mov rbx, rcx
jmp 0x14031830e
xor ebx, ebx
mov qword [rbp - 0x40], rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rbx
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x70]
call fcn.14000ec80
mov rcx, qword [rbp - 0x48]
call sub.KERNEL32.dll_DeleteFileW
mov ebx, eax
lea rcx, [rbp - 0x70]
call fcn.14000ecd0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
test ebx, ebx
setne bl
movzx ebx, bl
call fcn.140005c3f
mov dword [rax + 0x120], esi
movzx eax, bl
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140318b20
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov ebx, ecx
mov qword [rbp - 0x40], rdx
mov rsi, rdx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, ebx
mov dword [rbp - 0x44], ecx
mov rdx, rsi
mov qword [rbp - 0x4c], rdx
lea rcx, [rbp - 0x78]
call fcn.14000ec80
mov ecx, dword [rbp - 0x44]
mov rdx, qword [rbp - 0x4c]
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.14000ecd0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140005c3f
mov dword [rax + 0x120], esi
mov eax, ebx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1403199d0
Capabilities:
Create thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov r14, r9
mov r15, qword [rbp + 0x38]
xor ecx, ecx
mov dword [rbp - 0x3c], ecx
mov byte [rbp - 0x4c], 0
lea rcx, [0x140690ba8]
call fcn.1405e8230
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x48], r15
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
mov r9, r14
mov ebx, dword [rbp + 0x30]
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x70], r8
mov qword [rbp - 0x78], r9
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], r15
lea rcx, [rbp - 0xa0]
call fcn.14000ec80
mov rcx, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x70]
mov r9, qword [rbp - 0x78]
call sub.KERNEL32.dll_CreateThread
mov rbx, rax
lea rcx, [rbp - 0xa0]
call fcn.14000ecd0
nop
xor eax, eax
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x3c], 1
mov byte [rbp - 0x4c], 1
mov rax, qword [rbp - 0x58]
mov qword [rax + 8], rbx
mov rcx, rax
mov rax, rcx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret