joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059b0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x4ad1bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x620]
mov esi, ecx
push 0
push eax
mov edi, 1
call fcn.004760a0
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x208
push 0
push eax
call fcn.004760a0
add esp, 0xc
lea eax, [ebp - 0x620]
push esi
push 0x104
push eax
call fcn.0047aa9e
add esp, 0xc
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.0047aa9e
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405b80
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
nop dword [eax + eax]
cmp word [ebp - 0x844], 0x2e
jne 0x405a9e
mov ax, word [ebp - 0x842]
test ax, ax
je 0x405b50
cmp ax, 0x2e
jne 0x405a9e
cmp word [ebp - 0x840], 0
je 0x405b50
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004760a0
add esp, 0xc
lea eax, [ebp - 0x418]
test byte [ebp - 0x870], 0x10
push eax
lea eax, [ebp - 0x210]
push eax
je 0x405b2b
call esi
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x210]
push eax
call esi
push 0x4a395c
lea eax, [ebp - 0x210]
push eax
call esi
lea ecx, [ebp - 0x210]
call fcn.004059b0
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405b50
call esi
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x870]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405a70
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047137e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
pop edi
sete cl
mov eax, ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047137e
mov esp, ebp
pop ebp
ret
Function at 0x406660
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494518
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4ad1bc]
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
push 0
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4066df
push 0x22c
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.004760a0
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x406721
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x406703
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047137e
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x4067fe
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x406751
push esi
lea ecx, [ebp + 8]
call fcn.00404ed0
mov eax, dword [ebp + 8]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.004809e8
mov eax, dword [ebp + 8]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x4067fe
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [eax + esi*2], cx
lea eax, [ebp - 0x218]
mov esi, dword [ebp + 8]
push eax
call fcn.0048097e
add esp, 4
mov cx, word [eax]
cmp cx, word [esi]
jne 0x4067ae
test cx, cx
je 0x4067aa
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x4067ae
add eax, 4
add esi, 4
test cx, cx
jne 0x406788
xor eax, eax
jmp 0x4067b3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4067dc
push dword [ebp - 0x234]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4067da
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4067dc
xor edi, edi
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x406726
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4066e1
push 0x80070057
call fcn.00402240
int3
Function at 0x406810
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ad1bc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x406847
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047137e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x406837
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x406837
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0047137e
mov esp, ebp
pop ebp
ret
Function at 0x4068a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494557
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x4ad1bc]
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 dword [ebp - 0x81c], ecx
push 0x800
xor edi, edi
mov dword [ebp - 0x818], 0x400
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.004760a0
add esp, 0xc
mov dword [ebp - 4], edi
mov eax, dword [ebx + 4]
mov esi, dword [ebx]
cmp esi, eax
je 0x406928
mov edi, eax
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40691f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x406905
xor edi, edi
mov eax, dword [ebx]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebx + 4], eax
nop word [eax + eax]
lea eax, [ebp - 0x824]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x810]
push eax
mov eax, dword [ebp - 0x81c]
push edi
push dword [eax]
call esi
inc edi
test eax, eax
jne 0x4069dc
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.004028e0
lea eax, [ebp - 0x814]
mov dword [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.00406a40
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x814]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4069b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x818], 0x400
push 0
push eax
call fcn.004760a0
add esp, 0xc
jmp 0x406940
cmp eax, 0x103
je 0x406a1d
mov dword [ebp - 4], 2
mov edi, dword [ebx + 4]
mov esi, dword [ebx]
cmp esi, edi
je 0x406a14
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406a0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x4069f3
mov eax, dword [ebx]
mov dword [ebx + 4], eax
xor eax, eax
jmp 0x406a22
mov eax, 1
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.0047137e
mov esp, ebp
pop ebp
ret
Function at 0x406e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494635
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x4ad1bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push ecx
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], 0
call fcn.00402af0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
mov edx, esi
call fcn.00406fe0
add esp, 4
test eax, eax
je 0x406ec4
mov esi, 1
jmp 0x406f36
cmp dword [edi + 0x14], 8
jb 0x406ecc
mov edi, dword [edi]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406ef6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x406f36
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x30]
push 0
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x406f2e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x406f36
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe4], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe8], eax
lea ecx, [ebp - 0xe0]
call fcn.00403360
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe4], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xe8], eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0x7c], vtable.std::ios_base.0
call fcn.0047074c
mov ecx, dword [ebp - 0x18]
add esp, 4
cmp ecx, 0x10
jb 0x406fbb
inc ecx
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.00404b20
mov eax, esi
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.0047137e
mov esp, ebp
pop ebp
ret
Function at 0x406fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x406ffc
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x407004
mov esi, dword [esi]
push esi
push 0x83
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40701e
pop edi
lea eax, [esi + 2]
pop esi
pop ebp
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x407035
lea eax, [ebx + 3]
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jne 0x40704b
pop ebx
pop edi
lea eax, [esi + 4]
pop esi
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x407060
pop ebx
pop edi
mov eax, 5
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
push eax
call fcn.00403f60
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x409250
Capabilities:
Get system information on windows

Disassembly:
call fcn.004640d0
test eax, eax
jne 0x4092a8
push 0xa
call fcn.00409c50
add esp, 4
test eax, eax
je 0x4092a8
push eax
call fcn.00409f40
add esp, 4
mov dword [0x4b0c00], 0
xorps xmm0, xmm0
movups xmmword [0x4b0be0], xmm0
push 0x4b0be0
movups xmmword [0x4b0bf0], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 1
push 0x4ae628
call fcn.00409350
add esp, 8
xor eax, eax
ret
mov eax, 7
ret

Function at 0x40d3f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov ebx, ecx
test edi, edi
jle 0x40d41d
nop dword [eax]
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x49fb50]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x40d400
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x40d4a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov ecx, 0x80
mov dword [ebp - 4], ebx
push edi
lea eax, [esi*8]
cmp eax, 0x400
cmova esi, ecx
cmp esi, dword [ebx]
jne 0x40d4d1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4b0658]
test eax, eax
je 0x40d4dc
call eax
lea eax, [esi*8]
push eax
call fcn.00409c50
mov ecx, dword [0x4b065c]
add esp, 4
mov esi, eax
mov dword [ebp - 0xc], esi
test ecx, ecx
je 0x40d4fd
call ecx
test esi, esi
je 0x40d4c8
push dword [ebx + 0xc]
call fcn.00409f40
add esp, 4
mov dword [ebx + 0xc], esi
push esi
call dword [0x4aeec0]
shr eax, 3
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebx], eax
lea ecx, [eax*8]
push ecx
push 0
push esi
call fcn.004760a0
mov ecx, dword [ebx + 8]
add esp, 0xc
mov dword [ebx + 8], 0
test ecx, ecx
je 0x40d5e0
mov esi, dword [ecx + 0x10]
xor edi, edi
mov ebx, dword [ecx + 0xc]
test esi, esi
jle 0x40d56f
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
dec esi
movzx edx, byte [eax + 0x49fb50]
lea eax, [edi*8]
xor edx, eax
xor edi, edx
test esi, esi
jg 0x40d552
xor edx, edx
mov ebx, dword [ecx]
mov eax, edi
div dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea esi, [eax + edx*8]
test esi, esi
je 0x40d5ba
mov eax, dword [esi]
test eax, eax
je 0x40d58d
mov edx, dword [esi + 4]
jmp 0x40d58f
xor edx, edx
inc eax
mov dword [esi + 4], ecx
mov dword [esi], eax
test edx, edx
je 0x40d5ba
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x40d5af
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x40d5d6
mov eax, dword [ebp - 4]
mov dword [eax + 8], ecx
mov dword [edx + 4], ecx
jmp 0x40d5d6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov eax, dword [edx + 8]
test eax, eax
je 0x40d5cc
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edx + 8], ecx
mov ecx, ebx
test ebx, ebx
jne 0x40d546
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
mov dword [ebp - 8], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [eax + 0xc], 0
je 0x40d754
push ebx
push esi
xor esi, esi
mov ebx, edx
push edi
mov edi, ecx
test ecx, ecx
jle 0x40d744
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x49fb50]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x40d724
mov ecx, dword [ebp + 8]
mov eax, esi
xor edx, edx
mov esi, dword [ebp - 4]
pop edi
div dword [esi]
mov eax, esi
pop esi
pop ebx
jmp 0x40d756
xor edx, edx
push edx
mov edx, dword [ebp - 8]
push ecx
mov ecx, eax
call fcn.0040d5f0
add esp, 8
test eax, eax
je 0x40d770
mov eax, dword [eax + 8]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40d780
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
cmp dword [esi], 0
je 0x40d7d5
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, eax
test eax, eax
jle 0x40d7c5
mov esi, edx
movzx eax, byte [esi]
lea ecx, [edi*8]
dec ebx
lea esi, [esi + 1]
movzx edx, byte [eax + 0x49fb50]
xor edx, ecx
xor edi, edx
test ebx, ebx
jg 0x40d7a5
mov esi, dword [ebp - 0xc]
mov eax, edi
xor edx, edx
div dword [esi]
mov edi, dword [ebp - 8]
mov ebx, edx
mov dword [ebp - 4], edx
jmp 0x40d7da
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push dword [ebp + 8]
mov edx, edi
mov ecx, esi
call fcn.0040d5f0
add esp, 8
test eax, eax
je 0x40d822
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40d812
push ebx
mov edx, eax
mov ecx, esi
call fcn.0040d6a0
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x40d8c0
push 0x14
call fcn.00409c50
mov edi, eax
add esp, 4
test edi, edi
jne 0x40d846
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov dword [edi + 8], ebx
inc dword [esi + 4]
mov edx, dword [esi + 4]
cmp edx, 0xa
jb 0x40d886
mov eax, dword [esi]
add eax, eax
cmp edx, eax
jbe 0x40d886
add edx, edx
mov ecx, esi
call fcn.0040d4a0
test eax, eax
je 0x40d886
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0040d3f0
xor edx, edx
div dword [esi]
jmp 0x40d889
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40d8a7
push edi
lea edx, [eax + edx*8]
mov ecx, esi
call fcn.0040d430
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
mov dword [edi], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x40d8b6
mov dword [eax + 4], edi
mov dword [edi + 4], 0
mov dword [esi + 8], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e150
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e19a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e19a
push 0x806c
push dword [esi + 0x20]
mov edx, str.winFileSize
mov dword [esi + 0x14], eax
mov ecx, 0x70a
call fcn.0040dc60
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, edi
pop edi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f800
Capabilities:
Check if file exists
Check os version
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4ad1bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4b0760]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push esi
xor esi, esi
mov dword [ebp - 0x234], ecx
push edi
test eax, eax
jne 0x40f85b
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call ebx
mov ecx, dword [ebp - 0x234]
xor eax, eax
cmp dword [ebp - 0x108], 2
sete al
inc eax
mov dword [0x4b0760], eax
cmp eax, 2
jne 0x40f867
call fcn.0040d8d0
jmp 0x40f86c
call fcn.0040da90
mov edi, eax
test edi, edi
jne 0x40f886
lea eax, [edi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047137e
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4b0760]
test eax, eax
jne 0x40f8b4
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0x114
push eax
call ebx
xor eax, eax
cmp dword [ebp - 0x21c], 2
sete al
inc eax
mov dword [0x4b0760], eax
mov dword [ebp - 0x230], 1
cmp eax, 2
jne 0x40f916
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f965
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
mov dword [ebp - 0x230], ebx
test ebx, ebx
jne 0x40f965
cmp esi, dword [0x4ae684]
jge 0x40f965
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40f903
cmp eax, 0x21
je 0x40f903
cmp eax, 0x20
jne 0x40f965
inc esi
mov eax, esi
imul eax, dword [0x4ae680]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40f8c3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40f965
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
mov dword [ebp - 0x230], ebx
test ebx, ebx
jne 0x40f965
cmp esi, dword [0x4ae684]
jge 0x40f965
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40f952
cmp eax, 0x21
je 0x40f952
cmp eax, 0x20
jne 0x40f965
inc esi
mov eax, esi
imul eax, dword [0x4ae680]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40f916
mov eax, dword [ebp - 0x230]
xor ebx, ebx
test eax, eax
sete bl
test ebx, ebx
je 0x40f997
push 0x85d9
push dword [ebp - 0x234]
mov edx, str.winDelete
mov ecx, 0xa0a
call fcn.0040dc60
add esp, 8
mov ebx, eax
jmp 0x40f9bd
test esi, esi
je 0x40f9bd
lea eax, [esi + 1]
imul eax, dword [0x4ae680]
imul eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
push str.delayed__dms_for_lock_sharing_conflict
push 0xa
call fcn.0040b9d0
add esp, 0xc
push edi
call fcn.004793e5
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0047137e
mov esp, ebp
pop ebp
ret
Function at 0x40fdd0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x4ad1bc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x33c], 0x200
push eax
push 0x104
push edx
push ecx
call fcn.0040fc10
add esp, 0x10
test eax, eax
jne 0x40ff47
mov eax, dword [0x4b0760]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40fe40
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x114
push eax
call edi
xor eax, eax
cmp dword [ebp - 0x210], 2
sete al
inc eax
mov dword [0x4b0760], eax
lea ecx, [ebp - 0x10c]
push esi
cmp eax, 2
jne 0x40fe53
call fcn.0040d8d0
jmp 0x40fe58
call fcn.0040da90
mov esi, eax
test esi, esi
je 0x40ff32
mov eax, dword [0x4b0760]
test eax, eax
jne 0x40fe90
lea eax, [ebp - 0x334]
mov dword [ebp - 0x334], 0x114
push eax
call edi
xor eax, eax
cmp dword [ebp - 0x324], 2
sete al
inc eax
mov dword [0x4b0760], eax
cmp eax, 2
mov eax, esi
jne 0x40fed5
cmp word [esi], 0
je 0x40feb6
nop dword [eax]
cmp word [eax], 0x5c
je 0x40feb1
add eax, 2
cmp word [eax], 0
jne 0x40fea0
jmp 0x40feb6
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x338]
push eax
push eax
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x338]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x40ff0d
cmp byte [esi], 0
je 0x40fef0
nop word [eax + eax]
cmp byte [eax], 0x5c
je 0x40feed
inc eax
cmp byte [eax], 0
jne 0x40fee0
jmp 0x40fef0
mov byte [eax], 0
lea eax, [ebp - 0x338]
push eax
push eax
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x338]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.004793e5
add esp, 4
test edi, edi
je 0x40ff32
mov eax, dword [ebp - 0x33c]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047137e
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0x200
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047137e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x33c]
xor ecx, ebp
call fcn.0047137e
mov esp, ebp
pop ebp
ret