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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x60e890]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x72
mov word [ebp - 0xa], 0x62
mov word [ebp - 8], bx
je 0x586251
cmp ecx, ebx
je 0x586251
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.msvcrt.dll__wfopen
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
je 0x586251
push edi
push eax
push 6
lea eax, [ebp - 0x28]
push 4
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, 6
jne 0x586233
cmp dword [ebp - 0x28], ebx
je 0x586233
cmp dword [ebp - 0x24], ebx
je 0x586233
cmp dword [ebp - 0x20], ebx
je 0x586233
cmp dword [ebp - 0x14], ebx
je 0x5861a0
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x28]
jne 0x586233
push 0x2c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x5861b7
mov ecx, eax
call fcn.00585ea3
mov esi, eax
jmp 0x5861b9
xor esi, esi
cmp esi, ebx
jne 0x5861c4
mov edi, 0x8007000e
jmp 0x586238
cmp dword [ebp - 0x14], ebx
push dword [ebp - 0x20]
mov ecx, esi
push dword [ebp - 0x24]
je 0x5861de
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.00585d3a
jmp 0x5861e6
push dword [ebp - 0x28]
call fcn.00585c0f
mov edi, eax
cmp edi, ebx
mov eax, dword [esi]
jge 0x5861f7
push 1
mov ecx, esi
call dword [eax + 0x4c]
jmp 0x586238
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x28]
push ebx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x586238
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
push dword [ebp - 0x2c]
shl eax, 2
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x10]
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x28], eax
jne 0x586233
mov eax, dword [ebp - 0x30]
mov dword [eax], esi
xor edi, edi
jmp 0x586238
mov edi, 0x8876086c
cmp dword [ebp - 0x10], ebx
je 0x586243
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
push dword [ebp - 0x2c]
call sub.msvcrt.dll_fclose
pop ecx
mov eax, edi
pop edi
jmp 0x586256
mov eax, 0x8876086c
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.005f059d
leave
ret 8
Function at 0x5865da
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 8], 0
push ebx
push esi
je 0x5866ef
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x5866ef
push 0x4213a8
push dword [ebp + 8]
call sub.msvcrt.dll_fopen
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x5866ef
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x24]
mov dword [ebp - 8], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x28]
push ebx
push 8
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push 4
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp eax, 8
je 0x586677
mov esi, 0x8876086c
jmp 0x5866e4
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x18]
inc ecx
imul ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x1c]
push edi
mov edi, dword [esi + 0x1c]
mov esi, dword [esi + 0x20]
push ebx
push dword [ebp - 8]
shl ecx, 2
push ecx
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp dword [ebp - 8], eax
je 0x5866aa
mov esi, 0x8876086c
jmp 0x5866e3
mov eax, dword [ebp - 4]
push ebx
push dword [ebp - 0x20]
shl eax, 2
push eax
push edi
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp dword [ebp - 0x20], eax
jne 0x5866a3
test esi, esi
je 0x5866e1
cmp dword [ebp - 8], 1
je 0x5866e1
push ebx
push dword [ebp - 0x20]
push 4
push esi
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp dword [ebp - 0x20], eax
jne 0x5866a3
xor esi, esi
pop edi
push ebx
call sub.msvcrt.dll_fclose
pop ecx
mov eax, esi
jmp 0x5866f4
mov eax, 0x8876086c
pop esi
pop ebx
leave
ret 8
Function at 0x5866ff
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x60e890]
and word [ebp - 8], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov word [ebp - 0xc], 0x77
mov word [ebp - 0xa], 0x62
je 0x58682b
test esi, esi
je 0x58682b
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.msvcrt.dll__wfopen
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x58682b
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x28]
push ebx
push 8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
push 4
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp eax, 8
je 0x5867b3
mov esi, 0x8876086c
jmp 0x586820
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi + 0x18]
inc ecx
imul ecx, dword [ebp - 0x24]
imul ecx, dword [ebp - 0x28]
push edi
mov edi, dword [esi + 0x1c]
mov esi, dword [esi + 0x20]
push ebx
push dword [ebp - 0x14]
shl ecx, 2
push ecx
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp dword [ebp - 0x14], eax
je 0x5867e6
mov esi, 0x8876086c
jmp 0x58681f
mov eax, dword [ebp - 0x10]
push ebx
push dword [ebp - 0x2c]
shl eax, 2
push eax
push edi
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp dword [ebp - 0x2c], eax
jne 0x5867df
test esi, esi
je 0x58681d
cmp dword [ebp - 0x14], 1
je 0x58681d
push ebx
push dword [ebp - 0x2c]
push 4
push esi
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp dword [ebp - 0x2c], eax
jne 0x5867df
xor esi, esi
pop edi
push ebx
call sub.msvcrt.dll_fclose
pop ecx
mov eax, esi
jmp 0x586830
mov eax, 0x8876086c
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.005f059d
leave
ret 8
Function at 0x586f09
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 8], esi
je 0x58707b
cmp dword [ebp + 0xc], esi
je 0x58707b
push 0x4213b0
push dword [ebp + 8]
call sub.msvcrt.dll_fopen
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp + 8], eax
je 0x58707b
push ebx
push eax
push 8
lea eax, [ebp - 0x2c]
push 4
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, 8
je 0x586f64
mov ebx, 0x8876086c
jmp 0x58706d
cmp dword [ebp - 0x2c], esi
push edi
je 0x587059
cmp dword [ebp - 0x28], esi
je 0x587059
cmp dword [ebp - 0x24], esi
je 0x587059
cmp dword [ebp - 0x18], esi
je 0x586f95
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2c]
jne 0x587059
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
push 0x38
mov dword [ebp - 4], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x586fb3
mov ecx, eax
call fcn.00586e58
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
jne 0x586fc4
mov ebx, 0x8007000e
jmp 0x58705e
push dword [ebp - 0x18]
mov ecx, esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00586517
mov ebx, eax
test ebx, ebx
jl 0x58705e
mov ecx, dword [esi + 0x20]
push dword [ebp + 8]
mov eax, dword [esi + 0x18]
push dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov ebx, dword [esi + 0x1c]
lea ecx, [edi + 1]
imul ecx, dword [ebp - 0x24]
imul ecx, dword [ebp - 0x28]
shl ecx, 2
push ecx
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 4], eax
jne 0x587059
push dword [ebp + 8]
mov eax, edi
push dword [ebp - 0x2c]
shl eax, 2
push eax
push ebx
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x2c], eax
jne 0x587059
cmp dword [ebp - 4], 1
je 0x587050
push dword [ebp + 8]
push dword [ebp - 0x2c]
push 4
push dword [ebp - 0xc]
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x2c], eax
jne 0x587059
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor ebx, ebx
jmp 0x58706c
mov ebx, 0x8876086c
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x58706c
mov eax, dword [ecx]
push 1
call dword [eax + 0x44]
pop edi
push dword [ebp + 8]
call sub.msvcrt.dll_fclose
pop ecx
mov eax, ebx
pop ebx
jmp 0x587080
mov eax, 0x8876086c
pop esi
leave
ret 8
Function at 0x58708a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x60e890]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x18], esi
mov word [ebp - 0xc], 0x72
mov word [ebp - 0xa], 0x62
mov word [ebp - 8], si
je 0x587218
cmp ecx, esi
je 0x587218
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.msvcrt.dll__wfopen
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
je 0x587218
push ebx
push eax
push 8
lea eax, [ebp - 0x38]
push 4
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, 8
je 0x587101
mov ebx, 0x8876086c
jmp 0x58720a
cmp dword [ebp - 0x38], esi
push edi
je 0x5871f6
cmp dword [ebp - 0x34], esi
je 0x5871f6
cmp dword [ebp - 0x30], esi
je 0x5871f6
cmp dword [ebp - 0x24], esi
je 0x587132
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x38]
jne 0x5871f6
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
push 0x38
mov dword [ebp - 0x14], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x587150
mov ecx, eax
call fcn.00586e58
mov esi, eax
test esi, esi
mov dword [ebp - 0x18], esi
jne 0x587161
mov ebx, 0x8007000e
jmp 0x5871fb
push dword [ebp - 0x24]
mov ecx, esi
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00586517
mov ebx, eax
test ebx, ebx
jl 0x5871fb
mov ecx, dword [esi + 0x20]
push dword [ebp - 0x10]
mov eax, dword [esi + 0x18]
push dword [ebp - 0x14]
mov dword [ebp - 0x3c], ecx
mov ebx, dword [esi + 0x1c]
lea ecx, [edi + 1]
imul ecx, dword [ebp - 0x30]
imul ecx, dword [ebp - 0x34]
shl ecx, 2
push ecx
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x14], eax
jne 0x5871f6
push dword [ebp - 0x10]
mov eax, edi
push dword [ebp - 0x38]
shl eax, 2
push eax
push ebx
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x38], eax
jne 0x5871f6
cmp dword [ebp - 0x14], 1
je 0x5871ed
push dword [ebp - 0x10]
push dword [ebp - 0x38]
push 4
push dword [ebp - 0x3c]
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x38], eax
jne 0x5871f6
mov eax, dword [ebp - 0x40]
mov dword [eax], esi
xor ebx, ebx
jmp 0x587209
mov ebx, 0x8876086c
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x587209
mov eax, dword [ecx]
push 1
call dword [eax + 0x44]
pop edi
push dword [ebp - 0x10]
call sub.msvcrt.dll_fclose
pop ecx
mov eax, ebx
pop ebx
jmp 0x58721d
mov eax, 0x8876086c
mov ecx, dword [ebp - 4]
pop esi
call fcn.005f059d
leave
ret 8
Function at 0x588a3a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5f104d
call fcn.005f0098
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x421410
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.0058888d
fld1
xor ebx, ebx
fstp dword [esi + 0x20]
inc ebx
lea ecx, [esi + 0x74]
mov dword [ebp - 4], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], 0x3ba3d70a
mov dword [esi + 0x6c], edi
call fcn.00594c3e
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x4c], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x594c3e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5f12fe
call fcn.005f0098
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi], ebx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], ebx
call fcn.00582532
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call fcn.00582532
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00582532
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 3
call fcn.0059302e
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 4
call fcn.0059317e
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 5
call fcn.0059317e
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 6
call fcn.00594bed
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
or dword [esi + 0x98], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov byte [esi + 0xac], bl
mov byte [esi + 0xad], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x5b05c9
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push dword [ecx + 0x30]
mov dword [ebp - 0x24], 0x20666f78
mov dword [ebp - 0x20], 0x34303330
mov dword [ebp - 0x1c], 0x206e6962
mov dword [ebp - 0x18], 0x32333030
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7ff8fff2
add eax, 0x8007000e
leave
ret
Function at 0x5b0bb9
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
jne 0x5b0bec
mov eax, 0x88760389
jmp 0x5b0cae
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5b0c03
mov esi, 0x8876038f
jmp 0x5b0c6b
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5b0bfc
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x5b0c31
mov esi, 0x8876038f
jmp 0x5b0c64
push 0x24
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x5b0c50
push edi
push dword [ebp + 8]
mov ecx, eax
push ebx
push dword [ebp - 4]
call fcn.005b5918
mov edi, eax
jmp 0x5b0c52
xor edi, edi
cmp edi, esi
jne 0x5b0c78
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, 0x8007000e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x5b0cad
push 0x30
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x5b0c91
push edi
push dword [ebp + 0xc]
mov ecx, eax
call fcn.005b08f0
jmp 0x5b0c93
xor eax, eax
cmp eax, esi
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x5b0cab
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, 0x8007000e
jmp 0x5b0cad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x5b0cb9
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x60e890]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x118], ebx
call fcn.004291fb
test eax, eax
jne 0x5b0d19
push 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call sub.msvcrt.dll_wcstombs
add esp, 0xc
push ebx
push esi
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 5], 0
call fcn.005b0bb9
jmp 0x5b0e18
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5b0d3f
mov eax, 0x88760389
jmp 0x5b0e18
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5b0d55
mov esi, 0x8876038f
jmp 0x5b0dd2
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10c], eax
je 0x5b0d4e
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebp - 0x110], eax
jne 0x5b0d8a
mov esi, 0x8876038f
jmp 0x5b0dc6
push 0x24
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x5b0daf
push edi
push dword [ebp - 0x110]
mov ecx, eax
push dword [ebp - 0x10c]
push ebx
call fcn.005b5918
mov edi, eax
jmp 0x5b0db1
xor edi, edi
cmp edi, esi
jne 0x5b0ddd
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, 0x8007000e
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x5b0e18
push 0x30
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x5b0df9
push edi
push dword [ebp - 0x114]
mov ecx, eax
call fcn.005b08f0
jmp 0x5b0dfb
xor eax, eax
cmp eax, esi
mov ecx, dword [ebp - 0x118]
mov dword [ecx], eax
jne 0x5b0e16
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, 0x8007000e
jmp 0x5b0e18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.005f059d
leave
ret 0xc
Function at 0x5b2a86
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b2a91
push ebx
sub eax, edx
push esi
lea esi, [eax + 1]
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
jne 0x5b2ab8
mov eax, 0x8007000e
jmp 0x5b2b71
push edi
mov ecx, esi
mov esi, dword [ebp + 0xc]
mov edx, ecx
shr ecx, 2
push eax
push 0x8000080
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push 2
push eax
push eax
mov ecx, edx
push 0x40000000
push dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5b2af4
mov esi, 0x8876038f
jmp 0x5b2b3a
push 0x60
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x5b2b1f
mov edx, dword [ebp + 0x10]
mov ecx, edx
shr ecx, 1
and ecx, 1
push ecx
and edx, 1
push edx
push edi
push ebx
push dword [ebp + 8]
mov ecx, eax
call fcn.005b15bd
mov esi, eax
jmp 0x5b2b21
xor esi, esi
test esi, esi
jne 0x5b2b45
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, 0x8007000e
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x5b2b70
mov ecx, esi
call fcn.005b17a0
test eax, eax
je 0x5b2b69
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0x8876038f
jmp 0x5b2b70
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x5b2b7c
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x60e890]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x114], edi
call fcn.004291fb
test eax, eax
jne 0x5b2bdf
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.msvcrt.dll_wcstombs
add esp, 0xc
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push eax
push esi
mov byte [ebp - 5], 0
call fcn.005b2a86
jmp 0x5b2cc7
push ebx
call sub.msvcrt.dll_wcslen
inc eax
lea esi, [eax + eax]
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
xor eax, eax
cmp edi, eax
pop ecx
pop ecx
mov dword [ebp - 0x10c], edi
jne 0x5b2c09
mov eax, 0x8007000e
jmp 0x5b2cc7
mov ecx, esi
mov edx, ecx
shr ecx, 2
push eax
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push 0x8000080
push 2
push eax
push eax
mov ecx, edx
push 0x40000000
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5b2c3f
mov esi, 0x8876038f
jmp 0x5b2c8b
push 0x60
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x5b2c72
mov edx, dword [ebp + 0x10]
mov ecx, edx
shr ecx, 1
and ecx, 1
push ecx
and edx, 1
push edx
push edi
push dword [ebp - 0x10c]
mov ecx, eax
push dword [ebp - 0x110]
call fcn.005b1655
mov esi, eax
jmp 0x5b2c74
xor esi, esi
test esi, esi
jne 0x5b2c9b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0x8007000e
push dword [ebp - 0x10c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x5b2cc7
mov ecx, esi
call fcn.005b17a0
test eax, eax
je 0x5b2cbd
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 0x8876038f
jmp 0x5b2cc7
mov eax, dword [ebp - 0x114]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.005f059d
leave
ret 0x10

Function at 0x5b2d83
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ecx
push dword [esi + 0x30]
mov dword [esi], 0x422d88
call edi
push dword [esi + 0x34]
call edi
mov eax, dword [esi + 0x38]
cmp eax, 0xffffffff
je 0x5b2daa
push eax
call edi
mov al, byte [esi + 0x48]
test al, 0x40
je 0x5b2dc0
test al, al
js 0x5b2dcd
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x5b2dcd
test al, al
js 0x5b2dcd
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esi + 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 8]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x20]
call fcn.005b12b5
pop edi
lea ecx, [esi + 0x10]
pop esi
jmp fcn.005b08be