joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401200
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
dec esi
add edi, 0x46
not edx
and eax, 0xb6
dec eax
mov edx, 0x68
sbb edx, 0x8a
sub ebx, 0xa8
neg edi
rcr edi, 0x68
sbb edx, 0xe4
not edx
neg edi
sub edi, 0xaf
and edx, 0x74
bswap edi
ror edi, 0x79
inc eax
neg eax
inc edi
bswap ebx
bswap ebx
imul edi
inc edx
or edx, 0x7c
rcr edx, 0xaa
dec esi
sbb eax, 0xe2
add ebx, 0xc3
add eax, 0x95
bswap edi
and edi, 0xec
bswap eax
not ebx
imul eax
sub edi, 0x33
neg edx
neg edx
neg eax
or edi, 0x2b
add esi, 0xeb
ror ebx, 0x9d
dec edx
ror edx, 0x4a
add ebx, 0xaa
bswap ebx
and ebx, 8
neg edi
inc ebx
or edx, 0xf9
xor ecx, ecx
xor edi, edi
imul eax
rcr edi, 0xcf
inc esi
neg esi
sub ebx, 0xf9
inc ebx
neg edi
and edx, 0xfd
imul edx
rcl eax, 0xe
rol ebx, 0x1e
neg eax
inc eax
imul edi
dec ebx
not ebx
rcl esi, 4
rcl ebx, 0x4c
bswap edx
sub edx, 0x71
rcr ebx, 0x33
bswap edi
imul edx
imul edi
imul esi
bswap ebx
bswap ebx
rcr edx, 0xdc
bswap eax
rcl ebx, 0xeb
rol ebx, 0xf8
rcr edx, 0xdf
bswap eax
inc edi
bswap eax
not edi
imul eax
imul esi
dec eax
sub eax, 0xbd
inc esi
bswap edx
not eax
mov edi, 0xf4
bswap edx
rcl esi, 0x66
rcr edx, 0x4f
bswap ebx
bswap ebx
inc ebx
mov ecx, dword [ebp + 0xc]
neg edi
or esi, 0xf4
neg eax
sbb edx, 0xd8
neg edi
and esi, 0x8c
dec edi
and esi, 0x5b
sub ebx, 0xd1
neg edi
dec esi
rcr esi, 0xc2
inc eax
not edx
neg edi
sub edx, 0x15
rol edi, 0x98
imul edx
mov edx, 0x7c
rol ebx, 0x61
mov edx, 0x5c
rcl edi, 0x12
bswap ebx
sbb esi, 0x87
imul edi
inc esi
add edi, 0xec
rol edi, 0xd
dec eax
inc edx
or eax, 0xe2
bswap eax
rol esi, 0xfe
neg edx
not esi
rcr edx, 0x27
bswap edi
dec edx
not edx
sub edx, 0xb1
dec edi
inc esi
sub eax, 0xa0
imul eax
rol edx, 0xc0
dec edx
mov eax, 0x3f
and edi, 0x85
bswap eax
and eax, 0x9b
mov edi, dword [ebp + 8]
mov esi, eax
xor esi, ebx
xor ebx, eax
not byte [edi]
xor eax, eax
xor eax, esi
mov eax, ebx
xor eax, esi
mov eax, ebx
xor eax, esi
xor ebx, eax
mov ebx, ebx
xor esi, eax
add byte [edi], 0x87
mov esi, esi
mov eax, eax
mov ebx, ebx
xor esi, ebx
mov ebx, ebx
mov ebx, esi
xor ebx, eax
xor eax, esi
xor eax, eax
sub byte [edi], 0x54
mov ebx, ebx
xor ebx, eax
mov ebx, ebx
xor esi, esi
xor esi, ebx
mov esi, ebx
mov esi, eax
mov ebx, eax
mov ebx, eax
imul byte [edi]
inc edi
loop 0x4013ba
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404f65
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x448200]
jne 0x404f6f
repz ret
jmp fcn.00407300
Function at 0x4055d5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404385
and dword [ebp - 4], 0
cmp dword [0x449390], 0
mov ebx, eax
jne 0x405686
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405737
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405737
push eax
call fcn.00404313
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x449390], eax
call esi
push eax
call fcn.00404313
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x449394], eax
call esi
push eax
call fcn.00404313
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x449398], eax
call esi
push eax
call fcn.00404313
pop ecx
mov dword [0x4493a0], eax
test eax, eax
je 0x405686
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404313
pop ecx
mov dword [0x44939c], eax
mov eax, dword [0x44939c]
cmp eax, ebx
je 0x4056de
cmp dword [0x4493a0], ebx
je 0x4056de
push eax
call fcn.0040438e
push dword [0x4493a0]
mov esi, eax
call fcn.0040438e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4056de
test edi, edi
je 0x4056de
call esi
test eax, eax
je 0x4056d5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4056d5
test byte [ebp - 0xc], 1
jne 0x4056de
or dword [ebp + 0x10], 0x200000
jmp 0x405717
mov eax, dword [0x449394]
cmp eax, ebx
je 0x405717
push eax
call fcn.0040438e
pop ecx
test eax, eax
je 0x405717
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405717
mov eax, dword [0x449398]
cmp eax, ebx
je 0x405717
push eax
call fcn.0040438e
pop ecx
test eax, eax
je 0x405717
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x449390]
call fcn.0040438e
pop ecx
test eax, eax
je 0x405737
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405739
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d38
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x568e68
call fcn.004f85f0
push ecx
mov eax, dword [0x64a758]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x20], eax
mov eax, dword [0x64a758]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x30], eax
mov eax, dword [0x64a758]
mov dword [esi + 0x34], eax
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 2
call fcn.00401dd7
push 4
mov edi, 0x6524d4
pop eax
lea ecx, [esi + 0x20]
push edi
mov byte [ebp - 4], 3
mov dword [esi], 0x57e8d4
mov dword [esi + 4], 1
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
call fcn.0054f7db
push edi
lea ecx, [esi + 0x30]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0054f7db
push edi
lea ecx, [esi + 0x34]
call fcn.0054f7db
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x38], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x401e97
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x568ed8
call fcn.004f85f0
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x57e8d4
and dword [ebp - 4], 0
lea edi, [esi + 0x3c]
mov dword [ebp - 0x14], edi
mov dword [edi], 0x57e8d8
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 3
call fcn.0054f644
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 2
call fcn.0054f644
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 1
call fcn.0054f644
and byte [ebp - 4], 0
lea ecx, [esi + 0x30]
call fcn.0054f644
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x20]
call fcn.0054f644
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x401ea3
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x568ed8
call fcn.004f85f0
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x57e8d4
and dword [ebp - 4], 0
lea edi, [esi + 0x3c]
mov dword [ebp - 0x14], edi
mov dword [edi], 0x57e8d8
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 3
call fcn.0054f644
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 2
call fcn.0054f644
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 1
call fcn.0054f644
and byte [ebp - 4], 0
lea ecx, [esi + 0x30]
call fcn.0054f644
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x20]
call fcn.0054f644
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x412e6f
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x569eac
call fcn.004f85f0
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x14]
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x10], esi
call fcn.0054f6b8
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp + 0x10]
add eax, 0xffffffed
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
cmp eax, 0xffffffff
jne 0x412f28
push dword [ebp + 0x14]
push edi
push 0x1057
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp + 0x18], edi
mov dword [ebx], eax
je 0x412edc
mov esi, dword [ebp - 0x18]
mov ecx, esi
sub ecx, eax
sub ecx, 0xc
mov dword [ebp - 0x20], ecx
jmp 0x412ee6
mov ecx, dword [ebp - 0x20]
lea esi, [eax + ecx + 0xc]
mov dword [ebp - 0x18], esi
mov eax, esi
push 4
sub eax, ecx
pop edi
mov dword [ebp + 0x10], eax
cdq
idiv edi
test edx, edx
je 0x412f22
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 0x10]
je 0x412f13
add eax, edi
push edi
cdq
pop ecx
idiv ecx
mov ecx, esi
shl eax, 2
sub ecx, eax
mov dword [ebp - 0x20], ecx
jmp 0x412f22
add eax, 4
push 4
cdq
pop esi
idiv esi
lea esi, [ecx + eax*4]
mov dword [ebp - 0x18], esi
sub esi, ecx
mov dword [ebx], esi
jmp 0x412f3f
cmp dword [ebp + 0x18], edi
je 0x412f37
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov dword [ebp - 0x20], ecx
jmp 0x412f3f
mov ecx, dword [ebp - 0x20]
add eax, ecx
mov dword [ebp - 0x18], eax
sub esp, 0x10
lea esi, [ebp - 0x20]
mov edi, esp
mov ecx, dword [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
push esi
call fcn.00412deb
mov eax, dword [esi]
push 0x202020
mov ecx, esi
call dword [eax + 0x30]
dec dword [ebp - 0x14]
mov edx, dword [esi]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x14]
lea edi, [ebp - 0x20]
push 0x8825
mov ecx, dword [eax - 8]
push edi
push ecx
push eax
mov ecx, esi
call dword [edx + 0x68]
mov eax, dword [esi]
push dword [ebp + 0x18]
mov ecx, esi
call dword [eax + 0x30]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
neg ecx
sbb ecx, ecx
or dword [ebp - 4], 0xffffffff
and ecx, 0xfffffffe
add ecx, 6
add ecx, dword [ebx]
add dword [eax], ecx
lea ecx, [ebp + 0x14]
call fcn.0054f644
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x18
Function at 0x41af19
Capabilities:
Check os version

Disassembly:
mov eax, 0x56a6f3
call fcn.004f85f0
sub esp, 0x118
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x1c]
mov esi, ecx
mov dword [ebp - 0x10], esi
push ebx
call fcn.00554532
mov eax, dword [0x64a758]
mov dword [ebp - 4], ebx
mov dword [esi + 0x64], eax
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
mov dword [esi], 0x583450
jne 0x41af9f
mov edi, 0x114
lea eax, [ebp - 0x124]
push edi
push ebx
push eax
call fcn.004f8610
add esp, 0xc
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x41af98
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x41af9f
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.004f926e
cmp eax, ebx
pop ecx
mov dword [esi + 0x5c], eax
jne 0x41afb4
call fcn.0054d1d9
push dword [ebp + 0x20]
mov ecx, esi
push ebx
call fcn.0041b179
push eax
call fcn.004f8610
push 0x200002
call fcn.0054fc33
mov dword [esi + 0xe8], eax
mov word [eax], bx
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [esi + 0x60], eax
lea edi, [esi + 0x68]
neg eax
sbb eax, eax
mov ecx, esi
add eax, 0x7005
mov word [edi], bx
mov dword [esi + 0xec], ebx
mov dword [esi + 0x3c], eax
call fcn.0041b179
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
mov ecx, esi
call fcn.0041b179
mov ecx, dword [esi + 0xe8]
mov dword [eax + 0x1c], ecx
mov ecx, esi
call fcn.0041b179
mov ecx, esi
mov dword [eax + 0x20], 0x100000
call fcn.0041b179
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x3c], ecx
mov ecx, esi
call fcn.0041b179
mov ecx, esi
mov dword [eax + 0x24], edi
call fcn.0041b179
mov ecx, esi
mov dword [eax + 0x28], 0x40
call fcn.0041b179
mov ecx, dword [ebp + 0x14]
add eax, 0x34
or ecx, 0x880020
or dword [eax], ecx
test byte [ebp + 0x14], 0x40
je 0x41b071
mov ecx, esi
call fcn.0041b179
add eax, 0x34
and byte [eax + 2], 0x7f
call fcn.00563cab
mov edi, dword [eax + 0xc]
mov ecx, esi
call fcn.0041b179
mov ecx, esi
mov dword [eax + 8], edi
call fcn.0041b179
cmp dword [ebp + 0x10], ebx
mov dword [eax + 0x44], 0x41ada2
je 0x41b0aa
push 0x100000
push dword [ebp + 0x10]
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x18], ebx
je 0x41b0e9
push dword [ebp + 0x18]
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.0054f7db
push ebx
mov ecx, edi
call fcn.0054fa89
push 0x7c
push eax
call fcn.004f9245
pop ecx
cmp eax, ebx
pop ecx
je 0x41b0dc
mov word [eax], bx
push 0x7c
add eax, 2
jmp 0x41b0c6
mov edi, dword [esi + 0x64]
mov ecx, esi
call fcn.0041b179
mov dword [eax + 0xc], edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c
Function at 0x41c944
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x56a8b0
call fcn.004f85f0
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0054f6b8
mov eax, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [eax - 8], edi
jne 0x41c97e
push eax
mov ecx, esi
call fcn.00552f3c
or ebx, 0xffffffff
jmp 0x41ca10
mov edx, dword [esi]
push eax
push edi
mov ecx, esi
call dword [edx + 0xe0]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41c9f0
mov eax, dword [esi]
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
mov ecx, esi
call dword [eax + 0xd4]
push ebx
mov ecx, esi
call fcn.0054e51b
cmp dword [ebp - 0x10], edi
jge 0x41c9da
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c9da
push edi
push 1
push dword [ebp + 8]
call fcn.0041f498
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x10]
push dword [ebp + 8]
push edi
call dword [eax + 0xd8]
jmp 0x41c9fe
push dword [ebp - 0x18]
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0xf0]
mov ebx, eax
push edi
push ebx
push 0x14e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0054f644
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x41da33
Capabilities:
Find taskbar

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
push edi
push edi
call esi
cmp eax, edi
jne 0x41da4f
xor eax, eax
jmp 0x41da59
push edi
push str.TrayNotifyWnd
push edi
push eax
call esi
pop edi
pop esi
ret

Function at 0x41dd70
Capabilities:
Read clipboard data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x6524d4
mov ecx, edi
call fcn.0054f7db
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x41dda2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x41dda6
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
jmp 0x41ddcd
push eax
mov ecx, edi
call fcn.0054f7db
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [esp + 0x10], 0
je 0x41ddca
mov ecx, edi
call fcn.0054ca0b
mov ecx, edi
call fcn.0054c97f
push 1
pop eax
pop edi
pop esi
ret 8
Function at 0x41de8a
Capabilities:
Copy file

Disassembly:
mov eax, 0x56aa84
call fcn.004f85f0
mov eax, 0x1024
call fcn.004f8b10
push ebx
lea ecx, [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.0054f6b8
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 4], ebx
jne 0x41deda
push dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
call fcn.0041ecb5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0054f78b
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.0054f644
push dword [ebp - 0x10]
call fcn.0041ef2a
cmp eax, 0xffffffff
pop ecx
jne 0x41deef
push 0xfffffffffffffffe
jmp 0x41dfb5
push esi
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x830]
push dword [ebp + 8]
push eax
call fcn.004f8668
lea eax, [ebp - 0x830]
push eax
call fcn.004f8972
mov word [ebp + eax*2 - 0x82e], bx
lea eax, [ebp - 0x830]
push 0x7c
push eax
call fcn.004f9245
add esp, 0x18
cmp eax, ebx
je 0x41df40
mov word [eax], bx
add eax, 2
push 0x7c
push eax
call fcn.004f9245
pop ecx
pop ecx
jmp 0x41df2a
push esi
lea eax, [ebp - 0x1030]
push dword [ebp + 0xc]
push eax
call fcn.004f8668
lea eax, [ebp - 0x1030]
push eax
call fcn.004f8972
mov word [ebp + eax*2 - 0x102e], bx
push 0x1e
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.004f8610
mov eax, dword [ebp + 0x18]
add esp, 0x1c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x830]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1030]
mov dword [ebp - 0x24], eax
mov ax, word [ebp + 0x14]
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x2c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop esi
je 0x41dfae
or ebx, 0xffffffff
jmp 0x41dfb6
cmp dword [ebp - 0x1e], ebx
je 0x41dfb6
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0054f644
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41e083
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x3ff
lea eax, [ebp - 0x820]
push dword [ebp + 8]
push eax
call fcn.004f8668
lea eax, [ebp - 0x820]
push eax
call fcn.004f8972
and word [ebp + eax*2 - 0x81e], 0
push 0x1e
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.004f8610
mov eax, dword [ebp + 0x10]
add esp, 0x1c
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x41e0f6
or eax, 0xffffffff
leave
ret
xor eax, eax
cmp dword [ebp - 0xe], eax
setne al
leave
ret
Function at 0x41e982
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
push esi
jne 0x41e9b0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
neg eax
sbb eax, eax
inc eax
jmp 0x41e9ff
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x41e9fd
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41e9fd
test esi, esi
jne 0x41e9fd
push 1
pop eax
jmp 0x41e9ff
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x41ea04
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push edi
push dword [ebp + 0xc]
call fcn.004f898f
pop ecx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
test eax, eax
je 0x41ea80
and word [eax], 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41ea80
lea eax, [ebp - 0x20c]
xor edi, edi
push 0x105
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x41ea5d
push 1
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x41ea80
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x5c
push esi
call fcn.004f93a8
pop ecx
pop ecx
jmp 0x41ea24
push esi
call fcn.004f8d44
pop ecx
push 1
pop eax
pop edi
pop esi
leave
ret 8
Function at 0x41eab1
Capabilities:
Get file version info

Disassembly:
mov eax, 0x56ac14
call fcn.004f85f0
sub esp, 0x50
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, edi
je 0x41eb53
mov esi, 0x584258
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
jbe 0x41eaf8
push ebx
lea ecx, [ebp - 0x28]
call fcn.0041ebc2
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41eb3f
push 0x34
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.004f8610
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x18]
push eax
push 0x5bbf9c
push dword [ebp - 0x20]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41eb69
cmp dword [ebp - 0x14], 0x34
je 0x41eb58
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], edi
mov dword [ebp - 0x28], esi
je 0x41eb53
lea ecx, [ebp - 0x28]
call fcn.0041ec00
or eax, 0xffffffff
jmp 0x41eba1
push 0x34
lea eax, [ebp - 0x5c]
push dword [ebp - 0x18]
push eax
call fcn.004f8f10
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp + 0xc]
shr ecx, 0x10
mov dword [eax], ecx
or dword [ebp - 4], 0xffffffff
movzx ecx, word [ebp - 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x50]
shr ecx, 0x10
cmp dword [ebp - 0x24], edi
mov dword [eax + 8], ecx
movzx ecx, word [ebp - 0x50]
mov dword [eax + 0xc], ecx
mov dword [ebp - 0x28], esi
je 0x41eb9f
lea ecx, [ebp - 0x28]
call fcn.0041ec00
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41f115
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x56acbf
call fcn.004f85f0
sub esp, 0x10
and dword [ebp - 0x1c], 0
push ebx
push esi
push edi
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
call fcn.0054f6b8
push 1
lea ecx, [ebp - 0x14]
pop ebx
push 0x2e
mov dword [ebp - 4], ebx
call fcn.0054c9c8
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.0054f6b8
mov eax, dword [0x64a758]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
mov edi, str._s_s._s
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0054c8d9
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x41f196
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.0054f3b1
mov dword [ebp - 0x1c], ebx
jmp 0x41f1ec
push ebx
mov dword [ebp - 0x18], ebx
push dword [ebp + 0x10]
mov ebx, str._s___d_
lea eax, [ebp + 0x14]
push ebx
push eax
call fcn.0054c8d9
add esp, 0x10
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0054c8d9
add esp, 0x14
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x41f1d9
inc dword [ebp - 0x18]
push dword [ebp - 0x18]
push dword [ebp + 0x10]
jmp 0x41f1a2
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.0054f3b1
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0054f644
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call fcn.0054f644
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0054f644
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret