joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a170
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2000
call fcn.004a0d60
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [esi]
test edi, edi
je 0x40a1a5
mov ebx, dword [esp + 0x2010]
test ebx, ebx
je 0x40a1a5
lea eax, [esp + 0xc]
test eax, eax
jne 0x40a1b3
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2000
ret 4
push ebp
push edi
lea ecx, [esp + 0x14]
push 0x1000
push ecx
push 0
push str.PageState
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x10], 0
jne 0x40a1d9
xor eax, eax
jmp 0x40a231
mov ebp, dword [sym.imp.MSVCRT.dll__wcsnicmp]
push 0x20
lea edx, [esp + 0x14]
push str.Hide
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x40a1fb
mov eax, 1
jmp 0x40a231
push 0x20
lea eax, [esp + 0x14]
push str.Minimized
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x40a217
mov eax, 2
jmp 0x40a231
push 0x20
lea ecx, [esp + 0x14]
push str.Smart
push ecx
call ebp
add esp, 0xc
neg eax
sbb eax, eax
and al, 0xfd
add eax, 3
mov edx, dword [esi + 0x1c]
push edi
push 1
push str.ShowCancelButton
push ebx
mov dword [edx + 0x164], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [esi + 0x1c]
xor ecx, ecx
cmp eax, 1
pop ebp
sete cl
mov dword [edx + 0x168], ecx
mov esi, dword [esi + 0x1c]
cmp dword [esi + 0x164], 1
jne 0x40a271
mov dword [esi + 0x164], 2
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2000
ret 4

Function at 0x40a290
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2000
call fcn.004a0d60
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [esi]
test edi, edi
je 0x40a2c5
mov ebp, dword [esp + 0x2010]
test ebp, ebp
je 0x40a2c5
lea eax, [esp + 0xc]
test eax, eax
jne 0x40a2d3
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x2000
ret 4
push ebx
push edi
lea ecx, [esp + 0x14]
push 0x1000
push ecx
push 0
push str.PageState
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x10], 0
jne 0x40a2f9
xor eax, eax
jmp 0x40a351
mov ebx, dword [sym.imp.MSVCRT.dll__wcsnicmp]
push 0x20
lea edx, [esp + 0x14]
push str.Hide
push edx
call ebx
add esp, 0xc
test eax, eax
jne 0x40a31b
mov eax, 1
jmp 0x40a351
push 0x20
lea eax, [esp + 0x14]
push str.Minimized
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x40a337
mov eax, 2
jmp 0x40a351
push 0x20
lea ecx, [esp + 0x14]
push str.Smart
push ecx
call ebx
add esp, 0xc
neg eax
sbb eax, eax
and al, 0xfd
add eax, 3
mov edx, dword [esi + 0x1c]
push edi
push 0
push str.ShowCancelButton
push ebp
mov dword [edx + 0x16c], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [esi + 0x1c]
xor ecx, ecx
cmp eax, 1
pop ebx
sete cl
pop edi
pop esi
mov dword [edx + 0x170], ecx
mov eax, 1
pop ebp
add esp, 0x2000
ret 4
Function at 0x40b910
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.004a0d60
push ebx
push ebp
push esi
mov esi, dword [esp + 0x201c]
test esi, esi
push edi
je 0x40ba04
mov ebx, dword [esp + 0x2024]
test ebx, ebx
je 0x40ba04
mov ebp, dword [esp + 0x2028]
cmp ebp, 0x80
jl 0x40ba04
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40ba04
cmp eax, 0x1fff
ja 0x40ba04
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40ba04
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x24]
push 0x4c07a4
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ba04
mov ecx, ebp
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [eax + 0xc]
mov cx, word [eax + 0xc]
shr edx, 0x10
push ecx
push edx
mov edx, dword [eax + 8]
xor ecx, ecx
mov cx, word [eax + 8]
shr edx, 0x10
push ecx
push edx
push 0x4c078c
push ebx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200c
ret
Function at 0x40c360
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2004
call fcn.004a0d60
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x800
mov ebx, dword [esi]
xor eax, eax
lea edi, [esp + 0x14]
test ebx, ebx
rep stosd dword es:[edi], eax
je 0x40c396
mov ebp, dword [esp + 0x2018]
test ebp, ebp
je 0x40c396
lea eax, [esp + 0x14]
test eax, eax
jne 0x40c3a5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2004
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebx
lea ecx, [esp + 0x18]
push 0x1000
push ecx
push 0
push str.BDProduct
push ebp
call edi
cmp word [esp + 0x14], 0
je 0x40c3fe
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea edx, [esp + 0x14]
push edx
call edi
mov dword [esp + 0x14], eax
mov ax, word [0x4cf81c]
push eax
lea ecx, [esp + 0x1c]
push 0x2c
push ecx
call fcn.00433090
mov edx, dword [esp + 0x20]
add esp, 0x10
push 1
push 0
push 1
jmp 0x40c4a5
push ebx
lea ecx, [esp + 0x18]
push 0x1000
push ecx
push 0
push str.FixedProduct
push ebp
call edi
cmp word [esp + 0x14], 0
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
je 0x40c459
lea edx, [esp + 0x14]
push edx
call edi
mov dword [esp + 0x14], eax
mov ax, word [0x4cf81c]
push eax
lea ecx, [esp + 0x1c]
push 0x2c
push ecx
call fcn.00433090
mov edx, dword [esp + 0x20]
add esp, 0x10
lea eax, [esp + 0x14]
mov ecx, esi
push 0
push 1
push 1
push edx
push eax
call fcn.0040adc0
push ebx
lea ecx, [esp + 0x18]
push 0x1000
push ecx
push 0
push 0x4c1154
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x14], 0
je 0x40c4b2
lea edx, [esp + 0x14]
push edx
call edi
mov dword [esp + 0x14], eax
mov ax, word [0x4cf81c]
push eax
lea ecx, [esp + 0x1c]
push 0x2c
push ecx
call fcn.00433090
mov edx, dword [esp + 0x20]
add esp, 0x10
push 0
push 1
push 0
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, esi
call fcn.0040adc0
push ebx
lea ecx, [esp + 0x18]
push 0x1000
push ecx
push 0
push str.OptionalProductEx
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x14], 0
je 0x40c517
lea edx, [esp + 0x14]
push edx
call edi
mov edi, eax
mov ax, word [0x4cf81c]
push eax
lea ecx, [esp + 0x1c]
push 0x2c
push ecx
call fcn.00433090
add esp, 0x10
lea edx, [esp + 0x14]
mov ecx, esi
push 0
push 1
push 2
push edi
push edx
call fcn.0040adc0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2004
ret 4
mov ecx, dword [esi + 0x1c]
push 0
call fcn.004369a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2004
ret 4
Function at 0x40dbe0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a9b18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4c0080]
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], eax
xor edi, edi
lea ecx, [esi + 4]
mov dword [esp + 0x18], edi
call fcn.00434680
mov ecx, dword [0x4c0080]
mov dword [esi + 0x14], ecx
mov edx, dword [0x4c0080]
mov dword [esi + 0x18], edx
mov eax, dword [0x4c0080]
mov dword [esi + 0x1c], eax
mov ecx, dword [0x4c0080]
mov dword [esi + 0x20], ecx
mov edx, dword [0x4c0080]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], reloc.OLEAUT32.dll_SysReAllocString
mov eax, dword [0x4c0080]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x4c0080]
mov al, byte [esp + 0xb]
mov dword [esi + 0x30], ecx
mov edx, dword [0x4c0080]
mov dword [esi + 0x34], edx
mov byte [esi + 0x38], al
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov ecx, dword [0x4c0080]
mov dword [esi + 0x48], ecx
mov edx, dword [0x4c0080]
mov dword [esi + 0x4c], edx
mov eax, dword [0x4c0080]
mov dword [esi + 0x50], eax
mov ecx, dword [0x4c0080]
mov dword [esi + 0x54], ecx
mov edx, dword [0x4c0080]
mov dword [esi + 0x58], edx
mov eax, dword [0x4c0080]
mov dword [esi + 0x5c], eax
mov ecx, dword [0x4c0080]
mov al, byte [esp + 0xb]
mov dword [esi + 0x60], ecx
mov edx, dword [0x4c0080]
mov dword [esi + 0x64], edx
mov byte [esi + 0x68], al
mov eax, 0x14
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], 0x3e8
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], 1
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov ecx, dword [0x4c0080]
or eax, 0xffffffff
mov dword [esi + 0xa8], ecx
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], 0xb4
mov edx, dword [0x4c0080]
mov eax, 0x6400000
mov dword [esi + 0xb8], edx
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc8], eax
mov al, byte [esp + 0xb]
mov dword [esi + 0xc4], edi
mov dword [esi + 0xcc], edi
mov ecx, dword [esp + 0x10]
mov byte [esi + 0xd0], al
mov dword [esi + 0xd4], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0xdc], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40efd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a9cd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov ebx, ecx
xor esi, esi
or eax, 0xffffffff
mov dword [ebx + 4], esi
mov dword [ebx + 8], eax
mov ecx, dword [0x4c0080]
mov dword [esp + 0xc], ebx
mov dword [ebx + 0xc], ecx
mov edx, dword [0x4c0080]
mov dword [esp + 0x18], esi
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x30], 0xb4
mov ecx, dword [0x4c0080]
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x38], esi
mov edx, dword [0x4c0080]
mov dword [ebx + 0x50], edx
mov eax, dword [0x4c0080]
mov dword [ebx + 0x54], eax
mov cl, byte [esp + 0x20]
mov dword [ebx + 0x70], esi
mov byte [ebx + 0x6c], cl
mov dword [ebx + 0x74], esi
mov dword [ebx + 0x78], esi
mov edx, dword [0x4c0080]
mov dword [ebx + 0x7c], edx
mov eax, 0x4cf75c
mov byte [esp + 0x18], 7
test eax, eax
mov dword [ebx], vtable.CDownloadTask.0
jne 0x40f07e
xor ebp, ebp
jmp 0x40f08b
push 0x4cf75c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov eax, dword [ebx + 0x34]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x40f09e
cmp ebp, dword [eax - 4]
jle 0x40f101
mov edx, dword [0x4c0084]
add eax, 0xfffffff4
cmp eax, edx
je 0x40f0ce
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40f0c5
mov ecx, dword [ebx + 0x34]
sub ecx, 0xc
push ecx
call fcn.0049c000
add esp, 4
mov edx, dword [0x4c0080]
mov dword [ebx + 0x34], edx
cmp ebp, esi
jne 0x40f0d9
mov eax, dword [0x4c0080]
jmp 0x40f0fe
lea ecx, [ebp + ebp + 0xe]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, esi
je 0x40f136
mov dword [eax], 1
mov word [eax + ebp*2 + 0xc], si
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
add eax, 0xc
mov dword [ebx + 0x34], eax
lea eax, [ebp + ebp]
lea edx, [ebp + ebp + 2]
cmp edx, eax
jb 0x40f129
mov ecx, eax
push edi
mov edi, dword [ebx + 0x34]
mov edx, ecx
mov esi, 0x4cf75c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
pop edi
mov ecx, dword [ebx + 0x34]
mov dword [ecx - 8], ebp
mov edx, dword [ebx + 0x34]
mov word [edx + eax], si
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x68], esi
mov dword [ebx + 0x5c], esi
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x64], esi
pop esi
mov dword [ebx + 0x58], 1
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40f180
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4a9d48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CDownloadTask.0
mov eax, dword [esi + 0x14]
mov dword [esp + 0x1c], 7
cmp eax, 0xffffffff
je 0x40f1cf
call fcn.0040f810
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x40f1cf
call fcn.004157b0
mov ecx, dword [esi + 0x68]
call fcn.00415110
mov edi, dword [esi + 0x70]
mov eax, dword [esi + 0x74]
cmp edi, eax
je 0x40f1ee
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi]
push eax
call ebx
mov eax, dword [esi + 0x74]
add edi, 4
cmp edi, eax
jne 0x40f1df
mov eax, dword [esi + 0x7c]
mov edx, dword [0x4c0084]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f21d
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f21d
mov eax, dword [esi + 0x7c]
sub eax, 0xc
push eax
call fcn.0049c000
add esp, 4
mov ebx, dword [esi + 0x74]
mov edi, dword [esi + 0x70]
cmp edi, ebx
mov byte [esp + 0x1c], 5
je 0x40f23c
push 0
mov ecx, edi
call fcn.0040ef00
add edi, 4
cmp edi, ebx
jne 0x40f22c
mov eax, dword [esi + 0x70]
push eax
call fcn.0049c000
xor edi, edi
add esp, 4
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov eax, dword [esi + 0x54]
mov ecx, dword [0x4c0084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40f27c
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f27c
mov eax, dword [esi + 0x54]
sub eax, 0xc
push eax
call fcn.0049c000
add esp, 4
mov eax, dword [esi + 0x50]
mov edx, dword [0x4c0084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f2a5
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f2a5
mov eax, dword [esi + 0x50]
sub eax, 0xc
push eax
call fcn.0049c000
add esp, 4
mov ecx, dword [esi + 0x38]
mov byte [esp + 0x1c], 2
cmp ecx, edi
je 0x40f2b6
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, dword [esi + 0x34]
mov edx, dword [0x4c0084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f2df
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f2df
mov edx, dword [esi + 0x34]
sub edx, 0xc
push edx
call fcn.0049c000
add esp, 4
mov eax, dword [esi + 0x10]
mov edx, dword [0x4c0084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f308
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f308
mov edx, dword [esi + 0x10]
sub edx, 0xc
push edx
call fcn.0049c000
add esp, 4
mov eax, dword [esi + 0xc]
mov edx, dword [0x4c0084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f331
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f331
mov edx, dword [esi + 0xc]
sub edx, 0xc
push edx
call fcn.0049c000
add esp, 4
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x410350
Capabilities:
Check if file exists
Delete file
Terminate process

Disassembly:
sub esp, 0x3c
push ebx
push esi
mov ebx, ecx
push edi
mov esi, dword [esp + 0x4c]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, 0xf
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
push esi
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x1c], str.open
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], 5
mov dword [esp + 0x24], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410421
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00439b00
add esp, 4
test eax, eax
je 0x410421
mov edx, dword [esp + 0x1c]
push edx
call fcn.00439c40
add esp, 4
test eax, eax
jne 0x410421
mov ecx, ebx
call fcn.0040f810
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0x4cf6f0
call fcn.004035d0
mov esi, dword [esp + 0x1c]
call fcn.004399a0
push eax
push esi
call fcn.00439a20
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x3c
ret 8
lea eax, [esp + 0xc]
push eax
call fcn.00412410
mov ecx, dword [esp + 0x48]
add esp, 4
neg eax
sbb eax, eax
pop edi
pop esi
and eax, ecx
pop ebx
add esp, 0x3c
ret 8
Function at 0x410540
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x2670
call fcn.004a0d60
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
call fcn.00410500
mov esi, eax
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x680]
rep stosd dword es:[edi], eax
mov ebx, 1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x680]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0x1000
push eax
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [esi + 0x28]
push eax
push ecx
push edx
mov dword [esp + 0x34], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [esp + 0x10], ebx
jne 0x41063b
cmp word [esp + 0x680], 0
je 0x41063b
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x41063b
lea eax, [esp + 0x680]
lea ebx, [esi + 0x24]
test eax, eax
jne 0x4105d5
xor ebp, ebp
jmp 0x4105e5
lea ecx, [esp + 0x680]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x4105f2
cmp ebp, dword [eax - 4]
jle 0x410605
mov ecx, ebx
call fcn.00404ac0
push ebp
mov ecx, ebx
call fcn.00404720
test eax, eax
je 0x41063b
lea eax, [ebp + ebp]
lea edx, [ebp + ebp + 2]
cmp edx, eax
jb 0x41062e
mov edi, dword [ebx]
mov ecx, eax
mov edx, ecx
lea esi, [esp + 0x680]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [edx + eax], 0
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x24]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x430]
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x41067f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esi + 0x60]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00410350
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2670
ret
Function at 0x410690
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x2668
call fcn.004a0d60
push ebx
push ebp
push esi
push edi
call fcn.00410500
mov esi, eax
xor ebp, ebp
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x67a]
mov word [esp + 0x678], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 1
lea eax, [esp + 0x10]
lea ecx, [esp + 0x678]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x1000
push eax
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [esi + 0x28]
push eax
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [esp + 0x14], edi
jne 0x410777
cmp word [esp + 0x678], bp
je 0x410777
cmp dword [esp + 0x10], ebp
jbe 0x410777
lea eax, [esp + 0x678]
lea ebx, [esi + 0x24]
test eax, eax
jne 0x410732
xor edi, edi
jmp 0x410742
lea ecx, [esp + 0x678]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00404a20
test eax, eax
je 0x410777
mov ecx, dword [ebx]
lea ebp, [edi + edi]
lea edx, [esp + 0x678]
push ebp
lea eax, [edi + edi + 2]
push edx
push eax
push ecx
call fcn.004039f0
mov edx, dword [ebx]
add esp, 0x10
mov dword [edx - 8], edi
mov eax, dword [ebx]
mov word [eax + ebp], 0
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x24]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x428]
lea edx, [esp + 0x18]
push ecx
push edx
call ebp
cmp eax, 0xffffffff
je 0x410801
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
cmp edi, eax
je 0x4107f1
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4107e7
push eax
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x1c]
push eax
push ecx
call ebx
lea edx, [esp + 0x428]
lea eax, [esp + 0x18]
push edx
push eax
call ebp
cmp eax, 0xffffffff
je 0x410801
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi + 0x40]
add edi, 4
cmp edi, eax
jne 0x4107b7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2668
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2668
ret
Function at 0x410d10
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
jne 0x410d1e
or eax, 0xffffffff
pop esi
ret
push 0
push 0
push 3
push 0
push 1
push 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x410d3c
or eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x410de0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
call fcn.00410db0
test eax, eax
jne 0x410dee
pop esi
ret
mov eax, dword [esi + 0x20]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esi + 0x1c], 3
mov eax, 1
pop esi
ret
Function at 0x411390
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4113df
cmp dword [esp + 0x10], 0x104
jl 0x4113df
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4113df
mov edx, dword [esp + 0xc]
push esi
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4120c0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x22c
push ebx
push esi
push edi
push 0
mov ebx, ecx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4120ea
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x22c
ret
mov ecx, 0x8a
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x412124
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x22c
ret
push ebp
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
cmp ebp, dword [esp + 0x18]
je 0x412155
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.00412190
test eax, eax
je 0x412155
mov edx, dword [esp + 0x18]
mov ecx, ebx
push edx
call fcn.004121f0
test eax, eax
jne 0x412166
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x41216b
jmp 0x41212f
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebp
test edi, edi
pop edi
pop esi
sete al
pop ebx
add esp, 0x22c
ret

Function at 0x412410
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af930
push 0x4a1048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x4124bb
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], ebx
cmp esi, ebx
je 0x412487
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412487
push esi
call fcn.00439b00
add esp, 4
test eax, eax
je 0x412487
push esi
call fcn.00439c40
add esp, 4
test eax, eax
jne 0x412487
call fcn.004399a0
push eax
push esi
call fcn.00439a20
add esp, 8
xor eax, eax
jmp 0x41248c
mov eax, 1
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x4124bb
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret