joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4090e8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040532e
xor ebx, ebx
cmp dword [0x414b18], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4091be
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40929e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40929e
push eax
call fcn.004052c0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414b18], eax
call esi
push eax
call fcn.004052c0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414b1c], eax
call esi
push eax
call fcn.004052c0
mov dword [0x414b20], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040450a
test eax, eax
pop ecx
pop ecx
je 0x40918c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040425e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4091be
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004052c0
cmp eax, ebx
pop ecx
mov dword [0x414b28], eax
je 0x4091be
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004052c0
pop ecx
mov dword [0x414b24], eax
mov eax, dword [0x414b24]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x409243
cmp dword [0x414b28], ecx
je 0x409243
push eax
call fcn.00405337
push dword [0x414b28]
mov esi, eax
call fcn.00405337
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x409243
cmp edi, ebx
je 0x409243
call esi
cmp eax, ebx
je 0x409210
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409210
test byte [ebp - 0x18], 1
jne 0x409243
lea eax, [ebp - 0x10]
push eax
call fcn.00404541
test eax, eax
pop ecx
je 0x40922b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040425e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40923a
or dword [ebp + 0x10], 0x200000
jmp 0x40927e
or dword [ebp + 0x10], 0x40000
jmp 0x40927e
mov eax, dword [0x414b1c]
cmp eax, dword [ebp - 8]
je 0x40927e
push eax
call fcn.00405337
cmp eax, ebx
pop ecx
je 0x40927e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40927e
mov eax, dword [0x414b20]
cmp eax, dword [ebp - 8]
je 0x40927e
push eax
call fcn.00405337
cmp eax, ebx
pop ecx
je 0x40927e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x414b18]
call fcn.00405337
cmp eax, ebx
pop ecx
je 0x40929e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4092a0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40611c
pop dword [ebp - 8]
mov eax, 0x88a3a230
add eax, 0x779cbeec
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x2d5ea32
sub dword [ebp - 0x18], 0xb483a4e7
mov dword [ebp - 0x14], 0x8fea83ee
sub dword [ebp - 0x14], 0x5db737a9
mov dword [ebp - 0x10], 0x268d3e26
add dword [ebp - 0x10], 0x25bf0608
mov dword [ebp - 0xc], 0x6dd126ba
sub dword [ebp - 0xc], 0x6dd126ba
lea eax, [ebp - 0x18]
push eax
mov eax, 0xa91d7c7b
sub eax, 0xa8dd0c1b
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xec6a10fb
add dword [ebp - 0x18], 0x8808585b
mov dword [ebp - 0x14], 0xc2a42f61
add dword [ebp - 0x14], 0x7ec83214
mov dword [ebp - 0x10], 0x34e713ee
sub dword [ebp - 0x10], 0xd177a782
mov dword [ebp - 0xc], 0x10ab96ca
add dword [ebp - 0xc], 0xef546936
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3a0c3
push 0
call eax
mov ecx, 0x527800e7
sub ecx, 0x5277ab25
mov edi, eax
mov edx, 0xc5121a1b
add edx, 0x3b2ee5e5
add edx, dword [ebp - 8]
mov esi, 0x301e9e90
sub esi, 0xdee23e1
sub dword [ebp - 4], 0x3581ecbd
mov ebx, dword [edx]
xor ebx, esi
mov dword [ebp - 4], 0xd54e368c
mov dword [edi], ebx
add dword [ebp - 4], eax
add edi, 4
add edx, 0xdc34b049
add edx, 0x23cb4fbb
loop 0x406239
add eax, 0x7ff4c9a1
add eax, 0x800c803a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x4016c0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424c38
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x443624]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 4], 0
test bl, 4
je 0x401706
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x4017fd
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
test edi, edi
jne 0x401721
xor esi, esi
jmp 0x4017fd
push dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
push edi
call fcn.004013b0
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push 0x4022f0
push dword [ebp + 8]
mov dword [ebp + 0x14], 0
push 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], edi
call fcn.00418a2b
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4017c1
push 0x1388
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call edi
test eax, eax
je 0x4017c3
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x40179f
push eax
push esi
call edi
test eax, eax
je 0x40179f
mov dword [0], 0
jmp 0x401793
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne cl
test eax, eax
jne 0x4017b6
nop
test cl, cl
je 0x4017b0
mov dword [eax], eax
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 5
test eax, eax
je 0x4017d5
push eax
call dword [ebp - 0x24]
add esp, 4
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x4017fd
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x4017fd
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x4017fd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 6
test eax, eax
je 0x401812
push eax
call dword [ebp + 0x10]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401830
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push 0
push 0
call fcn.00407b90
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.00418887
mov edi, eax
mov edx, 2
or eax, 0xffffffff
test edi, edi
push 0x444fd4
cmovs edi, eax
xor eax, eax
test edi, edi
cmovs edi, eax
xor ecx, ecx
inc edi
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411fa1
mov esi, eax
add esp, 0x24
test esi, esi
je 0x4018b1
xor eax, eax
test edi, edi
je 0x40189c
cmp edi, 0x7fffffff
jbe 0x4018a1
mov eax, 0x80070057
test eax, eax
js 0x4018ef
test edi, edi
jne 0x4018cf
mov eax, dword [ebp + 8]
cmp word [eax], di
je 0x4018fc
push str.DbgPrint_crash._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test esi, esi
je 0x4018c9
push esi
call fcn.00411f9c
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push edi
push esi
call fcn.00406f90
test eax, eax
jns 0x4018fc
and edi, 0x7fffffff
jbe 0x4018f8
jmp 0x4018f3
test edi, edi
je 0x4018f8
xor ecx, ecx
mov word [esi], cx
test eax, eax
js 0x4018b1
push esi
jmp 0x4018b6
Function at 0x401fb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424d66
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x443624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0x240], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402002
xor eax, eax
jmp 0x40212b
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x258]
push edi
push ebx
call fcn.004013b0
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x23c], 0x22c
call fcn.00413a20
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [0x4435ec]
test eax, eax
je 0x4020fc
mov esi, dword [esi]
lea eax, [ebp - 0x218]
push dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4020cf
mov eax, dword [ebp - 0x234]
cmp eax, dword [esi + 4]
je 0x4020cf
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x234]
cmp ecx, eax
je 0x4020cf
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x24c], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x402164
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4020c4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402147
push esi
mov byte [ebp - 4], 2
call edi
mov byte [ebp - 4], 0
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [0x4435f0]
test eax, eax
je 0x4020ec
mov esi, dword [ebp - 0x240]
jmp 0x402052
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x12
sete bl
jmp 0x4020fe
xor ebx, ebx
mov esi, dword [ebp - 0x254]
test esi, esi
je 0x402129
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x402129
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x402129
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411faa
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x244]
push 0x42eef0
push eax
call fcn.00412ee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x248]
push 0x42eef0
push eax
call fcn.00412ee2
int3
Function at 0x4026d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00411fc0
mov eax, dword [0x443624]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
lea edi, [ebp - 0x1004]
mov ecx, 0x1e
lea eax, [ebp - 0xf8a]
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionPrintPrinters_
rep movsd dword es:[edi], dword [esi]
push 0xf86
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00413a20
add esp, 0xc
lea eax, [ebp - 0x1004]
push dword [ebp + 8]
push 0x800
push eax
call fcn.004069f0
test eax, eax
jns 0x402747
pop edi
pop esi
mov eax, 0xe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411faa
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0
push eax
push 2
push 0
lea eax, [ebp - 0x1004]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4027ab
push dword [ebp + 0x10]
push ebx
push 1
push eax
push str.SpoolDirectory
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x1008]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
sete cl
test eax, eax
je 0x4027a9
xor eax, eax
test cl, cl
je 0x4027a3
mov dword [eax], eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411faa
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402dd0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x443624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 1
push 0
mov dword [ebp - 0x38], 0xdc3cba00
mov dword [ebp - 0x34], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov edi, eax
test edi, edi
jne 0x402e22
xor esi, esi
jmp 0x402f06
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x402e3f
xor esi, esi
jmp 0x402ef4
push 0x34
push str.Spooler
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x402edd
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x402e73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x402edd
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
setne cl
test eax, eax
jne 0x402e96
nop
test cl, cl
je 0x402e90
mov dword [eax], eax
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esp, [esp]
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
setne cl
test eax, eax
jne 0x402eba
test cl, cl
je 0x402eb4
mov dword [eax], eax
cmp dword [ebp - 0x28], 4
je 0x402f36
push 0x1f4
push edi
call esi
test eax, eax
jne 0x402ea0
cmp dword [ebp - 0x28], 4
je 0x402f36
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov dword [ebp - 4], 0xc
test ebx, ebx
je 0x402ef1
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], 0xd
test eax, eax
je 0x402f06
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xe
test edi, edi
je 0x402f18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411faa
mov esp, ebp
pop ebp
ret
mov esi, 1
jmp 0x402edf
Function at 0x403350
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x4033ac
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4033ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x40338b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4033ac
push esi
call fcn.00406570
add esp, 4
test eax, eax
je 0x4033a6
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4033ac
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret
Function at 0x404670
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4251c0
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x443624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call fcn.00404a20
mov dword [ebp - 0x460], eax
lea ecx, [ebp - 0x45c]
lea eax, [ebp - 0x460]
push eax
call fcn.004012a0
mov eax, dword [ebp - 0x434]
test eax, eax
jne 0x4046cf
xor edi, edi
jmp 0x40479f
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x434]
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
test eax, eax
mov dword [ebp - 0x460], 3
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x218]
cmove ecx, dword [ebp - 0x434]
xor edi, edi
mov dword [ebp - 0x42c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x428], eax
mov eax, dword [esi + 0x14]
lea esi, [ebp - 0x42c]
mov dword [ebp - 0x464], ecx
mov dword [ebp - 0x424], eax
mov ebx, dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404787
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, edi
push eax
push str._KVP
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x404787
push 9
lea eax, [ebp - 0x420]
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call ebx
push 4
push 0
lea eax, [ebp - 0x420]
push eax
call ebx
inc edi
add esi, 4
sub dword [ebp - 0x460], 1
jne 0x404736
mov eax, dword [ebp - 0x434]
mov edi, 1
mov dword [ebp - 4], 0
test eax, eax
je 0x4047c6
mov ecx, dword [ebp - 0x438]
mov dword [ebp - 0x464], eax
test ecx, ecx
je 0x404802
mov eax, dword [ecx]
lea edx, [ebp - 0x464]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x438]
test ecx, ecx
je 0x4047e4
mov esi, dword [ecx]
lea eax, [ebp - 0x45c]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411faa
mov esp, ebp
pop ebp
ret
call fcn.00411cb0
int3
Function at 0x404e10
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x443624]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00413a20
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x1c
push eax
push fcn.00404e10
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
ja 0x404eab
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x104
ja 0x404eab
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x20c]
push eax
push str.KvpinsRoot
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411faa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00411faa
mov esp, ebp
pop ebp
ret
Function at 0x406110
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4253c8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x443624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x40], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406170
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411faa
mov esp, ebp
pop ebp
ret
xor esi, esi
mov ebx, 0x406500
test edi, edi
mov eax, 0x406880
cmovne ebx, eax
jne 0x4061ad
push 0x115c1
push str.GIF89a
call fcn.00408b30
mov esi, eax
add esp, 8
test esi, esi
jne 0x4061ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
or ecx, 0xffffffff
test eax, eax
cmovne ecx, eax
mov eax, ecx
jmp 0x406154
mov eax, dword [ebp + 8]
test al, 1
je 0x4061bb
mov eax, 0x4063e0
jmp 0x4061ca
test al, 2
mov ecx, 0x406470
mov eax, 0
cmovne eax, ecx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x4061e3
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_void_____cdecl___void____stdcall___wchar_t_const___unsigned_short_int__void____void___int__wchar_t_const____void___void____stdcall___wchar_t_const___unsigned_short_int__void____void___int__wchar_t_const__.0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
test ecx, ecx
je 0x4062b2
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x40]
push edx
lea edx, [ebp - 0x44]
mov dword [ebp - 0x40], eax
push edx
lea edx, [ebp - 0x48]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], ebx
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x4c]
push edx
call dword [eax + 8]
mov edi, eax
test edi, edi
jne 0x406249
call dword [sym.imp.KERNEL32.dll_GetLastError]
or edi, 0xffffffff
test eax, eax
cmovne edi, eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x406242
mov esi, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
jmp 0x406154
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call fcn.00409bf0
add esp, 4
test eax, eax
setne cl
test eax, eax
jne 0x40626a
test cl, cl
je 0x406264
mov dword [eax], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4062b0
cmp dword [ebp - 0x3c], 0x103
je 0x4062b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne cl
test eax, eax
jne 0x4062a6
lea esp, [esp]
test cl, cl
je 0x4062a0
mov dword [eax], eax
mov edi, dword [ebp - 0x3c]
jmp 0x40622a
jmp 0x4062b0
push 0x80004005
call fcn.00402cb0
int3
Function at 0x40aae0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
cmp word [ebp + 0x14], 0xffff
push edi
sete al
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, dword [ebp + 0x18]
mov ecx, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
neg ecx
sbb ecx, ecx
mov word [ebx], cx
test eax, eax
jne 0x40ab49
cmp word [ebp + 0x14], 0xffff
jne 0x40ab49
call edi
cmp eax, 0x50
je 0x40ab29
call edi
cmp eax, 0x20
jne 0x40ab49
push esi
call fcn.0040cac0
add esp, 4
test eax, eax
je 0x40ab49
push 1
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
mov word [ebx], ax
cmp word [ebx], 0
jne 0x40ab63
call edi
push eax
push esi
push dword [ebp + 0xc]
push 0x427138
call fcn.00401830
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x14

Function at 0x40b930
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x443624]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x214], 0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x218]
push edi
push edx
mov edi, dword [eax + 4]
or edi, 0x2001f
mov dword [ebp - 0x220], eax
push edi
push 0
push ecx
push dword [eax]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x40ba8b
mov eax, dword [ebp - 0x214]
xor esi, esi
test eax, eax
je 0x40b9bc
push eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x218]
and edi, 0x300
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], edi
test esi, esi
jne 0x40ba8b
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x228]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x208], 0x100
push ecx
lea ecx, [ebp - 0x204]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x40ba57
lea esp, [esp]
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040b930
mov esi, eax
test esi, esi
jne 0x40ba8b
lea eax, [ebp - 0x228]
mov dword [ebp - 0x208], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
call edi
test eax, eax
je 0x40ba10
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x40ba6e
push eax
call ebx
mov dword [ebp - 0x214], 0
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x210], 0
call fcn.0040aed0
mov esi, eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x40ba98
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411faa
mov esp, ebp
pop ebp
ret 4