joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x611d7b5a
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x668f31b0
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401650
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424a8d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x444624]
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 0x401696
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x40178d
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
test edi, edi
jne 0x4016b1
xor esi, esi
jmp 0x40178d
push dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
push edi
call fcn.00401330
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 0x402490
push dword [ebp + 8]
mov dword [ebp + 0x14], 0
push 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], edi
call fcn.004189cd
mov esi, eax
add esp, 0x18
test esi, esi
je 0x401751
push 0x1388
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call edi
test eax, eax
je 0x401753
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x40172f
push eax
push esi
call edi
test eax, eax
je 0x40172f
mov dword [0], 0
jmp 0x401723
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne cl
test eax, eax
jne 0x401746
nop
test cl, cl
je 0x401740
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 0x401765
push eax
call dword [ebp - 0x24]
add esp, 4
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x40178d
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x40178d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x40178d
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 0x4017a2
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 0x4017c0
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.004080b0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.00418829
mov edi, eax
mov edx, 2
or eax, 0xffffffff
test edi, edi
push 0x428e30
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.00412841
mov esi, eax
add esp, 0x24
test esi, esi
je 0x40184d
test edi, edi
je 0x40184d
cmp edi, 0x7fffffff
ja 0x401848
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push edi
push esi
call fcn.00407450
test eax, eax
jns 0x40186b
and edi, 0x7fffffff
jbe 0x40184d
xor eax, eax
mov word [esi], ax
push str.DbgPrint_crash._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test esi, esi
je 0x401865
push esi
call fcn.0041283c
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.0041283c
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402150
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424bcb
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x444624]
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 0x4021a2
xor eax, eax
jmp 0x4022cd
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x258]
push edi
push ebx
call fcn.00401330
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x23c], 0x22c
call fcn.004140a0
mov eax, dword [0x4445ec]
lea ecx, [ebp - 0x23c]
add esp, 0xc
push ecx
push ebx
call eax
test eax, eax
je 0x40229e
mov esi, dword [esi]
lea eax, [ebp - 0x218]
push dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x402270
mov eax, dword [ebp - 0x234]
cmp eax, dword [esi + 4]
je 0x402270
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x234]
cmp ecx, eax
je 0x402270
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 0x402306
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x402265
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4022e9
push esi
mov byte [ebp - 4], 2
call edi
mov byte [ebp - 4], 0
mov eax, dword [0x4445f0]
lea ecx, [ebp - 0x23c]
push ecx
push ebx
call eax
test eax, eax
je 0x40228e
mov esi, dword [ebp - 0x240]
jmp 0x4021f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x12
sete bl
jmp 0x4022a0
xor ebx, ebx
mov esi, dword [ebp - 0x254]
test esi, esi
je 0x4022cb
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4022cb
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4022cb
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 int.0041284a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x244]
push 0x42f6ec
push eax
call fcn.0041355e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x248]
push 0x42f6ec
push eax
call fcn.0041355e
int3
Function at 0x402830
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00412860
mov eax, dword [0x444624]
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.004140a0
add esp, 0xc
lea eax, [ebp - 0x1004]
push dword [ebp + 8]
push 0x800
push eax
call fcn.00406f10
test eax, eax
jns 0x4028a7
pop edi
pop esi
mov eax, 0xe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call int.0041284a
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 0x402908
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
je 0x402906
mov dword [0], 0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call int.0041284a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402e50
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424d20
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x444624]
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 0x402ea2
xor esi, esi
jmp 0x402f71
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x402ebf
xor esi, esi
jmp 0x402f5f
push 0x34
push str.Spooler
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x402f48
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x402eef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x402f48
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
jne 0x402f0b
mov dword [0], eax
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x402f25
mov dword [0], eax
cmp dword [ebp - 0x28], 4
je 0x402fa1
push 0x1f4
push edi
call esi
test eax, eax
jne 0x402f11
cmp dword [ebp - 0x28], 4
je 0x402fa1
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov dword [ebp - 4], 0xc
test ebx, ebx
je 0x402f5c
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], 0xd
test eax, eax
je 0x402f71
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xe
test edi, edi
je 0x402f83
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 int.0041284a
mov esp, ebp
pop ebp
ret
mov esi, 1
jmp 0x402f4a
Function at 0x4033c0
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 0x40341c
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40341c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x4033fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40341c
push esi
call fcn.00406a80
add esp, 4
test eax, eax
je 0x403416
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40341c
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret
Function at 0x404890
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425080
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x444624]
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.00404db0
mov dword [ebp - 0x460], eax
lea ecx, [ebp - 0x45c]
lea eax, [ebp - 0x460]
push eax
call fcn.00401240
mov eax, dword [ebp - 0x434]
test eax, eax
jne 0x4048ef
xor edi, edi
jmp 0x4049bf
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 0x4049a7
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 0x4049a7
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 0x404956
mov eax, dword [ebp - 0x434]
mov edi, 1
mov dword [ebp - 4], 1
test eax, eax
je 0x4049e6
mov ecx, dword [ebp - 0x438]
mov dword [ebp - 0x464], eax
test ecx, ecx
je 0x404a22
mov eax, dword [ecx]
lea edx, [ebp - 0x464]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x438]
test ecx, ecx
je 0x404a04
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 int.0041284a
mov esp, ebp
pop ebp
ret
call fcn.00412550
int3
Function at 0x404c90
Capabilities:
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4250e0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x444624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x44]
push eax
call fcn.00401240
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x404d0c
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 4], 2
test eax, eax
je 0x404d68
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
test ecx, ecx
je 0x404d9d
jmp 0x404d5f
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x404cec
cmp eax, 0x104
ja 0x404cec
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x68]
cmp ax, 9
je 0x404d42
cmp ax, 6
mov eax, str.spoolDRIVERSw32x86
jne 0x404d47
mov eax, str.spoolDRIVERSx64
push eax
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x404cec
mov edi, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x404cf1
mov eax, dword [ecx]
lea edx, [ebp - 0x44]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x404d80
mov esi, dword [ecx]
lea eax, [ebp - 0x40]
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call int.0041284a
mov esp, ebp
pop ebp
ret
call fcn.00412550
int3
Function at 0x405350
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x444624]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004140a0
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x1c
push eax
push fcn.00405350
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
ja 0x4053eb
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x104
ja 0x4053eb
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 int.0041284a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call int.0041284a
mov esp, ebp
pop ebp
ret
Function at 0x406610
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4252dd
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x444624]
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 0x406670
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 int.0041284a
mov esp, ebp
pop ebp
ret
xor esi, esi
mov ebx, 0x406a10
test edi, edi
mov eax, 0x406d90
cmovne ebx, eax
jne 0x4066ad
push 0x115c1
push str.GIF89a
call fcn.00409150
mov esi, eax
add esp, 8
test esi, esi
jne 0x4066ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
or ecx, 0xffffffff
test eax, eax
cmovne ecx, eax
mov eax, ecx
jmp 0x406654
mov eax, dword [ebp + 8]
test al, 1
je 0x4066bb
mov eax, 0x4068f0
jmp 0x4066d3
test al, 2
mov ecx, 0x406980
mov eax, 0
cmovne eax, ecx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x4066e3
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 0x4067b2
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 0x406749
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 0x406742
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 0x406654
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call fcn.0040a1d0
add esp, 4
test eax, eax
setne cl
test eax, eax
jne 0x40676a
test cl, cl
je 0x406764
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 0x4067b0
cmp dword [ebp - 0x3c], 0x103
je 0x4067b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne cl
test eax, eax
jne 0x4067a6
lea esp, [esp]
test cl, cl
je 0x4067a0
mov dword [eax], eax
mov edi, dword [ebp - 0x3c]
jmp 0x40672a
jmp 0x4067b0
push 0x80004005
call fcn.00402e30
int3
Function at 0x40b0e0
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 0x40b149
cmp word [ebp + 0x14], 0xffff
jne 0x40b149
call edi
cmp eax, 0x50
je 0x40b129
call edi
cmp eax, 0x20
jne 0x40b149
push esi
call fcn.0040d2a0
add esp, 4
test eax, eax
je 0x40b149
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 0x40b163
call edi
push eax
push esi
push dword [ebp + 0xc]
push 0x4273e8
call fcn.004017c0
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x14

Function at 0x40c090
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425780
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x444624]
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, ecx
mov dword [ebp - 0x22c], eax
mov ebx, dword [eax + 4]
mov ecx, dword [ebp + 8]
or ebx, 0x2001f
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
lea edx, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push edx
push ebx
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x21c]
test esi, esi
jne 0x40c21e
xor esi, esi
test eax, eax
je 0x40c134
push eax
call edi
mov esi, eax
mov eax, dword [ebp - 0x224]
and ebx, 0x300
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ebx
test esi, esi
jne 0x40c21e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x234]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0x100
push ecx
lea ecx, [ebp - 0x210]
push ecx
push esi
push eax
call ebx
test eax, eax
jne 0x40c1d7
jmp 0x40c190
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040c090
mov esi, eax
test esi, esi
jne 0x40c218
lea eax, [ebp - 0x234]
mov dword [ebp - 0x220], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x21c]
call ebx
test eax, eax
je 0x40c190
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x40c1ee
push eax
call edi
mov dword [ebp - 0x21c], 0
push dword [ebp - 0x228]
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x218], 0
call fcn.0040b550
mov ecx, dword [ebp - 0x21c]
mov esi, eax
test ecx, ecx
je 0x40c225
push ecx
jmp 0x40c223
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x40c225
push eax
call edi
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 int.0041284a
mov esp, ebp
pop ebp
ret 4