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

Disassembly:
push 0xffffffffffffffff
push 0x5641c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0054b32f
lea ecx, [esp + 0xc]
mov dword [esi + 0x34], eax
call fcn.0054af04
mov edi, dword [0x7b1678]
lea ecx, [esp + 8]
call fcn.0054af04
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x4c93dc
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 8]
call fcn.0054afa0
lea ecx, [esp + 0xc]
call fcn.0054afa0
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
xor edi, edi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], edi
mov eax, dword [esi + 0x20]
push edi
push edi
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
push edi
mov dword [esp + 0x28], edi
mov dword [ecx], edi
mov ecx, esi
call fcn.004c94a0
mov cl, byte [esp + 0x24]
xor eax, eax
test cl, 1
mov dword [esi], 0x669604
jne 0x4c944a
mov eax, 4
test cl, 2
jne 0x4c9451
or al, 2
mov edx, dword [esi + 0xc]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x20
mov dword [esi + 0x44], eax
mov dword [edx], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov ecx, dword [esi + 0x2c]
mov dword [ecx], edi
mov edx, dword [esi + 0x10]
mov dword [edx], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
mov eax, esi
mov dword [ecx], edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x4cb890
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4cb8f6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4cb8f6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4cb8d7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x4cc4e0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4cc529
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4cc9a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x564560
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004cc550
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004cc5d0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004cc5d0
lea ecx, [esi + 0xc]
call fcn.0054f2aa
lea ecx, [esi + 0x10]
call fcn.0054f2aa
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004cdb60
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004cdb60
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004cdb60
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0054f31f
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0054f31f
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4f4850
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
jle 0x4f487c
mov ecx, dword [esp + 8]
push ebx
xor edx, edx
xor ebx, ebx
mov dl, byte [ecx]
mov bl, byte [edx + 0x669694]
lea edx, [eax*8]
xor ebx, edx
xor eax, ebx
inc ecx
dec esi
jne 0x4f4860
pop ebx
pop esi
ret
Function at 0x550189
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0055aa85
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5501ba
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.005501cd
pop edi
pop esi
pop ebx
ret 8

Function at 0x5517a1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5517d9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0054f7c6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0054f79e
jmp 0x5517e5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x553090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5530d2
call fcn.0055aa85
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5530d2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5530c9
xor eax, eax
jmp 0x5530da
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005530e0
pop edi
pop esi
pop ebx
ret 4
Function at 0x10001290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x100012a3
mov eax, 3
pop ebp
ret 4
movzx edx, word [eax + 2]
mov ecx, edx
shr ecx, 8
test cl, cl
je 0x100012b9
mov eax, 8
pop ebp
ret 4
movzx ecx, word [eax]
push esi
mov esi, 0xc4
cmp cx, si
pop esi
jb 0x1000129a
mov word [0x1002fa32], dx
mov edx, dword [eax + 0x3c]
mov word [0x1002fa30], cx
mov ecx, dword [eax + 4]
mov dword [0x1002fa6c], edx
mov edx, dword [eax + 0x40]
mov dword [0x1002fa34], ecx
mov ecx, dword [eax + 8]
mov dword [0x1002fa70], edx
mov edx, dword [eax + 0xc]
mov dword [0x1002fa38], ecx
mov ecx, dword [eax + 0x10]
mov dword [0x1002fa3c], edx
mov edx, dword [eax + 0x14]
mov dword [0x1002fa40], ecx
mov ecx, dword [eax + 0x18]
mov dword [0x1002fa44], edx
mov edx, dword [eax + 0x1c]
mov dword [0x1002fa48], ecx
mov ecx, dword [eax + 0x20]
mov dword [0x1002fa4c], edx
mov edx, dword [eax + 0x24]
mov dword [0x1002fa50], ecx
mov ecx, dword [eax + 0x28]
mov dword [0x1002fa54], edx
mov edx, dword [eax + 0x2c]
mov dword [0x1002fa58], ecx
mov ecx, dword [eax + 0x30]
mov dword [0x1002fa5c], edx
mov edx, dword [eax + 0x34]
mov dword [0x1002fa60], ecx
mov ecx, dword [eax + 0x38]
mov dword [0x1002fa64], edx
mov edx, dword [eax + 0x44]
mov dword [0x1002fa68], ecx
mov ecx, dword [eax + 0x48]
mov dword [0x1002fa74], edx
mov edx, dword [eax + 0x4c]
mov dword [0x1002fa78], ecx
mov ecx, dword [eax + 0x50]
mov dword [0x1002fa7c], edx
mov edx, dword [eax + 0x54]
mov dword [0x1002fa80], ecx
mov ecx, dword [eax + 0x58]
mov dword [0x1002fa84], edx
mov edx, dword [eax + 0x5c]
mov dword [0x1002fa88], ecx
mov ecx, dword [eax + 0x60]
mov dword [0x1002fa8c], edx
mov edx, dword [eax + 0x64]
mov dword [0x1002fa90], ecx
mov ecx, dword [eax + 0x68]
mov dword [0x1002fa94], edx
mov edx, dword [eax + 0x6c]
mov dword [0x1002fa98], ecx
mov ecx, dword [eax + 0x70]
mov dword [0x1002fa9c], edx
mov edx, dword [eax + 0x74]
mov dword [0x1002faa0], ecx
mov ecx, dword [eax + 0x78]
mov dword [0x1002faa4], edx
mov edx, dword [eax + 0x7c]
mov dword [0x1002faa8], ecx
mov ecx, dword [eax + 0x80]
mov dword [0x1002faac], edx
mov edx, dword [eax + 0x84]
mov dword [0x1002fab0], ecx
mov ecx, dword [eax + 0x88]
mov dword [0x1002fab4], edx
mov edx, dword [eax + 0x8c]
mov dword [0x1002fab8], ecx
mov ecx, dword [eax + 0x90]
mov dword [0x1002fabc], edx
mov edx, dword [eax + 0x94]
mov dword [0x1002fac0], ecx
mov ecx, dword [eax + 0x98]
mov dword [0x1002fac4], edx
mov edx, dword [eax + 0x9c]
mov eax, dword [eax + 0xa0]
mov dword [0x1002fac8], ecx
mov dword [0x1002facc], edx
mov dword [0x1002fad0], eax
xor eax, eax
pop ebp
ret 4
Function at 0x10001b20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.1000e330
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x54], 0x44
jb 0x10001b47
mov eax, dword [esi]
jmp 0x10001b49
mov eax, esi
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
neg eax
sbb eax, eax
neg eax
dec eax
mov esp, ebp
pop ebp
ret

Function at 0x100043d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e33b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1002c0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.1001d703
push 4
mov dword [ebp - 4], 0
call fcn.1000cccb
mov edi, eax
add esp, 4
test edi, edi
je 0x1000444c
call fcn.1001dab1
mov dword [edi], eax
call fcn.1001d870
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.1001d7a5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10004442
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.1001d7cd
jmp 0x1000444e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000a340
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e298
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1002c0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x1000a38d
cmp eax, 0x80010106
je 0x1000a391
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 4], 1
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x1000a3b8
cmp eax, 0x80010119
jne 0x1000a486
lea esi, [ebx + 8]
push esi
push 0x100244dc
push 1
push 0
push 0x100245ac
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1000a486
lea eax, [ebp - 0x10]
push eax
mov edi, str.ROOTCIMV2
call fcn.1000a050
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x1000a3f7
mov ecx, dword [eax]
jmp 0x1000a3f9
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [eax]
lea esi, [ebx + 0xc]
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
mov ebx, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000a457
mov edi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1000a457
test edi, edi
je 0x1000a457
mov eax, dword [edi]
test eax, eax
je 0x1000a43e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x1000a44e
push eax
call fcn.1000db59
add esp, 4
push edi
call fcn.1000ccc0
add esp, 4
test ebx, ebx
jns 0x1000a46f
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
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 0x1000ccb1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002c0b0]
jne 0x1000ccbb
repz ret
jmp fcn.1000e3aa

Function at 0x10014071
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002c0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000e5e8
and dword [ebp - 0x14], 0
cmp dword [0x1002f7f8], 0
mov dword [ebp - 0x18], eax
jne 0x10014124
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100141cc
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100141cc
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1002f7f8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1002f7fc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1002f800], eax
call edi
push eax
call esi
mov dword [0x1002f808], eax
test eax, eax
je 0x10014124
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1002f804], eax
mov eax, dword [0x1002f804]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1001417d
cmp dword [0x1002f808], ecx
je 0x1001417d
push eax
call esi
push dword [0x1002f808]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1001417d
test ebx, ebx
je 0x1001417d
call edi
test eax, eax
je 0x10014174
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10014174
test byte [ebp - 8], 1
jne 0x1001417d
or dword [ebp + 0x10], 0x200000
jmp 0x100141b0
mov eax, dword [0x1002f7fc]
cmp eax, dword [ebp - 0x18]
je 0x100141b0
push eax
call esi
test eax, eax
je 0x100141b0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100141b0
mov eax, dword [0x1002f800]
cmp eax, dword [ebp - 0x18]
je 0x100141b0
push eax
call esi
test eax, eax
je 0x100141b0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1002f7f8]
call esi
test eax, eax
je 0x100141cc
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100141ce
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ccb1
leave
ret
Function at 0x401e0b
Capabilities:
Set registry value

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

Function at 0x401e53
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x401e66
push 0xd
pop eax
jmp 0x401eaa
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x401e79
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x401e71
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40229c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x44fa4d
call fcn.004336b7
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x402319
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x402319
call fcn.004019f2
mov esi, eax
jmp 0x402410
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40233c
call fcn.004019f2
jmp 0x402403
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x402332
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea ecx, [esi + 1]
cmp ecx, esi
jae 0x40236f
mov esi, 0x8007000e
jmp 0x402405
push 2
pop edx
mov byte [ebp - 4], 2
call fcn.0040584a
cmp eax, 0x400
jbe 0x402390
push eax
lea ecx, [ebp - 0x418]
call fcn.0040529b
jmp 0x4023b2
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x4023b2
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x402365
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x402332
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00402e1b
mov esi, eax
test edi, edi
je 0x402410
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x402429
lea ecx, [ebp - 0x418]
call fcn.00404e85
mov eax, esi
call fcn.00433609
ret 0x10
Function at 0x40394e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x5c
mov eax, 0x44f8fa
call fcn.0043364b
and dword [ebp - 0x44], 0
sub esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.004146fd
test eax, eax
je 0x4039b5
cmp dword [ebp - 0x44], 0
push 4
pop esi
mov dword [ebp - 0x4c], esi
je 0x4039c4
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push str.online_install_debug
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4039b5
cmp dword [ebp - 0x50], esi
jne 0x4039b5
cmp dword [ebp - 0x48], 1
sete bl
cmp dword [ebp - 0x44], eax
je 0x4039c6
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4039c6
cmp dword [ebp - 0x44], 0
je 0x4039c4
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
xor edi, edi
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
mov dl, 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
call fcn.004150ab
mov esi, str.Debug.log
push esi
call fcn.00401723
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00405060
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x68]
call fcn.00404a24
mov byte [ebp - 4], 1
cmp dword [ebp - 0x54], 8
lea edx, [ebp - 0x68]
cmovae edx, dword [ebp - 0x68]
lea ecx, [ebp - 0x40]
call fcn.00419c10
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x46fe38
mov byte [ebp - 4], 2
call fcn.004013e1
lea ecx, [ebp - 0x40]
mov byte [0x471570], bl
call fcn.00401303
push edi
push 1
lea ecx, [ebp - 0x68]
call fcn.00404e3f
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00404e3f
call fcn.004335fa
ret
Function at 0x403a65
Capabilities:
Check if file exists
Copy file
Get common file path
Terminate process

Disassembly:
push 0x624
mov eax, 0x44fa0f
call fcn.0043364b
mov esi, ecx
xor edi, edi
test esi, esi
je 0x403a8c
cmp word [esi], di
je 0x403a8c
push esi
mov ecx, 0x471710
call fcn.0041bfac
xor eax, eax
mov ebx, 0x206
push ebx
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push edi
push eax
call fcn.00435650
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x103
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor eax, eax
push ebx
mov word [ebp - 0x62c], ax
lea eax, [ebp - 0x62a]
push edi
push eax
call fcn.00435650
add esp, 0xc
mov ecx, edi
movzx eax, word [ebp + ecx - 0x21c]
mov word [ebp + ecx - 0x62c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x403ae7
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x45ee60
lea eax, [ebp - 0x62c]
push eax
call edi
mov ecx, str.relaunch
call fcn.00406175
mov bl, al
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403c13
test bl, bl
jne 0x403c13
push 0x103
lea eax, [ebp - 0x21c]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push 0x206
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push ebx
push eax
call fcn.00435650
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
mov ecx, str.KSBrowser_update.exe
cmovne ecx, eax
push ecx
lea eax, [ebp - 0x424]
push eax
call edi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x403c13
push 0x46d258
lea ecx, [ebp - 0x630]
call fcn.00404e8e
push 0xd
push str.__relaunch:1
lea ecx, [ebp - 0x630]
mov dword [ebp - 4], ebx
call fcn.0040553d
mov ecx, esi
call fcn.0040192d
push eax
push esi
lea ecx, [ebp - 0x630]
call fcn.0040553d
mov edx, dword [ebp - 0x630]
push ecx
push ecx
lea ecx, [ebp - 0x424]
call fcn.00414e0d
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004335fa
ret

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

Disassembly:
push 0x34
mov eax, 0x44f8bd
call fcn.0043364b
xor esi, esi
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], ax
xor dl, dl
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.004150ab
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4042cd
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00404a24
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
xor edx, edx
push 1
inc edx
call fcn.0041531a
pop ecx
push esi
push 1
lea ecx, [ebp - 0x40]
call fcn.00404e3f
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.00404e3f
call fcn.004335fa
ret
Function at 0x4042de
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46d978]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00435650
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d3d2
leave
ret