joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a72b
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x178], 0
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
push 0x800
push 0x160
lea ecx, [ebp - 0x174]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x46a78c
mov eax, dword [ebp - 0x16c]
and eax, 0x10000
test eax, eax
jne 0x46a793
xor eax, eax
jmp 0x46a8c3
lea ecx, [ebp - 0x14]
push ecx
push 0x52bbc8
push 0
push 0x52bbd8
lea ecx, [ebp - 4]
call fcn.0046a3c7
test eax, eax
jge 0x46a7b6
xor eax, eax
jmp 0x46a8c3
lea edx, [ebp - 0x10]
push edx
push 0x52f8b0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
call dword [ecx]
test eax, eax
jl 0x46a8b5
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
jne 0x46a7f0
mov dword [ebp - 0x180], 0
jmp 0x46a83e
mov ecx, dword [ebp - 0x178]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
shl eax, 1
add eax, 3
and al, 0xfc
call fcn.004081d0
mov dword [ebp - 0x184], esp
mov edx, dword [ebp - 0x17c]
push edx
mov eax, dword [ebp - 0x178]
push eax
mov ecx, dword [ebp - 0x184]
push ecx
call fcn.004033e0
mov dword [ebp - 0x180], eax
push 0
mov edx, dword [ebp - 0x180]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
call dword [ecx + 0x14]
test eax, eax
jl 0x46a8a9
push 2
mov ecx, dword [ebp + 8]
call fcn.004ba50c
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
call dword [ecx + 0x4c]
test eax, eax
jl 0x46a8a9
push 0
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [eax + 8]
mov eax, 1
jmp 0x46a8c3
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [eax + 8]
xor eax, eax
lea esp, [ebp - 0x184]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46a8cf
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2f9d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebx
push esi
push edi
push 1
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.00435286
test eax, eax
jne 0x46a918
push 0x216
push str.filecore.cpp
call fcn.004b12c0
test eax, eax
je 0x46a918
int3
xor ecx, ecx
test ecx, ecx
jne 0x46a8f0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x46a96e
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
je 0x46a954
mov ecx, dword [ebp + 0xc]
push ecx
push str.Warning:_could_not_parse_the_path__s._n
call fcn.00435045
add esp, 8
push 0x104
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x46aa61
lea ecx, [ebp - 0x1c]
call fcn.004ad847
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0046aa74
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.004ad8ea
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x46a9e6
lea ecx, [ebp - 0x1c]
call fcn.004ad8ea
push eax
push str.Warning:_could_not_get_volume_information__s._n
call fcn.00435045
add esp, 8
mov dword [ebp - 0x164], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004595cc
mov eax, dword [ebp - 0x164]
jmp 0x46aa61
mov edx, dword [ebp - 0x18]
and edx, 2
test edx, edx
jne 0x46a9fa
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
mov ecx, dword [ebp - 0x18]
and ecx, 4
test ecx, ecx
jne 0x46aa42
lea edx, [ebp - 0x15c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0xffffffff
je 0x46aa42
mov ecx, dword [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x168], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004595cc
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47a380
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
add ecx, 0x20
call fcn.004ad8ea
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 1
test eax, eax
je 0x47a3d6
push 1
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
call dword [edx + 0xa0]
test eax, eax
jne 0x47a3d4
push str.Warning:_File_save_with_new_name_failed._n
push 0x54166c
call fcn.00435045
add esp, 8
xor eax, eax
jmp 0x47a411
jmp 0x47a40c
push 1
mov ecx, dword [ebp - 8]
add ecx, 0x20
call fcn.004ad8ea
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
call dword [edx + 0xa0]
test eax, eax
jne 0x47a40c
push str.Warning:_File_save_failed._n
push 0x54168c
call fcn.00435045
add esp, 8
xor eax, eax
jmp 0x47a411
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x47ab40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3425
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x10]
call fcn.004ad847
mov dword [ebp - 4], 1
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0x104
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [ebp - 0x118]
mov byte [eax], 0
push 0x105
lea ecx, [ebp - 0x10]
call fcn.00459d78
push eax
push 0
push 0x541718
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00459eb3
cmp dword [ebp + 0x10], 0
jne 0x47abdd
lea ecx, [ebp - 0x10]
call fcn.004ad8ea
push eax
call fcn.0046a3a4
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.004591fa
mov eax, dword [ebp - 0x11c]
or al, 1
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004595cc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x483b35
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
jne 0x483b5b
push 0x110
push str.appui3.cpp
call fcn.004b12c0
test eax, eax
je 0x483b5b
int3
xor eax, eax
test eax, eax
jne 0x483b41
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x80], 0
je 0x483c46
cmp dword [ebp + 0xc], 0
jne 0x483baf
mov ecx, dword [ebp - 0x14]
call fcn.004c7d6c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x483b8f
xor eax, eax
jmp 0x483cb9
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x483c3b
cmp dword [ebp + 0x10], 0
jne 0x483bee
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.004c7e72
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x483bd1
xor eax, eax
jmp 0x483cb9
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x483c3b
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004c7e72
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x483c0a
xor eax, eax
jmp 0x483cb9
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 4], 0
sete al
jmp 0x483cb9
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x94], 0
jne 0x483c66
push 0x132
push str.appui3.cpp
call fcn.004b12c0
test eax, eax
je 0x483c66
int3
xor ecx, ecx
test ecx, ecx
jne 0x483c46
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0xfff
jl 0x483c97
push 0x133
push str.appui3.cpp
call fcn.004b12c0
test eax, eax
je 0x483c97
int3
xor ecx, ecx
test ecx, ecx
jne 0x483c6c
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x94]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49a37e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 1
test ecx, ecx
je 0x49a3a2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x49a3dc
push 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x49a3f6
push 0xc9
push str.dlgprop.cpp
call fcn.004b12c0
test eax, eax
je 0x49a3f6
int3
xor eax, eax
test eax, eax
jne 0x49a3dc
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0xffff
jne 0x49a4d1
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 0x80000000
test eax, eax
je 0x49a4a1
push 0x53f284
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x49a44e
push 0xe1
push str.dlgprop.cpp
call fcn.004b12c0
test eax, eax
je 0x49a44e
int3
xor ecx, ecx
test ecx, ecx
jne 0x49a434
cmp dword [ebp - 0x18], 0
je 0x49a49f
push 0x53f294
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x49a495
mov eax, 1
test eax, eax
je 0x49a48f
push 0xe6
push str.dlgprop.cpp
call fcn.004b12c0
test eax, eax
je 0x49a48f
int3
xor ecx, ecx
test ecx, ecx
jne 0x49a472
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x49a4d1
mov eax, dword [ebp - 0x14]
and eax, 0xff
cmp eax, 3
jne 0x49a4d1
mov ecx, 1
test ecx, ecx
je 0x49a4cb
push 0xed
push str.dlgprop.cpp
call fcn.004b12c0
test eax, eax
je 0x49a4cb
int3
xor edx, edx
test edx, edx
jne 0x49a4ae
call fcn.004c7833
cmp dword [eax + 0x1038], 0
je 0x49a4ee
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.0049a333
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0049a1f5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x44], 0
je 0x49a51e
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x44], 0
cmp dword [ebp - 8], 0
je 0x49a533
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov dword [edx + 0x44], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a0468
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a0557
mov eax, dword [ebp - 4]
push eax
call fcn.00461578
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4a0543
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
cmp edx, dword [ebp - 4]
je 0x4a0543
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.004a0080
test eax, eax
je 0x4a0543
push 0xfffffffffffffff0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x4a0509
mov ecx, dword [ebp - 0xc]
and ecx, 0x18000000
cmp ecx, 0x10000000
jne 0x4a0509
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
or ecx, 2
mov edx, dword [ebp - 8]
mov dword [edx + 0x24], ecx
jmp 0x4a0543
cmp dword [ebp + 8], 0
je 0x4a0543
mov eax, dword [ebp - 0xc]
and eax, 0x18000000
test eax, eax
jne 0x4a0543
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 2
test edx, edx
je 0x4a0543
push 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 0xfffffffd
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], edx
push 2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
jmp 0x4a0483
mov esp, ebp
pop ebp
ret 4
Function at 0x4c6afc
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0
jne 0x4c6b22
push 0x146
push str.afxtls.cpp
call fcn.004b12c0
test eax, eax
je 0x4c6b22
int3
xor eax, eax
test eax, eax
jne 0x4c6b08
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
jmp 0x4c6b41
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 8]
jge 0x4c6bc4
cmp dword [ebp + 0xc], 0
je 0x4c6b64
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*8 + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x4c6ba9
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4c6b90
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
call dword [edx]
mov dword [ebp - 0x20], eax
jmp 0x4c6b97
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + edx*4], 0
jmp 0x4c6bbf
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
cmp dword [ecx + edx*4], 0
je 0x4c6bbf
mov dword [ebp - 4], 0
jmp 0x4c6b38
cmp dword [ebp - 4], 0
je 0x4c6c38
mov eax, dword [ebp - 0x1c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.004c71c0
mov edx, dword [ebp - 0x1c]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4c6c23
push 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
call dword [edx]
mov dword [ebp - 0x24], eax
jmp 0x4c6c2a
mov dword [ebp - 0x24], 0
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c6c41
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0x4c6c84
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4c6c82
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004c6afc
jmp 0x4c6cb9
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.004c71e0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c6cb9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004c6afc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x4c6c92
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret 8
Function at 0x4010ab
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x41c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x430]
add edi, 4
push edi
call fcn.00404c27
mov ebx, dword [0x4173b4]
push 0x3e8
push dword [edi]
call ebx
push 0
push 0x103
push 0xc5
push eax
call dword [0x4173b8]
mov ebp, 0x41e9d0
push ebp
push 0x208
lea eax, [esp + 0x24]
push eax
push str._SystemRoot_RegBak_DATE__
push str.DefBackupDir
mov esi, str.Settings
push esi
call dword [0x41722c]
lea eax, [esp + 0x1c]
push eax
push 0x3e8
push dword [edi]
call dword [0x4173b0]
mov eax, dword [esp + 0x430]
and dword [eax + 0x20], 0
push ebp
push 0
push str.Overwrite
push esi
call dword [0x417224]
neg eax
sbb eax, eax
neg eax
push eax
push 0x3eb
push dword [edi]
call dword [0x4173ac]
push ebp
push 0
push str.LimitBackup
push esi
call dword [0x417224]
push ebp
push 0x1e
push str.LimitBackupDays
push esi
mov dword [esp + 0x28], eax
call dword [0x417224]
push ebp
push 0xa
push str.LimitBackupCount
push esi
mov dword [esp + 0x20], eax
call dword [0x417224]
mov dword [esp + 0x14], eax
lea esi, [esp + 0x14]
lea ecx, [esp + 0x10]
lea eax, [esp + 0x18]
call fcn.00401086
mov eax, dword [esp + 0x18]
cmp eax, 2
jne 0x4011a7
mov eax, 0x3f6
jmp 0x4011b1
dec eax
neg eax
sbb eax, eax
add eax, 0x3f5
push eax
push 0x3f6
push 0x3f4
push dword [edi]
call dword [0x4173a8]
mov esi, dword [0x4173a4]
xor ebp, ebp
push ebp
push dword [esp + 0x14]
push 0x3f7
push dword [edi]
call esi
push ebp
push dword [esp + 0x18]
push 0x3f8
push dword [edi]
call esi
cmp dword [0x41ebdc], ebp
je 0x40125b
push 1
push dword [edi]
call ebx
mov esi, dword [0x4173a0]
push ebp
push eax
call esi
push 0x3e8
push dword [edi]
call ebx
push ebp
push eax
call esi
push 0x3f7
push dword [edi]
call ebx
push ebp
push eax
call esi
push 0x3f8
push dword [edi]
call ebx
push ebp
push eax
call esi
push 0x3eb
push dword [edi]
call ebx
push ebp
push eax
call esi
push 0x3f5
push dword [edi]
call ebx
push ebp
push eax
call esi
push 0x3f6
push dword [edi]
call ebx
push ebp
push eax
call esi
push 0x3f4
push dword [edi]
call ebx
push ebp
push eax
call esi
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x41c
ret 4
Function at 0x4020e6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [0x417204]
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
jne 0x402117
xor esi, esi
inc esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404aac
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push 0x104
lea eax, [ebp - 0x208]
push eax
push dword [0x41dd70]
call dword [0x417200]
mov edi, dword [0x417280]
lea eax, [ebp - 0x208]
push eax
call edi
mov ebx, dword [0x417290]
push str.au.exe
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push eax
call esi
cmp eax, 0xffffffff
je 0x402164
xor esi, esi
jmp 0x402105
lea eax, [ebp - 0x208]
push eax
call edi
push str.stu.exe
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push eax
call esi
cmp eax, 0xffffffff
jne 0x402160
jmp 0x402102

Function at 0x40225a
Capabilities:
Read .ini file

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4173b4]
mov ebx, 0x3e8
mov esi, eax
push ebx
push dword [esi + 4]
call edi
push 0
push 0x103
push 0xc5
push eax
call dword [0x4173b8]
lea eax, [esp + 0x10]
push eax
call fcn.004024a0
pop ecx
push dword [eax]
push ebx
push dword [esi + 4]
call dword [0x4173b0]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00404aac
push 0x41e9d0
push 3
push str.DefHives
push str.Settings
call dword [0x417224]
mov ebp, dword [0x4173ac]
mov ebx, eax
and eax, 1
push eax
push 0x3ea
push dword [esi + 4]
call ebp
mov eax, ebx
shr eax, 1
and eax, 1
push eax
push 0x3eb
push dword [esi + 4]
call ebp
shr ebx, 2
and ebx, 1
push ebx
push 0x3ec
push dword [esi + 4]
call ebp
push 0x3e8
push dword [esi + 4]
call edi
push 0x10000028
push eax
call dword [0x41727c]
push 0x16
pop ebx
push 0x3f2
mov dword [esi + 0xac], ebx
push dword [esi + 4]
call edi
lea ecx, [esi + 0x58]
push ecx
call fcn.004034a2
push 0x3f4
mov dword [esi + 0x164], ebx
push dword [esi + 4]
call edi
lea ecx, [esi + 0x110]
push ecx
call fcn.004034a2
push 0x3f3
mov dword [esi + 0x108], ebx
push dword [esi + 4]
call edi
add esi, 0xb4
push esi
call fcn.004034a2
xor eax, eax
pop edi
pop esi
pop ebp
inc eax
pop ebx
pop ecx
ret

Function at 0x4024a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push esi
push edi
push 0x41e9d0
mov edi, 0x208
push edi
lea eax, [ebp - 0x41c]
push eax
mov esi, str._SystemRoot_RegBak_DATE__
push esi
push str.DefBackupDir
push str.Settings
call dword [0x41722c]
test eax, eax
jne 0x4024e7
lea eax, [ebp - 0x41c]
push eax
mov edx, esi
mov ecx, edi
call fcn.00401fb7
lea edi, [ebp - 0x41c]
lea esi, [ebp - 8]
call fcn.00403083
mov esi, dword [ebp + 8]
call fcn.0040306e
push esi
mov esi, dword [ebp - 8]
push ecx
add esi, 0xfffffff0
mov eax, esi
mov edi, esp
call fcn.004037c8
add eax, 0x10
mov dword [edi], eax
mov eax, 0x41ec38
call fcn.0040894d
mov eax, esi
call fcn.00404aac
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret