joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001a7c8
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
mov r8, rcx
mov eax, 0x52964ee9
cmp byte [rcx], r9b
je 0x18001a7f2
movzx ecx, word [rcx]
mov edx, eax
inc r9d
ror edx, 8
add edx, ecx
mov ecx, r9d
add rcx, r8
xor eax, edx
cmp byte [rcx], 0
jne 0x18001a7d8
repz ret

Function at 0x18001a7f4
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov r13, rcx
mov r8d, 0x20202020
mov r9, qword [rax + 0x60]
mov r10, qword [r9 + 0x18]
add r10, 0x10
mov r9, qword [r10]
cmp r9, r10
je 0x18001a9e4
mov rdi, qword [r9 + 0x30]
mov r9, qword [r9]
movsxd rax, dword [rdi + 0x3c]
mov ecx, dword [rax + rdi + 0x88]
test ecx, ecx
je 0x18001a832
lea rsi, [rdi + rcx]
cmp dword [rsi + 0x18], 0
je 0x18001a832
mov ecx, dword [rsi + 0xc]
mov eax, dword [rcx + rdi]
or eax, r8d
cmp eax, 0x6c64746e
jne 0x18001a832
mov eax, dword [rcx + rdi + 4]
or eax, r8d
cmp eax, 0x6c642e6c
jne 0x18001a832
movzx eax, word [rcx + rdi + 8]
or ax, 0x20
cmp ax, 0x6c
jne 0x18001a832
mov ebx, dword [rsi + 0x1c]
mov ebp, dword [rsi + 0x20]
mov eax, dword [rsi + 0x24]
mov r8d, edx
add rax, rdi
add rbx, rdi
add rbp, rdi
mov rcx, r13
shl r8, 4
xor edx, edx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x28], rbp
xor r15d, r15d
call fcn.18001d470
xor r14d, r14d
cmp dword [rsi + 0x18], r14d
jbe 0x18001a97f
mov ebp, dword [rbp + r14*4]
add rbp, rdi
je 0x18001a96d
mov eax, 0x694b
cmp word [rbp], ax
jne 0x18001a918
mov rcx, rbp
call fcn.18001a7c8
cmp eax, 0x8dcd4499
jne 0x18001a918
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + r14*2]
mov ecx, dword [rbx + rax*4]
add rcx, rdi
call fcn.18001a78c
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
mov eax, 0x775a
cmp word [rbp], ax
jne 0x18001a96d
mov ebx, r15d
mov rcx, rbp
add rbx, rbx
call fcn.18001a7c8
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x20]
mov dword [r13 + rbx*8], eax
movzx eax, word [r8 + r14*2]
mov ecx, dword [rdx + rax*4]
inc r15d
mov dword [r13 + rbx*8 + 4], ecx
movzx eax, word [r8 + r14*2]
mov ecx, dword [rdx + rax*4]
add rcx, rdi
mov qword [r13 + rbx*8 + 8], rcx
cmp r15d, dword [rsp + 0x78]
je 0x18001a97f
mov rbx, rdx
mov rbp, qword [rsp + 0x28]
inc r14d
cmp r14d, dword [rsi + 0x18]
jb 0x18001a8cd
lea r11d, [r15 - 1]
xor r10d, r10d
test r11d, r11d
je 0x18001a9e4
mov eax, r15d
sub eax, r10d
dec eax
je 0x18001a9dc
lea r8, [r13 + 4]
lea r9, [r13 + 0x14]
mov ebx, eax
mov esi, dword [r8]
mov edi, dword [r9]
cmp esi, edi
jbe 0x18001a9cf
mov eax, dword [r9 - 4]
mov edx, dword [r8 - 4]
mov rcx, qword [r8 + 4]
mov dword [r8 - 4], eax
mov rax, qword [r9 + 4]
mov dword [r8], edi
mov dword [r9 - 4], edx
mov dword [r9], esi
mov qword [r9 + 4], rcx
mov qword [r8 + 4], rax
add r9, 0x10
add r8, 0x10
dec rbx
jne 0x18001a99f
inc r10d
cmp r10d, r11d
jb 0x18001a98b
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001abb8
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x70
cmp dword [0x18004bc70], 0
mov rsi, qword [rsp + 0xa0]
mov rdi, r9
mov rbp, r8
mov r14, rdx
mov rbx, rcx
je 0x18001acc3
mov eax, dword [0x18004bc6c]
mov rcx, qword [0x180050038]
mov r10, qword [0x180050030]
cmp eax, 1
jne 0x18001ac10
test r10, r10
jne 0x18001ac22
cmp eax, 2
jne 0x18001acc3
test rcx, rcx
je 0x18001acc3
test rbx, rbx
je 0x18001ac2c
mov r9, rbx
jmp 0x18001ac49
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [0x180050038]
mov r10, qword [0x180050030]
mov r9, rax
mov eax, dword [0x18004bc6c]
and qword [rsp + 0x50], 0
xor r8d, r8d
mov edx, 0x1fffff
and qword [rsp + 0x48], r8
and qword [rsp + 0x40], r8
and qword [rsp + 0x38], r8
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
cmp eax, 1
jne 0x18001ac87
lea rcx, [rsp + 0x60]
call r10
jmp 0x18001aca4
mov eax, dword [0x180050040]
mov qword [0x18004bc60], rcx
lea rcx, [rsp + 0x60]
mov dword [0x18004bc68], eax
call fcn.18001d0d2
test eax, eax
jne 0x18001acc3
test byte [rsp + 0xa8], 4
jne 0x18001acbc
mov rcx, qword [rsp + 0x60]
call fcn.18001b11c
mov rax, qword [rsp + 0x60]
jmp 0x18001ad1b
mov rax, qword [rsp + 0xb0]
test rbx, rbx
jne 0x18001acf4
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xa8]
mov r9, rsi
mov r8, rdi
mov rdx, rbp
mov rcx, r14
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x18001ad1b
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xa8]
mov r9, rdi
mov dword [rsp + 0x28], eax
mov r8, rbp
mov rdx, r14
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x18001b11c
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x18004bc70], 0
mov rbx, rcx
je 0x18001b18b
mov eax, dword [0x18004bc6c]
cmp eax, 1
jne 0x18001b14f
mov r8, qword [0x180050018]
test r8, r8
je 0x18001b14f
lea rdx, [rsp + 0x38]
call r8
jmp 0x18001b17d
cmp eax, 2
jne 0x18001b18b
mov rax, qword [0x180050020]
test rax, rax
je 0x18001b18b
mov qword [0x18004bc60], rax
mov eax, dword [0x180050028]
lea rdx, [rsp + 0x38]
mov dword [0x18004bc68], eax
call fcn.18001d0bf
test eax, eax
jne 0x18001b18b
mov eax, dword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_ResumeThread]
Function at 0x18001ba2c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov ecx, 0x37
call fcn.180019a34
mov ecx, 0x27
movzx ebx, ax
call fcn.180019a34
mov edx, 1
xor ecx, ecx
movzx edi, ax
call fcn.18000d0d4
call fcn.18001cb30
cmp ebx, 1
jne 0x18001ba80
cmp edi, ebx
jne 0x18001ba77
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18001ba6a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
cmp edi, 1
jne 0x18001babf
mov r9, qword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.18001abb8
or edx, 0xffffffff
mov rcx, rax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x18001be68
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rax, [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r8d, 0x20
mov dl, 2
mov dword [rbp + 0x18], 0
mov word [rbp + 0x1c], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x18001bee8
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x10]
add rsp, 0x60
pop rbp
ret

Function at 0x18001cd90
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rdi, rdx
mov rbp, rcx
test r8d, r8d
je 0x18001cdea
xor r9d, r9d
mov edx, ebx
mov rcx, rbp
lea r8d, [r9 + 1]
add rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x18001cdea
add ebx, eax
cmp ebx, 2
jb 0x18001cde6
lea eax, [rbx - 1]
cmp byte [rax + rdi], 0xa
jne 0x18001cde6
lea eax, [rbx - 2]
cmp byte [rax + rdi], 0xd
je 0x18001ce02
cmp ebx, esi
jb 0x18001cdb4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea ecx, [rbx - 2]
mov eax, ebx
mov byte [rcx + rdi], 0
jmp 0x18001cded

Function at 0x18001e354
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.18001e1bc

Function at 0x1800260a0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800260b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800260b8
xor eax, eax
test eax, eax
je 0x1800260c8
mov ecx, eax
call fcn.18001fb7c
or eax, 0xffffffff
jmp 0x1800260ca
xor eax, eax
add rsp, 0x28
ret
Function at 0x1800260d0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1800260e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800260ea
xor eax, eax
test eax, eax
je 0x1800260fa
mov ecx, eax
call fcn.18001fb7c
or eax, 0xffffffff
jmp 0x1800260fc
xor eax, eax
add rsp, 0x28
ret

Function at 0x180026104
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x18002611a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18002611c
xor eax, eax
test eax, eax
je 0x18002612c
mov ecx, eax
call fcn.18001fb7c
or eax, 0xffffffff
jmp 0x18002612e
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000c7f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov dword [rsp + 0x34], eax
mov rbx, rdx
mov dword [rsp + 0x30], esi
mov rdi, rcx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
lea r8d, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x14000c83c
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000c88a
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000c885
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000c8a9
mov rcx, r8
call fcn.140030ab0
mov qword [rbx + 0x10], rsi
mov byte [rbx], sil
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.140037434
int3

Function at 0x14000c8b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x30], esi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
add eax, eax
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 4]
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 8
mov rdx, rbx
mov r8, qword [rbx + 0x10]
jb 0x14000c902
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
add r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14000c954
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000c94f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000c973
mov rcx, r8
call fcn.140030ab0
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], 7
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.140037434
int3
Function at 0x14000e8e0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x140072048]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12, r9
mov r13, r8
mov rbp, rdx
mov qword [rsp + 0x38], rdx
mov r14, rcx
mov qword [rsp + 0x40], rdx
mov rdi, qword [rsp + 0xe0]
xor ebx, ebx
cmp qword [rcx + 0x18], 8
jb 0x14000e92a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000e95e
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], rbx
mov r8d, 0x19
lea rdx, str.Error:_Ini_File_Not_Exist
mov rcx, rbp
call fcn.140002320
jmp 0x14000eacd
mov ebp, 1
mov ecx, 0x208
call fcn.140030d70
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], bx
mov rbx, 0xffffffffffffffff
mov r15d, 0x104
nop dword [rax + rax]
mov rax, r14
cmp qword [r14 + 0x18], 8
jb 0x14000e9ad
mov rax, qword [r14]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x14000e9ba
mov r8, qword [rdi]
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x14000e9c9
mov rdx, qword [r12]
mov rcx, r13
cmp qword [r13 + 0x18], 8
jb 0x14000e9d7
mov rcx, qword [r13]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [r15 - 1]
cmp eax, ecx
jb 0x14000ea58
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x14000e9ff
mov r8, qword [rdi]
mov rax, rsi
sub r8, rsi
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ea24
add rax, 2
test ecx, ecx
jne 0x14000ea10
test edx, edx
je 0x14000ea58
mov rcx, rsi
call fcn.140030ab0
inc ebp
imul r15d, ebp, 0x104
mov ecx, r15d
mov eax, 2
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.140030d70
mov rsi, rax
jmp 0x14000e9a0
mov rbp, qword [rsp + 0x38]
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x14000ea60
mov rax, qword [rsp + 0x60]
cmp rbx, rax
ja 0x14000eaa3
lea rdi, [rsp + 0x48]
cmp rax, 8
cmovae rdi, qword [rsp + 0x48]
mov qword [rsp + 0x58], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140032f10
xor r14d, r14d
mov word [rbx + rdi], r14w
jmp 0x14000eab3
mov r9, rsi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140002970
mov rcx, rsi
call fcn.140030ab0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbp + 0x10], xmm1
mov rax, rbp
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140030a90
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000f560
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
xor ebp, ebp
add rcx, 0x70
call fcn.14002d8e0
test eax, eax
setne dl
mov byte [rbx + 0xf8], dl
test eax, eax
je 0x14000f5a7
cmp qword [rbx + 0xb8], 0x10000
jae 0x14000f5a7
lea rcx, [rbx + 0x70]
call fcn.14002dce0
mov eax, dword [rbx + 0x2d4]
cmp byte [rbx + 0xf8], bpl
je 0x14000f6b2
cmp eax, 1
je 0x14000f68f
mov dword [rbx + 0x2d4], 1
call fcn.14000dc10
test al, al
je 0x14000f70e
lea rcx, [rbx + 0x10]
call fcn.140028820
test al, al
je 0x14000f70e
lea rcx, [rbx + 0x10]
call fcn.140028fd0
mov rcx, rbx
call fcn.140010df0
add rbx, 0x4d0
cmp byte [rbx + 8], bpl
jne 0x14000f6f9
cmp qword [rbx + 0x18], rbp
je 0x14000f6f9
mov word [rbx + 8], 0x101
mov dword [rbx + 0x20], 0x32
mov ecx, 8
call fcn.140030ae4
mov qword [rax], rbx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x140013330]
xor edx, edx
xor ecx, ecx
call fcn.14003ba28
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000f721
cmp dword [rsp + 0x38], 0
je 0x14000f716
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.14003008c
test eax, eax
jne 0x14000f716
jmp 0x14000f6f9
mov eax, dword [0x140075308]
inc eax
mov dword [0x140075308], eax
cmp eax, 5
jle 0x14000f6f9
mov dword [0x140075308], ebp
mov rcx, rbx
call fcn.14000f2a0
jmp 0x14000f6f9
test eax, eax
je 0x14000f6f9
mov dword [rbx + 0x2d4], ebp
mov rcx, rbx
call fcn.140010df0
mov byte [rbx + 0x4d8], bpl
mov edi, 0x1388
cmp byte [rbx + 0x4d9], bpl
je 0x14000f6f9
nop dword [rax]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 0x32
js 0x14000f6f9
cmp byte [rbx + 0x4d9], bpl
jne 0x14000f6e0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
xor ecx, ecx
call fcn.14003b59c
nop
mov ecx, 1
call fcn.14002fff0
nop
mov dword [rsp + 0x38], ebp
mov ecx, 6
call fcn.14002fff0
int3
Function at 0x14000f9d0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140072048]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor ebp, ebp
mov dword [rsp + 0x24], ebp
lea rdx, [0x140075810]
lea rcx, [0x140075450]
call fcn.14000c9f0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
xor r8d, r8d
lea rdx, [0x140061f88]
lea rcx, [rsp + 0x40]
call fcn.140002320
mov dword [rsp + 0x24], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.140032b50
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000fb07
cmp eax, 0x104
je 0x14000fb07
mov dword [rsp + 0x20], ebp
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x14000fb07
mov ecx, esi
call fcn.140030d70
mov rdi, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.140032b50
mov dword [rsp + 0x28], ebp
mov r9, rdi
mov r8d, esi
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x60]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14000faff
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, str.StringFileInfo000004b0ProductVersion
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14000faff
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140001c30
nop
mov rcx, rdi
call fcn.140030ab0
lea rdx, [rsp + 0x40]
lea rcx, [0x140075770]
call fcn.140001d20
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14000fb57
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fb52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fb80
call fcn.140030ab0
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140030a90
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140037434
int3
Function at 0x140010df0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, [0x1400758a0]
call fcn.140030328
test eax, eax
jne 0x140010e9f
cmp dword [0x1400758ec], 0x7fffffff
je 0x140010e8a
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x40], rdi
lea r8d, [rax + 4]
xor edi, edi
mov dword [rsp + 0x50], 2
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0xb0]
lea r9, [rsp + 0x48]
mov rcx, qword [rbx + 8]
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x1400758a0]
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
jmp fcn.140030330
mov ecx, 6
mov dword [0x1400758ec], 0x7ffffffe
call fcn.14002fff0
int3
mov ecx, 5
call fcn.14002fff0
int3
Function at 0x1400124c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x50], rdx
xor ebp, ebp
mov dword [rsp + 0x40], ebp
mov rdi, qword [0x140075300]
lea r14, [0x1400758a0]
mov qword [rsp + 0x58], r14
mov rcx, r14
call fcn.140030328
test eax, eax
jne 0x140012618
cmp dword [0x1400758ec], 0x7fffffff
je 0x140012603
mov dword [rsp + 0x38], 8
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x30]
lea r8d, [rbp + 4]
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140001e60
mov rdx, rax
mov rcx, rdi
call fcn.14000c7f0
nop
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x38]
lea r8d, [rbp + 4]
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rsi, dword [rsp + 0x30]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], bpl
mov dword [rsp + 0x40], 2
mov rdx, rsi
cmp rsi, 0xf
jbe 0x1400125bb
mov rcx, rbx
call fcn.1400059e0
mov qword [rbx + 0x10], rbp
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400125c8
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x48]
mov r8d, esi
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop
mov rcx, r14
call fcn.140030330
mov rax, rbx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov dword [0x1400758ec], 0x7ffffffe
mov ecx, 6
call fcn.14002fff0
int3
mov ecx, 5
call fcn.14002fff0
int3
Function at 0x140013380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140072048]
xor rax, rsp
mov qword [rbp - 8], rax
mov ebx, ecx
mov rsi, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, bx
mov r8, rdi
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400134ac
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rdi
mov rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test rbx, rbx
je 0x1400134ac
test eax, eax
je 0x1400134ac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x1400134ac
mov rcx, qword [rsi]
mov dword [rbp - 0x28], 0x42ae815e
mov dword [rbp - 0x24], 0x23a6ecb0
mov dword [rbp - 0x20], 0x1feb6b29
mov dword [rbp - 0x1c], 0xe22d1855
mov dword [rbp - 0x18], 0xbb0f11b1
mov dword [rbp - 0x14], 0x3091f3f1
mov dword [rbp - 0x10], 0xd1324162
mov dword [rbp - 0xc], 0xf3acb48d
cmp rcx, qword [rsi + 8]
je 0x140013452
mov qword [rsi + 8], rcx
mov rax, qword [rsi + 0x10]
sub rax, rcx
cmp rdi, rax
jbe 0x140013469
mov rdx, rdi
mov rcx, rsi
call fcn.1400134f0
xor ebx, ebx
test rdi, rdi
je 0x1400134a8
mov rdx, qword [rsi + 8]
mov rax, rbx
and eax, 0x1f
movzx ecx, byte [rbp + rax - 0x28]
xor cl, byte [rbx + r14]
mov byte [rbp - 0x30], cl
cmp rdx, qword [rsi + 0x10]
je 0x140013494
mov byte [rdx], cl
inc qword [rsi + 8]
jmp 0x1400134a0
lea r8, [rbp - 0x30]
mov rcx, rsi
call fcn.1400135e0
inc rbx
cmp rbx, rdi
jb 0x140013470
mov al, 1
jmp 0x1400134ae
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140030a90
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret