joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f0250
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x164]
sub esp, 0x164
push 0xffffffffffffffff
push 0x64d390
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp + 0x160], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, dword [ebp + 0x16c]
mov eax, dword [ebp + 0x170]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
lea edi, [esi + 0x24]
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
push ecx
push ebx
mov ecx, edi
call fcn.004ef0a0
test eax, eax
je 0x4f0318
lea ecx, [ebp - 0x34]
call fcn.004bc0b0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [esi + 8]
call fcn.004ef510
test eax, eax
je 0x4f0304
mov ecx, dword [ebp - 0x30]
push ecx
push 0x66fea8
mov edx, dword [ebp - 0x18]
push edx
call fcn.00402f70
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00421470
mov eax, dword [ebp - 0x14]
jmp 0x4f03e4
push ebx
mov ecx, edi
call fcn.004ef410
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00421470
inc dword [esi + 0x40]
mov edi, dword [esi + 0x40]
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x28]
call fcn.004bc0b0
mov byte [ebp - 4], 2
push ebx
push 0x66fea8
lea eax, [ebp - 0x28]
push eax
call fcn.00402f70
add esp, 0xc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x160
push 0
lea ecx, [ebp]
push ecx
call fcn.00618760
add esp, 0xc
push 0x4411
push 0x160
lea edx, [ebp]
push edx
push 0x80
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 0x110]
push ecx
push 0x66fea8
mov edx, dword [ebp - 0x18]
push edx
call fcn.00402f70
lea eax, [ebp + 0x110]
push eax
push 0x66fea8
lea ecx, [ebp - 0x24]
push ecx
call fcn.00402f70
add esp, 0x18
lea edx, [ebp - 0x28]
push edx
push edi
lea ecx, [esi + 8]
call fcn.004ef560
push ebx
mov ecx, dword [ebp - 0x1c]
call fcn.004efd70
mov dword [eax], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00421470
mov eax, edi
jmp 0x4f03e4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x160]
xor ecx, ebp
call fcn.0061807e
add ebp, 0x164
mov esp, ebp
pop ebp
ret 8
Function at 0x4f32c0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4f32f2
xor eax, eax
pop edi
add esp, 8
ret 4
push ebx
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4f3310
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4f331b
cmp dword [esp + 0x14], 0
ja 0x4f331b
test ebx, ebx
jne 0x4f332c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop edi
add esp, 8
ret 4
push ebp
push esi
lea ebp, [ebx + 1]
push ebp
call fcn.005ec342
mov esi, eax
add esp, 4
test esi, esi
jne 0x4f3353
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 8
ret 4
push ebp
push 0
push esi
call fcn.00618760
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4f33a7
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4f33a7
mov ecx, dword [esp + 0x14]
push eax
push esi
call fcn.004f2830
push esi
call fcn.005ec337
add esp, 4
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
add esp, 8
ret 4
push esi
call fcn.005ec337
add esp, 4
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 8
ret 4
Function at 0x4f5970
Capabilities:
Delete registry key

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push ebx
mov esi, ecx
call fcn.00403e50
push 0x2f
push ebx
mov dword [esp + 0x1c], eax
call fcn.00619660
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x4f5a5b
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f59a0
sub eax, edx
lea eax, [eax + ebx - 2]
cmp ebp, eax
jae 0x4f5a5b
mov eax, dword [esi + 8]
push edi
add ebp, 2
xor edi, edi
test eax, eax
jle 0x4f5a15
xor ebx, ebx
test ebx, ebx
jl 0x4f5a7a
cmp edi, eax
jge 0x4f5a7a
test ebp, ebp
je 0x4f5a64
mov ecx, dword [esi + 4]
mov eax, dword [ebx + ecx]
push ebp
push eax
call fcn.0061b80a
add esp, 8
test eax, eax
jne 0x4f5a06
cmp edi, dword [esi + 8]
jge 0x4f5a7a
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x14]
cmp eax, dword [edx + ebx + 4]
je 0x4f5a6e
mov eax, dword [esi + 8]
inc edi
add ebx, 0xc
cmp edi, eax
jl 0x4f59c4
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0xf003f
push 0
push 0x670984
push 0
push str.SoftwareDownloadManagerMCN
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4f5a5a
mov eax, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push 0x80004005
call fcn.00401090
push 1
push edi
mov ecx, esi
call fcn.004f5700
jmp 0x4f5a11
call fcn.005ec455
int3
Function at 0x4f5f50
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x64de28
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x1c]
call fcn.00402500
mov dword [esp + 0x30], 1
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x20], edi
test ebp, ebp
jne 0x4f5f9d
xor eax, eax
jmp 0x4f5fab
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f5fa2
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x24]
call fcn.00402960
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 8]
push ecx
push eax
mov ecx, esi
call fcn.004f5c60
lea ecx, [esp + 0x10]
call fcn.00402500
mov byte [esp + 0x30], 2
cmp edi, 1
jne 0x4f5fe8
mov eax, 0x670010
jmp 0x4f601a
cmp edi, 4
jne 0x4f5ff4
mov eax, 0x670008
jmp 0x4f601a
cmp edi, 5
jne 0x4f6000
mov eax, 0x66fffc
jmp 0x4f601a
cmp edi, 2
jne 0x4f600c
mov eax, 0x66fff0
jmp 0x4f601a
mov eax, 0x670430
test edi, edi
je 0x4f601a
mov eax, 0x66ffe8
push ebp
push eax
lea edx, [esp + 0x18]
push str.SoftwareDownloadManagerMCN_s_s
push edx
call fcn.00402f70
mov edx, dword [esp + 0x20]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0x670984
push 0
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4f606c
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x10]
call fcn.00402570
jmp 0x4f60a0
mov ecx, dword [esp + 0x14]
push 4
lea eax, [esp + 0x44]
push eax
push 4
push 0
push str.number
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x10]
call fcn.00402570
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402570
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret 0xc

