joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461fb2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
cmp dword [ebp + 0xc], ebx
je 0x462141
cmp dword [ebp + 0x10], ebx
je 0x462141
cmp esi, ebx
je 0x461fdd
cmp dword [esi + 4], ebx
jne 0x461fe2
cmp dword [esi + 0xc], ebx
je 0x462024
xor eax, eax
cmp dword [esi + 4], ebx
je 0x462002
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004617f5
add esp, 0xc
cmp eax, ebx
jne 0x462143
cmp dword [esi + 0xc], ebx
je 0x462143
push dword [ebp + 0x10]
add esi, 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004617f5
add esp, 0xc
jmp 0x462143
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.00438870
add esp, 0xc
push str.theme_
mov eax, 0x104
lea edi, [ebp - 0x108]
call fcn.00455b42
mov eax, dword [ebp + 8]
mov esi, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x462059
lea edi, [ebp - 0x108]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x462069
mov ecx, eax
shr ecx, 2
push ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push 3
push ebx
push 1
mov ecx, eax
push SysReAllocString
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4620ff
push str.data_
mov eax, 0x104
lea edi, [ebp - 0x108]
call fcn.00455b42
mov eax, dword [ebp + 8]
mov esi, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4620b9
lea edi, [ebp - 0x108]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4620c9
mov ecx, eax
shr ecx, 2
push ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push 3
push ebx
push 1
mov ecx, eax
push SysReAllocString
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x462141
push ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
inc eax
push eax
call fcn.004346f1
pop ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [ecx], eax
lea ecx, [ebp - 4]
push ecx
push dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [esi]
push edi
mov byte [eax + ecx], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x462143
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x463f99
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x564
push ebx
push esi
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x260]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x364]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x48ab6c]
test byte [eax + 0x90e6], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
je 0x463ff9
lea ecx, [ebp - 0x15c]
push ecx
push esi
add eax, 0x91f5
push eax
lea eax, [ebp - 0x364]
push eax
call edi
mov eax, dword [0x48ab6c]
test byte [eax + 0x90e6], 2
je 0x464019
lea ecx, [ebp - 0x15c]
push ecx
push esi
add eax, 0x8a5c
push eax
lea eax, [ebp - 0x364]
push eax
call edi
push esi
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
push 0x4000000
push 3
push esi
push 1
push esi
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
lea eax, [ebp - 0x260]
push eax
push ebx
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x564]
push str._s__cleanup__d___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00438870
add esp, 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x564]
push eax
push esi
mov dword [ebp - 0x58], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4640eb
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5c
push dword [ebp + 0xc]
call fcn.004343d0
pop ecx
pop ecx
test eax, eax
je 0x46411e
mov byte [eax], 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
ret
Function at 0x46413f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x167c
call fcn.00438a90
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00438870
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x48ab6c]
add esp, 0xc
mov dword [ebp - 0x58], 0x44
test byte [eax + 0x90e6], 1
mov edi, 0x206
je 0x464201
push 1
push eax
lea esi, [ebp - 0x1678]
call fcn.0045eb48
xor eax, eax
push edi
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push ebx
push eax
call fcn.00438870
add esp, 0xc
xor eax, eax
movzx ecx, word [ebp + eax - 0x786]
mov word [ebp + eax - 0x260], cx
add eax, 2
cmp cx, bx
jne 0x4641af
push 0x46c4c0
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x786]
push eax
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [0x48ab6c]
test byte [eax + 0x90e6], 2
je 0x464281
push 2
push eax
lea esi, [ebp - 0x1678]
call fcn.0045eb48
xor eax, eax
push edi
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push ebx
push eax
call fcn.00438870
add esp, 0xc
xor eax, eax
movzx ecx, word [ebp + eax - 0x786]
mov word [ebp + eax - 0x260], cx
add eax, 2
cmp cx, bx
jne 0x464234
push 0x46c4e0
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x786]
push eax
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x464289
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x190
call fcn.00463ccf
test eax, eax
jne 0x4642b5
push 0x30
push str.Cannot_start_install
push str.There_is_a_problem_with_the_install_program.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4642e5
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.0045de13
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov eax, dword [0x48ab6c]
add eax, 0xb844
push eax
call fcn.00450295
xor eax, eax
pop ecx
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x465ae4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x184]
push eax
mov dword [ebp - 8], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x84]
call fcn.0044aedf
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x84]
call fcn.0044ae73
lea eax, [ebp - 0x184]
push eax
call edi
push eax
lea eax, [ebp - 0x184]
call fcn.0044ae73
lea eax, [ebp - 0x1c]
push eax
call fcn.0044afa5
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push 0x14
push eax
mov eax, dword [ebp + 0xc]
call fcn.004659e8
add esp, 0xc
pop edi
pop esi
leave
ret

Function at 0x465b62
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor eax, eax
mov byte [ebp - 0x14], 0
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x41
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push 0x46f3c8
push eax
call fcn.0044b005
add esp, 0xc
push 5
lea ecx, [ebp - 0x14]
pop edi
xor esi, esi
lea eax, [ecx + 3]
mov dl, byte [eax]
xor byte [ecx + esi], dl
mov dl, byte [ecx + esi]
xor byte [eax], dl
mov dl, byte [eax]
xor byte [ecx + esi], dl
inc esi
dec eax
cmp esi, 2
jl 0x465b98
add ecx, 4
dec edi
jne 0x465b93
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push 0x10
push eax
mov eax, dword [ebp + 8]
call fcn.004659e8
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x465bcc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x465be2
mov ecx, dword [eax]
jmp 0x465be4
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp ecx, esi
jne 0x465bee
mov dword [ebp + 0x14], esi
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
xor ebx, ebx
inc ebx
cmp eax, esi
je 0x465c02
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x465c05
mov dword [ebp - 8], ebx
xor eax, eax
cmp dword [ebp - 8], ebx
sete al
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x1c], esi
je 0x465c7b
cmp dword [ebp + 0x14], esi
je 0x465c7b
mov dword [ebp - 0x10], ebx
cmp eax, esi
je 0x465c2f
lea eax, [ecx + ecx + 2]
mov dword [ebp - 4], eax
call fcn.0043c370
mov edi, esp
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x465d09
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x465c80
mov eax, esi
jmp 0x465d09
mov dword [ebp - 0x10], esi
jmp 0x465c2f
cmp dword [ebp - 0x10], 0
je 0x465cef
push dword [ebp - 4]
push edi
call fcn.00465b62
cmp dword [ebp - 0x14], 0
pop ecx
pop ecx
je 0x465cef
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [ebp - 4]
lea esi, [eax + 1]
cmp esi, ebx
jae 0x465cd0
push ebx
push edi
call fcn.00465b62
sub dword [ebp - 4], esi
push dword [ebp - 4]
lea eax, [esi + edi]
push eax
push dword [ebp + 0x1c]
call fcn.00465ae4
mov ebx, dword [ebp - 4]
add esp, 0x14
dec ebx
mov dword [ebp - 4], ebx
jmp 0x465cd2
xor esi, esi
push ebx
add esi, edi
push esi
mov esi, dword [ebp + 0x14]
push esi
call fcn.00437d30
mov eax, dword [ebp + 0x18]
add esp, 0xc
cmp ebx, dword [eax]
jae 0x465cf2
mov byte [ebx + esi], 0
jmp 0x465cf2
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x465cfb
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x465d07
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x465d11
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov ebx, eax
xor eax, eax
inc esi
push edi
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
je 0x465d85
lea esi, [ebx + 1]
lea ebx, [esi + esi]
mov eax, ebx
call fcn.0043c370
mov edi, esp
push ebx
push 0
push edi
call fcn.00438870
add esp, 0xc
push esi
push dword [ebp + 0x10]
push edi
call fcn.00437d30
add esp, 0xc
push esi
push edi
call fcn.00465b62
pop ecx
pop ecx
test esi, esi
je 0x465d80
push esi
push dword [ebp + 0x10]
lea eax, [esi + edi]
push eax
mov dword [ebp - 8], eax
call fcn.00437d30
add esp, 0xc
push esi
push dword [ebp - 8]
push dword [ebp + 0x14]
call fcn.00465ae4
add esp, 0xc
push 3
pop esi
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push 0x20006
push eax
push eax
push eax
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x465dc1
push ebx
push edi
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov dword [ebp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x465dcc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov byte [ebp - 0x14], 0
push esi
push edi
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x465dea
sub eax, ecx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0044b005
add esp, 0xc
push 5
lea ecx, [ebp - 0x14]
pop edi
xor esi, esi
lea eax, [ecx + 3]
mov dl, byte [eax]
xor byte [ecx + esi], dl
mov dl, byte [ecx + esi]
xor byte [eax], dl
mov dl, byte [eax]
xor byte [ecx + esi], dl
inc esi
dec eax
cmp esi, 2
jl 0x465e0e
add ecx, 4
dec edi
jne 0x465e09
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x10
push eax
mov eax, dword [ebp + 0xc]
call fcn.004659e8
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x403c70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa00
lea eax, [esp]
lea edx, [esp + 8]
push eax
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0xa0c]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x18], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403cc4
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0xa0c]
call fcn.0040b3ba
mov eax, 1
add esp, 0xa00
ret 8
xor eax, eax
add esp, 0xa00
ret 8

Function at 0x403db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 0xc]
push 0x411288
push 0x7980
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push 0
push ebp
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CMemFile::CMemFile
mov edx, dword [ebx + 0x20]
lea ecx, [esp + 0x10]
push ecx
push 2
lea eax, [esp + 0x24]
push 0x449
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0x403e30
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x1c]
call fcn.0040b54c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x405310
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x533c
call fcn.0040b6d0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
jne 0x405334
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x533c
ret 0xc
mov esi, dword [esp + 0x5350]
test esi, esi
jne 0x405342
lea esi, [edi + 8]
push esi
mov ecx, edi
call fcn.00405510
test eax, eax
jne 0x40535a
pop edi
pop esi
pop ebx
add esp, 0x533c
ret 0xc
lea eax, [esp + 0x114]
mov ecx, edi
push eax
call fcn.00405200
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x114]
push ecx
call ebx
cmp byte [esp + eax + 0x113], 0x5c
jne 0x405394
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x533c
ret 0xc
lea edx, [esp + 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edx
call esi
lea eax, [esp + 0x10]
push eax
call ebx
mov cl, byte [esp + eax + 0xf]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x4053c4
lea ecx, [esp + 0x10]
push 0x41119c
push ecx
call ebx
mov eax, dword [esp + 0x5354]
test eax, eax
je 0x4053f2
lea edx, [esp + 0x114]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x4053f2
inc eax
push eax
lea eax, [esp + 0x118]
push eax
call esi
lea ecx, [esp + 0x114]
lea edx, [esp + 0x10]
push ecx
push edx
call ebx
mov ecx, dword [esp + 0x534c]
lea eax, [esp + 0x10]
push eax
push 0x4114c4
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x10]
mov ecx, edi
push edx
call fcn.00405700
test eax, eax
jne 0x405437
pop edi
pop esi
pop ebx
add esp, 0x533c
ret 0xc
push 0
push 0x80
push 2
push 0
push 0
lea eax, [esp + 0x24]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405469
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x533c
ret 0xc
mov ecx, dword [edi + 4]
push ecx
call fcn.00408650
test eax, eax
je 0x405484
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x533c
ret 0xc
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [edi + 4]
lea edx, [esp + 0x34c]
push 0x5000
push edx
push eax
call fcn.00407fc0
mov esi, eax
test esi, esi
jle 0x4054cf
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x354]
push esi
push edx
push ebx
mov dword [esp + 0x24], 0
call ebp
test eax, eax
je 0x4054cc
cmp dword [esp + 0x10], esi
je 0x40548b
or esi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 4]
push eax
call fcn.004081c0
test esi, esi
pop ebp
jne 0x4054f8
mov ecx, dword [esp + 0x32c]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, edi
call fcn.00405750
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x533c
ret 0xc
Function at 0x405510
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x40c070
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push eax
lea ecx, [esp + 0x48]
call fcn.0040b2e8
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::TrimRight_1
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x405579
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4056a6
lea edx, [esp + 0x14]
push 1
push edx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x41119c
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4055bc
push 0x41119c
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0x44]
push 0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x405682
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov bl, 2
push 0
push edx
mov byte [esp + 0x44], bl
call esi
test eax, eax
jne 0x405674
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x3c], 3
mov eax, dword [ecx - 8]
cmp eax, 1
jl 0x4056bb
cmp byte [eax + ecx - 1], 0x3a
je 0x4056bb
push 0x412ad8
push ecx
call edi
add esp, 8
test eax, eax
je 0x4056bb
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.00405510
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
push 0
push edx
call esi
test eax, eax
je 0x405609
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 0
call fcn.0040b5e8
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 0
call fcn.0040b5e8
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4056a6
Function at 0x405750
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
jne 0x40577b
pop edi
add esp, 0x28
ret 8
lea ecx, [esp + 0x1c]
push esi
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov esi, eax
dec esi
neg esi
sbb esi, esi
inc esi
je 0x4057e4
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov esi, eax
test esi, esi
je 0x4057e4
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov esi, eax
test esi, esi
je 0x4057e4
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0xc]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
add esp, 0x28
ret 8