joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434e80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4858f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x308
mov eax, dword [0x4ce19c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 1
push 1
push 1
push 0x10d
push str.._tvt_process_info.cpp
push str.findProcessIdByName
mov dword [ebp - 0x24c], ecx
push 0x4947a4
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x14], eax
call fcn.0040e269
xor ebx, ebx
push ebx
xor eax, eax
mov dword [ebp - 0x240], ebx
mov ecx, 0x8a
lea edi, [ebp - 0x23c]
mov dword [ebp - 4], ebx
push 2
mov byte [ebp - 0x241], bl
mov byte [ebp - 4], 1
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x248], esi
je 0x434fab
cmp esi, ebx
je 0x434fab
lea eax, [ebp - 0x240]
push eax
push esi
mov dword [ebp - 0x240], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x434f79
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
push eax
lea edx, [ebp - 0x21c]
push edx
call sub.MSVCR71.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x434f5c
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
lea edx, [ebp - 0x240]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x434f37
mov byte [ebp - 0x241], 1
jmp 0x435072
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 1
push 1
push eax
push 0x13b
push str.._tvt_process_info.cpp
lea ecx, [ebp - 0x314]
call fcn.004347f0
push 0x4bbde0
lea eax, [ebp - 0x314]
push eax
call sub.MSVCR71.dll__CxxThrowException
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 1
lea ecx, [ebp - 0x294]
call fcn.00402612
push ebx
push ebx
push 0x11e
push str.._tvt_process_info.cpp
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 0x494758
push 2
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 2
mov dword [ebp - 0x294], 0x48aee4
call fcn.00410e60
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 3
call fcn.00402681
push 0x4bbda0
lea ecx, [ebp - 0x294]
push ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x294], 0x494750
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [ebp - 0x254]
mov al, byte [ecx + 0xa]
test al, al
jne 0x435030
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 0x43506a
ret
cmp esi, 0xffffffff
mov dword [ebp - 4], ebx
je 0x435097
cmp esi, ebx
je 0x435097
lea ecx, [ebp - 0x248]
push ecx
mov ecx, dword [ebp - 0x24c]
lea edx, [ebp + 0xb]
push edx
mov byte [ebp + 0xb], bl
call fcn.00434c40
mov ecx, dword [ebp - 0x250]
cmp ecx, ebx
je 0x4350b1
mov al, byte [ebp - 0x241]
mov dword [ecx + 0x24], 1
mov byte [ecx + 0x2c], al
cmp ecx, ebx
mov dword [ebp - 4], 0xffffffff
je 0x4350c2
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x241]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00475533
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43a5b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 1
push 1
push 1
push 0x11e
push str.._tvt_thread.cpp
push str.start
mov esi, ecx
push str.CTVTThread
lea ecx, [ebp - 0x18]
call fcn.0040e269
mov al, byte [esi + 0x1c]
test al, al
mov dword [ebp - 4], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 4], 1
jne 0x43a615
mov ecx, esi
call fcn.0043a100
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x43a6b0
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x38]
call dword [eax + 4]
mov edx, dword [esi + 0x20]
lea ebx, [esi + 0x20]
mov ecx, ebx
call dword [edx + 4]
mov eax, dword [esi + 0x50]
lea edi, [esi + 0x50]
mov ecx, edi
call dword [eax + 4]
mov edx, dword [esi + 0x68]
lea ecx, [esi + 0x68]
call dword [edx + 4]
mov al, byte [ebp + 0xc]
test al, al
je 0x43a6c6
lea eax, [esi + 0x10]
push eax
push 0
push esi
push 0x43a4c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x14], eax
jne 0x43a69b
mov esi, dword [esi + 8]
push 1
push 1
push 0x13b
push str.._tvt_thread.cpp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00439ff0
push 0x4bd044
lea ecx, [ebp - 0x58]
push ecx
call sub.MSVCR71.dll__CxxThrowException
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x43a6b4
mov edx, dword [edi]
push 0xffffffffffffffff
mov ecx, edi
call dword [edx + 0x14]
mov byte [esi + 0x1c], 1
mov bl, 1
jmp 0x43a70d
cmp eax, 2
jne 0x43a6ac
mov eax, dword [ebx]
push 0xffffffffffffffff
mov ecx, ebx
call dword [eax + 0x14]
mov bl, 1
jmp 0x43a70d
mov ecx, esi
call fcn.0043a300
mov bl, 1
jmp 0x43a70d
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x43a71e
mov dword [ecx + 0x24], 1
mov byte [ecx + 0x2c], bl
test ecx, ecx
mov dword [ebp - 4], 0xffffffff
je 0x43a72f
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43b730
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.0040f8c0
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x43b775
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x43b775
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push sym.imp.MSVCR71.dll__wcmdln
call sub.MSVCR71.dll_vfprintf
add esp, 0xc
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x104]
push 0xff
push ecx
call sub.MSVCR71.dll__vsnprintf
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x43b7ee
call fcn.0043b670
test eax, eax
je 0x43b7ee
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [ebp - 0x104]
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43f1e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.0040f8c0
push ebx
mov ebx, dword [esp + 0x3c]
test ebx, ebx
jle 0x43f379
cmp ebx, 0x80
jg 0x43f379
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
mov eax, edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x4c]
push eax
push edi
push edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call fcn.0043fcb0
lea eax, [ebx + 7]
cdq
and edx, 7
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0x60]
add esp, 0xc
sar ebp, 3
test eax, eax
je 0x43f277
test ebp, ebp
jle 0x43f2bf
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
lea esi, [esp + 0x2c]
sub edx, edi
sub esi, edi
mov ecx, edi
sub ebx, edi
mov al, byte [edx + ecx]
xor al, byte [ecx]
inc ecx
dec ebp
mov byte [esi + ecx - 1], al
mov byte [ebx + ecx - 1], al
jne 0x43f264
jmp 0x43f2bb
xor esi, esi
test ebp, ebp
jle 0x43f2bf
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x2c]
mov edx, ecx
sub eax, ecx
mov ecx, dword [esp + 0x44]
mov ebx, edi
sub ebx, edx
sub ecx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
jmp 0x43f2a1
mov ebx, dword [esp + 0x14]
lea ecx, [esp + esi + 0x2c]
mov dl, byte [eax + ecx]
mov bl, byte [ebx + ecx]
xor bl, dl
mov byte [ecx], dl
mov edx, dword [esp + 0x18]
inc esi
cmp esi, ebp
mov byte [edx + ecx], bl
jl 0x43f29d
mov ebx, dword [esp + 0x48]
and ebx, 0x80000007
jns 0x43f2cc
dec ebx
or ebx, 0xfffffff8
inc ebx
mov eax, dword [esp + 0x48]
cdq
and edx, 7
add eax, edx
sar eax, 3
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x43f303
lea eax, [esp + eax + 0x1c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [edi], ecx
mov ecx, dword [eax + 8]
mov dword [edi + 4], edx
mov edx, dword [eax + 0xc]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov cl, 8
sub cl, bl
mov byte [esp + 0x48], cl
inc edi
lea esi, [esp + eax + 0x1d]
mov ebp, 4
mov al, byte [esi]
mov dl, byte [esi - 1]
mov ecx, ebx
shl dl, cl
mov cl, byte [esp + 0x48]
mov bl, al
shr bl, cl
mov ecx, dword [esp + 0x14]
shl al, cl
mov cl, byte [esp + 0x48]
or dl, bl
mov byte [edi - 1], dl
mov dl, byte [esi + 1]
mov bl, dl
shr bl, cl
add esi, 4
add edi, 4
or al, bl
mov ebx, dword [esp + 0x14]
mov byte [edi - 4], al
mov al, byte [esi - 2]
mov ecx, ebx
shl dl, cl
mov cl, byte [esp + 0x48]
mov byte [esp + 0x13], al
shr al, cl
or dl, al
mov al, byte [esp + 0x13]
mov byte [edi - 3], dl
mov dl, byte [esi - 1]
shr dl, cl
mov ecx, ebx
shl al, cl
or dl, al
dec ebp
mov byte [edi - 2], dl
jne 0x43f315
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x444e60
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
mov eax, 1
ret

Function at 0x444f00
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], 0x20
mov eax, 1
ret
Function at 0x447200
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
mov eax, 1
ret
Function at 0x4568e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push eax
push ecx
push esi
call fcn.00456400
lea edi, [eax*4]
add esp, 0xc
xor ebx, ebx
test edi, edi
mov dword [esp + 0x10], eax
jle 0x456954
lea edx, [esi + edi*4 + 8]
lea ecx, [esi + 8]
mov eax, dword [edx - 8]
mov ebp, dword [ecx - 8]
mov dword [ecx - 8], eax
mov dword [edx - 8], ebp
mov ebp, dword [edx - 4]
mov eax, dword [ecx - 4]
mov dword [ecx - 4], ebp
mov ebp, dword [edx]
mov dword [edx - 4], eax
mov eax, dword [ecx]
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], ebp
mov dword [edx + 4], eax
add ebx, 4
sub edi, 4
add ecx, 0x10
sub edx, 0x10
cmp ebx, edi
jl 0x456914
mov eax, dword [esp + 0x10]
cmp eax, 1
jle 0x456b1f
lea edx, [eax - 1]
movzx ebx, byte [esi + 0x11]
mov ebx, dword [ebx*4 + str.ccccwwww]
mov ecx, dword [esi + 0x10]
and ebx, 0xff
mov ebp, dword [ebx*4 + 0x4a1638]
movzx ebx, byte [esi + 0x12]
mov ebx, dword [ebx*4 + str.ccccwwww]
add esi, 0x10
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x4a0e38]
xor edi, ebp
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4a1238]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x4a1a38]
mov dword [esi], edi
movzx ebx, byte [esi + 5]
mov ebx, dword [ebx*4 + str.ccccwwww]
mov ecx, dword [esi + 4]
and ebx, 0xff
mov ebp, dword [ebx*4 + 0x4a1638]
movzx ebx, byte [esi + 6]
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x4a0e38]
xor edi, ebp
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4a1238]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
mov ebx, dword [ecx*4 + 0x4a1a38]
mov ecx, dword [esi + 8]
xor edi, ebx
movzx ebx, byte [esi + 9]
mov dword [esi + 4], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
mov ebp, dword [ebx*4 + 0x4a1638]
movzx ebx, byte [esi + 0xa]
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x4a0e38]
xor edi, ebp
and ebx, 0xff
mov ebp, dword [ebx*4 + 0x4a1238]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
xor edi, ebp
and ecx, 0xff
mov ebx, dword [ecx*4 + 0x4a1a38]
mov ecx, dword [esi + 0xc]
xor edi, ebx
movzx ebx, byte [esi + 0xd]
mov dword [esi + 8], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
mov ebp, dword [ebx*4 + 0x4a1638]
movzx ebx, byte [esi + 0xe]
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x4a0e38]
xor edi, ebp
and ebx, 0xff
mov ebp, dword [ebx*4 + 0x4a1238]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
mov ebx, dword [ecx*4 + 0x4a1a38]
xor edi, ebp
xor edi, ebx
dec edx
mov dword [esi + 0xc], edi
jne 0x456960
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4574f0
Capabilities:
Create directory
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8634
call fcn.0040f8c0
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SOFTWARELenovoRescue_and_RecoveryDebug
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4576d3
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x34]
push edx
push eax
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0xc]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4576d3
lea eax, [esp + 0x238]
push eax
lea ecx, [esp + 0x544]
push ecx
lea edx, [esp + 0x340]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
push ecx
call sub.MSVCR71.dll__wsplitpath
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x4658]
push eax
call sub.MSVCR71.dll_wcscpy
lea ecx, [esp + 0x354]
push ecx
lea edx, [esp + 0x4660]
push edx
call sub.MSVCR71.dll_wcscat
add esp, 0x24
push esi
lea eax, [esp + 0x4644]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push esi
push 4
push esi
push 3
push 0x40000000
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4576d3
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x24]
push edx
call sub.MSVCR71.dll__ftime
lea eax, [esp + 0x28]
push eax
call sub.MSVCR71.dll__wctime
mov ebx, eax
xor eax, eax
mov ecx, 0x1000
lea edi, [esp + 0x648]
push ebx
rep stosd dword es:[edi], eax
call sub.MSVCR71.dll_wcslen
dec eax
push eax
lea ecx, [esp + 0x650]
push ebx
push ecx
call sub.MSVCR71.dll_wcsncpy
lea edx, [esp + 0x658]
push 0x48f618
push edx
call sub.MSVCR71.dll_wcscat
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x664]
push ecx
call sub.MSVCR71.dll_wcscat
lea edx, [esp + 0x668]
push 0x4a2268
push edx
call sub.MSVCR71.dll_wcscat
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
push ecx
lea edx, [esp + 0x4678]
push 0x2000
push edx
call sub.MSVCR71.dll__vsnwprintf
add esp, 0x40
lea eax, [esp + 0x4640]
push eax
lea ecx, [esp + 0x644]
push ecx
call sub.MSVCR71.dll_wcscat
lea edx, [esp + 0x648]
push 0x4a2260
push edx
call sub.MSVCR71.dll_wcscat
add esp, 0x10
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x648]
push ecx
call sub.MSVCR71.dll_wcslen
add esp, 4
shl eax, 1
push eax
lea edx, [esp + 0x64c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458710
Capabilities:
Check if file exists
Copy file

Disassembly:
sub esp, 0x414
mov eax, dword [0x4ce19c]
push esi
mov esi, dword [sym.imp.MSVCR71.dll__wgetenv]
push str.SWSHARE
mov dword [esp + 0x418], eax
call esi
add esp, 4
test eax, eax
jne 0x45875b
lea ecx, [esp + 0x41c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x410]
call fcn.00475533
add esp, 0x414
ret
push str.rr.log
push str.SWSHARE
call esi
add esp, 4
push eax
push 0x48be08
lea eax, [esp + 0x218]
push 0x208
push eax
call fcn.00403fa3
mov ecx, dword [esp + 0x430]
push str.rr.log
push ecx
push 0x48be08
lea edx, [esp + 0x24]
push 0x208
push edx
call fcn.00403fa3
add esp, 0x28
push 0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4587ee
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x4587ee
call esi
push eax
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push eax
push str.CopyLogFileToBackupFolder_____CopyFile____s_to__s_failed._Error__d
push 0x48ae58
call fcn.004572b0
add esp, 0x14
lea ecx, [esp + 0x41c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x414]
xor eax, eax
pop esi
call fcn.00475533
add esp, 0x414
ret

Function at 0x458820
Capabilities:
Get disk information

Disassembly:
sub esp, 0x234
mov eax, dword [0x4ce19c]
mov dword [esp + 0x230], eax
mov ax, word [esp + 0x238]
test ax, ax
je 0x458893
movzx eax, ax
push eax
push str._c:_
lea ecx, [esp + 8]
push 0x28
push ecx
call fcn.00403fa3
add esp, 0x10
push 0
push 0
push 0
push 0
push 0
push 0x104
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4588a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IsDriveSP_GetVolumeInformation___failed._Error__d
push 0x48ae58
call fcn.004572b0
add esp, 0xc
xor al, al
mov ecx, dword [esp + 0x230]
call fcn.00475533
add esp, 0x234
ret
lea ecx, [esp + 0x28]
push ecx
call fcn.00457a70
add esp, 4
test al, al
jne 0x4588d0
lea edx, [esp + 0x28]
push str.SERVICEV003
push edx
call dword [sym.imp.MSVCR71.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x458893
lea eax, [esp + 0x28]
push eax
push str.IsSP__yes__volume:__s
push 0x48e3a0
call fcn.004572b0
mov ecx, dword [esp + 0x23c]
add esp, 0xc
mov al, 1
call fcn.00475533
add esp, 0x234
ret
Function at 0x458ac0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x668
mov eax, dword [0x4ce19c]
push edi
mov edi, dword [esp + 0x670]
push edi
push str._s
mov dword [esp + 0x670], eax
lea eax, [esp + 0x468]
push 0x208
push eax
call fcn.00403fa3
add esp, 0x10
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
je 0x458bf2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.MSVCR71.dll__wcsicmp]
lea ebx, [ebx]
lea eax, [esp + 0x40]
push 0x490b58
push eax
call esi
add esp, 8
test eax, eax
je 0x458bcc
lea ecx, [esp + 0x40]
push 0x493694
push ecx
call esi
add esp, 8
test eax, eax
je 0x458bcc
lea edx, [esp + 0x40]
push edx
push edi
push 0x48be08
lea eax, [esp + 0x270]
push 0x208
push eax
call fcn.00403fa3
mov eax, dword [esp + 0x28]
add esp, 0x14
test al, 0x10
je 0x458b99
test ah, 4
jne 0x458bcc
lea ecx, [esp + 0x264]
push ecx
call fcn.00458ac0
add esp, 4
jmp 0x458bcc
test al, 0x20
jne 0x458bcc
or eax, 0x20
push eax
lea edx, [esp + 0x268]
push edx
call ebx
test eax, eax
jne 0x458bcc
call ebp
push eax
lea eax, [esp + 0x268]
push eax
push str.SetArchiveBits___SetFileAttributes___failed_on__s._Error__d
push 0x48ae58
call fcn.004572b0
add esp, 0x10
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x458b30
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x668]
pop edi
call fcn.00475533
add esp, 0x668
ret
Function at 0x4592c0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x486708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
mov eax, dword [0x4ce19c]
push esi
mov esi, dword [esp + 0x228]
push esi
mov dword [esp + 0x218], eax
call fcn.004579e0
add esp, 4
test eax, eax
je 0x459306
mov eax, 1
jmp 0x4593cb
push edi
push esi
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push 0x5c
lea ecx, [esp + 0xc]
mov dword [esp + 0x228], 0
call dword [sym.imp.MFC71U.DLL_COleMessageFilter::XMessageFilter::RetryRejectedCall]
cmp eax, 0xffffffff
mov edi, dword [esp + 0x230]
je 0x45939d
cmp eax, 2
je 0x4593b4
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_CToolBar::Layout]
mov ecx, eax
mov byte [esp + 0x224], 1
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
push 0x104
lea ecx, [esp + 0x18]
push ecx
call fcn.0040120a
lea ecx, [esp + 0xc]
mov byte [esp + 0x224], 0
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea edx, [esp + 0x10]
push edx
call fcn.004579e0
add esp, 4
test eax, eax
jne 0x4593b4
lea eax, [esp + 0x10]
push edi
push eax
call fcn.004592c0
add esp, 8
jmp 0x4593b4
mov ecx, dword [esp + 8]
push ecx
push str.RRCreateDirectory_____Last_Slash_not_found_in__s
push 0x48ae58
call fcn.004572b0
add esp, 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 8]
mov esi, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, esi
pop edi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x214]
pop esi
call fcn.00475533
add esp, 0x220
ret