joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180019fe0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov r14, rdx
test rdx, rdx
jne 0x18001a00f
mov eax, 0x80070057
jmp 0x18001a185
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r15 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
jne 0x18001a050
call fcn.18000ebe0
mov ebp, eax
jmp 0x18001a174
mov qword [rsp + 0xa0], r15
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x18001a079
call fcn.18000ebe0
mov ebp, eax
jmp 0x18001a174
lea rdx, [0x1800669c8]
mov ecx, 0x100000
call fcn.18004d080
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x18001a0a1
mov ebp, 0x8007000e
jmp 0x18001a166
mov rsi, r15
cmp qword [rsp + 0xa0], r15
jbe 0x18001a163
mov qword [rsp + 0x40], 0x100000
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x100000
mov rcx, rbx
call fcn.18004fc80
mov rcx, qword [rsp + 0xa0]
sub rcx, rsi
mov qword [rsp + 0xa8], rcx
lea rax, [rsp + 0xa8]
lea rdx, [rsp + 0x40]
cmp rcx, 0x100000
cmovge rax, rdx
mov dword [rsp + 0x98], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x98]
mov r8d, dword [rax]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001a15a
mov rax, qword [r14]
xor r9d, r9d
mov r8d, dword [rsp + 0x98]
mov rdx, rbx
mov rcx, r14
call qword [rax + 0x18]
mov ebp, eax
test eax, eax
jne 0x18001a166
mov eax, dword [rsp + 0x98]
add rsi, rax
cmp rsi, qword [rsp + 0xa0]
jb 0x18001a0c0
jmp 0x18001a163
call fcn.18000ebe0
mov ebp, eax
jmp 0x18001a166
mov ebp, r15d
test rbx, rbx
je 0x18001a174
mov rcx, rbx
call fcn.18004d03c
nop
cmp rdi, 0xffffffffffffffff
je 0x18001a183
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x18001a580
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov dword [rcx + 0x3c], 0x20
mov qword [rcx + 0x40], rax
lea r8, [rcx + 0x84]
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x68], 1
mov qword [rcx + 0x60], 4
nop dword [rax + rax]
mov edx, eax
lea r8, [r8 + 4]
and edx, 1
mov ecx, eax
shr ecx, 1
dec edx
not edx
inc eax
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [r8 - 4], ecx
cmp eax, 0x100
jb 0x18001a5b0
ret
Function at 0x18001bb40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx], 0
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jne 0x18001bc60
add rcx, 0x48
call fcn.180022fe0
test eax, eax
je 0x18001bb80
mov eax, 0xc
jmp 0x18001bc62
xor r9d, r9d
mov dword [rbx + 0x40], 1
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x18001bbb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x18001bb76
lea rcx, [rbx + 0x20]
call fcn.180022f50
test eax, eax
jne 0x18001bb76
lea rcx, [rbx + 0x28]
call fcn.180022f50
test eax, eax
jne 0x18001bb76
lea rcx, [rbx + 0x30]
mov r8d, edi
mov edx, edi
call fcn.180022fa0
test eax, eax
jne 0x18001bb76
xor r9d, r9d
mov r8d, edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [rbx + 0x38], rax
test rax, rax
jne 0x18001bc11
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x18001bb76
lea rax, [rsp + 0x40]
mov dword [rbx + 4], 1
mov qword [rsp + 0x28], rax
mov r9, rsi
mov r8, rbp
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call fcn.180053d2c
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x18001bc5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x18001bb76
mov dword [rbx], 1
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18001f460
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov r11, qword [rsp + 0x48]
mov ebp, r8d
movzx r10d, word [rcx]
mov r13, r9
movzx r8d, word [rcx + 2]
mov eax, r10d
shr rax, 4
xor r10, 0x7f0
shr r10, 4
mov r14d, edx
mov rbx, rcx
mov rsi, r13
mov r15d, dword [r11 + rax*4]
mov eax, r8d
shr rax, 4
xor r8, 0x7f0
shr r8, 4
mov r12d, dword [r11 + rax*4]
mov eax, dword [r11 + r8*4]
add eax, dword [r11 + r10*4]
add r12d, dword [r11 + r10*4]
mov dword [rsp + 0x48], eax
xor r9d, r9d
nop dword [rax + rax]
cmp r9d, ebp
jae 0x18001f630
xor r10d, r10d
lea edi, [r14*8]
mov r8d, r9d
or r8d, 8
nop dword [rax + rax]
mov ecx, r8d
mov eax, r8d
and ecx, 1
shr rax, 1
neg ecx
shr r8d, 1
sar rcx, 4
add rax, rdi
and ecx, 0x7f
movzx edx, word [rbx + rax*2 + 4]
shr rdx, 4
xor rdx, rcx
add r10d, dword [r11 + rdx*4]
cmp r8d, 1
jne 0x18001f500
lea eax, [r10 + r15]
inc r9d
mov dword [rsi], eax
add rsi, 4
cmp r9d, 8
jb 0x18001f4e0
cmp r9d, 0x10
jae 0x18001f5c7
lea rdi, [r9*4]
add rdi, r13
lea esi, [r14*8]
nop dword [rax]
cmp r9d, ebp
jae 0x18001f630
xor r10d, r10d
lea r8d, [r9 - 8]
or r8d, 8
nop dword [rax]
nop dword [rax + rax]
mov ecx, r8d
mov eax, r8d
and ecx, 1
shr rax, 1
neg ecx
shr r8d, 1
sar rcx, 4
add rax, rsi
and ecx, 0x7f
movzx edx, word [rbx + rax*2 + 0x104]
shr rdx, 4
xor rdx, rcx
add r10d, dword [r11 + rdx*4]
cmp r8d, 1
jne 0x18001f580
lea eax, [r10 + r12]
inc r9d
mov dword [rdi], eax
add rdi, 4
cmp r9d, 0x10
jb 0x18001f560
cmp r9d, ebp
jae 0x18001f630
mov esi, dword [rsp + 0x48]
lea rdi, [r9*4]
add rdi, r13
nop dword [rax + rax]
xor r10d, r10d
lea eax, [r9 - 0x10]
bts eax, 8
nop dword [rax + rax]
mov edx, eax
mov ecx, eax
and edx, 1
shr rcx, 1
neg edx
shr eax, 1
sar rdx, 4
and edx, 0x7f
movzx r8d, word [rbx + rcx*2 + 0x204]
shr r8, 4
xor r8, rdx
add r10d, dword [r11 + r8*4]
cmp eax, 1
jne 0x18001f5f0
lea eax, [r10 + rsi]
inc r9d
mov dword [rdi], eax
add rdi, 4
cmp r9d, ebp
jb 0x18001f5e0
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x180021700
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov rsi, rcx
lea rdi, [rcx + 0x33e14]
xor r11d, r11d
nop dword [rax]
xor r9d, r9d
mov r10d, r11d
lea eax, [r9 + 1]
lea ebx, [rax + 3]
nop dword [rax]
mov ecx, eax
mov r8d, r10d
and r8d, 1
shr r10d, 1
add eax, eax
or eax, r8d
movzx edx, word [rsi + rcx*2 + 0x344bc]
mov ecx, r8d
neg ecx
shr rdx, 4
sar rcx, 4
and ecx, 0x7f
xor rdx, rcx
add r9d, dword [rsi + rdx*4 + 0x32764]
sub ebx, 1
jne 0x180021730
mov dword [rdi], r9d
inc r11d
add rdi, 4
cmp r11d, 0x10
jb 0x180021720
mov rdi, qword [rsp + 0x18]
mov dword [rsi + 0x33e54], ebx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
ret
Function at 0x180021790
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x210
mov rax, qword [0x180083008]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov r12d, 4
lea rbp, [rcx + 0x30768]
mov edi, r12d
lea rsi, [rsp + 0x10]
mov r10, rcx
nop dword [rax]
movzx edx, byte [rbp]
xor ebx, ebx
mov r9d, edx
mov eax, edx
and eax, 1
shr r9d, 1
dec r9d
or eax, 2
mov ecx, r9d
lea r8d, [rbx + 1]
shl eax, cl
mov r11d, edi
sub r11d, eax
test r9d, r9d
je 0x180021852
mov r14d, edx
mov r15d, eax
mov eax, r8d
mov edx, r11d
sub rax, r14
shr r11d, 1
add rax, r15
and edx, 1
add r8d, r8d
or r8d, edx
movzx ecx, word [r10 + rax*2 + 0x343d6]
mov eax, edx
neg eax
shr rcx, 4
sar rax, 4
and eax, 0x7f
xor rcx, rax
add ebx, dword [r10 + rcx*4 + 0x32764]
sub r9d, 1
jne 0x180021811
mov dword [rsi], ebx
inc edi
add rsi, r12
inc rbp
cmp edi, 0x80
jb 0x1800217e0
lea rsi, [rsp]
mov rdi, r10
sub rsi, r10
lea rbx, [r10 + 0x33214]
sub rsi, 0x33614
lea r14, [r10 + 0x3361c]
nop word [rax + rax]
xor r11d, r11d
cmp dword [r10 + 0x33e58], r11d
jbe 0x1800218f2
nop dword [rax]
xor r9d, r9d
mov eax, r11d
or eax, 0x40
nop dword [rax]
mov edx, eax
mov ecx, eax
and edx, 1
shr rcx, 1
neg edx
shr eax, 1
sar rdx, 4
and edx, 0x7f
movzx r8d, word [rdi + rcx*2 + 0x341d8]
shr r8, 4
xor r8, rdx
add r9d, dword [r10 + r8*4 + 0x32764]
cmp eax, 1
jne 0x1800218b0
mov dword [rbx + r11*4], r9d
inc r11d
cmp r11d, dword [r10 + 0x33e58]
jb 0x1800218a0
mov edx, 0xe
cmp dword [r10 + 0x33e58], edx
jbe 0x18002191d
mov eax, edx
lea rcx, [rbx + rax*4]
mov eax, edx
shr eax, 1
inc edx
shl eax, 4
sub eax, 0x50
add dword [rcx], eax
cmp edx, dword [r10 + 0x33e58]
jb 0x180021900
mov eax, dword [rbx]
lea r8, [r10 + 0x30768]
mov dword [r14 - 8], eax
lea rdx, [r14 + 8]
mov eax, dword [rbx + 4]
mov r9d, 0x7c
mov dword [r14 - 4], eax
mov eax, dword [rbx + 8]
mov dword [r14], eax
mov eax, dword [rbx + 0xc]
mov dword [r14 + 4], eax
nop dword [rax + rax]
movzx eax, byte [r8]
lea rdx, [rdx + 4]
lea r8, [r8 + 1]
mov ecx, dword [rbx + rax*4]
add ecx, dword [rdx + rsi - 4]
mov dword [rdx - 4], ecx
sub r9, 1
jne 0x180021950
sub rdi, 0xffffffffffffff80
add rbx, 0x100
add r14, 0x200
sub rsi, 0x200
sub r12, 1
jne 0x180021890
mov dword [r10 + 0x3d5d0], r12d
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.18004d010
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180023200
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x4a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x180083008]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
cmp word [rdx], bx
jne 0x180023240
mov r8d, ebx
jmp 0x18002324e
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], bx
jne 0x180023244
add rcx, 0x20
call fcn.18000ea70
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1800232bb
mov rcx, qword [rsi + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x18002327c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x10], 0xffffffffffffffff
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi + 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x180023426
call fcn.18000ebe0
mov ebx, eax
jmp 0x180023426
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800232d8
and eax, 0x10
je 0x1800232d8
mov eax, 0x80004005
jmp 0x180023428
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.18004fc80
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x180023337
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x180023315
call fcn.18000ebe0
jmp 0x180023428
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, rdi
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.180053e0c
lea rdi, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
sub rax, rdi
sar rax, 1
mov r8, rax
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.18000ea70
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x280]
call fcn.18004fc80
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x280]
xor r8d, r8d
lea rdx, [0x1800779c8]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1800233b3
call fcn.18000ebe0
jmp 0x18002341a
cmp word [rsp + 0x280], 0
je 0x1800233da
lea rax, [rsp + 0x280]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1800233d0
lea rdi, [rsi + 0x40]
mov r8, rbx
lea rdx, [rsp + 0x280]
mov rcx, rdi
call fcn.18000ea70
cmp qword [rsi + 0x50], 0
jne 0x1800233ff
mov ebx, 0x80004005
jmp 0x18002341c
cmp qword [rdi + 0x18], 8
jb 0x180023409
mov rdi, qword [rdi]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.1800230a0
mov ebx, eax
lea rcx, [rsp + 0x50]
call fcn.18000ece0
mov eax, ebx
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.18004d010
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180023450
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x180023471
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x10], 0xffffffffffffffff
cmp qword [rdi + 0x50], 0
jne 0x180023480
xor eax, eax
add rsp, 0x20
pop rdi
ret
cmp qword [rdi + 0x38], 8
mov qword [rsp + 0x30], rbx
lea rbx, [rdi + 0x20]
jb 0x180023495
mov rcx, qword [rbx]
jmp 0x180023498
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800234bb
cmp qword [rbx + 0x18], 8
jb 0x1800234ae
mov rcx, qword [rbx]
jmp 0x1800234b1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1800234e0
cmp qword [rbx + 0x18], 8
jb 0x1800234c5
mov rbx, qword [rbx]
cmp qword [rdi + 0x58], 8
lea rcx, [rdi + 0x40]
jb 0x1800234d3
mov rcx, qword [rcx]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1800234ef
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.18000ebe0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180028330
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rbx, rcx
cmp dword [rcx + 0x24], 2
jne 0x18002839c
cmp dword [rcx + 0x20], 1
jne 0x18002839c
mov rdi, qword [rcx]
cmp byte [rdi], 0
jne 0x18002839c
mov eax, dword [rdi + 0x1c]
mov dword [rcx + 0x28], eax
mov byte [rdi + 0x20], 0
movsxd rdx, dword [rdi + 0x1c]
mov rcx, qword [rdi + 8]
call fcn.180053e8c
nop
mov qword [rdi + 8], rax
mov qword [rbx + 0x18], rax
mov ecx, 1
call fcn.180054278
nop
mov r9, rax
movsxd r8, dword [rbx + 0x28]
mov edx, 1
mov rcx, qword [rbx + 0x18]
call fcn.1800540d4
nop
cmp dword [rbx + 0x24], 0
jne 0x1800283c9
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x180028415
mov rdx, qword [rbx + 0x50]
test rdx, rdx
je 0x180028415
mov r8d, dword [rbx + 0x58]
test r8d, r8d
je 0x180028415
mov rax, qword [rcx]
xor r9d, r9d
call qword [rax + 0x18]
nop
jmp 0x180028415
cmp dword [rbx + 0x20], 0
jne 0x1800283ef
cmp byte [rbx + 0x10], 0
je 0x1800283df
mov rcx, qword [rbx + 0x18]
call fcn.1800513b4
nop
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180028415
mov edx, 0x18
jmp 0x18002840f
mov rdi, qword [rbx]
test rdi, rdi
je 0x180028415
cmp byte [rdi + 0x20], 0
je 0x180028407
mov rcx, qword [rdi + 8]
call fcn.1800513b4
nop
mov edx, 0x28
mov rcx, rdi
call fcn.18004d03c
nop
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x18002842c
call fcn.18004d03c
nop
mov qword [rbx + 0x50], 0
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x18002843c
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x18002844c
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1800285c0
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rdi, rcx
cmp dword [rcx + 0x20], 0
jne 0x1800286ef
mov ecx, 0x28
call fcn.18004d044
mov rbx, rax
mov qword [rsp + 0x40], rax
mov dword [rax + 0x14], 0x10000
mov dword [rax + 0x1c], 0
mov byte [rax], 0
mov byte [rax + 0x20], 1
mov dword [rax + 0x10], 0x10000
mov ecx, 0x10000
call fcn.1800513bc
mov qword [rbx + 8], rax
test rax, rax
jne 0x18002862a
mov byte [rbx], 1
mov edx, 1
mov ecx, 0x100000
call fcn.180054300
mov rsi, rax
test rax, rax
je 0x180028691
xor ecx, ecx
call fcn.180054278
mov r9, rax
mov edx, 1
mov r8d, 0x100000
mov rcx, rsi
call fcn.180054588
test eax, eax
jle 0x180028691
mov r8d, eax
mov rdx, rsi
mov rcx, rbx
call fcn.180028100
xor ecx, ecx
call fcn.180054278
mov r9, rax
mov edx, 1
mov r8d, 0x100000
mov rcx, rsi
call fcn.180054588
test eax, eax
jg 0x180028662
cmp byte [rbx], 0
je 0x1800286a7
mov qword [rdi + 0x18], 0
mov dword [rdi + 0x28], 0
jmp 0x1800286c6
mov byte [rbx + 0x20], 0
movsxd rdx, dword [rbx + 0x1c]
mov rcx, qword [rbx + 8]
call fcn.180053e8c
mov qword [rbx + 8], rax
mov qword [rdi + 0x18], rax
mov eax, dword [rbx + 0x1c]
mov dword [rdi + 0x28], eax
cmp byte [rbx + 0x20], 0
je 0x1800286d6
mov rcx, qword [rbx + 8]
call fcn.1800513b4
nop
mov edx, 0x28
mov rcx, rbx
call fcn.18004d03c
mov rcx, rsi
call fcn.1800513b4
mov byte [rdi + 0x10], 1
mov rcx, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.180028510
Function at 0x1800319a0
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, r8
mov rdi, rdx
test r8, r8
jne 0x1800319bb
add rsp, 0x40
pop rdi
ret
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov edx, 0xc0000000
mov rcx, rax
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180031a04
xor eax, eax
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x58], rbx
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x180031a3a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x58]
xor eax, eax
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r9d, 0x409
lea rdx, str.SFXJPG
mov r8d, 0xce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rcx, rbx
test rax, rax
je 0x180031a22
mov rdx, rax
mov qword [rsp + 0x60], rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov rbp, rax
test rax, rax
je 0x180031b3e
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov edi, eax
call fcn.18004d088
mov dword [rsp + 0x50], 0
mov rbx, rax
test rax, rax
je 0x180031ad6
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x180031b24
cmp edi, dword [rsp + 0x50]
jne 0x180031b24
mov r9d, 0x409
mov dword [rsp + 0x28], edi
mov r8d, 0xce
mov qword [rsp + 0x20], rbx
lea rdx, str.SFXJPG
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_UpdateResourceW]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
je 0x180031b32
mov edi, 1
jmp 0x180031b34
mov edx, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
xor edi, edi
mov rcx, rbx
call fcn.18004d03c
mov eax, edi
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x180031b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x180083008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, rdx
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x180031bcf
mov esi, 1
mov r9d, 0x409
mov r8d, esi
lea edx, [rsi + 0x17]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov r14, rax
mov rcx, rdi
test rax, rax
jne 0x180031bd6
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x180031d0d
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
movsxd rbx, eax
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x50], 0xf
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x38], 0
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1800333a0
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r9d, 0xb
lea rcx, [rsp + 0x38]
call fcn.180032310
cmp rax, 0xffffffffffffffff
je 0x180031cb1
mov qword [rsp + 0x20], 0x16
mov r8d, 0xb
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1800323f0
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov rbx, rax
test rax, rax
je 0x180031cb1
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae r8, qword [rsp + 0x38]
mov r9d, 0x409
mov ecx, dword [rsp + 0x48]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], r8
mov r8, rsi
mov edx, 0x18
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_UpdateResourceW]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
jne 0x180031cb3
xor esi, esi
mov rax, qword [rsp + 0x50]
cmp rax, 0x10
jb 0x180031d0b
inc rax
mov rcx, qword [rsp + 0x38]
cmp rax, 0x1000
jb 0x180031d06
test cl, 0x1f
je 0x180031cd9
call fcn.18005133c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180031ce8
call fcn.18005133c
int3
sub rcx, rax
cmp rcx, 8
jae 0x180031cf7
call fcn.18005133c
int3
cmp rcx, 0x27
jbe 0x180031d03
call fcn.18005133c
int3
mov rcx, rax
call fcn.18004d034
mov eax, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18004d010
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret