joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409780
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x623c30
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6ba4f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0050fcf7
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004c7a69
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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
Function at 0x40bfb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40c009
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40c009
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40bff8
cmp esi, edx
jae 0x40c009
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40bfe6
cmp esi, edx
jae 0x40c009
cmp word [esi], 0
je 0x40c009
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x40eaa0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x6ba4f8]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0040e9f0
mov esi, eax
test esi, esi
jne 0x40eb97
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x40eb69
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040eaa0
mov esi, eax
test esi, esi
jne 0x40eb97
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x40eb30
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40eb80
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.0040e910
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40eba6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0050fa22
mov esp, ebp
pop ebp
ret 4
Function at 0x40f030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6247c6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x6ba4f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x40f0dc
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x40f0dc
call fcn.0040e6f0
mov edi, eax
jmp 0x40f1fb
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40f0ff
call fcn.0040e6f0
jmp 0x40f1ee
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40f11d
call fcn.0040e6f0
jmp 0x40f1ee
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40f13e
mov edi, 0x8007000e
jmp 0x40f1f0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x40f234
jb 0x40f15c
cmp eax, 0xffffffff
ja 0x40f234
cmp eax, 0x400
jbe 0x40f171
push eax
lea ecx, [ebp - 0x418]
call fcn.00411740
jmp 0x40f197
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40f197
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x40f1ae
mov edi, 0x8007000e
jmp 0x40f1f0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40f1ce
call fcn.0040e6f0
jmp 0x40f1ee
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040fe00
mov edi, eax
test esi, esi
je 0x40f1fb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40f214
lea ecx, [ebp - 0x418]
call fcn.00411730
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 - 0x14]
xor ecx, ebp
call fcn.0050fa22
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.0040bef0
int3
Function at 0x416e4c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc4
mov eax, 0x6252d8
call fcn.00510596
mov dword [ebp - 0xd0], ecx
mov esi, dword [ebp + 8]
movzx eax, word [ebp + 0x24]
xor ebx, ebx
push 0xa
push eax
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x416f8e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x416f8e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0xc8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp dword [ebp - 0xc8], ebx
jne 0x416eb8
test edi, edi
je 0x416f8e
cmp dword [ebp + 0x1c], ebx
jbe 0x416f52
lea eax, [ebp + 0xc]
mov dword [ebp - 0x30], ebx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], ebx
call fcn.00408f70
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0041d9a8
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0041e544
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0041dd37
lea esi, [edi + 1]
mov byte [ebp - 4], 2
push esi
call fcn.005302b1
push esi
push ebx
push eax
mov dword [ebp - 0xcc], eax
call fcn.005291a0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0xcc]
cmovae eax, dword [ebp - 0x28]
push eax
push edi
push esi
push dword [ebp - 0xc8]
call fcn.00424309
add esp, 0x20
lea ecx, [ebp - 0x28]
call fcn.00406750
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00406750
jmp 0x416f54
mov esi, ebx
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00406860
lea eax, [ebp - 0x58]
push eax
call fcn.0041e9e7
add esp, 0x1c
mov esi, dword [ebp - 0xd0]
lea eax, [ebp - 0x58]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0041811e
cmp dword [esi + 4], ebx
lea ecx, [ebp - 0x58]
seta bl
call fcn.00406750
lea ecx, [ebp + 0xc]
call fcn.00406750
mov al, bl
call fcn.00510540
ret 0x20
Function at 0x41b0af
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x6258e2
call fcn.00510596
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.0041adf6
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41b0e1
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x62d21c
call fcn.004065a0
push 0x62d220
mov ecx, esi
call fcn.004065a0
push 0x6a576c
mov ecx, esi
call fcn.004065a0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00408ae0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41b136
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41b1ce
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005291a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0041acca
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41b18d
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.004065a0
push 0x6a576c
mov ecx, esi
call fcn.004065a0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00408ae0
cmp dword [esi + 0x14], 8
jb 0x41b1d6
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41b1ee
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x62d21c
call fcn.004065a0
push 0x62d220
mov ecx, esi
call fcn.004065a0
push 0x6a576c
mov ecx, esi
call fcn.004065a0
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.0041ae55
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040be70
lea ecx, [ebp - 0x248]
call fcn.00402a60
lea ecx, [ebp - 0x230]
call fcn.00402a60
call fcn.00510540
ret
Function at 0x41d375
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x625bb8
call fcn.00510596
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x41d396
push dword [esi + 0x1c]
call fcn.0053a6f5
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041c14e
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00531b7b
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x41d41a
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0041c14e
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0041c14e
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.00402a60
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00402a60
sub edi, 1
jns 0x41d3c4
mov ecx, esi
call fcn.0041d1a4
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00402a60
call fcn.00510540
ret

Function at 0x41d433
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x625bb8
call fcn.00510596
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x41d454
push dword [esi + 0x1c]
call fcn.0053a6f5
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041c14e
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00531b7b
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x41d4d8
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0041c14e
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0041c14e
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.00402a60
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00402a60
sub edi, 1
jns 0x41d482
mov ecx, esi
call fcn.0041d23b
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00402a60
call fcn.00510540
ret

Function at 0x41dd10
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x41f54c
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x41f55e
sub edi, ecx
xor ecx, ecx
sar edi, 1
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005100b0
lea ecx, [edi*2 + 2]
mov ebx, eax
push ecx
push 0
push ebx
call fcn.005291a0
push dword [ebp + 8]
push esi
push ebx
call fcn.0052e803
add esp, 0x1c
mov byte [ebp - 1], 1
xor esi, esi
test edi, edi
js 0x41f5e3
push 0x5c
pop eax
cmp word [ebx + esi*2], ax
jne 0x41f5d8
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41f5d1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41f5df
push 0x5c
pop eax
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jle 0x41f5ae
jmp 0x41f5e3
mov byte [ebp - 1], 0
push ebx
call fcn.0050fa33
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41f5f2
Capabilities:
Get disk information

Disassembly:
push 0x3c
mov eax, 0x625ebb
call fcn.00510596
mov edi, dword [ebp + 8]
xor ebx, ebx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
test eax, eax
je 0x41f6d9
movzx eax, word [eax]
lea ecx, [ebp - 0x40]
push eax
call fcn.0041f525
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x41f6d9
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005100b0
push esi
mov ebx, eax
push 0
push ebx
call fcn.0041d8f7
add esp, 0x10
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x41f6d2
xor eax, eax
mov esi, ebx
mov word [ebp - 0x42], ax
movzx eax, word [ebx]
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 2
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0052e86c
add esp, 0xc
test eax, eax
je 0x41f6c7
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x41f6b2
movzx eax, word [esi]
test ax, ax
je 0x41f6d2
jmp 0x41f690
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.0041f525
push ebx
call fcn.0050fa33
pop ecx
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00402b00
lea ecx, [ebp - 0x40]
call fcn.00402a60
lea ecx, [ebp - 0x28]
call fcn.00402a60
mov eax, edi
call fcn.00510540
ret
Function at 0x41f6fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6ba4f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.005291a0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
add esp, 0xc
or ecx, 0x8000
cmp byte [ebp + 0x10], 0
cmove ecx, dword [ebp + 0xc]
push eax
push edi
push edi
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
je 0x41f75c
push edi
jmp 0x41f763
lea eax, [ebp - 0x20c]
push eax
call fcn.00402b40
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0050fa22
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x6ba4f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41f8ef
push 2
pop eax
jmp 0x41f974
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.0041f778
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.005291a0
add esp, 0x14
mov dword [ebp - 0x58], edi
test ebx, ebx
mov dword [ebp - 0x48], esi
mov ecx, str.open
mov dword [ebp - 0x54], 0x40
mov eax, 0x62d618
cmove eax, ecx
cmp dword [ebp - 8], 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x41f96a
cmp dword [ebp + 0x10], 0
je 0x41f96a
push dword [ebp + 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.00402a60
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050fa22
leave
ret
Function at 0x420cd0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push edi
je 0x420d80
cmp dword [ebp + 0xc], 0
je 0x420d80
push 0
push 0x80
push 3
push 0
push 5
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x420d15
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x420d83
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x420d0d
jb 0x420d31
push 8
pop eax
jmp 0x420d83
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x420d3d
mov dword [eax], edi
inc esi
push esi
call fcn.005100b0
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
push esi
push eax
mov dword [ecx], eax
call fcn.005291a0
add esp, 0x10
mov dword [ebp + 8], esi
lea eax, [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x420d0d
cmp dword [ebp + 8], edi
jne 0x420d80
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x420d83
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x420d87
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [eax + 0x10], ebx
je 0x420e98
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x420e97
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x420db6
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x420e97
push 0x6c69ac
push eax
call fcn.005102d7
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x420e97
cmp dword [esi + 0x14], 0x10
jb 0x420deb
mov esi, dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, dword [ebp - 4]
test eax, eax
je 0x420e85
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x420e85
mov eax, dword [ebp - 0x10]
push 0x6c69ac
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.005102d7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x420e85
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x420e4e
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.004190fa
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x420e83
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.00408ca0
mov bl, 1
push esi
call fcn.0050fa33
pop ecx
test edi, edi
je 0x420e97
push edi
call fcn.0050fa33
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x420eb6
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push 0x2b4
mov eax, 0x6262fe
call fcn.00510596
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x70]
push esi
call fcn.00402b40
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x60], ebx
jbe 0x421015
lea eax, [ebp - 0x70]
mov dword [ebp - 0x48], ebx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], ebx
call fcn.00402db0
push 0x62d6c4
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.004065a0
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42100d
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x294]
mov dword [ebp - 0x14], 7
push eax
call fcn.00402a00
push 0x62d488
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00402fc0
test al, al
jne 0x420fcf
push 0x62d6b0
lea ecx, [ebp - 0x28]
call fcn.00402fc0
test al, al
jne 0x420fcf
push esi
lea ecx, [ebp - 0x40]
call fcn.00402b40
push 0x6a576c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.004065a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.00408ae0
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x40]
je 0x420fb8
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00420eb6
jmp 0x420fc6
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00420e9e
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00402a60
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00402a60
lea eax, [ebp - 0x2c0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x420f26
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x42100d
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x58]
call fcn.00402a60
lea ecx, [ebp - 0x70]
call fcn.00402a60
call fcn.00510540
ret

Function at 0x421023
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x421086
xor edi, edi
cmp word [eax], di
je 0x421086
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42105c
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42107b
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x421089
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret