joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f1cfb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
jne 0x4f1d1e
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax], 1
mov dword [eax + 4], edi
jmp 0x4f1dbb
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push ebx
call fcn.004f1911
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4f1d41
push ebx
call fcn.00513787
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x4f1d97
mov esi, dword [ebp + 0x10]
xor eax, eax
inc eax
test esi, esi
cmovne eax, esi
push eax
call dword [0x641244]
mov dword [ebp - 4], eax
pop ecx
push ebx
test eax, eax
jne 0x4f1d6c
call fcn.00513787
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x4f1d97
push esi
push 1
push eax
call fcn.005144b1
push ebx
mov esi, eax
call fcn.00513787
add esp, 0x14
cmp esi, dword [ebp + 0x10]
je 0x4f1da0
push dword [ebp - 4]
call dword [0x641248]
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop ecx
mov dword [eax + 8], edi
mov dword [eax + 4], edi
jmp 0x4f1dba
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004f1ca6
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f93d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0x10]
mov ebx, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4f93f6
xor eax, eax
jmp 0x4f9455
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4f93f2
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4f93f2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x4f93f2
push edi
mov ecx, ebx
call fcn.004f8f2b
push dword [ebp + 0x10]
lea ecx, [ebx + 4]
push dword [ebp + 8]
call fcn.004f8f0d
mov ecx, ebx
mov dword [ebx], esi
call fcn.004f94b1
test eax, eax
jne 0x4f9454
xor ecx, ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], ecx
or dword [ebx], 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4f96eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
push 0xc
pop edi
mov eax, dword [esi]
sub eax, edi
mov dword [ebp - 4], ebx
push eax
call fcn.004c244f
mov dword [ebp + 0xc], eax
pop ecx
test eax, eax
je 0x4f9761
cmp dword [esi], edi
jbe 0x4f974b
movzx eax, word [ebx + 0x18]
mov ecx, dword [ebp - 4]
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
shr ebx, 8
xor bl, byte [eax + edi]
mov byte [ebp - 8], bl
push dword [ebp - 8]
call fcn.004f987e
mov eax, dword [ebp + 0xc]
mov byte [eax + edi - 0xc], bl
inc edi
mov ebx, dword [ebp - 4]
cmp edi, dword [esi]
jb 0x4f9714
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.004c221a
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
xor eax, eax
add dword [esi], 0xfffffff4
inc eax
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4f97ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xc
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
jae 0x4f97cd
xor eax, eax
jmp 0x4f9815
push edi
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
xor esi, esi
push ebx
movzx eax, word [ecx + 0x18]
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
shr ebx, 8
xor bl, byte [ebp + esi - 0x10]
mov byte [ebp - 0x14], bl
push dword [ebp - 0x14]
call fcn.004f987e
mov ecx, dword [ebp - 0x18]
mov byte [ebp + esi - 0x10], bl
inc esi
cmp esi, 0xc
jl 0x4f97d8
mov ecx, dword [ebp + 0x10]
xor eax, eax
shr ecx, 0x18
cmp byte [ebp - 5], cl
pop ebx
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c21c3
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4f987e
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x10]
xor eax, edx
mov esi, dword [edi + 0xc]
mov ecx, dword [edi + 0x18]
movzx eax, al
shr edx, 8
mov eax, dword [esi + eax*4]
xor eax, edx
mov dword [edi + 0x10], eax
movzx eax, al
add eax, dword [edi + 0x14]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 0x14], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [esi + eax*4]
mov dword [edi + 0x18], ecx
pop edi
pop esi
pop ebp
ret 4
Function at 0x4fa800
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push edi
xor edi, edi
cmp dword [0xa39a08], 0x40
jae 0x4fa8f8
mov ecx, dword [ebp + 8]
mov edx, 1
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
add eax, ecx
mov dword [ebp - 0x24], edi
push ebx
cmp eax, 0x80000000
mov ebx, 0xfff80000
push esi
lea esi, [eax - 0x7fff0000]
cmovb esi, edx
add ecx, dword [ebp + 0x14]
cmp ecx, 0x80000000
movups xmmword [ebp - 0x44], xmm0
lea eax, [ecx + 0x7ff80000]
cmovb ebx, eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], ebx
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, ebx
jae 0x4fa8f6
mov ebx, dword [0x5e7cf8]
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
je 0x4fa8c7
cmp dword [ebp - 0x10], 0x10000
jne 0x4fa8ba
mov eax, dword [ebp - 0x14]
cmp eax, 0x6c
jb 0x4fa8bd
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
jb 0x4fa8bd
lea eax, [ecx - 1]
xor edx, edx
add eax, esi
div ecx
push 0x20
imul eax, ecx
push 0x3000
push 0x6c
push eax
call dword [0x5e7cec]
mov edi, eax
test edi, edi
jne 0x4fa8cb
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add esi, eax
cmp esi, dword [ebp - 4]
jb 0x4fa873
test edi, edi
je 0x4fa8f6
xor eax, eax
nop dword [eax]
cmp dword [eax*4 + 0xa39908], 0
je 0x4fa8e9
inc eax
cmp eax, 0x40
jb 0x4fa8d0
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
inc dword [0xa39a08]
mov dword [eax*4 + 0xa39908], edi
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x52ef0a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052ebcd

Function at 0x533574
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00533234

Function at 0x533789
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053368e
Function at 0x12b59e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.DATA
lea edi, [esi - 0xb14000]
lea eax, [edi + 0xe6898c]
push dword [eax]
mov dword [eax], 0xce00f30e
push eax
push edi
jmp 0x12b5a0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x12b5a11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12b5a00
mov eax, 1
add ebx, ebx
jne 0x12b5a23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x12b5a34
jne 0x12b5a53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12b5a53
dec eax
add ebx, ebx
jne 0x12b5a40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x12b5a18
add ebx, ebx
jne 0x12b5a4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x12b5aa5
xor ecx, ecx
sub eax, 3
jb 0x12b5a6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x12b5ada
sar eax, 1
mov ebp, eax
jmp 0x12b5a76
add ebx, ebx
jne 0x12b5a76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12b5a44
inc ecx
add ebx, ebx
jne 0x12b5a84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12b5a44
add ebx, ebx
jne 0x12b5a91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x12b5a86
jne 0x12b5aa2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x12b5a86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x12b5ac4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x12b5ab6
jmp 0x12b5a06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x12b5ac4
add edi, ecx
jmp 0x12b5a06
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x49169
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x12b5ae6
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x12b5aeb
lea edi, [esi + 0xeab000]
mov eax, dword [edi]
or eax, eax
je 0x12b5b5c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xec5ba4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xec5ecc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x12b5b11
mov ecx, edi
jns 0x12b5b40
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xec5ed4]
or eax, eax
je 0x12b5b56
mov dword [ebx], eax
add ebx, 4
jmp 0x12b5b2e
call dword [esi + 0xec5ed0]
mov ebp, dword [esi + 0xec5ed8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x2b7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x12b5b90
sub esp, 0xffffff80
jmp 0xd63acd
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0x363a7973
nop
nop
nop
test eax, eax
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x21940df2
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x403e64
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push 0x34
mov eax, 0x46c0a9
call fcn.004492af
mov esi, ecx
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040eabd
pop ecx
pop ecx
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x403e8e
mov eax, dword [eax]
push str.84F426BD_908D_4E88_B771_8F126FC2FF49
push eax
lea eax, [ebp - 0x28]
push str.Global_s__s
push eax
call fcn.0040ecac
add esp, 0x10
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00408c9a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi], eax
test eax, eax
jne 0x403f18
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x403f18
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
cmp byte [0x49d082], 0
je 0x403f18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
movzx eax, byte [0x49d082]
push str.ApplicationInstaceGuard___using_CreateMutex._Last_Error:__d
push eax
call fcn.00410896
add esp, 0xc
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov cl, byte [0x49d082]
test cl, cl
je 0x403f3e
push eax
movzx ecx, cl
push str.ApplicationInstaceGuard___Acquired_lock_____d
push ecx
call fcn.00410896
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00408c9a
mov eax, esi
call fcn.00449259
ret 4
Function at 0x407e66
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x407e78
push 0xd
pop eax
jmp 0x407eaa
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x407e81
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x40c85d
Capabilities:
Create process on windows

Disassembly:
push 0x4c
mov eax, 0x46ce50
call fcn.004492af
mov ecx, dword [ecx + 0x80]
test ecx, ecx
je 0x40c968
lea eax, [ebp - 0x40]
push eax
call fcn.00405853
xor edi, edi
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], edi
jb 0x40c88d
mov eax, dword [eax]
push str._develop
push eax
lea eax, [ebp - 0x28]
push str._S_s
push eax
call fcn.0040ecac
add esp, 0x10
push edi
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00408c45
mov esi, 0x478234
push esi
call fcn.0040afe0
pop ecx
push eax
push edi
push esi
lea ecx, [ebp - 0x28]
call fcn.0040cbd1
test eax, eax
je 0x40c91a
mov esi, str.http:
push esi
call fcn.0040afe0
pop ecx
push eax
push edi
push esi
lea ecx, [ebp - 0x28]
call fcn.0040cbd1
test eax, eax
je 0x40c91a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push str.http:___s
push eax
call fcn.0040ecac
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.00404e69
push edi
push 1
lea ecx, [ebp - 0x58]
call fcn.00408c9a
mov cl, byte [0x49d082]
test cl, cl
je 0x40c941
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
movzx eax, cl
push str.Opening_developer_page:_url_S
push eax
call fcn.00410896
add esp, 0xc
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push edi
push edi
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00408c9a
call fcn.00449259
ret

Function at 0x40c96e
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, ecx
call fcn.00439bf2
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 0x74]
call esi
push 1
push dword [edi + 0x78]
call esi
push 1
push dword [edi + 0x7c]
call esi
push 0
push 0
push dword [edi + 0x58]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
ret

Function at 0x40df2c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40df46
test al, 0x10
je 0x40df46
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40e68f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x49d3d4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0044d990
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
mov ecx, dword [ebp - 4]
sbb al, al
xor ecx, ebp
inc al
call fcn.00449233
mov esp, ebp
pop ebp
ret

Function at 0x4100b2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
cmp ecx, dword [ebp + 0xc]
je 0x4100e4
push esi
movsx edx, byte [ecx]
mov esi, edi
mov eax, edi
shl esi, 6
shr eax, 2
add edx, 0x9e3779b9
add esi, eax
add edx, esi
xor edi, edx
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, dword [ebp + 0xc]
jne 0x4100c1
pop esi
mov eax, edi
pop edi
pop ebp
ret

Function at 0x410de8
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x46c272
call fcn.004492af
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x410ee8
cmp byte [ebx + 0x3d], 0
je 0x410ee8
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x410e22
xor al, al
jmp 0x410eea
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00411a12
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x410e80
sub eax, 1
je 0x410e84
dec eax
sub eax, 1
je 0x410ed6
xor bl, bl
jmp 0x410ed8
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x410ebc
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00453e0d
add esp, 0x10
cmp esi, eax
jne 0x410e7c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x410ed6
test esi, esi
jne 0x410e46
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004119b2
jmp 0x410e40
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408c45
mov al, bl
jmp 0x410eea
mov al, 1
call fcn.00449259
ret
Function at 0x4126fc
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x46d3dd
call fcn.004492af
mov esi, ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
cmp ecx, ebx
sete al
test al, al
je 0x412728
xor eax, eax
cmp ecx, ebx
cmovne eax, ecx
jmp 0x412889
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x412756
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x412756
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x412889
cmp dword [esi + 0x4c], 0
je 0x412887
mov ecx, esi
call fcn.004118e3
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x412786
push dword [esi + 0x4c]
mov esi, dword [ebp + 8]
push esi
call fcn.0040fccf
test al, al
pop ecx
pop ecx
cmovne ebx, esi
jmp 0x412887
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x14], 0xf
call fcn.00411a12
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
lea edx, [ebp - 0x28]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call dword [edi + 0x1c]
test eax, eax
js 0x41287b
cmp eax, 1
jg 0x412860
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x412831
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.00453e0d
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, eax
jne 0x41287b
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x40], eax
jne 0x41285b
test edx, edx
jne 0x4127b1
cmp dword [ebp - 0x18], 0x20
jae 0x41287b
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.004119b2
jmp 0x4127ae
mov ebx, dword [ebp + 8]
jmp 0x41287b
cmp eax, 3
jne 0x41287b
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.0040fccf
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408c45
mov eax, ebx
call fcn.00449259
ret 4
Function at 0x41393e
Capabilities:
Delete registry key

Disassembly:
push 0x24
mov eax, 0x46d5ad
call fcn.004492af
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test edi, edi
jne 0x413976
push str.Attempt_to_delete_a_null_key
lea ecx, [ebp - 0x1c]
call fcn.004043f7
push 0x4938d0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], vtable.std::runtime_error.0
push eax
call fcn.0044b7c4
push edi
lea ecx, [ebp - 0x28]
call fcn.00403a00
push 0
push 1
lea ecx, [ebp - 0x28]
mov esi, dword [eax + 0x10]
call fcn.00408c9a
test esi, esi
jne 0x413999
push str.Attempt_to_delete_an_empty_key
jmp 0x413959
cmp byte [0x4f0ad0], 0
push edi
push ebx
je 0x4139f2
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x413a38
cmp byte [0x49d082], 0
je 0x413a38
push 0
push ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.0041373a
push dword [eax]
movzx eax, byte [0x49d082]
and dword [ebp - 4], 0
push edi
push str.Failed_to_delete_key__S__S
push eax
call fcn.00410896
mov ecx, dword [ebp - 0x2c]
add esp, 0x1c
jmp 0x413a30
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jns 0x413a38
cmp byte [0x49d082], 0
je 0x413a38
lea eax, [ebp - 0x30]
push eax
call fcn.00413b46
push dword [eax]
movzx eax, byte [0x49d082]
push edi
push str.Failed_to_delete_key__S__S
push eax
mov dword [ebp - 4], 1
call fcn.00410896
mov ecx, dword [ebp - 0x30]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.0040e07f
call fcn.00449259
ret
Function at 0x4145ee
Capabilities:
Delete registry value

Disassembly:
push 0x40
mov eax, 0x46d7dc
call fcn.004492af
mov bl, byte [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], eax
mov al, byte [0x49d082]
test al, al
je 0x414630
push str.deleteCurVersionKeys
movzx eax, al
push 0x475418
push eax
call fcn.00410975
add esp, 0xc
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00414d81
pop ecx
pop ecx
cmp byte [0x4f0ac0], 0
mov byte [ebp - 4], 1
jne 0x41465f
mov esi, 0x478b08
push esi
call fcn.0040afe0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040928a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x20006
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x4c]
push eax
xor eax, eax
test bl, bl
sete al
add eax, 0x80000001
push eax
call fcn.00407323
test eax, eax
jne 0x4146fa
mov al, byte [0x49d082]
test al, al
je 0x4146a8
push str.deleteCurVersionKeys___key_Opened
movzx eax, al
push 0x475418
push eax
call fcn.00410975
add esp, 0xc
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.0041401d
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x4146bc
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push eax
push dword [ebp - 0x4c]
call esi
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00408c9a
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00413f9e
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x4146e8
mov eax, dword [eax]
push eax
push dword [ebp - 0x4c]
call esi
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00408c9a
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408c9a
lea ecx, [ebp - 0x4c]
call fcn.00405901
call fcn.00449259
ret

Function at 0x414714
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x46d811
call fcn.004492af
mov al, byte [0x49d082]
mov edi, str.deleteDesktopShortcut____S
mov esi, dword [ebp + 8]
test al, al
je 0x41473f
push esi
movzx eax, al
push edi
push eax
call fcn.00410896
add esp, 0xc
xor ebx, ebx
lea eax, [ebp - 0x28]
push ebx
push ebx
push ebx
push 6
push eax
call fcn.0040e1f3
add esp, 0x14
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x4147c6
call fcn.00406f56
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040da7d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push str._s_s.lnk
push eax
call fcn.00413a78
mov esi, dword [ebp - 0x2c]
push esi
call fcn.0040defa
add esp, 0x14
test al, al
je 0x4147be
mov al, byte [0x49d082]
test al, al
je 0x4147ae
push esi
movzx eax, al
push edi
push eax
call fcn.00410896
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
lea ecx, [esi - 0x10]
call fcn.0040e07f
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408c9a
mov al, bl
call fcn.00449259
ret