joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40db05
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x48c8c5
call fcn.004677c7
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ebx, [esi + 8]
mov dword [esi], vtable.CFileManagerEx.0
mov dword [esi + 4], vtable.CFileManagerEx.1.0
mov dword [ebx], vtable.CFileManagerEx.2.0
push 1
push esi
mov dword [ebp - 4], 3
call fcn.0040dc6f
push dword [esi + 0x80]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40db57
push dword [esi + 0x80]
call fcn.00412566
pop ecx
lea edi, [esi + 0x84]
mov ecx, edi
call fcn.0040ad10
push dword [edi]
call fcn.00463780
pop ecx
mov ecx, dword [esi + 0x80]
sub ecx, 0x10
call fcn.004023e9
mov dword [esi + 0x64], vtable._BaseModule::CCriticalSection.0
add esi, 0x68
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, ebx
call fcn.0041224d
call fcn.0046789f
ret

Function at 0x40dbfe
Capabilities:
Check if file exists
Create directory
Create thread

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
cmp esi, edi
je 0x40dc68
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dc1e
push edi
push esi
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
mov esi, dword [esp + 0x10]
lea ecx, [esi + 0x80]
call fcn.004025eb
push edi
push edi
push esi
push 0x40dbe1
push edi
push edi
call fcn.00468af3
add esp, 0x18
push edi
push edi
push 1
push edi
mov dword [esi + 0x9c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xb0], eax
cmp dword [esi + 0x9c], edi
je 0x40dc68
cmp eax, edi
je 0x40dc68
xor eax, eax
inc eax
jmp 0x40dc6a
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x40e06a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e09d
xor eax, eax
jmp 0x40e0bc
push dword [esi + 8]
mov ecx, dword [esi + 4]
and dword [ebp + 8], 0
push edi
lea edx, [ebp + 8]
call fcn.0040e0c1
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebp
ret 4
Function at 0x40e0c1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.00467130
mov eax, dword [0x4be8a0]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa0]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xfa4]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
cmp eax, 0xffffffff
je 0x40e1be
test ecx, ecx
je 0x40e1be
test edi, edi
jle 0x40e1be
mov eax, edi
cdq
and edx, 0xfff
add eax, edx
mov esi, eax
sar esi, 0xc
and edi, 0x80000fff
jns 0x40e12e
dec edi
or edi, 0xfffff000
inc edi
and dword [ebp - 0x70], 0
and dword [ebp - 0x78], 0
mov dword [ebp - 0x74], ecx
test esi, esi
jle 0x40e181
mov ebx, 0x1000
push ebx
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0046af50
add esp, 0xc
push 0
lea eax, [ebp - 0x70]
push eax
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e1be
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40e176
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
add dword [ebp - 0x74], ebx
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], esi
jl 0x40e142
test edi, edi
jle 0x40e1b9
push edi
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0046af50
add esp, 0xc
push 0
lea eax, [ebp - 0x70]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e1be
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40e1b9
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
xor eax, eax
inc eax
jmp 0x40e1c0
xor eax, eax
mov ecx, dword [ebp + 0xf94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046711a
add ebp, 0xf98
leave
ret

Function at 0x40e1d8
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x488708
call fcn.004677c7
mov edi, 0x4c4f30
push edi
lea ecx, [ebp - 0x10]
call fcn.00401ce4
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004010d8
pop ecx
test eax, eax
jne 0x40e219
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004023e9
xor eax, eax
call fcn.0046789f
ret 0xc
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 8]
push ebx
call fcn.0040e06a
test eax, eax
jne 0x40e235
lea ecx, [ebx - 0x10]
jmp 0x40e20a
push edi
lea ecx, [ebp + 8]
call fcn.00401ce4
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.004010d8
mov esi, dword [ebp + 8]
pop ecx
push esi
xor edi, edi
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [ebp + 0x10], edi
je 0x40e277
push edi
push esi
push ebx
call fcn.00464b60
add esp, 0xc
test eax, eax
jge 0x40e2ac
lea ecx, [esi - 0x10]
call fcn.004023e9
jmp 0x40e230
cmp ebx, edi
je 0x40e28f
cmp esi, edi
je 0x40e28f
push esi
push 0x40e2c4
push edi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
jmp 0x40e291
xor eax, eax
cmp eax, edi
jne 0x40e2ac
lea ecx, [esi - 0x10]
call fcn.004023e9
lea ecx, [ebx - 0x10]
call fcn.004023e9
mov eax, edi
jmp 0x40e211
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
call fcn.00401d13
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
inc edi
jmp 0x40e295
Function at 0x40e430
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4be8a0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 4
mov eax, 0x48c86b
call fcn.004677c7
xor eax, eax
push 0x40e
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.004670a0
add esp, 0xc
push 0x208
lea eax, [ebp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4a2924
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e512
lea eax, [ebp]
push eax
mov ecx, 0x4c3328
call fcn.0040e883
test eax, eax
je 0x40e512
xor ecx, ecx
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], ecx
mov eax, dword [0x4c3330]
test eax, eax
je 0x40e4d7
lea ecx, [ebp - 0x10]
push ecx
push 0x4a298c
call eax
mov ecx, dword [ebp - 0x10]
jmp 0x40e4dc
mov eax, 0x80004001
test eax, eax
jl 0x40e504
test ecx, ecx
je 0x40e504
test esi, esi
je 0x40e4f1
mov eax, ecx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x40e4ff
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor eax, eax
inc eax
jmp 0x40e514
or dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x40e512
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
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 + 0x410]
xor ecx, ebp
call fcn.0046711a
add ebp, 0x414
leave
ret
Function at 0x40e537
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jne 0x40e55f
push 1
push ebx
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x40e56b
cmp eax, 0xffffffff
jne 0x40e580
push ebx
push ebx
push esi
push 0x40e82c
push ebx
push ebx
call fcn.00468af3
add esp, 0x18
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x18], ebx
je 0x40e5f3
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x40e5f3
cmp eax, 0xffffffff
je 0x40e5f3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 8], ebx
je 0x40e63d
push dword [ebp + 8]
call fcn.004673c7
lea edi, [eax + eax + 2]
pop ecx
cmp edi, ebx
je 0x40e636
cmp edi, 0xffffffff
je 0x40e636
mov eax, edi
shr eax, 1
push 2
push eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call fcn.0040e9b2
add esp, 0xc
test eax, eax
jl 0x40e5e6
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x40e5fc
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
jmp 0x40e63f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40e63d
push edi
push dword [ebp + 8]
push eax
call fcn.0046af50
mov esi, dword [esi + 0x18]
xor eax, eax
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x40e631
xor esi, esi
inc esi
jmp 0x40e5e8
push dword [ebp - 4]
jmp 0x40e637
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40eaa6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00467130
mov eax, dword [0x4be8a0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
test edi, edi
je 0x40eb52
mov word [edi], ax
test ebx, ebx
je 0x40eb52
push esi
mov esi, 0x4a1bb0
push ebx
push dword [esi]
call fcn.00467c8a
pop ecx
pop ecx
test eax, eax
je 0x40eaf3
add esi, 8
cmp esi, 0x4a1c10
jl 0x40ead8
jmp 0x40eb39
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
je 0x40eb39
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.004670a0
add esp, 0xc
push 1
push esi
lea eax, [ebp - 0x2004]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40eb39
lea eax, [ebp - 0x2004]
push eax
call fcn.004673c7
cmp eax, dword [ebp + 8]
pop ecx
jl 0x40eb3d
xor eax, eax
jmp 0x40eb51
push eax
lea eax, [ebp - 0x2004]
push eax
push edi
call fcn.00467050
xor eax, eax
add esp, 0xc
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046711a
leave
ret
Function at 0x40ebad
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f94]
mov eax, 0x4014
call fcn.00467130
mov eax, dword [0x4be8a0]
xor eax, ebp
mov dword [ebp + 0x3f90], eax
mov eax, dword [ebp + 0x3f9c]
push esi
push edi
mov dword [ebp - 0x74], eax
xor eax, eax
push 0x3ffe
mov word [ebp - 0x70], ax
xor esi, esi
lea eax, [ebp - 0x6e]
push esi
push eax
mov edi, ecx
call fcn.004670a0
add esp, 0xc
mov dword [ebp - 0x7c], esi
cmp ebx, esi
je 0x40ec79
cmp dword [ebp - 0x74], esi
je 0x40ec79
lea eax, [ebp - 0x7c]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
je 0x40ec79
cmp eax, 0x3fff
ja 0x40ec79
lea ecx, [ebp - 0x70]
push ecx
push eax
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40ec79
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x4a0ee8
lea eax, [ebp - 0x70]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ec79
lea eax, [edi + edi]
push eax
push esi
push dword [ebp - 0x74]
call fcn.004670a0
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
dec edi
push edi
push dword [ebp - 0x74]
call fcn.0046e051
xor eax, eax
add esp, 0x28
inc eax
jmp 0x40ec7b
xor eax, eax
mov ecx, dword [ebp + 0x3f90]
pop edi
xor ecx, ebp
pop esi
call fcn.0046711a
add ebp, 0x3f94
leave
ret

Function at 0x40ec92
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1fa4]
mov eax, 0x2024
call fcn.00467130
mov eax, dword [0x4be8a0]
xor eax, ebp
mov dword [ebp + 0x1fa0], eax
test esi, esi
jne 0x40ecb9
xor eax, eax
jmp 0x40ed10
push 0x1e
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.004670a0
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x5e]
push eax
call fcn.004670a0
push 0xfff
lea eax, [ebp - 0x60]
push esi
push eax
mov dword [ebp - 0x7c], 3
call fcn.00467050
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], eax
mov eax, 0x614
mov word [ebp - 0x70], ax
add esp, 0x24
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1fa0]
xor ecx, ebp
call fcn.0046711a
add ebp, 0x1fa4
leave
ret
Function at 0x4111d8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48d752
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4be8a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [edi + 4]
call fcn.00411966
push 0x4a2d7c
lea ecx, [esp + 0x10]
call fcn.004027ab
and dword [esp + 0x38], 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [ebp + 0xc]
call fcn.00405622
mov byte [esp + 0x38], 2
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x411245
call fcn.00402844
lea eax, [esp + 0x10]
call fcn.0040b8fe
test al, al
je 0x41126c
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x411265
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x4112f9
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
test eax, eax
jle 0x411252
xor esi, esi
test eax, eax
jle 0x4112e3
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00405f0b
mov byte [esp + 0x38], 3
cmp dword [esp + 0x24], 0
sete al
test al, al
sete al
test al, al
je 0x4112d5
cmp dword [esp + 0x20], 0
sete al
test al, al
sete al
test al, al
je 0x4112d5
push edi
lea ecx, [esp + 0x20]
call fcn.0041143d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.004028fc
inc esi
cmp esi, dword [esp + 0xc]
jl 0x41127e
jmp 0x4112e3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.004028fc
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4112f6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4117b3
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x634
mov eax, dword [0x4be8a0]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push edi
call dword [eax + 4]
and dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
test eax, eax
jle 0x411894
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [esp + 0x10]
lea esi, [edi + 4]
call fcn.004118db
mov edx, dword [eax + 4]
cmp dword [edx - 0xc], 0
je 0x411882
cmp dword [edi + 0x1c], 0
je 0x411879
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x41181c
push 4
lea ecx, [eax + 0x14]
push ecx
push 4
jmp 0x41182d
cmp ecx, 1
jne 0x411835
mov ecx, dword [eax + 0x18]
mov esi, dword [ecx - 0xc]
add esi, esi
push esi
push ecx
push 1
push dword [eax + 8]
push edx
push dword [eax]
jmp 0x411875
cmp ecx, 2
jne 0x411882
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 0x14]
push edi
call dword [eax + 8]
lea eax, [esp + 0x430]
push eax
call fcn.004673c7
pop ecx
add eax, eax
push eax
lea eax, [esp + 0x434]
push eax
push 1
lea eax, [esp + 0x230]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x2c]
call ebx
jmp 0x411882
push edx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jl 0x4117f0
mov ecx, dword [esp + 0x63c]
pop edi
pop esi
xor eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.0046711a
mov esp, ebp
pop ebp
ret 4

Function at 0x411fc2
Capabilities:
Read file via mapping

Disassembly:
push ecx
push ebx
push ebp
push esi
push 0x10
xor esi, esi
push esi
push dword [esp + 0x20]
xor ebx, ebx
xor ebp, ebp
call fcn.004670a0
add esp, 0xc
cmp dword [esp + 0x14], esi
je 0x41205e
push esi
push 1
push 3
push esi
push 1
push 1
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x412065
push esi
push esi
push esi
push 2
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0xc], eax
cmp eax, esi
je 0x41205e
push edi
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x412053
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push esi
push esi
push ebp
call ebx
push esi
push esi
push esi
push ebp
mov dword [esp + 0x28], eax
call ebx
push dword [esp + 0x18]
mov esi, dword [esp + 0x20]
xor ebx, ebx
inc ebx
call fcn.00411f46
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x4120bd
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f90]
mov eax, 0x4010
call fcn.00467130
mov eax, dword [0x4be8a0]
xor eax, ebp
mov dword [ebp + 0x3f8c], eax
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.004670a0
and dword [ebp - 0x7c], 0
add esp, 0xc
test edi, edi
je 0x412176
test ebx, ebx
je 0x412176
lea eax, [ebp - 0x7c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x412176
cmp eax, 0x3fff
ja 0x412176
lea ecx, [ebp - 0x74]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x412176
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x4a0ee8
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x412176
push 0x20
push 0
push ebx
call fcn.004670a0
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push 0xf
push ebx
call fcn.0046e051
xor eax, eax
add esp, 0x28
inc eax
jmp 0x412178
xor eax, eax
mov ecx, dword [ebp + 0x3f8c]
xor ecx, ebp
call fcn.0046711a
add ebp, 0x3f90
leave
ret
Function at 0x41238b
Capabilities:
Check if file exists
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x4be8a0]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x1c]
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x4123c7
mov eax, 0xffffd8ee
jmp 0x4124d1
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4123bd
mov eax, dword [ebx + 0x1c]
push edi
push 1
push 3
push edi
push 7
push SysReAllocString
push eax
mov dword [esp + 0x28], 0xffffd8f0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x4124cd
cmp eax, 0xffffffff
je 0x4124c3
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x10], eax
cmp eax, edi
je 0x4124c3
mov esi, dword [ebx + 4]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, esi
xor edx, edx
div dword [esp + 0x44]
push edi
sub esi, edx
mov eax, esi
mov esi, dword [ebx + 4]
push eax
push edi
push 4
push dword [esp + 0x20]
sub esi, eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x18], eax
cmp eax, edi
je 0x4124b9
add eax, esi
cmp eax, edi
je 0x4124af
push dword [ebx + 8]
lea esi, [esp + 0x50]
mov edi, eax
call fcn.00411f46
push 0x10
lea eax, [ebx + 0xc]
push eax
mov eax, esi
push eax
call fcn.004697dc
add esp, 0x10
test eax, eax
je 0x412488
mov dword [esp + 0xc], 0xffffd8ee
jmp 0x4124af
push dword [esp + 0x20]
mov eax, dword [ebx + 8]
push dword [esp + 0x28]
mov ecx, dword [ebx + 0x1c]
cdq
push edx
push eax
push edi
push ecx
call fcn.00464330
add esp, 0x18
test eax, eax
jl 0x4124af
mov dword [esp + 0xc], 1
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046711a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412566
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x674
mov eax, dword [0x4be8a0]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
jne 0x412591
xor eax, eax
jmp 0x412722
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41258a
push ebx
call fcn.004673c7
pop ecx
cmp eax, 3
jbe 0x41258a
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [esp + 0x270], ax
lea eax, [esp + 0x272]
push eax
mov dword [esp + 0x1c], 1
call fcn.004670a0
xor eax, eax
push esi
push eax
mov word [esp + 0x484], ax
lea eax, [esp + 0x486]
push eax
call fcn.004670a0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0x18
push ebx
lea eax, [esp + 0x474]
push eax
call esi
push 0x4a2de4
lea eax, [esp + 0x474]
push eax
call esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x412717
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41270d
mov edi, 0x208
test byte [esp + 0x18], 0x10
je 0x4126b3
cmp word [esp + 0x44], 0x2e
jne 0x412672
cmp word [esp + 0x46], 0
je 0x4126f6
cmp word [esp + 0x46], 0x2e
jne 0x412672
cmp word [esp + 0x48], 0
je 0x4126f6
push edi
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.004670a0
add esp, 0xc
push ebx
lea eax, [esp + 0x26c]
push eax
call esi
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x26c]
push eax
call esi
lea eax, [esp + 0x268]
push eax
call fcn.00412566
and dword [esp + 0x14], eax
pop ecx
jmp 0x4126f6
push edi
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.004670a0
add esp, 0xc
push ebx
lea eax, [esp + 0x26c]
push eax
call esi
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x26c]
push eax
call esi
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4126f6
and dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412643
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046711a
mov esp, ebp
pop ebp
ret

Function at 0x412a90
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x4be8a0]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00416630
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.004166d0
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.0046711a
add esp, 0x68
ret