joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401070
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, dword [esp + 0x68]
push edi
xor edi, edi
mov eax, dword [esi]
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0x10], edi
je 0x4011f8
mov ebx, esi
push 1
call fcn.00401410
mov eax, dword [esi + 8]
add esp, 4
cmp eax, edi
je 0x4010e8
push eax
call fcn.004014c0
add esp, 4
test eax, eax
je 0x4010fb
cmp dword [esp + 0x70], edi
jne 0x4010d2
mov eax, dword [esp + 0x6c]
lea edx, [ebp + ebp*4]
mov ecx, dword [eax + edx*8 + 8]
push ecx
push str.Process___s__is_already_running._n
push 0x4081f0
call fcn.00401819
add esp, 0xc
push edi
call fcn.00401410
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, dword [esi]
push eax
call fcn.004014c0
add esp, 4
test eax, eax
jne 0x4011be
push edi
call fcn.00401410
add esp, 4
lea ecx, [esp + 0x14]
mov eax, dword [esi + 4]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esi]
push edx
push edi
push edi
push 8
push edi
push edi
push edi
push eax
push ecx
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], str.Winsta0default
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x78], edi
mov word [esp + 0x7c], 7
mov dword [esp + 0x80], edi
mov word [esp + 0x7e], di
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401186
cmp dword [esp + 0x70], edi
jne 0x401180
mov edx, dword [esi]
push edx
push str.Error_while_starting___s_._n
push 0x4081f0
call fcn.00401819
add esp, 0xc
inc dword [esp + 0x10]
jmp 0x40119a
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov eax, dword [ebx + 0x28]
add ebx, 0x28
inc ebp
cmp eax, edi
mov esi, ebx
jne 0x40108f
cmp dword [esp + 0x10], edi
je 0x4011f8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret
cmp dword [esp + 0x70], edi
jne 0x4011e2
mov eax, dword [esp + 0x6c]
lea edx, [ebp + ebp*4]
mov ecx, dword [eax + edx*8]
push ecx
push str.Process___s__is_already_running._n
push 0x4081f0
call fcn.00401819
add esp, 0xc
push edi
call fcn.00401410
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x58
ret
Function at 0x401210
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x398
push ebx
push esi
mov esi, dword [esp + 0x3a4]
push edi
push str.apache_binhttpd.exe
push esi
lea eax, [esp + 0x1a4]
push str._s_s
push eax
call fcn.00401904
push str.apachelogserror.log
push esi
push str.apacheconfhttpd.conf
lea ecx, [esp + 0x1b8]
push esi
push ecx
lea edx, [esp + 0x2c4]
push str.__s___f___s_s___E___s_s_
push edx
call fcn.00401904
lea eax, [esp + 0x1c8]
lea ecx, [esp + 0x2cc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
xor esi, esi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x44]
mov dword [esp + 0x40], esi
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
mov ecx, 9
lea edi, [esp + 0x64]
mov dword [esp + 0x60], esi
push esi
rep stosd dword es:[edi], eax
mov ecx, 0x50
lea edi, [esp + 0x8c]
rep stosd dword es:[edi], eax
push edx
call fcn.00401070
add esp, 0x34
cmp eax, esi
jne 0x4012ee
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, eax
push 0x7d0
call ebx
call esi
sub eax, edi
cmp eax, 0x7530
jae 0x4012f8
lea eax, [esp + 0x19c]
push eax
call fcn.004014c0
add esp, 4
test eax, eax
je 0x4012c6
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x398
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x398
ret

Function at 0x401310
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x398
push ebx
push esi
mov esi, dword [esp + 0x3a4]
push edi
push str.mysql_binmysqld.exe
push esi
lea eax, [esp + 0x1a4]
push str._s_s
push eax
call fcn.00401904
push str.mysql_binmy.ini
lea ecx, [esp + 0x1b0]
push esi
push ecx
lea edx, [esp + 0x2bc]
push str.__s____defaults_file__s_s____standalone
push edx
call fcn.00401904
lea eax, [esp + 0x1c0]
lea ecx, [esp + 0x2c4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
xor esi, esi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x3c]
mov dword [esp + 0x38], esi
lea edx, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, 9
lea edi, [esp + 0x5c]
mov dword [esp + 0x58], esi
push esi
rep stosd dword es:[edi], eax
mov ecx, 0x50
lea edi, [esp + 0x84]
rep stosd dword es:[edi], eax
push edx
call fcn.00401070
add esp, 0x2c
cmp eax, esi
jne 0x4013e8
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, eax
push 0x7d0
call ebx
call esi
sub eax, edi
cmp eax, 0x7530
jae 0x4013f2
lea eax, [esp + 0x19c]
push eax
call fcn.004014c0
add esp, 4
test eax, eax
je 0x4013c0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x398
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x398
ret
Function at 0x401410
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40142f
add esp, 0x1c
ret
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x401456
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 8]
mov dword [esp + 0x10], eax
neg edx
push 0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 8]
push 0x10
sbb edx, edx
push eax
and edx, 2
push 0
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4014aa
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x1c
ret
Function at 0x4014c0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x554
push ebp
push esi
push edi
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0x23c], eax
rep stosd dword es:[edi], eax
mov ecx, 0x88
lea edi, [esp + 0x240]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x564]
push eax
call fcn.00401aae
mov edi, eax
push edi
call fcn.00401a10
push eax
call fcn.004019e0
add esp, 0xc
mov dword [esp + 0x10], 0x128
mov dword [esp + 0x23c], 0x224
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
jne 0x40154e
push 0
call fcn.00401410
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x554
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401636
mov edx, dword [esp + 0x18]
push edx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40161c
lea eax, [esp + 0x23c]
push eax
push ebp
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x401615
xor eax, eax
mov cl, byte [esp + eax + 0x35c]
mov byte [esp + eax + 0x138], cl
inc eax
test cl, cl
jne 0x401590
lea ecx, [esp + 0x138]
push ecx
call fcn.00401a10
push eax
call fcn.004019e0
add esp, 8
xor eax, eax
mov cl, byte [esp + eax + 0x25c]
mov byte [esp + eax + 0x460], cl
inc eax
test cl, cl
jne 0x4015bb
lea edx, [esp + 0x460]
push edx
call fcn.00401a10
push eax
call fcn.004019e0
lea eax, [esp + 0x140]
push edi
push eax
call fcn.00401960
lea ecx, [esp + 0x470]
mov esi, eax
push ecx
push edi
call fcn.00401960
lea edx, [esp + 0x150]
add esp, 0x18
sub esi, edx
jne 0x401611
sub eax, edi
je 0x401642
mov esi, dword [esp + 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401561
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x554
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x244]
pop edi
pop esi
pop ebp
add esp, 0x554
ret
Function at 0x4030a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4084e0
cmp edx, dword [eax]
je 0x4030c3
add eax, 8
inc ecx
cmp eax, 0x408570
jl 0x4030b4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4084e0]
jne 0x4031f1
mov eax, dword [0x40aa48]
cmp eax, 1
je 0x4031cb
test eax, eax
jne 0x4030f4
cmp dword [0x4081a8], 1
je 0x4031cb
cmp edx, 0xfc
je 0x4031f1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40312b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403660
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403a60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40316e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403a60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40746c
push edi
call fcn.004055f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403660
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403670
lea eax, [ebp - 0xa0]
push 0x40744c
push eax
call fcn.00403670
push dword [esi + 0x4084e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403670
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405564
add esp, 0x2c
pop edi
jmp 0x4031f1
lea eax, [ebp + 8]
lea esi, [esi + 0x4084e4]
push 0
push eax
push dword [esi]
call fcn.00403a60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x406e20
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x41c4b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call sub.MFC42.DLL_CSocket::CSocket
xor ebp, ebp
lea ecx, [esi + 0x18]
mov dword [esp + 0x18], ebp
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x1c]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString_2
lea edi, [esi + 0x28]
mov byte [esp + 0x18], 2
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
push 0xa
lea ecx, [esi + 0x34]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CStringList::CStringList
lea ecx, [esi + 0x58]
mov byte [esp + 0x18], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x5c]
mov byte [esp + 0x18], 5
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x60]
mov byte [esp + 0x18], 6
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x64]
mov byte [esp + 0x18], 7
call fcn.00417f90
push 0x42b6b8
mov ecx, edi
mov byte [esp + 0x1c], 8
mov dword [esi], 0x420af4
mov dword [esi + 0x30], 1
mov dword [esi + 0x50], ebp
mov dword [esi + 0x2c], ebp
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x24], 0xffffffff
mov dword [esi + 0x54], ebp
mov dword [esi + 0x20], ebp
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x406f20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x41c520
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x420af4
mov dword [esp + 0x10], 8
call fcn.00408a00
call sub.MFC42.DLL_AfxGetThread
mov eax, dword [eax + 0x30]
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
lea ecx, [esi + 0x64]
mov byte [esp + 0x10], 7
call fcn.00418020
lea ecx, [esi + 0x60]
mov byte [esp + 0x10], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x5c]
mov byte [esp + 0x10], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x58]
mov byte [esp + 0x10], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 3
call fcn.0041ae98
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.0041ae9e
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x407610
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x110
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x407632
pop edi
mov eax, 1
pop esi
add esp, 0x110
ret
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x1c]
push edi
push ecx
push edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 1
call sub.WSOCK32.dll_select
xor edx, edx
test eax, eax
setg dl
mov eax, edx
cmp eax, edi
je 0x4076c3
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
cmp eax, edi
je 0x4076c3
mov ecx, dword [esi + 4]
mov dl, byte [0x42b6b8]
push 2
lea eax, [esp + 0xf]
push 1
push eax
push ecx
mov byte [esp + 0x1b], dl
call sub.WSOCK32.dll_recv
mov esi, eax
cmp esi, edi
jg 0x4076c3
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2744
je 0x4076be
cmp eax, 0x2745
je 0x4076be
cmp eax, 0x2746
je 0x4076be
cmp eax, 0x2726
je 0x4076be
cmp esi, edi
jne 0x4076c3
mov edi, 1
mov eax, edi
pop edi
pop esi
add esp, 0x110
ret
Function at 0x40ae90
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, ecx
push 2
mov ecx, dword [esp + 0x10]
push 0
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CAsyncSocket::Socket
test eax, eax
je 0x40aeff
mov eax, dword [esi + 4]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push 0xffff
push eax
mov dword [esp + 0x24], 1
call sub.WSOCK32.dll_setsockopt
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CAsyncSocket::Bind
test eax, eax
je 0x40aee9
mov eax, 1
pop esi
ret 0x10
push edi
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
push edi
call sub.WSOCK32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x40d7f0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x41cf97
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov ebp, dword [esp + 0x2c]
push 0x20
push 0
lea eax, [esp + 0x18]
mov ebx, 1
push ebp
push eax
mov dword [esp + 0x30], ebx
mov esi, ebx
call sub.MFC42.DLL_AfxExtractSubString
test eax, eax
je 0x40d8a1
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push edx
mov ecx, edi
call fcn.0040d920
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::TrimLeft_1
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::TrimRight_2
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40d87f
push eax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x40d8da
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
mov eax, esi
push 0x20
push eax
lea eax, [esp + 0x18]
push ebp
push eax
inc esi
call sub.MFC42.DLL_AfxExtractSubString
test eax, eax
jne 0x40d841
mov esi, dword [esp + 0x28]
push 0x42b6b8
mov ecx, esi
call fcn.0041aae4
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
mov ecx, dword [esp + 0x2c]
push ecx
push str.Found_address:_xx
push 0
push edi
call fcn.0040ccf0
mov esi, dword [esp + 0x38]
add esp, 0x10
lea edx, [esp + 0x2c]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
jmp 0x40d8b5
Function at 0x40fc90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41d359
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call dword [sym.imp.MSVCP60.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_void_]
mov ebx, dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
lea ecx, [esp + 0x10]
mov dword [esi + 0x34], eax
call ebx
mov eax, dword [sym.imp.MSVCP60.dll_class_std::locale::_Locimp__std::locale::_Locimp::_Global]
lea ecx, [esp + 0xc]
mov edi, dword [eax]
call ebx
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x40fcdf
inc eax
mov dword [edi + 4], eax
mov edi, dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
lea ecx, [esp + 0xc]
call edi
lea ecx, [esp + 0x10]
call edi
lea ecx, [esi + 4]
lea edx, [esi + 0x14]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x18]
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], ecx
lea eax, [esi + 8]
lea edx, [esi + 0x24]
lea ecx, [esi + 0x28]
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], ecx
mov dword [eax], 0
mov edx, dword [esi + 0x20]
mov dword [edx], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov ecx, dword [esi + 0xc]
mov dword [ecx], 0
mov edx, dword [esi + 0x1c]
mov dword [edx], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov ecx, dword [esp + 0x28]
push 0
push 0
push 0
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
mov dword [esi], 0x4216e8
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::strstreambuf::_Init_int__char___char___int_]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x413850
Capabilities:
Create directory
Create shortcut via ishelllink

Disassembly:
sub esp, 0x314
push ebp
call fcn.00413810
test eax, eax
je 0x4139bc
mov ebp, dword [esp + 0x324]
lea ecx, [esp + 0xc]
push ecx
push 0
test ebp, ebp
push 0
je 0x41387c
push 2
jmp 0x41387e
push 7
push 0
call eax
xor edx, edx
test eax, eax
setge dl
mov eax, edx
test eax, eax
je 0x4139bc
push esi
push 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0xc]
push eax
push 0x423188
push 1
push 0
push 0x423178
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x4139ab
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push 0x423198
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x4139a1
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x320]
push edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x328]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jl 0x413996
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea edx, [esp + 0x14]
push 0x42a72c
push edx
call esi
test ebp, ebp
je 0x413941
lea eax, [esp + 0x14]
push ebp
push eax
call esi
lea ecx, [esp + 0x14]
push 0x42a72c
push ecx
call esi
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
lea eax, [esp + 0x14]
push edi
push eax
call esi
lea ecx, [esp + 0x14]
push str..lnk
push ecx
call esi
lea edx, [esp + 0x118]
push 0x104
push edx
lea eax, [esp + 0x1c]
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x118]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
pop ebp
add esp, 0x314
ret
mov eax, dword [esp + 4]
pop ebp
add esp, 0x314
ret

Function at 0x4139d0
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
push edi
call fcn.00413810
test eax, eax
je 0x413a5d
mov edi, dword [esp + 0x110]
lea ecx, [esp + 4]
push ecx
push 0
test edi, edi
push 0
je 0x4139f8
push 2
jmp 0x4139fa
push 7
push 0
call eax
xor edx, edx
test eax, eax
setge dl
mov eax, edx
test eax, eax
je 0x413a5d
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [esp + 8]
push 0x42a72c
push eax
call esi
test edi, edi
je 0x413a36
lea ecx, [esp + 8]
push edi
push ecx
call esi
lea edx, [esp + 8]
push 0x42a72c
push edx
call esi
mov eax, dword [esp + 0x110]
lea ecx, [esp + 8]
push eax
push ecx
call esi
lea edx, [esp + 8]
push str..lnk
push edx
call esi
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop esi
pop edi
add esp, 0x104
ret
Function at 0x413b90
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x41db58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.0041aae4
push 1
push 0x5c
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::Find_2
mov edi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
mov esi, eax
cmp esi, 0xffffffff
je 0x413c0b
lea ecx, [esp + 8]
push esi
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0
push eax
call edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
inc esi
lea ecx, [esp + 0x1c]
push esi
push 0x5c
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
jne 0x413bd8
mov edx, dword [esp + 0x1c]
push 0
push edx
call edi
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x413d40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41db7b
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x220]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x413e5d
and eax, 0x10
cmp al, 0x10
mov eax, dword [esp + 0x224]
jne 0x413e13
test eax, eax
je 0x413e5d
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
push 0x5c
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0
call sub.MFC42.DLL_CString::TrimRight
push 0x42a72c
lea ecx, [esp + 8]
call fcn.0041aade
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push 0x104
push eax
push ecx
call fcn.00413c40
add esp, 0xc
test eax, eax
je 0x413de4
lea edx, [esp + 8]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 4]
mov dword [esp + 0x218], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
pop esi
mov ecx, dword [esp + 0x20c]
mov dword fs:[0], ecx
add esp, 0x218
ret
test eax, eax
jne 0x413e5d
mov eax, dword [esi]
lea ecx, [esp + 0x10c]
push 0x104
push ecx
push eax
call fcn.00413c40
add esp, 0xc
test eax, eax
je 0x413e42
lea edx, [esp + 0x10c]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::operator
mov eax, 1
pop esi
mov ecx, dword [esp + 0x20c]
mov dword fs:[0], ecx
add esp, 0x218
ret
mov ecx, dword [esp + 0x210]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret