joyce8/EMBER2024-capa huggingface dataset:
Function at 0x627cf1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6303c0
cmp edx, dword [eax]
je 0x627d13
add eax, 8
inc ecx
cmp eax, 0x630450
jl 0x627d04
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6303c0]
jne 0x627e41
mov eax, dword [0x638d68]
cmp eax, 1
je 0x627e1b
test eax, eax
jne 0x627d44
cmp dword [0x6302e8], 1
je 0x627e1b
cmp edx, 0xfc
je 0x627e41
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x627d7b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.006286d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00628b60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x627dbe
lea eax, [ebp - 0x1a4]
push eax
call fcn.00628b60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62ca54
push edi
call fcn.0062aa30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.006286d0
lea eax, [ebp - 0xa0]
test dword [eax - 1], esp
invalid
call dword [edi + 0x50]
call fcn.006286e0
lea eax, [ebp - 0xa0]
push 0x62ca34
push eax
call fcn.006286e0
push dword [esi + 0x6303c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.006286e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062a9a4
add esp, 0x2c
pop edi
jmp 0x627e41
lea eax, [ebp + 8]
lea esi, [esi + 0x6303c4]
push 0
push eax
push dword [esi]
call fcn.00628b60
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 0x40709f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436f0a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
mov dword [ebp - 0x164], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004077a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x407101
mov dword [ebp - 0x154], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x154]
jmp 0x4071de
push str..
lea ecx, [ebp + 8]
call fcn.0042e0f8
push 0x140
push 0
lea eax, [ebp - 0x14c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x14c]
push ecx
lea ecx, [ebp + 8]
call fcn.004077a0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0xffffffff
jne 0x40716a
mov dword [ebp - 0x158], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x158]
jmp 0x4071de
mov edx, dword [ebp - 0x14c]
and edx, 0x10
test edx, edx
je 0x407179
jmp 0x4071a7
mov eax, dword [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x15c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x15c]
jmp 0x4071de
lea ecx, [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40716a
mov dword [ebp - 0x160], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4071fb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x64], ecx
mov eax, 0x4472b0
test eax, eax
je 0x407216
mov ecx, 0x446ab0
test ecx, ecx
jne 0x40721b
jmp 0x4072ee
push 0x4472b0
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
jbe 0x4072ee
push 0x446ab0
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
jbe 0x4072ee
mov dword [ebp - 4], 0x4472b0
mov dword [ebp - 8], 0x446ab0
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x4072ee
push 0x10
push 0
lea ecx, [ebp - 0x1c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x44
push 0
lea edx, [ebp - 0x60]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], 0x44
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x4072c2
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x4072ad
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
test eax, eax
je 0x4072e0
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x4072cb
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x407253
mov esp, ebp
pop ebp
ret
Function at 0x408779
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
push str.Update
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004077a0
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x4087ee
lea ecx, [ebp - 0x14]
call fcn.004077a0
mov dword [ebp - 0x34], eax
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x44359c
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
lea eax, [ebp - 0x20]
push eax
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x44]
push edx
mov ecx, 0x44865c
call fcn.0042e0e6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x408879
mov dword [ebp - 4], 0xffffffff
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 0x40cc09
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
add eax, 0x164
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
jbe 0x40ccde
mov ecx, dword [ebp - 0x64]
add ecx, 0x164
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x64]
add edx, 0x964
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40ccde
push 0x10
push 0
lea edx, [ebp - 0x1c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], 0x44
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x40ccb2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x40cc9d
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40ccd0
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x40ccbb
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x40cc43
mov esp, ebp
pop ebp
ret
Function at 0x40e690
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x104]
test eax, eax
je 0x40e6b9
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x104], 0
lea ebp, [esi + 0x108]
xor eax, eax
mov ecx, ebp
lea edi, [esi + 0x110]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x120]
test edi, edi
je 0x40e6f9
cmp byte [edi], 0
jne 0x40e715
mov ecx, esi
call fcn.0040e9c0
lea edx, [esp + 0x18]
push 0x103
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x18]
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x40e730
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
push ebx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esi + 0x104], eax
test eax, eax
jne 0x40e750
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
push eax
push ebx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
mov edx, dword [esi + 0x104]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x4438f4
push edx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
shr ecx, 0x10
mov word [ebp], cx
mov dx, word [eax + 8]
mov word [esi + 0x10a], dx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
mov word [esi + 0x10c], cx
mov ax, word [eax + 0xc]
mov word [esi + 0x10e], ax
and eax, 0xffff
xor edx, edx
push eax
mov dx, cx
xor eax, eax
mov ax, word [esi + 0x10a]
xor ecx, ecx
mov cx, word [ebp]
push edx
push eax
push ecx
push str._d._d._d._d
lea eax, [esi + 0x110]
push 0x3f
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push 0x103
push edi
push esi
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0x28
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4

Function at 0x40e910
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x118]
lea ecx, [esp + 0x14]
push eax
push str.SoftwareGloballinkGame_s
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x14]
mov dword [esp + 8], 0
push edx
push 1
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40e9ac
mov edx, dword [esp + 0x11c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push esi
push str.path
push ecx
mov dword [esp + 0x24], 0x103
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 0x10c
ret 8
Function at 0x40ebad
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
jne 0x40ebc0
xor eax, eax
jmp 0x40ec34
mov ecx, dword [ebp - 8]
call fcn.0040eca8
test eax, eax
jne 0x40ebd0
xor eax, eax
jmp 0x40ec34
mov eax, dword [ebp - 8]
mov byte [eax + 0x38], 0
mov ecx, dword [ebp - 8]
call fcn.0040ece8
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 8]
mov dword [edx + 4], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 0
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
push 0x40eef5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
cmp dword [edx], 0
jne 0x40ec2f
xor eax, eax
jmp 0x40ec34
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x40ed2d
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esp, ebp
pop ebp
ret

Function at 0x40ed44
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret
Function at 0x420d2e
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4395c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
lea eax, [ebp + 8]
push eax
call fcn.0042e0da
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
call fcn.004211fd
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x420d93
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x14]
jmp 0x420de1
lea ecx, [ebp + 8]
call fcn.004077a0
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x420dc8
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
jmp 0x420de1
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x420f9f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4395fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push 1
push 0
mov ecx, dword [ebp - 0x24]
add ecx, 0xc
call fcn.004077a0
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0
je 0x42100d
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
jmp 0x42107b
mov dword [ebp - 0x10], 1
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp + 8]
call fcn.004077a0
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x24]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x24]
cmp dword [ecx], 0
jne 0x421062
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1c]
jmp 0x42107b
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x421ba2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4396f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov dword [ebp - 0x124], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 1
lea ecx, [ebp + 0xc]
call fcn.00402c90
cmp eax, 0xfe
jle 0x421c13
mov dword [ebp - 0x118], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x118]
jmp 0x421d1b
lea ecx, [ebp + 0xc]
call fcn.004077a0
push eax
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
lea ecx, [ebp - 0x114]
push ecx
push 0x20006
push 0
mov ecx, dword [ebp - 0x124]
add ecx, 0xc
call fcn.004077a0
push eax
mov edx, dword [ebp - 0x124]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x421c8c
mov dword [ebp - 0x11c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x11c]
jmp 0x421d1b
lea ecx, [ebp - 0x110]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
push eax
lea edx, [ebp - 0x110]
push edx
push 1
push 0
lea ecx, [ebp + 8]
call fcn.004077a0
push eax
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x421ccb
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x124]
cmp dword [ecx + 8], 0
jne 0x421ce4
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x120], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x422059
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 0x214], 0
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x4220a6
push 0x104
push str.C:Temp
lea ecx, [ebp - 0x104]
push ecx
call fcn.00422520
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0
push 0x444a14
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x4220f3
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [ebp - 0x214]
or edx, 1
mov dword [ebp - 0x214], edx
mov eax, dword [ebp + 8]
jmp 0x422111
push 0x448698
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x214]
or al, 1
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x422115
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439763
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov dword [ebp - 0x118], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x114]
push eax
push 0
push 0x444a18
lea ecx, [ebp + 0xc]
call fcn.004077a0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x422199
lea ecx, [ebp - 0x114]
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [ebp - 0x118]
or edx, 1
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x4221c3
push 0x44869c
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x118]
or al, 1
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x422257
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x422291
cmp dword [ebp - 0x210], 0x104
jb 0x422298
xor al, al
jmp 0x422385
push 0x104
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [ebp - 0x214], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x214], 0
je 0x4222d5
cmp dword [ebp - 0x214], 0x104
jb 0x4222dc
xor al, al
jmp 0x422385
call fcn.00415869
and eax, 0xff
test eax, eax
je 0x42230e
push 5
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x218], eax
xor eax, eax
cmp dword [ebp - 0x218], 0
setne al
jmp 0x422385
push 0x104
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x422383
cmp dword [ebp - 0x21c], 0x104
jae 0x422383
push 0x444a1c
lea ecx, [ebp - 0x320]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x42237f
lea edx, [ebp - 0x320]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x444a2c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x324], eax
xor eax, eax
cmp dword [ebp - 0x324], 0
setne al
jmp 0x422385
xor al, al
jmp 0x422385
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x422389
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push 0x104
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x4223c3
cmp dword [ebp - 0x108], 0x104
jb 0x4223ca
xor al, al
jmp 0x422473
call fcn.00415869
and eax, 0xff
test eax, eax
je 0x4223fc
push 5
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x10c], eax
xor eax, eax
cmp dword [ebp - 0x10c], 0
setne al
jmp 0x422473
push 0x104
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
je 0x422471
cmp dword [ebp - 0x110], 0x104
jae 0x422471
push str.WinInit.ini
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x42246d
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x218], eax
xor eax, eax
cmp dword [ebp - 0x218], 0
setne al
jmp 0x422473
xor al, al
jmp 0x422473
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4224f6
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
test eax, eax
jne 0x422512
mov al, 1
jmp 0x422514
xor al, al
pop ebp
ret

Function at 0x424865
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 8]
add ecx, 0x10
call fcn.004135f0
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4248a1
xor eax, eax
jmp 0x4248e0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
add ecx, 0x18
call fcn.004135f0
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4248d1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4248e0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4248e4
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
mov ecx, dword [ebp - 8]
add ecx, 0x10
call fcn.004135f0
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x424920
xor eax, eax
jmp 0x424970
mov ecx, dword [ebp - 8]
add ecx, 0x18
call fcn.004135f0
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x424948
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x424970
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
add ecx, 0x10
call fcn.004135f0
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyA]
mov eax, 1
mov esp, ebp
pop ebp
ret