joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ddc0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, pe_nt_image_headers32
call fcn.00415810
mov eax, dword [0x442580]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x40de47
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x40de47
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.0041609c
add esp, 0x10
test eax, eax
jns 0x40de1d
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00413975
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.0041609c
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40ded9
call fcn.0040dc80
test eax, eax
jle 0x40ded9
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x40deed
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00413975
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.00413975
add esp, 0x108
ret
Function at 0x411c90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, 0x104
jg 0x411cc3
mov edx, dword [ebp + 0x10]
cmp dword [edx + 4], 0
je 0x411cc3
mov ecx, esi
call fcn.00411c40
test al, al
jne 0x411da1
cmp byte [ebp + 8], 0
je 0x411d3b
cmp edi, 0x104
jle 0x411cd5
mov edi, esi
jmp 0x411d13
push esi
xor eax, eax
push 0x445f40
mov word [0x446148], ax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
test eax, eax
jne 0x411cf9
push esi
push 0x445f40
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp byte [ebp + 0xc], 0
je 0x411d0e
push 0x445f40
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, eax
jmp 0x411d13
mov edi, 0x445f40
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x411d20
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411d20
sub ecx, edx
mov edx, dword [ebx]
sar ecx, 1
lea eax, [ecx + ecx]
mov ecx, ebx
push eax
push edi
call dword [edx + 4]
push 0x43ebb8
push esi
call fcn.0041471e
mov edi, eax
add esp, 8
test edi, edi
je 0x411da8
push edi
push 0x1000
push 1
push 0x446150
call fcn.00414ba0
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x411d98
lea ebx, [ebx]
mov eax, dword [ebx]
push ecx
push 0x446150
mov ecx, ebx
call dword [eax + 4]
push edi
push 0x1000
push 1
push 0x446150
call fcn.00414ba0
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x411d70
push edi
call fcn.00414e61
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
push str.Failed_to_open_file___s__for_reading_n
call fcn.004148ca
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42332f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x442580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00418b03
mov dword [ebp - 0x14], eax
cmp dword [0x445ee8], esi
jne 0x423422
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4233af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x423502
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x423502
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x423502
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x445ee8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x445eec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x43dcb8
push edi
mov dword [0x445ef0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x445ef8], eax
test eax, eax
je 0x42341f
push 0x43dcd4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x445ef4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x423447
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42343a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x42345c
push 4
pop eax
jmp 0x423504
cmp dword [ebp - 0x14], esi
je 0x42345c
push dword [0x445ee8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x423441
mov eax, dword [0x445ef4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4234ba
cmp dword [0x445ef8], edi
je 0x4234ba
push eax
call ebx
push dword [0x445ef8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4234ba
test eax, eax
je 0x4234ba
call ecx
test eax, eax
je 0x4234af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4234af
test byte [ebp - 8], 1
jne 0x4234ba
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4234ea
mov eax, dword [0x445eec]
cmp eax, edi
je 0x4234e7
push eax
call ebx
test eax, eax
je 0x4234e7
call eax
mov esi, eax
test esi, esi
je 0x4234e7
mov eax, dword [0x445ef0]
cmp eax, edi
je 0x4234e7
push eax
call ebx
test eax, eax
je 0x4234e7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x445ee8]
call ebx
test eax, eax
je 0x423502
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x423504
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413975
mov esp, ebp
pop ebp
ret
Function at 0x4012c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401314
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401310
lea ebx, [ebx]
cmp esi, eax
jae 0x401314
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401300
cmp esi, eax
jb 0x40131a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401790
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4017b0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x4017c4
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x4017f0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x401806
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401813
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x4020d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x417a78]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
push edx
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x40214f
xor eax, eax
cmp ecx, ebx
je 0x402137
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
and esi, 0x300
mov edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
cmp eax, ebx
je 0x402173
cmp ecx, ebx
je 0x40215a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0040969c
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
push edx
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x4021da
jmp 0x4021a0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.004020d0
mov edi, eax
cmp edi, ebx
jne 0x402229
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x4021a0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4021ed
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x18], ebx
call fcn.00401620
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402210
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0040969c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402238
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040969c
mov esp, ebp
pop ebp
ret 4
Function at 0x403310
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x40332c
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x4026b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x403354
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x4043b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x410c70
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x417a78]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x404432
call fcn.004013b0
mov edi, eax
jmp 0x404514
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40444b
call fcn.004013b0
jmp 0x40450b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x404466
call fcn.004013b0
jmp 0x40450b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x18], edi
cmp eax, edi
jae 0x40449c
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40448a
lea ecx, [ebp]
call fcn.00402070
lea ecx, [ebp - 0x20]
call fcn.00402010
mov eax, 0x8007000e
jmp 0x404526
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004033d0
mov dword [ebp - 4], 1
jmp 0x4044c8
mov eax, dword [ebp]
test eax, eax
jne 0x4044d6
mov edi, 0x8007000e
jmp 0x40450d
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4044ef
call fcn.004013b0
jmp 0x40450b
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.004041f0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x404524
lea ecx, [ebp]
call fcn.00402070
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0040969c
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405240
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x410dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebp
push esi
mov eax, dword [0x417a78]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, al
cmp eax, 5
jbe 0x40547f
test ebp, ebp
je 0x405342
test ebx, ebx
je 0x405342
lea esi, [esp + 0x18]
call fcn.004050d0
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 0
call fcn.00405020
push str.SoftwareMicrosoftInternet_Explorer_
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call fcn.00405020
push 0x412904
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 2
call fcn.00405020
push ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 3
call fcn.00404f40
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x10]
push 0x2001f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 4
call fcn.00401730
test eax, eax
je 0x405356
lea ecx, [esp + 0x20]
call fcn.00401680
lea ecx, [esp + 0x20]
call fcn.004020b0
lea ecx, [esp + 0xc]
call fcn.00402520
lea ecx, [esp + 0x10]
call fcn.00402520
lea ecx, [esp + 0x14]
call fcn.00402520
lea ecx, [esp + 0x18]
call fcn.00402520
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x28
ret
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00404bb0
mov eax, dword [eax]
add esp, 0xc
push 0x2001f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2c]
call fcn.00401730
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00402520
test esi, esi
je 0x4053ba
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
push 0
push 0
push 0x2001f
push 0
push 0
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.004016b0
test eax, eax
jne 0x405315
lea ecx, [esp + 0x20]
call fcn.00401680
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00404bb0
mov eax, dword [eax]
add esp, 0xc
push 0x2001f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2c]
call fcn.00401730
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00402520
test esi, esi
jne 0x405315
push 0x412900
lea ecx, [esp + 0x1c]
call fcn.00404860
mov eax, dword [eax]
push 1
push eax
push str.AppPath
lea ecx, [esp + 0x2c]
call fcn.004017b0
mov ecx, dword [esp + 0x14]
push 1
push ecx
push str.AppName
lea ecx, [esp + 0x2c]
call fcn.004017b0
push 3
push str.Policy
lea ecx, [esp + 0x28]
call fcn.00401790
lea ecx, [esp + 0x20]
call fcn.00401680
lea ecx, [esp + 0x20]
call fcn.004020b0
lea ecx, [esp + 0xc]
call fcn.00402520
lea ecx, [esp + 0x10]
call fcn.00402520
lea ecx, [esp + 0x14]
call fcn.00402520
lea ecx, [esp + 0x18]
call fcn.00402520
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x28
ret
Function at 0x4054a0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x410e10
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
mov eax, dword [0x417a78]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, al
cmp eax, 5
jbe 0x40557a
test ebp, ebp
je 0x4055ae
test ebx, ebx
je 0x4055ae
lea esi, [esp + 0x14]
call fcn.004050d0
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0
call fcn.00405020
push str.SoftwareMicrosoftInternet_ExplorerLow_RightsElevationPolicy_
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.00405020
mov eax, dword [esp + 0xc]
push 0x2001f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.00401730
lea ecx, [esp + 0x18]
test eax, eax
jne 0x40558e
push ebp
call fcn.004020d0
lea ecx, [esp + 0x18]
call fcn.00401680
lea ecx, [esp + 0x18]
call fcn.004020b0
lea ecx, [esp + 0xc]
call fcn.00402520
lea ecx, [esp + 0x10]
call fcn.00402520
mov ecx, esi
call fcn.00402520
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x20
ret
call fcn.004020b0
lea ecx, [esp + 0xc]
call fcn.00402520
lea ecx, [esp + 0x10]
call fcn.00402520
lea ecx, [esp + 0x14]
call fcn.00402520
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x20
ret

Function at 0x405a00
Capabilities:
Reference cloudflare dns server

Disassembly:
push esi
push 0x412ae4
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
jne 0x405a1c
push 0x8007000e
call fcn.004010c0
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov ecx, dword [esp + 0xc]
push esi
mov dword [ecx], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
pop esi
ret 8
Function at 0x406eb0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x410f79
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x417a78]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [0x418c48]
mov edx, dword [eax + 0xc]
mov ecx, 0x418c48
mov dword [esp + 0x28], ebx
call edx
mov ecx, dword [esp + 0x30]
add eax, 0x10
mov dword [ecx], eax
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
sub eax, 0x10
mov edi, 1
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], edi
call fcn.00405aa0
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x14], esi
cmp dword [esi - 4], edi
mov dword [esp + 0x28], edi
jle 0x406f39
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.00405b90
mov esi, dword [esp + 0x14]
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xfde9
call ebx
mov ebp, eax
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
push 0x418c8c
neg ecx
or ecx, eax
push ecx
call fcn.00409f58
mov edi, eax
add esp, 8
test edi, edi
je 0x406ff9
lea eax, [ebp + ebp + 2]
push eax
push 0
push edi
call fcn.00409bd0
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x406fa0
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405b90
mov esi, dword [esp + 0x14]
push ebp
push edi
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebx
push edi
lea ecx, [esp + 0x20]
call fcn.00405020
mov ebx, dword [esp + 0x30]
push eax
mov ecx, ebx
mov byte [esp + 0x2c], 2
call fcn.00404c80
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406fee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.00409738
add esp, 4
jmp 0x406ffd
mov ebx, dword [esp + 0x30]
add esi, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40701e
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x408840
Capabilities:
Check os version

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
mov esi, ecx
call ebx
and eax, 0xff
cmp eax, 4
sbb eax, eax
add eax, 1
mov dword [esi + 0x3e8], eax
jne 0x408868
pop esi
xor eax, eax
pop ebx
ret 0x2c
push edi
mov edi, dword [esp + 0x10]
mov dword [0x41780c], 0x80
push edi
mov ecx, esi
mov dword [esi + 0x3dc], edi
call fcn.004087e0
push 0
push edi
push 0
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0x412c14
push 0x412cb0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea edi, [esi + 0x24]
mov dword [esi + 0x3e0], eax
mov dword [edi], 0x3b8
call ebx
cmp al, 5
ja 0x4088d9
shr eax, 8
cmp al, 2
jae 0x4088d9
mov dword [edi], 0x3a8
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4088e7
mov eax, dword [esi + 0x3e0]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x38], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x34], edx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 7
mov eax, dword [0x41780c]
push eax
push ecx
lea edx, [esi + 0x3c]
push 0x80
push edx
call fcn.004093c0
mov ebx, dword [esp + 0x3c]
add esp, 0x10
cmp dword [esi + 0x3f8], 0
je 0x408992
test ebx, ebx
je 0x408992
or dword [esi + 0x30], 0x10
push 0xff
push ebx
lea eax, [esi + 0x144]
push 0x100
push eax
call fcn.004093c0
mov eax, dword [esp + 0x40]
add esp, 0x10
test eax, eax
je 0x40896f
push 0x3f
push eax
lea ecx, [esi + 0x348]
push 0x40
push ecx
call fcn.004093c0
add esp, 0x10
jmp 0x408978
xor edx, edx
mov word [esi + 0x348], dx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
imul eax, eax, 0x3e8
mov dword [esi + 0x344], eax
mov dword [esi + 0x3c8], ecx
mov edx, dword [esi + 0x28]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x3e4], edx
mov edx, dword [esi + 0x3f8]
mov dword [esi + 0x3ec], ecx
mov eax, 1
test edx, edx
je 0x4089cb
test ecx, ecx
je 0x4089cb
mov dword [esi + 0x30], 8
mov dword [esi + 0x13c], eax
mov dword [esi + 0x140], eax
push ebp
mov ebp, dword [esi + 0x30]
mov dword [esi + 0x438], ebp
pop ebp
test ecx, ecx
je 0x4089de
test edx, edx
je 0x408a00
push edi
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 0x3f0], ecx
mov dword [esi + 0x3ec], ecx
mov dword [esi + 0x3f4], ecx
cmp dword [esi + 0x3f8], 0
pop edi
je 0x408a17
test ebx, ebx
je 0x408a17
xor ecx, ecx
mov word [esi + 0x144], cx
pop esi
pop ebx
ret 0x2c