joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413510
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jg 0x413566
mov dword [ebp - 0x24], 0x400
mov edx, dword [ebp - 0x24]
push edx
call fcn.0043f1ba
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x413586
jmp 0x413634
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4135af
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x413634
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x4135da
mov edx, dword [ebp - 0x1c]
cmp dword [edx], 0x4550
je 0x4135dc
jmp 0x413634
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
jne 0x4135ff
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x28]
mov dword [edx], ecx
jmp 0x413625
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 0x18]
cmp eax, 0x20b
jne 0x413625
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x28]
mov dword [edx], ecx
mov dword [ebp - 0x14], 1
xor edx, edx
jne 0x413553
cmp dword [ebp - 4], 0
je 0x413653
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0043ec2f
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x413a70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4607a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x10], 0xe9
mov byte [ebp - 0xf], 0
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xc], 0
mov dword [ebp - 0x1c], 5
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x413acd
mov eax, dword [ebp - 0x20]
jmp 0x413b3c
mov ecx, dword [ebp + 0xc]
add ecx, 5
mov edx, dword [ebp + 0x10]
sub edx, ecx
mov dword [ebp - 0x18], edx
push 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xf]
push ecx
call fcn.0043e8b0
add esp, 0xc
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x413b1c
mov eax, dword [ebp - 0x20]
jmp 0x413b3c
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043ec15
mov esp, ebp
pop ebp
ret 0xc

Function at 0x413d90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4607a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x462408], 0
jne 0x413df2
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._ntdll.dll
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.00403250
push str.RtlGetVersion
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x462408], eax
mov eax, dword [0x462408]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ec15
mov esp, ebp
pop ebp
ret
Function at 0x413f90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4607a0]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
call fcn.00413d90
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x413ff0
mov dword [ebp - 0x138], 0x11c
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x413fee
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x130]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x14], eax
jmp 0x414039
push 0x11c
push 0
lea ecx, [ebp - 0x258]
push ecx
call fcn.0043f140
add esp, 0xc
mov dword [ebp - 0x258], 0x11c
lea edx, [ebp - 0x258]
push edx
call dword [ebp - 0xc]
test eax, eax
jne 0x414039
mov eax, dword [ebp - 0x254]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 5
je 0x414062
cmp dword [ebp - 0x25c], 6
je 0x41406e
cmp dword [ebp - 0x25c], 0xa
je 0x4140ba
jmp 0x4140f0
mov dword [ebp - 0x10], 0x3e9
jmp 0x4140f7
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x260], ecx
cmp dword [ebp - 0x260], 3
ja case.default.0x414086
mov edx, dword [ebp - 0x260]
jmp dword [edx*4 + 0x414108]
mov dword [ebp - 0x10], 0x3ee
jmp 0x4140b8
mov dword [ebp - 0x10], 0x3ef
jmp 0x4140b8
mov dword [ebp - 0x10], 0x3f0
jmp 0x4140b8
mov dword [ebp - 0x10], 0x3f1
jmp 0x4140b8
mov dword [ebp - 0x10], 0x3f2
jmp 0x4140f7
mov eax, dword [ebp - 8]
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0
je 0x4140ce
jmp 0x4140e7
mov dword [ebp - 0x10], 0x3f2
cmp dword [ebp - 0x14], 0x55f0
jb 0x4140e5
mov dword [ebp - 0x10], 0x3f3
jmp 0x4140ee
mov dword [ebp - 0x10], 0x3f3
jmp 0x4140f7
mov dword [ebp - 0x10], 0x3f3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0043ec15
mov esp, ebp
pop ebp
ret
Function at 0x419ee0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45103d
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4607a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x280], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00405960
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x268]
call fcn.00405960
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0043c600
push eax
mov ecx, dword [ebp - 0x280]
call fcn.00419660
test eax, eax
jne 0x419f5e
push 0x4553e8
lea ecx, [ebp - 0x10]
call fcn.004029d0
jmp 0x419f6b
push 0x4553f4
lea ecx, [ebp - 0x10]
call fcn.004029d0
lea edx, [ebp - 0x264]
push edx
lea ecx, [ebp - 0x10]
call fcn.0043c600
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0xffffffff
jne 0x419fc3
mov dword [ebp - 0x278], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x268]
call fcn.00402ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402ca0
mov eax, dword [ebp - 0x278]
jmp 0x41a08b
movzx eax, word [ebp - 0x238]
cmp eax, 0x2e
jne 0x419fd1
jmp 0x41a034
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x274]
call fcn.00405960
mov byte [ebp - 4], 2
push 0x4553f8
lea ecx, [ebp - 0x274]
call fcn.004029d0
lea edx, [ebp - 0x238]
push edx
lea ecx, [ebp - 0x274]
call fcn.004029d0
lea eax, [ebp - 0x274]
push eax
mov ecx, dword [ebp - 0x280]
call fcn.00419800
mov dword [ebp - 0x270], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x274]
call fcn.00402ca0
lea ecx, [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x419fc3
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x27c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x268]
call fcn.00402ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402ca0
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043ec15
mov esp, ebp
pop ebp
ret 4
Function at 0x41aa30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x6c], 0
jne 0x41aa6e
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0043c600
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.0043c600
push eax
push str.LANGUAGE
push 0x4554b0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x41aacd
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.00404e30
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.0043c600
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x74
call fcn.0043c600
push eax
push str.SoftwareBaymaxPatchToolsDefaultLang
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41aac4
xor eax, eax
jmp 0x41aacd
mov eax, 1
jmp 0x41aacd
mov esp, ebp
pop ebp
ret

Function at 0x41ee10
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x41ee3e
mov eax, dword [ebp - 0x24]
jmp 0x41eee6
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 0x1c
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x41eed9
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jne 0x41eec8
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp + 0xc]
je 0x41eec8
mov edx, dword [ebp - 0x18]
push edx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x41eec8
cmp dword [ebp + 0x10], 0
je 0x41eeb4
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x41eebe
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x41ee78
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x4204b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.0041b790
test eax, eax
jne 0x4204d6
xor eax, eax
jmp 0x4205b8
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.0041b760
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.0040dfb0
push eax
lea ecx, [ebp - 8]
call fcn.00428a00
movzx edx, al
test edx, edx
je 0x4205b5
lea ecx, [ebp - 8]
call fcn.004289e0
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x1c], 4
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
call fcn.004289e0
add eax, 4
mov ecx, eax
call fcn.0043c600
push eax
push 0x4560a8
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x420579
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 8]
call fcn.004289e0
mov dword [ebp - 0x10], 0
jmp 0x4205a8
lea ecx, [ebp - 8]
call fcn.004289e0
add eax, 4
push eax
lea ecx, [ebp - 8]
call fcn.004289e0
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x30
call fcn.00418000
mov ecx, eax
call fcn.004097a0
lea ecx, [ebp - 8]
call fcn.004289e0
lea ecx, [ebp - 8]
call fcn.00421520
jmp 0x4204ec
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x4205c0
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4515f7
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x4607a0]
xor eax, ebp
mov dword [ebp - 0x70], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x49c], ecx
mov dword [ebp - 0x48c], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x49c]
call fcn.004204b0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x49c]
call fcn.00420060
test eax, eax
jne 0x420628
mov eax, dword [ebp - 0x48c]
jmp 0x4207ea
push 0x410
push 0
lea edx, [ebp - 0x484]
push edx
call fcn.0043f140
add esp, 0xc
lea ecx, [ebp - 0x488]
call fcn.00402780
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x49c]
mov ecx, dword [eax + 0x54]
push ecx
push str.__s___baymax
lea edx, [ebp - 0x488]
push edx
call fcn.00404680
add esp, 0xc
lea ecx, [ebp - 0x488]
call fcn.0043c600
push eax
push 0x208
lea eax, [ebp - 0x484]
push eax
call fcn.00403200
push 0x44
push 0
lea ecx, [ebp - 0x6c]
push ecx
call fcn.0043f140
add esp, 0xc
mov dword [ebp - 0x6c], 0x44
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
lea edx, [ebp - 0x484]
push edx
mov ecx, dword [ebp - 0x49c]
add ecx, 0x54
call fcn.0043c600
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x48c], eax
cmp dword [ebp - 0x48c], 0
jne 0x42071e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x48c]
mov dword [ebp - 0x494], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x488]
call fcn.00402ca0
mov eax, dword [ebp - 0x494]
jmp 0x4207ea
mov dword [ebp - 0x48c], 0
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x49c]
add ecx, 0x14
call fcn.0041b790
test eax, eax
je 0x42074e
jmp 0x42079a
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xbb8
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x420788
push 0xffffffffffffffff
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x490], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x49c]
add ecx, 0x14
call fcn.0041b790
test eax, eax
je 0x4207b2
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x48c], 1
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x48c]
mov dword [ebp - 0x498], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x488]
call fcn.00402ca0
mov eax, dword [ebp - 0x498]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x70]
xor ecx, ebp
call fcn.0043ec15
mov esp, ebp
pop ebp
ret 4
Function at 0x420990
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45162f
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4607a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.0041b790
test eax, eax
je 0x4209d6
mov ecx, dword [ebp - 0x50]
add ecx, 0x30
call fcn.00409d70
test eax, eax
jne 0x4209f3
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.0041b790
mov ecx, dword [ebp - 0x50]
add ecx, 0x30
call fcn.00409d70
xor eax, eax
jmp 0x420b74
lea ecx, [ebp - 0x1c]
call fcn.00402780
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0x14
call fcn.0041b760
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x50]
add ecx, 0x14
call fcn.0040dfb0
push eax
lea ecx, [ebp - 0x24]
call fcn.00428a00
movzx edx, al
test edx, edx
je 0x420a8f
lea ecx, [ebp - 0x24]
call fcn.00421500
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0x30
call fcn.0041b560
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x50]
add ecx, 0x30
call fcn.0040a090
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404ff0
movzx edx, al
test edx, edx
je 0x420a85
lea ecx, [ebp - 0x2c]
call fcn.00418140
add eax, 4
push eax
lea ecx, [ebp - 0x1c]
call fcn.004097a0
lea ecx, [ebp - 0x2c]
call fcn.00418140
jmp 0x420a8f
lea ecx, [ebp - 0x24]
call fcn.00421520
jmp 0x420a11
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.0041b760
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.0040dfb0
push eax
lea ecx, [ebp - 0x14]
call fcn.00428a00
movzx edx, al
test edx, edx
je 0x420b56
lea ecx, [ebp - 0x14]
call fcn.004289e0
add eax, 4
mov ecx, eax
call fcn.0043c600
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040de90
test eax, eax
je 0x420b49
mov eax, dword [ebp - 0x50]
add eax, 0x50
push eax
lea ecx, [ebp - 0x30]
call fcn.00405960
mov byte [ebp - 4], 1
push 0x45625c
lea ecx, [ebp - 0x30]
call fcn.004029d0
lea ecx, [ebp - 0x14]
call fcn.004289e0
add eax, 4
push eax
lea ecx, [ebp - 0x30]
call fcn.004029a0
lea ecx, [ebp - 0x30]
call fcn.0043c600
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x420b34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00402ca0
lea ecx, [ebp - 0x14]
call fcn.00421520
jmp 0x420aa5
xor edx, edx
cmp dword [ebp - 0x18], 0
setne dl
mov dword [ebp - 0x4c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402ca0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x420c80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x420c60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x420cca
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
mov eax, 1
jmp 0x420ccc
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x420ce0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451652
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x4607a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x490], ecx
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.0043f140
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x490]
add ecx, 0x50
call fcn.00402970
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x490]
mov eax, dword [edx + 0x50]
push eax
push str._s_s
mov ecx, dword [ebp - 0x490]
add ecx, 0x54
push ecx
call fcn.00404680
add esp, 0x10
mov ecx, dword [ebp - 0x490]
add ecx, 0x54
call fcn.0043c600
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420dc6
mov dword [ebp - 0x480], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ca0
mov eax, dword [ebp - 0x480]
jmp 0x420f29
xor edx, edx
mov word [ebp - 0x424], dx
push 0x206
push 0
lea eax, [ebp - 0x422]
push eax
call fcn.0043f140
add esp, 0xc
mov dword [ebp - 0x47c], 0
push 0x54
push 0
lea ecx, [ebp - 0x478]
push ecx
call fcn.0043f140
add esp, 0xc
mov dword [ebp - 0x47c], 0x58
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x478], edx
mov dword [ebp - 0x470], 0x4563c0
mov ecx, dword [ebp - 0x490]
add ecx, 0x50
call fcn.0043c600
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x460], eax
lea ecx, [ebp + 8]
call fcn.0043c600
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0x45c], 0x104
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x448], 0x81800
lea ecx, [ebp - 0x47c]
push ecx
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x420f0a
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x420eb2
mov dword [ebp - 0x484], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ca0
mov eax, dword [ebp - 0x484]
jmp 0x420f29
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x490]
add ecx, 0x54
call fcn.00402970
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x424]
push edx
mov ecx, dword [ebp - 0x490]
add ecx, 0x50
call fcn.00402970
mov dword [ebp - 0x488], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ca0
mov eax, dword [ebp - 0x488]
jmp 0x420f29
mov dword [ebp - 0x48c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ca0
mov eax, dword [ebp - 0x48c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043ec15
mov esp, ebp
pop ebp
ret 8
Function at 0x421c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4607a0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0x224], 0
mov dword [ebp - 8], 4
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0043f140
add esp, 0xc
mov dword [ebp - 0x220], 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x456600
push 0x456610
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x421ccd
cmp dword [ebp - 0x224], 0x26739a4c
je 0x421cd2
jmp 0x421dc1
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x456650
push 0x456660
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x421d0a
jmp 0x421dc1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x224]
mov dword [edx + 8], eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 4]
push eax
push 0x4566a0
push 0x4566b0
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x421d4b
jmp 0x421dc1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x224]
mov dword [ecx + 0xc], edx
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0x208
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 4]
push edx
push 0x4566f0
push 0x456704
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x421d9a
jmp 0x421dc1
lea eax, [ebp - 0x218]
push eax
push 0x78
mov ecx, dword [ebp + 8]
add ecx, 0x10
push ecx
call fcn.00403200
mov dword [ebp - 0x21c], 1
xor edx, edx
jne 0x421c8e
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0043ec15
mov esp, ebp
pop ebp
ret