joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b0157
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x34]
lea eax, [esp + 8]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x2c], 1
call fcn.00408690
mov edi, dword [esp + 0x30]
mov ecx, esi
push edi
call fcn.00408230
cmp eax, dword [esi + 0xc]
jne 0x4083a1
mov eax, dword [esp + 8]
mov dword [esp + 0x10], edi
test eax, eax
mov dword [esp + 0x14], eax
je 0x40836c
mov edx, dword [eax]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
lea ecx, [esi + 4]
lea edx, [esp + 0x10]
mov byte [esp + 0x24], 2
push edx
push 1
push eax
call fcn.004087b0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x24], 1
test eax, eax
je 0x4083cb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4083cb
mov esi, dword [eax + 4]
mov ecx, dword [esp + 8]
cmp esi, ecx
je 0x4083cf
mov dword [eax + 4], ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4083c1
mov edx, dword [ecx]
push ecx
call dword [edx + 4]
mov ecx, dword [esp + 8]
test esi, esi
je 0x4083cf
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x2c]
test ecx, ecx
mov dword [esi], ecx
je 0x4083e3
mov edx, dword [ecx]
push ecx
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], 1
test ecx, ecx
mov byte [esp + 0x24], 0
je 0x4083fa
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10

Function at 0x408690
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
push edi
mov dword [esp + 0xc], ecx
mov eax, dword [ebp]
cmp eax, ebx
je 0x4086b0
mov dword [ebp], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x4086c3
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, ebx
jne 0x4086e6
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [esp + 0x14], ebx
jle 0x40870a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esp + 0x10]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x408752
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ebx
push ecx
push edx
push esi
push edi
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ebp
push eax
push esi
call fcn.00408560
push esi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x40a660
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40a672
pop esi
ret
mov ecx, esi
call fcn.00409e40
call fcn.004079b0
test eax, eax
je 0x40a689
push str.Product64
jmp 0x40a68e
push str.Product32
mov ecx, esi
call fcn.0040d1a0
mov ecx, dword [esi + 0x1c]
call fcn.00437a40
test eax, eax
jg 0x40a6ad
push 0x4c9200
mov ecx, esi
call fcn.0040d1a0
mov ecx, esi
call fcn.0040d380
mov eax, dword [esi + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40a6c6
push eax
mov ecx, esi
call fcn.0040a990
mov eax, dword [esi + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40a6d8
push eax
mov ecx, esi
call fcn.0040acb0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40a6ea
push eax
mov ecx, esi
call fcn.0040adb0
mov eax, dword [esi + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40a6fc
push eax
mov ecx, esi
call fcn.0040aeb0
mov eax, dword [esi + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40a70e
push eax
mov ecx, esi
call fcn.0040b050
mov eax, 1
pop esi
ret
Function at 0x40ac40
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [esi + 0xc]
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
ret 4

Function at 0x40acb0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2000
call fcn.004a7630
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 0x40ace5
mov ebp, dword [esp + 0x2010]
test ebp, ebp
je 0x40ace5
lea eax, [esp + 0xc]
test eax, eax
jne 0x40acf3
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 0x40ad19
xor eax, eax
jmp 0x40ad71
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 0x40ad3b
mov eax, 1
jmp 0x40ad71
push 0x20
lea eax, [esp + 0x14]
push str.Minimized
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x40ad57
mov eax, 2
jmp 0x40ad71
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 + 0x158], 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 + 0x15c], ecx
mov eax, 1
pop ebp
add esp, 0x2000
ret 4
Function at 0x40adb0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2000
call fcn.004a7630
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 0x40ade5
mov ebp, dword [esp + 0x2010]
test ebp, ebp
je 0x40ade5
lea eax, [esp + 0xc]
test eax, eax
jne 0x40adf3
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 0x40ae19
xor eax, eax
jmp 0x40ae71
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 0x40ae3b
mov eax, 1
jmp 0x40ae71
push 0x20
lea eax, [esp + 0x14]
push str.Minimized
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x40ae57
mov eax, 2
jmp 0x40ae71
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 + 0x160], 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 + 0x164], ecx
mov eax, 1
pop ebp
add esp, 0x2000
ret 4
Function at 0x40aeb0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2000
call fcn.004a7630
push ebx
mov ebx, ecx
push esi
push edi
mov esi, dword [ebx]
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0xc]
test esi, esi
rep stosd dword es:[edi], eax
je 0x40aee5
mov edi, dword [esp + 0x2010]
test edi, edi
je 0x40aee5
lea eax, [esp + 0xc]
test eax, eax
jne 0x40aef3
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2000
ret 4
push ebp
push esi
lea ecx, [esp + 0x14]
push 0x1000
push ecx
push 0
push str.PageState
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x10], 0
jne 0x40af19
xor eax, eax
jmp 0x40af71
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 0x40af3b
mov eax, 1
jmp 0x40af71
push 0x20
lea eax, [esp + 0x14]
push str.Minimized
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x40af57
mov eax, 2
jmp 0x40af71
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 [ebx + 0x1c]
push esi
push 1
push str.ShowCancelButton
push edi
mov dword [edx + 0x168], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebx + 0x1c]
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [edx + 0x16c], ecx
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x168], 1
jne 0x40afb0
mov dword [eax + 0x168], 2
push esi
lea eax, [esp + 0x14]
push 0x1000
push eax
push 0
push 0x4c956c
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov si, word [esp + 0x10]
mov ebx, dword [ebx + 0x1c]
neg si
sbb esi, esi
lea ecx, [esp + 0x10]
and esi, ecx
add ebx, 0x14c
test esi, esi
jne 0x40afea
xor ebp, ebp
jmp 0x40aff3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x40b000
cmp ebp, dword [eax - 4]
jle 0x40b013
mov ecx, ebx
call fcn.00405e10
push ebp
mov ecx, ebx
call fcn.00405a70
test eax, eax
je 0x40b03e
lea eax, [ebp + ebp]
lea edx, [ebp + ebp + 2]
cmp edx, eax
jb 0x40b031
mov edi, dword [ebx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [edx + eax], 0
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2000
ret 4
Function at 0x40b050
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2000
call fcn.004a7630
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 0x40b085
mov ebp, dword [esp + 0x2010]
test ebp, ebp
je 0x40b085
lea eax, [esp + 0xc]
test eax, eax
jne 0x40b093
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 0x40b0b9
xor eax, eax
jmp 0x40b111
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 0x40b0db
mov eax, 1
jmp 0x40b111
push 0x20
lea eax, [esp + 0x14]
push str.Minimized
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x40b0f7
mov eax, 2
jmp 0x40b111
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 + 0x170], 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 + 0x174], ecx
mov eax, 1
pop ebp
add esp, 0x2000
ret 4
Function at 0x40c790
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.004a7630
push ebx
push ebp
push esi
mov esi, dword [esp + 0x201c]
test esi, esi
push edi
je 0x40c884
mov ebx, dword [esp + 0x2024]
test ebx, ebx
je 0x40c884
mov ebp, dword [esp + 0x2028]
cmp ebp, 0x80
jl 0x40c884
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 0x40c884
cmp eax, 0x1fff
ja 0x40c884
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40c884
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x24]
push 0x4c8a38
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c884
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 0x4c8a20
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 0x40d1a0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2004
call fcn.004a7630
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 0x40d1d6
mov ebp, dword [esp + 0x2018]
test ebp, ebp
je 0x40d1d6
lea eax, [esp + 0x14]
test eax, eax
jne 0x40d1e5
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 0x40d23e
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea edx, [esp + 0x14]
push edx
call edi
mov dword [esp + 0x14], eax
mov ax, word [0x4d758c]
push eax
lea ecx, [esp + 0x1c]
push 0x2c
push ecx
call fcn.00434250
mov edx, dword [esp + 0x20]
add esp, 0x10
push 1
push 0
push 1
jmp 0x40d2e5
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 0x40d299
lea edx, [esp + 0x14]
push edx
call edi
mov dword [esp + 0x14], eax
mov ax, word [0x4d758c]
push eax
lea ecx, [esp + 0x1c]
push 0x2c
push ecx
call fcn.00434250
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.0040bc60
push ebx
lea ecx, [esp + 0x18]
push 0x1000
push ecx
push 0
push 0x4c9408
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x14], 0
je 0x40d2f2
lea edx, [esp + 0x14]
push edx
call edi
mov dword [esp + 0x14], eax
mov ax, word [0x4d758c]
push eax
lea ecx, [esp + 0x1c]
push 0x2c
push ecx
call fcn.00434250
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.0040bc60
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 0x40d357
lea edx, [esp + 0x14]
push edx
call edi
mov edi, eax
mov ax, word [0x4d758c]
push eax
lea ecx, [esp + 0x1c]
push 0x2c
push ecx
call fcn.00434250
add esp, 0x10
lea edx, [esp + 0x14]
mov ecx, esi
push 0
push 1
push 2
push edi
push edx
call fcn.0040bc60
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.00437c50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2004
ret 4
Function at 0x40f620
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b075b
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 [0x4c8080]
mov dword [esp + 0xc], ebx
mov dword [ebx + 0xc], ecx
mov edx, dword [0x4c8080]
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 [0x4c8080]
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x38], esi
mov edx, dword [0x4c8080]
mov dword [ebx + 0x50], edx
mov eax, dword [0x4c8080]
mov dword [ebx + 0x54], eax
mov cl, byte [esp + 0x20]
mov dword [ebx + 0x6c], esi
mov byte [ebx + 0x70], cl
mov dword [ebx + 0x74], esi
mov dword [ebx + 0x78], esi
mov dword [ebx + 0x7c], esi
mov edx, dword [0x4c8080]
mov dword [ebx + 0x80], edx
mov eax, 0x4d74cc
mov byte [esp + 0x18], 7
test eax, eax
mov dword [ebx], vtable.CDownloadTask.0
jne 0x40f6d4
xor ebp, ebp
jmp 0x40f6e1
push 0x4d74cc
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 0x40f6f4
cmp ebp, dword [eax - 4]
jle 0x40f757
mov edx, dword [0x4c8084]
add eax, 0xfffffff4
cmp eax, edx
je 0x40f724
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40f71b
mov ecx, dword [ebx + 0x34]
sub ecx, 0xc
push ecx
call fcn.0043b3d0
add esp, 4
mov edx, dword [0x4c8080]
mov dword [ebx + 0x34], edx
cmp ebp, esi
jne 0x40f72f
mov eax, dword [0x4c8080]
jmp 0x40f754
lea ecx, [ebp + ebp + 0xe]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, esi
je 0x40f78c
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 0x40f77f
mov ecx, eax
push edi
mov edi, dword [ebx + 0x34]
mov edx, ecx
mov esi, 0x4d74cc
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 0x40f7e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4b07cb
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 0x40f82f
call fcn.0040fe80
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x40f82f
call fcn.00416230
mov ecx, dword [esi + 0x68]
call fcn.00415bd0
mov edi, dword [esi + 0x74]
mov eax, dword [esi + 0x78]
cmp edi, eax
je 0x40f84e
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi]
push eax
call ebx
mov eax, dword [esi + 0x78]
add edi, 4
cmp edi, eax
jne 0x40f83f
mov eax, dword [esi + 0x80]
mov edx, dword [0x4c8084]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f883
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f883
mov eax, dword [esi + 0x80]
sub eax, 0xc
push eax
call fcn.0043b3d0
add esp, 4
mov ebx, dword [esi + 0x78]
mov edi, dword [esi + 0x74]
cmp edi, ebx
mov byte [esp + 0x1c], 5
je 0x40f8a2
push 0
mov ecx, edi
call fcn.0040f550
add edi, 4
cmp edi, ebx
jne 0x40f892
mov eax, dword [esi + 0x74]
push eax
call fcn.0043b3d0
xor edi, edi
add esp, 4
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov eax, dword [esi + 0x54]
mov ecx, dword [0x4c8084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40f8e2
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f8e2
mov eax, dword [esi + 0x54]
sub eax, 0xc
push eax
call fcn.0043b3d0
add esp, 4
mov eax, dword [esi + 0x50]
mov edx, dword [0x4c8084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f90b
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f90b
mov eax, dword [esi + 0x50]
sub eax, 0xc
push eax
call fcn.0043b3d0
add esp, 4
mov ecx, dword [esi + 0x38]
mov byte [esp + 0x1c], 2
cmp ecx, edi
je 0x40f91c
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, dword [esi + 0x34]
mov edx, dword [0x4c8084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f945
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f945
mov edx, dword [esi + 0x34]
sub edx, 0xc
push edx
call fcn.0043b3d0
add esp, 4
mov eax, dword [esi + 0x10]
mov edx, dword [0x4c8084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f96e
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f96e
mov edx, dword [esi + 0x10]
sub edx, 0xc
push edx
call fcn.0043b3d0
add esp, 4
mov eax, dword [esi + 0xc]
mov edx, dword [0x4c8084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f997
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f997
mov edx, dword [esi + 0xc]
sub edx, 0xc
push edx
call fcn.0043b3d0
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 0x411060
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x2670
call fcn.004a7630
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
call fcn.00411020
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 0x41115b
cmp word [esp + 0x680], 0
je 0x41115b
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x41115b
lea eax, [esp + 0x680]
lea ebx, [esi + 0x24]
test eax, eax
jne 0x4110f5
xor ebp, ebp
jmp 0x411105
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 0x411112
cmp ebp, dword [eax - 4]
jle 0x411125
mov ecx, ebx
call fcn.00405e10
push ebp
mov ecx, ebx
call fcn.00405a70
test eax, eax
je 0x41115b
lea eax, [ebp + ebp]
lea edx, [ebp + ebp + 2]
cmp edx, eax
jb 0x41114e
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 0x41119f
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.00410a30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2670
ret