joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4243b0
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 0x4931d0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x4b81bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
mov esi, dword [0x4bda90]
mov dword [ebp - 0x38], esi
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x424541
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x24], 0
psrldq xmm0, 8
movd eax, xmm0
and eax, 0xfffffe00
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], vtable.CxAutoArray_unsigned_char_.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x34], 0
push eax
push dword [edi]
lea ecx, [esi + 4]
call fcn.004333e0
test eax, eax
je 0x424525
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x424525
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x34], eax
call fcn.0043a42c
add esp, 4
mov edi, eax
lea eax, [esi + 1]
push eax
push 0
push edi
call fcn.0046ce30
add esp, 0xc
push esi
mov esi, dword [ebp - 0x1c]
push esi
push edi
call fcn.0046d3d0
add esp, 0xc
cmp esi, edi
je 0x4244ce
test esi, esi
je 0x4244c3
push esi
call fcn.00439e2b
add esp, 4
mov eax, dword [ebp - 0x34]
mov esi, edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x30]
mov ecx, esi
call fcn.0042a1e0
mov eax, dword [ebp - 0x28]
test al, al
je 0x4244e3
cmp al, 7
jne 0x424528
push ecx
push str.data
lea ecx, [ebp - 0x30]
call fcn.00417700
mov cl, byte [eax + 8]
test cl, cl
je 0x4244fd
cmp cl, 7
jne 0x424528
mov edi, dword [ebp - 0x38]
mov ecx, eax
lea edx, [edi + 0xc]
call fcn.00424ca0
test eax, eax
je 0x42451c
mov dword [edi + 0x14], 1
mov edi, 1
jmp 0x42452a
mov dword [edi + 0x14], 0
jmp 0x424528
mov esi, dword [ebp - 0x1c]
xor edi, edi
test esi, esi
je 0x424537
push esi
call fcn.00439e2b
add esp, 4
lea ecx, [ebp - 0x30]
call fcn.00417040
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00439921
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x425b10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x425b4d
test esi, esi
je 0x425b4d
push 5
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x425b4d
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x425b55
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov dword [edi], eax
mov al, byte [esi + 4]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x425b47
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x425fe0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493440
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4b81bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test edi, edi
je 0x42613a
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebx
test eax, eax
je 0x42613a
call fcn.00403f70
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x42603f
push 0x80004005
call fcn.00404990
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.00404af0
add eax, 8
push eax
call ebx
test eax, eax
je 0x426076
call fcn.00404af0
add eax, 8
lea ecx, [ebp - 0x14]
push eax
call fcn.00403830
mov esi, dword [ebp - 0x14]
or ebx, 0xffffffff
cmp dword [esi - 0xc], 0
jle 0x426108
push edi
lea ecx, [ebp - 0x10]
call fcn.004038a0
mov byte [ebp - 4], 1
call fcn.00404af0
lea ecx, [eax + 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4260a0
sub ecx, edx
sar ecx, 1
je 0x4260ce
push edi
call fcn.00404af0
add eax, 0x210
push eax
lea eax, [ebp - 0x10]
push str.__s__s_
push eax
call fcn.00411c10
add esp, 0x10
push 0
push 0
push dword [ebp - 0x10]
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x426101
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 1
jmp 0x42610a
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x426126
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427470
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49369b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4b81bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x248], ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x4274b2
mov ecx, edi
call fcn.00408d80
cmp dword [0x4bd22c], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jne 0x4274db
push 0x4aafec
push str.Kernel32.dll
call ebx
push eax
call esi
mov dword [0x4bd22c], eax
cmp dword [0x4bd228], 0
jne 0x4274f8
push str.NtQueryInformationProcess
push str.ntdll
call ebx
push eax
call esi
mov dword [0x4bd228], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x244], esi
cmp esi, 0xffffffff
je 0x427548
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.0046ce30
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x427566
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439921
mov esp, ebp
pop ebp
ret
xor ebx, ebx
call fcn.00403f70
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x427684
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4275bd
push 0x104
lea ecx, [ebp - 0x240]
call fcn.004048e0
mov esi, dword [ebp - 0x240]
push ecx
mov ecx, dword [ebp - 0x234]
mov edx, esi
call fcn.004273e0
push dword [esi - 8]
push esi
call fcn.00473092
add esp, 0xc
test eax, eax
js 0x42767a
cmp eax, dword [esi - 8]
jg 0x42767a
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edx, [ebp - 0x240]
mov ecx, dword [ebp - 0x248]
call fcn.0042b630
test eax, eax
je 0x427627
test edi, edi
je 0x427626
push dword [ebp - 0x244]
lea eax, [ebp - 0x234]
push eax
push ecx
lea eax, [ebp - 0x250]
mov ecx, edi
push eax
call fcn.00427d20
inc ebx
mov dword [ebp - 0x23c], 0x22c
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x427650
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x244]
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x427568
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x42754a
push 0x80070057
call fcn.00404990
push 0x80004005
call fcn.00404990
int3
Function at 0x427870
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [eax]
cmp esi, eax
je 0x4278ff
push edi
push dword [esi + 0x10]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4278b1
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0xd], 0
jne 0x4278f7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4278dc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4278f7
nop word [eax + eax]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4278d0
jmp 0x4278f7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4278f5
cmp esi, dword [eax + 8]
jne 0x4278f5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4278e5
mov esi, eax
mov eax, dword [ebp + 8]
cmp esi, eax
jne 0x427885
pop edi
push eax
push dword [eax]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp + 8]
call fcn.00408fd0
push dword [ebp + 8]
call fcn.0043991c
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427920
Capabilities:
Check if file exists
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49371b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4b81bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x427a63
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x427a63
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x427a63
push 0x228
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.0046ce30
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x427a51
mov ecx, ebx
call fcn.00408d80
nop
mov edx, dword [ebp - 0x238]
lea ecx, [ebp - 0x244]
call fcn.00427690
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.0042b630
test eax, eax
je 0x427a16
lea edx, [ebp - 0x244]
mov ecx, edi
call fcn.0042b630
test eax, eax
je 0x427a16
push dword [ebp - 0x244]
lea eax, [ebp - 0x238]
push eax
push ecx
lea eax, [ebp - 0x24c]
mov ecx, ebx
push eax
call fcn.00427d20
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x244]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x427a3b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4279c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp eax, dword [ebx + 4]
sbb eax, eax
neg eax
jmp 0x427a65
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439921
mov esp, ebp
pop ebp
ret
Function at 0x428ce0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4939fe
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4b81bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
test edi, edi
je 0x428dcb
test esi, esi
je 0x428dcb
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00428c20
test eax, eax
je 0x428d86
mov ebx, dword [ebp - 0x18]
test ebx, ebx
setne al
test al, al
je 0x428d86
mov ecx, ebx
call fcn.00434050
mov ecx, eax
mov eax, 0x51eb851f
mul ecx
shr edx, 5
cmp edx, 3
je 0x428d72
cmp edx, 4
je 0x428d86
cmp edx, 5
je 0x428d86
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 0x10
mov edx, ebx
mov ecx, edi
push esi
call fcn.00428de0
add esp, 0x14
mov ebx, eax
jmp 0x428d88
xor ebx, ebx
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x428db7
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x428db7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x428db7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a060
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
mov eax, edx
push 1
push connect
push ecx
mov dword [eax], 0
mov dword [ebp - 4], eax
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42a0d3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
test eax, eax
je 0x42a10f
cmp eax, 0xffffffff
je 0x42a10f
add eax, 8
push 0x4ba3ac
push eax
call fcn.00439e30
mov ebx, dword [ebp - 4]
mov ecx, eax
add esp, 8
mov dword [ebx], ecx
test ecx, ecx
jne 0x42a0dc
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
add eax, 8
push eax
push 0
push ecx
call fcn.0046ce30
add esp, 0xc
mov dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push dword [edi]
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp ecx, dword [edi]
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42a120
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493b98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4b81bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
test esi, esi
je 0x42a1ca
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a1ca
mov dword [ebp - 0x1c], vtable.CxAutoArray_unsigned_char_.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea edx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
mov ecx, esi
call fcn.0042a060
mov esi, dword [ebp - 0x18]
add esp, 4
test eax, eax
je 0x42a1a8
cmp dword [ebp - 0x10], 0
je 0x42a1a8
mov edx, edi
mov ecx, esi
call fcn.0042a1e0
mov edi, eax
jmp 0x42a1aa
xor edi, edi
test esi, esi
je 0x42a1b7
push esi
call fcn.00439e2b
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42b000
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493de8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4b81bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x20], ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42b0d7
push 0x4aa88c
lea ecx, [ebp - 0x18]
call fcn.004038a0
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.004038a0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0042b220
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b08f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b0b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42b0c7
push dword [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jmp 0x42b112
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x42b11c
push esi
lea ecx, [ebp - 0x1c]
call fcn.004038a0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 2
call fcn.0042ad70
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b11c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.0042b140
push 3
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42b140
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492c28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b81bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call esi
test eax, eax
je 0x42b204
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
test eax, eax
jne 0x42b204
push edi
call esi
test eax, eax
je 0x42b204
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x42b1a4
push edi
call ebx
test eax, eax
jne 0x42b204
lea ecx, [ebp - 0x10]
call fcn.0040b2a0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
lea eax, [ebp - 0x10]
push str._s._lu
push eax
call fcn.00411c10
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call ebx
push 1
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
push 4
push 0
push esi
call edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42b204
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42b730
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x4b81bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], 0
call fcn.00403f70
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x42b785
push 0x80004005
call fcn.00404990
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x42b7f9
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42b7f9
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x54]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov ecx, dword [ecx]
call fcn.0042ac20
test eax, eax
je 0x42b7dd
mov eax, dword [ebp - 0x4c]
mov esi, eax
movzx eax, ax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x48]
mov ebx, eax
shr esi, 0x10
shr ebx, 0x10
movzx eax, ax
jmp 0x42b7df
xor eax, eax
push eax
push ebx
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push esi
push 0x4ab194
push eax
call fcn.00411c10
mov esi, dword [ebp - 0x14]
add esp, 0x18
add esi, 0xfffffff0
mov ecx, esi
call fcn.004094f0
add eax, 0x10
mov dword [edi], eax
or eax, 0xffffffff
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42b820
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42cb60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
sete al
test al, al
je 0x42cb84
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x6c]
lea edi, [esi + 0x6c]
xor ebx, ebx
test eax, eax
setne bl
test ebx, ebx
je 0x42cbb8
push 0
lea ecx, [esp + 0x18]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [esp + 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x42cbb8
call fcn.00406500
push 0
push ecx
mov dword [esp + 0x18], esp
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x42cc84
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esp + 0x18]
add eax, 0x10
mov dword [ecx], eax
mov ecx, esi
call fcn.0042c7f0
test eax, eax
jne 0x42cb79
test ebx, ebx
je 0x42cc54
lea eax, [esp + 0x14]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [esp + 0x10], ecx
cmp ecx, 0xffffffff
jne 0x42cc14
call fcn.00406500
test eax, eax
js 0x42cb79
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, ecx
or eax, edx
je 0x42cb79
mov eax, dword [ebp + 8]
test eax, eax
je 0x42cc2e
mov dword [eax], ecx
mov dword [eax + 4], edx
sub esp, 0x14
lea ecx, [esi + 0x80]
push edi
call fcn.0042dc30
test eax, eax
js 0x42cb79
mov eax, dword [esi + 0x80]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x50]
mov eax, ecx
or eax, 0
je 0x42cb79
mov eax, dword [ebp + 8]
test eax, eax
je 0x42cc72
mov dword [eax], ecx
mov dword [eax + 4], 0
cmp dword [esi + 0x50], 0
jbe 0x42cc8e
mov eax, dword [esi + 0x4c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404990
push 0x80070057
call fcn.00404990
int3

Function at 0x42dc30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov dword [edi + 8], ecx
test ecx, ecx
jne 0x42dc72
call fcn.00406500
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp - 8]
push 0
push eax
mov dword [edi + 0x10], 0
push dword [edi + 0x10]
mov dword [edi + 0x14], 0
push dword [edi + 0x14]
mov dword [edi + 4], eax
push 4
push ecx
mov dword [edi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [edi], eax
test eax, eax
jne 0x42dcc6
call fcn.00406500
push dword [edi + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x18