joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bddb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cd80
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
je 0x4bdeb3
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
mov dword [ebp - 4], edi
push eax
call fcn.0045a950
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov byte [ebp - 4], 1
push dword [0x5d67d4]
call fcn.0045a3a0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0
push eax
call fcn.00516220
add esp, 0xc
lea ecx, [ebp - 0x28]
push 0x2001f
push dword [ebp - 0x10]
push reloc.WS2_32.dll_accept
call fcn.0045b220
mov ebx, dword [ebp - 0x28]
mov dword [ebp + 8], edi
test eax, eax
jne 0x4bde8b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push edi
push dword [eax + 0x44]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bde8b
cmp dword [ebp - 0x1c], 4
jne 0x4bde8b
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [eax], 1
mov esi, dword [ebp - 0x10]
or ecx, 0xffffffff
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4bdea8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
test ebx, ebx
je 0x4bdeb3
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4bfa00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d030
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x4bfb01
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [edi]
push str.CPostInstOfferManager::SetPIOTargetBrowser__s___d_
push 2
call fcn.004e4340
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov eax, dword [edi]
add esp, 0xc
sub eax, 0x10
mov dword [ebp - 0x10], esp
mov esi, esp
mov dword [ebp - 4], 0
push eax
call fcn.0045a950
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov byte [ebp - 4], 1
push dword [0x5d67d4]
call fcn.0045a3a0
lea eax, [ebp + 8]
mov byte [ebp - 4], 0
push eax
call fcn.00516220
add esp, 0xc
lea ecx, [ebp - 0x20]
push 0x2001f
push dword [ebp + 8]
push reloc.WS2_32.dll_accept
call fcn.0045b220
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x4bfad9
mov eax, dword [ebp + 0xc]
push 4
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebx + 0x48]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4bfaf6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x4bfb01
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4bfbf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d030
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x4bfcf0
mov esi, dword [ebp + 0xc]
push esi
push eax
push str.CPostInstOfferManager::SetState__s___d_
push 2
call fcn.004e4340
mov dword [ebx + 0x20], esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov eax, dword [edi]
add esp, 0xc
sub eax, 0x10
mov dword [ebp - 0x10], esp
mov esi, esp
mov dword [ebp - 4], 0
push eax
call fcn.0045a950
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov byte [ebp - 4], 1
push dword [0x5d67d4]
call fcn.0045a3a0
lea eax, [ebp + 8]
mov byte [ebp - 4], 0
push eax
call fcn.00516220
add esp, 0xc
lea ecx, [ebp - 0x20]
push 0x2001f
push dword [ebp + 8]
push reloc.WS2_32.dll_accept
call fcn.0045b220
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x4bfcc8
mov eax, dword [ebp + 0xc]
push 4
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebx + 0x44]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4bfce5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x4bfcf0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c0d70
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x587454
mov esi, ecx
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [esi + 0x60], eax
test eax, eax
je 0x4c0e27
push 0
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
push 0x30
movdqu xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, 0x24
lea eax, [ebp - 0x38]
jmp 0x4c0dc0
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x4c0dc0
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
push 5
mov dword [ebp - 0x38], 0x24
mov dword [esi + 0x5c], ecx
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
mov eax, dword [ebp - 0x2c]
cmp eax, 3
je 0x4c0df2
cmp eax, 2
jne 0x4c0e27
mov dword [esi + 0x5c], eax
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4c0e27
push 2
push 0
push dword [ebp - 0x3c]
push 0x4c20f0
push 0
push 0x800b
push 0x800b
call dword [sym.imp.USER32.dll_SetWinEventHook]
mov dword [esi + 0x64], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00525878
mov esp, ebp
pop ebp
ret
Function at 0x4c1930
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5754d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0045adc0
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4c1975
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], 0
je 0x4c19b5
push 0x117
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xf3
push pe_nt_image_headers32
mov ecx, edi
call fcn.004c1420
push str.APNText_Accept_DS
lea ecx, [ebp - 0x14]
call fcn.0045a3a0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call fcn.00483620
mov edx, dword [ebp - 0x14]
test eax, eax
mov byte [ebp - 4], 0
sete byte [ebp + 0xf]
add edx, 0xfffffff0
or eax, 0xffffffff
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4c19ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xf], 0
je 0x4c1a14
push 0x2f
push str.Yes__make_TEXT_PLACE_HOLDER_my_default_search
lea ecx, [ebp - 0x10]
call fcn.0045b6e0
push dword [edi + 0x34]
lea ecx, [ebp - 0x10]
push 0x57b88c
call fcn.004601f0
mov esi, dword [ebp - 0x10]
push pe_nt_image_headers32
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp - 0x10]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c1a61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4c1a80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5754d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0045adc0
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4c1ac5
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], 0
je 0x4c1b05
push pe_nt_image_headers32
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xf3
push 0x117
mov ecx, edi
call fcn.004c1420
push str.APNText_Accept_HP
lea ecx, [ebp - 0x14]
call fcn.0045a3a0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call fcn.00483620
mov edx, dword [ebp - 0x14]
test eax, eax
mov byte [ebp - 4], 0
sete byte [ebp + 0xf]
add edx, 0xfffffff0
or eax, 0xffffffff
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4c1b4f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xf], 0
je 0x4c1b64
push 0x2a
push str.Yes__make_TEXT_PLACE_HOLDER_my_home_page
lea ecx, [ebp - 0x10]
call fcn.0045b6e0
push dword [edi + 0x30]
lea ecx, [ebp - 0x10]
push 0x57b88c
call fcn.004601f0
mov esi, dword [ebp - 0x10]
push 0x117
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp - 0x10]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c1bb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4c2f00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [edi + 0x28], eax
call fcn.0045adc0
mov ecx, eax
test ecx, ecx
je 0x4c2fb7
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [str.ie_hp_owned]
lea ecx, [ebp - 0x10]
mov esi, eax
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xc], 0
cmp dword [edi + 0x28], 1
push 2
push dword [0x5d67d4]
sete al
mov dword [ebp - 8], 0
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], eax
call fcn.0045b220
mov edi, dword [ebp - 0x10]
mov dword [ebp + 8], eax
test eax, eax
jne 0x4c2f82
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp + 8], eax
test edi, edi
je 0x4c2f8d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
lea eax, [esi + 0xc]
cmp dword [ebp + 8], ebx
sete bl
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c2fac
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0045a8f0
int3
Function at 0x4c2fd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [edi + 0x24], eax
call fcn.0045adc0
mov ecx, eax
test ecx, ecx
je 0x4c3087
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [str.ie_ds_owned]
lea ecx, [ebp - 0x10]
mov esi, eax
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xc], 0
cmp dword [edi + 0x24], 1
push 2
push dword [0x5d67d4]
sete al
mov dword [ebp - 8], 0
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], eax
call fcn.0045b220
mov edi, dword [ebp - 0x10]
mov dword [ebp + 8], eax
test eax, eax
jne 0x4c3052
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp + 8], eax
test edi, edi
je 0x4c305d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
lea eax, [esi + 0xc]
cmp dword [ebp + 8], ebx
sete bl
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c307c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0045a8f0
int3

Function at 0x4c3100
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2c], eax
test eax, eax
jne 0x4c311c
xor eax, eax
pop esi
ret
push 0
push 0
push esi
push 0x4c3150
push 0
push 0
call fcn.0052762d
add esp, 0x18
mov dword [esi + 0x30], eax
test eax, eax
je 0x4c3118
mov ecx, esi
call fcn.004c3510
xor ecx, ecx
test al, al
pop esi
setne cl
mov eax, ecx
ret
Function at 0x4c4340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 0x220], eax
call fcn.0045abd0
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push dword [0x5d6808]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c44f6
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00525ee0
push 0x7ffe
mov dword [ebp - 0x224], 0x104
mov dword [ebp - 0x21c], 0
call fcn.005243ff
mov edi, eax
add esp, 0x10
mov eax, 0x3fff
mov ecx, edi
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec eax
jne 0x4c43d2
lea eax, [ebp - 0x240]
mov dword [ebp - 0x214], 0x3fff
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x4c44c5
push esi
xor esi, esi
test eax, eax
je 0x4c44c4
mov edi, edi
xor eax, eax
mov dword [ebp - 0x214], 0x3fff
push eax
push eax
push eax
push eax
mov word [edi], ax
lea eax, [ebp - 0x214]
push eax
push edi
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4c44bb
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c4481
sub eax, edx
mov ecx, ebx
sar eax, 1
push eax
push edi
call fcn.0045b6e0
mov eax, dword [ebx]
test eax, eax
je 0x4c4509
push eax
mov eax, dword [ebp - 0x220]
push dword [eax]
call fcn.00526fc5
add esp, 8
test eax, eax
jne 0x4c44c4
mov ecx, ebx
call fcn.0045abd0
inc esi
cmp esi, dword [ebp - 0x218]
jb 0x4c4450
pop esi
push edi
call fcn.00525873
add esp, 4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebx]
xor eax, eax
pop edi
pop ebx
cmp dword [ecx - 0xc], eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.00525878
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.0045a8f0
int3
Function at 0x4c5860
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d706
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test eax, eax
jne 0x4c58a2
mov eax, 0x80070057
jmp 0x4c59c5
push eax
lea ecx, [ebp - 0x21c]
call fcn.0045a3a0
mov eax, dword [ebp - 0x21c]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
jne 0x4c58ce
mov esi, 0x80070057
jmp 0x4c599f
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00525ee0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x4c599a
test eax, eax
je 0x4c599a
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x57a900
push 0x57e140
lea ecx, [ebp - 0x21c]
call fcn.004601f0
push 0x57a900
push 0x580ed4
lea ecx, [ebp - 0x21c]
call fcn.004601f0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00483360
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0045a580
mov edx, dword [ebp - 0x220]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c5996
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
jmp 0x4c599f
mov esi, 0x80004005
mov edi, dword [ebp - 0x21c]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4c59c3
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret
Function at 0x4c6810
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d888
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x18]
push eax
call fcn.004c4ff0
test eax, eax
je 0x4c6a08
mov eax, dword [str.NewTabPageShow]
lea ecx, [ebp - 0x14]
cmp dword [ebp - 0x18], 7
cmove eax, dword [str.UseHomepageForNewTab]
push eax
call fcn.0045a3a0
push dword [0x5d66a0]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0045a3a0
push 0
push 0
push 0x2001f
push 0
push 0
push dword [0x5d6804]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.0045aa10
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x30]
test eax, eax
jne 0x4c69c1
push 0x2001f
push dword [0x5d67d4]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], 0
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.0045b220
mov edi, dword [ebp - 0x3c]
test eax, eax
jne 0x4c69ba
cmp dword [ebp - 0x18], 7
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jne 0x4c693e
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
call fcn.0046a530
mov eax, dword [ebp - 0x1c]
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push dword [0x5d6690]
mov dword [ebp - 0x20], 1
push edi
call ebx
neg eax
sbb eax, eax
inc eax
je 0x4c69b4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x1c]
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push dword [0x5d668c]
push edi
call ebx
test eax, eax
jne 0x4c69b4
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push 0
push dword [ebp - 0x14]
push esi
call ebx
test eax, eax
jne 0x4c69b4
cmp dword [ebp - 0x20], eax
je 0x4c69b4
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push dword [ebp - 0x10]
push esi
call ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4c69c1
push edi
call ebx
test esi, esi
je 0x4c69c8
push esi
call ebx
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4c69e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4c6a08
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c6d30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.004c4ff0
test eax, eax
je 0x4c6e1e
mov ecx, dword [ebp - 4]
test ecx, ecx
jle 0x4c6e1e
mov eax, dword [str.NewTabPageShow]
cmp ecx, 7
push edi
cmove eax, dword [str.UseHomepageForNewTab]
lea ecx, [ebp - 8]
push eax
call fcn.0045a3a0
push 0x2001f
push dword [0x5d6804]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.0045b220
mov edi, dword [ebp - 0x1c]
test eax, eax
jne 0x4c6dee
lea eax, [ebp - 0xc]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [0x5d6698]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c6dcd
cmp dword [ebp - 0x10], 4
jne 0x4c6dcd
cmp dword [ebp - 4], 1
jne 0x4c6dee
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp - 8]
lea ecx, [ebp - 0x1c]
call fcn.0046a530
test eax, eax
jne 0x4c6dee
mov eax, 1
cmp dword [ebp - 4], eax
cmove esi, eax
test edi, edi
je 0x4c6df9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 8]
or ecx, 0xffffffff
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c6e16
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c70c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d9f8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SoftwareMicrosoftWindowsCurrentVersionExtSettings_
lea ecx, [ebp - 0x10]
call fcn.0045a3a0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00472540
cmp dword [ebp + 0xc], 8
jg 0x4c7119
xor esi, esi
jmp 0x4c7199
push 0x20019
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.0045b220
mov edi, dword [ebp - 0x20]
test eax, eax
jne 0x4c7189
lea eax, [ebp + 0xc]
mov dword [ebp + 8], 0
push eax
lea eax, [ebp + 8]
mov dword [ebp + 0xc], 4
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.Flags
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c7189
cmp dword [ebp - 0x14], 4
jne 0x4c7189
test dword [ebp + 8], 0x441
je 0x4c7189
xor esi, esi
jmp 0x4c718e
mov esi, 1
test edi, edi
je 0x4c7199
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x10]
or ecx, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c71bd
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8