Function at 0x4f71a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x64dfbb
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0xdc]
mov dword fs:[0], eax
mov edx, dword [0x754bec]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0
push str.bShTtRIT
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4f7250
mov ecx, dword [0x754bec]
push 4
lea eax, [esp + 8]
push eax
push 4
push 0
push str.bShTtRIT
push ecx
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4f7250
push eax
lea ecx, [esp + 0x10]
call fcn.00542db0
mov dword [esp + 0xe4], 0
lea ecx, [esp + 0xc]
call fcn.005ee341
mov dword [esp + 0xe4], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004f6d00
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
pop ecx
add esp, 0xe4
ret
Function at 0x4fb190
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [0x754bec]
push esi
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
xor esi, esi
push esi
push esi
push str.FSPSSettingsChecked
push edx
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [esp + 8]
je 0x4fb1c6
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x4fb1d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [0x754bec]
push esi
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
xor esi, esi
push esi
push esi
push str.FSSettingsChecked
push edx
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [esp + 8]
je 0x4fb206
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x4ff030
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x64f348
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x10]
call fcn.00402500
mov dword [esp + 0x20], 0
lea eax, [esp + 0x10]
push eax
lea ecx, [edi + 0xdc]
call fcn.005f2321
push 0x670984
push 0x670010
lea ecx, [esp + 0x18]
call fcn.00402c10
push 0x670984
push 0x670430
lea ecx, [esp + 0x18]
call fcn.00402c10
push 0x670984
push 0x66fff0
lea ecx, [esp + 0x18]
call fcn.00402c10
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [edi + 0x144]
call fcn.004a6c90
lea ecx, [esp + 0xc]
call fcn.00402500
mov byte [esp + 0x20], 1
lea edx, [esp + 0xc]
push edx
lea ecx, [edi + 0x88]
call fcn.005f2321
push 0x66fe14
push 0x699288
lea ecx, [esp + 0x14]
call fcn.00402c10
mov eax, dword [esp + 0xc]
push 0x20
push eax
call fcn.0061a820
mov esi, eax
add esp, 8
test esi, esi
je 0x4ff13b
mov edx, 0x699284
mov ecx, esi
mov edi, edi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4ff130
test al, al
je 0x4ff12c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4ff130
add ecx, 2
add edx, 2
test al, al
jne 0x4ff110
xor eax, eax
jmp 0x4ff135
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4ff13b
mov byte [esi], al
mov ecx, dword [esp + 0xc]
push 2
push 0x699280
push ecx
call fcn.006197db
add esp, 0xc
test eax, eax
jne 0x4ff19d
lea ecx, [esp + 0x14]
call fcn.00402500
mov byte [esp + 0x20], 2
mov edx, dword [esp + 0xc]
add edx, 2
push edx
lea eax, [esp + 0x18]
push 0x66fea8
push eax
call fcn.00402f70
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push 0x66fea8
push edx
call fcn.00402f70
add esp, 0x18
mov byte [esp + 0x20], 1
lea ecx, [esp + 0x14]
call fcn.00402570
mov edx, dword [esp + 0xc]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ff1a6
sub eax, esi
inc eax
push eax
mov eax, dword [0x754bec]
push edx
push 1
push 0
push str.Extensions
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4ff1e0
push 0x80004005
call fcn.00401090
mov eax, dword [edi + 0x148]
push ecx
push eax
call fcn.0061a649
add esp, 8
test eax, eax
je 0x4ff1fb
mov byte [edi + 0x14c], 1
mov byte [esp + 0x20], 0
lea ecx, [esp + 0xc]
call fcn.00402570
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00402570
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x4ffb40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 1
mov esi, ecx
mov eax, dword [esi + 0x154]
push 0xf1
push eax
call edi
mov eax, dword [0x754bec]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push str.LaunchOnStart
push eax
mov dword [esp + 0x28], 4
call ebp
test eax, eax
jne 0x4ffbb1
xor ebx, ebx
cmp dword [esp + 0x14], ebx
push 0x420
mov ecx, esi
setne bl
call fcn.005ecf87
mov ecx, dword [eax + 0x20]
push 0
push ebx
push 0xf1
push ecx
call edi
mov ecx, dword [0x754bec]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.MonitorUrlClipboard
push ecx
mov dword [esp + 0x28], 4
call ebp
test eax, eax
jne 0x4ffbfc
xor ebx, ebx
cmp dword [esp + 0x14], ebx
push 0x425
mov ecx, esi
setne bl
call fcn.005ecf87
mov edx, dword [eax + 0x20]
push 0
push ebx
push 0xf1
push edx
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x500f20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x174]
push 0xf1
push eax
call edi
mov ecx, dword [esi + 0x94]
call fcn.00410690
test eax, eax
je 0x500f5d
lea ecx, [esp + 0x18]
push ecx
call fcn.00410940
add esp, 4
mov ecx, dword [0x754bec]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.LaunchOnStart
push ecx
mov dword [esp + 0x28], 4
call ebp
test eax, eax
jne 0x500fae
xor ebx, ebx
cmp dword [esp + 0x14], ebx
push 0x420
mov ecx, esi
setne bl
call fcn.005ecf87
mov edx, dword [eax + 0x20]
push 0
push ebx
push 0xf1
push edx
call edi
mov edx, dword [0x754bec]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push str.MonitorUrlClipboard
push edx
mov dword [esp + 0x28], 4
call ebp
test eax, eax
jne 0x500ff9
xor ebx, ebx
cmp dword [esp + 0x14], ebx
push 0x425
mov ecx, esi
setne bl
call fcn.005ecf87
mov eax, dword [eax + 0x20]
push 0
push ebx
push 0xf1
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x502460
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [0x754bec]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push edi
lea eax, [esp + 0xc]
push eax
mov esi, ecx
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push str.nHttpPrChbSt
push edx
mov dword [esp + 0x24], 4
call ebx
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x5024b5
cmp dword [esp + 0x10], 0
je 0x5024b5
mov eax, dword [esi + 0x29c]
push 0
push 1
push 0xf1
push eax
call edi
mov eax, dword [0x754bec]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push str.nFtpPrChbSt
push eax
mov dword [esp + 0x24], 4
call ebx
test eax, eax
jne 0x5024f3
cmp dword [esp + 0x10], eax
je 0x5024f3
mov ecx, dword [esi + 0x2ac]
push eax
push 1
push 0xf1
push ecx
call edi
mov ecx, dword [0x754bec]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0
push str.nHttpsPrChbSt
push ecx
mov dword [esp + 0x24], 4
call ebx
test eax, eax
jne 0x502532
cmp dword [esp + 0x10], eax
je 0x502532
mov edx, dword [esi + 0x28c]
push eax
push 1
push 0xf1
push edx
call edi
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x502540
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x29c]
push pe_nt_image_headers32
push eax
call edi
mov ecx, dword [esi + 0x28c]
push 0
neg eax
push 0
sbb eax, eax
push pe_nt_image_headers32
neg eax
push ecx
mov dword [esp + 0x18], eax
call edi
mov edx, dword [esi + 0x2ac]
push 0
neg eax
push 0
sbb eax, eax
push pe_nt_image_headers32
neg eax
push edx
mov dword [esp + 0x20], eax
call edi
mov ecx, dword [0x754bec]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
neg eax
push 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 4
push 0
push str.nHttpPrChbSt
push ecx
call esi
mov eax, dword [0x754bec]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
push str.nFtpPrChbSt
push eax
call esi
mov edx, dword [0x754bec]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
push str.nHttpsPrChbSt
push edx
call esi
pop edi
pop esi
add esp, 0xc
ret
Function at 0x507e30
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x6505e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov esi, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x1c], ax
mov dword [esp + 0x30], ebx
mov edx, dword [esi + 0x1a4]
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push 0x147
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
lea ecx, [esi + 0x1a0]
call fcn.004242e0
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x507ea9
lea eax, [esp + 0x1c]
mov ecx, dword [0x756344]
push ecx
push eax
call fcn.00424510
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 8
push 4
test eax, eax
jne 0x507ee1
mov eax, dword [0x754bec]
lea edx, [esp + 0x14]
push edx
push 4
push ebx
push str.RememberDuplLinksA
mov dword [esp + 0x24], ebx
push eax
jmp 0x507f68
mov edx, dword [0x754bec]
lea ecx, [esp + 0x14]
push ecx
push 4
push ebx
push str.RememberDuplLinksA
push edx
mov dword [esp + 0x28], 1
call edi
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x507f0b
lea eax, [esp + 0x1c]
mov ecx, dword [0x756348]
push ecx
push eax
call fcn.00424510
add esp, 8
test eax, eax
jne 0x507f29
mov dword [esp + 0x10], 1
jmp 0x507f52
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x507f35
lea eax, [esp + 0x1c]
mov edx, dword [0x75634c]
push edx
push eax
call fcn.00424510
add esp, 8
neg eax
sbb eax, eax
neg eax
add eax, 2
mov dword [esp + 0x10], eax
mov ecx, dword [0x754bec]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push ebx
push str.DuplLinksA
push ecx
call edi
lea ecx, [esp + 0x14]
call fcn.00402500
mov byte [esp + 0x30], 1
lea edx, [esp + 0x14]
push edx
lea ecx, [esi + 0x88]
call fcn.005f2321
mov esi, dword [esp + 0x14]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x507f91
sub eax, edx
je 0x507ffa
mov ecx, dword [0x754a28]
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x507fc4
cmp dl, bl
je 0x507fc0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x507fc4
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x507fa4
xor eax, eax
jmp 0x507fc9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x507ffa
push esi
push 0x66fea8
push 0x754a28
call fcn.00402f70
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
inc ecx
push ecx
push eax
mov eax, dword [0x754bec]
push 1
push ebx
push str.szCustomUserAgent
push eax
call edi
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x14]
call fcn.00402570
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00401210
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0061807e
add esp, 0x24
ret
Function at 0x50c120
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x647278
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
push esi
call fcn.0050b3e0
push str.SoftwareDownloadManagerPasswords_
lea ecx, [esp + 0xc]
call fcn.004030b0
mov dword [esp + 0x18], 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0xf003f
push 0
push 0x670984
push 0
push str.SoftwareDownloadManagerPasswords
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x50c1a9
mov edx, dword [esp + 0x20]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 8]
call fcn.00402570
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 4
Function at 0x50d3c0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x6510b0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x1c]
call fcn.004bc0b0
mov dword [esp + 0x2c], 0
mov edi, dword [esp + 0x38]
test edi, edi
jne 0x50d405
xor eax, eax
jmp 0x50d419
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50d410
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.00402960
mov ebp, dword [esp + 0x3c]
test ebp, ebp
jne 0x50d430
xor eax, eax
jmp 0x50d43e
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50d435
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x28]
call fcn.00402960
mov edi, dword [esp + 0x34]
push edi
mov ecx, esi
call fcn.0050cf40
mov esi, eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00405930
lea edx, [esp + 0x20]
lea ecx, [esi + 4]
push edx
call fcn.00405930
push str.SoftwareDownloadManagerPasswords_
lea ecx, [esp + 0x14]
call fcn.004030b0
mov byte [esp + 0x2c], 1
test edi, edi
jne 0x50d48b
xor eax, eax
jmp 0x50d499
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50d490
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00402e10
mov ecx, dword [esp + 0x10]
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x50d4b0
sub eax, esi
cmp eax, 0x125
jbe 0x50d50e
mov esi, dword [ecx - 0xc]
cmp esi, 0x124
jg 0x50d4d5
push 0x80070057
call fcn.00401090
cmp dword [ecx - 4], 1
jle 0x50d4eb
mov eax, esi
push eax
lea ecx, [esp + 0x14]
call fcn.00401720
mov ecx, dword [esp + 0x10]
mov byte [ecx + 0x124], 0
test esi, esi
jl 0x50d4cb
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x50d4cb
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x10]
mov byte [esi + ecx], 0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0xf003f
push 0
push 0x670984
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [esp + 0x38]
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50d540
mov ecx, dword [esp + 0x14]
sub eax, edx
inc eax
push eax
push esi
push 0
push 0
push 0x6836bc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x14]
push 0
push ebp
push str.EncPassword
push 0x691fec
push edx
call fcn.005b2340
mov eax, dword [esp + 0x28]
add esp, 0x14
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x10]
call fcn.00402570
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00421470
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret 0xc