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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.0041074d
test eax, eax
je 0x40756b
push str.SoftwareAppDataLowSoftwareAskToolbar
jmp 0x407570
push str.SoftwareAskToolbar
push SysReAllocString
call fcn.00410acd
pop ecx
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ebx
je 0x407586
mov dword [ebp - 4], ecx
lea eax, [ebp - 8]
push eax
push ecx
push ebx
push str.CLSIDD4027C7F_154A_4066_A1AD_4243D8127440InprocServer32
push SysReAllocString
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 8], ebx
je 0x4075de
push 0x410
call fcn.00418764
pop ecx
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4075d5
push esi
call fcn.0041a352
pop ecx
xor esi, esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov dword [ebp - 0xc], 0x80004005
cmp esi, ebx
je 0x407618
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x407618
push str.DllUnregisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40760c
call eax
mov dword [ebp - 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0xc], ebx
jge 0x40761c
or dword [ebp - 4], 2
push esi
call fcn.00411370
pop ecx
pop edi
test al, al
jne 0x40762c
or dword [ebp - 4], 4
cmp esi, ebx
je 0x407637
push esi
call fcn.0041a352
pop ecx
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x408454
Capabilities:
Create directory
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push edi
push 0
push 0
mov esi, eax
mov byte [esp + 0x17], 0
call ebp
mov edi, eax
test edi, edi
jbe 0x4084d8
push ebx
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00418764
pop ecx
mov ebx, eax
push ebx
push edi
call ebp
push ebx
push esi
call fcn.00405940
push ebx
call fcn.0041a352
mov dword [esp], str.APNLogs
push esi
call fcn.0040561e
cmp dword [esi + 0x18], 8
pop ebx
jb 0x4084b6
mov esi, dword [esi + 4]
jmp 0x4084b9
add esi, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jg 0x4084d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4084d8
mov byte [esp + 0xf], 1
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x409e17
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x43261f
call fcn.0041d016
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x3c], edi
cmp dword [edi + 0x3c], ebx
je 0x409f37
cmp byte [edi + 0x42], bl
je 0x409f37
mov eax, dword [edi]
mov esi, 0xffff
push esi
call dword [eax + 4]
movzx eax, ax
cmp si, ax
jne 0x409e56
xor al, al
jmp 0x409f39
lea esi, [ebp - 0x30]
call fcn.00409a7b
lea eax, [edi + 0x44]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
lea ebx, [ebp - 0x48]
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], eax
call fcn.00409af7
mov esi, eax
call fcn.0040a6bb
add eax, dword [ebp - 0x34]
lea ebx, [ebp - 0x60]
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], eax
call fcn.00409af7
mov esi, eax
call fcn.0040a6bb
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x38]
push esi
push dword [ebp - 0x34]
push eax
push dword [ebp - 0x40]
call dword [edx + 0x18]
xor ebx, ebx
sub eax, ebx
je 0x409ebb
dec eax
je 0x409ebe
dec eax
dec eax
jne 0x409f27
mov bl, 1
jmp 0x409f27
mov byte [edi + 0x42], bl
lea ebx, [ebp - 0x58]
lea esi, [ebp - 0x30]
call fcn.00409af7
mov esi, eax
call fcn.0040a6bb
mov ecx, dword [ebp - 0x38]
sub ecx, eax
mov dword [ebp - 0x34], ecx
je 0x409f03
push dword [edi + 0x4c]
lea ebx, [ebp - 0x50]
push ecx
push 1
lea esi, [ebp - 0x30]
call fcn.00409af7
mov esi, eax
call fcn.0040a6bb
push eax
call fcn.0041aecf
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x409f25
mov ecx, dword [ebp - 0x34]
cmp byte [edi + 0x42], 0
je 0x409eb7
test ecx, ecx
jne 0x409e67
push ecx
push 8
pop ebx
lea edi, [ebp - 0x30]
call fcn.00409ab3
mov edi, dword [ebp - 0x3c]
jmp 0x409e67
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004057d3
mov al, bl
jmp 0x409f39
mov al, 1
call fcn.0041d060
ret
Function at 0x40de1f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4441c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040ddc4
xor edi, edi
cmp dword [ebp - 0xc], edi
je 0x40de66
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x40de4c
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.0041c436
pop ecx
push edi
push 1
lea esi, [ebp - 0x20]
mov ebx, eax
call fcn.00405d7c
mov eax, ebx
pop ebx
jmp 0x40de73
push edi
push 1
lea esi, [ebp - 0x20]
call fcn.00405d7c
xor eax, eax
cmp eax, 8
jle 0x40ded5
lea eax, [ebp - 0x24]
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftInternet_ExplorerApproved_Extensions
push SysReAllocString
mov dword [ebp - 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40de9e
xor eax, eax
inc eax
jmp 0x40def4
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x30]
push eax
push edi
push str.D4027C7F_154A_4066_A1AD_4243D8127440
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x24]
test eax, eax
je 0x40decf
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40de99
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], edi
call fcn.004109a6
pop ecx
test eax, eax
je 0x40def2
test byte [ebp - 0x28], 1
jne 0x40de99
test byte [ebp - 0x28], 0x40
jne 0x40de99
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004195cf
leave
ret

Function at 0x40df02
Capabilities:
Set registry value

Disassembly:
push 0x34
mov eax, 0x432869
call fcn.0041d016
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x30], ecx
xor ecx, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], cx
push 0x43b308
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x40dfb4
push 0x20006
mov ecx, str.Macro
call fcn.00410865
pop ecx
mov dword [ebp - 0x34], eax
cmp eax, edi
je 0x40df87
push dword [ebp - 0x30]
call ebx
add eax, eax
push eax
push dword [ebp - 0x30]
push 1
push edi
push str.version
push dword [ebp - 0x34]
call esi
mov dword [ebp - 0x38], 1
push 0x20006
mov ecx, str.Update
call fcn.00410865
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, edi
je 0x40dfb4
push edi
push edi
push 1
push edi
push str.UpdatePath
push eax
call esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040dffd
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x38], edi
je 0x40dfd9
push dword [ebp - 0x3c]
call ebx
add eax, eax
push eax
push dword [ebp - 0x3c]
push 1
push edi
push str.version
push dword [ebp - 0x34]
call esi
cmp dword [ebp - 0x34], edi
je 0x40dfe7
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.00405d7c
mov eax, dword [ebp - 0x30]
call fcn.0041d060
ret
Function at 0x40dffd
Capabilities:
Initialize iwebbrowser2
Set registry value

Disassembly:
push 0x3c
mov eax, 0x43223d
call fcn.0041cfad
lea eax, [ebp - 0x10]
xor edi, edi
push eax
xor ebx, ebx
mov dword [ebp - 0x10], edi
call fcn.004109a6
pop ecx
test eax, eax
je 0x40e074
and dword [ebp - 0x10], 0xfffffffe
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push 0x20006
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExtSettingsD4027C7F_154A_4066_A1AD_4243D8127440
push SysReAllocString
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e074
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push edi
push str.Flags
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40e064
inc esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x40e074
xor ebx, ebx
inc ebx
push edi
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
jl 0x40e123
lea eax, [ebp - 0x14]
push eax
push 0x43432c
push 4
push edi
push 0x43433c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [ebp - 0x14], edi
je 0x40e11d
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x38]
push eax
call esi
lea eax, [ebp - 0x28]
push eax
call esi
lea eax, [ebp - 0x48]
push eax
call esi
push str.D4027C7F_154A_4066_A1AD_4243D8127440
lea esi, [ebp - 0x18]
call fcn.0040dd89
push 8
pop eax
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x18]
push 0xb
mov word [ebp - 0x38], ax
pop eax
lea edx, [ebp - 0x48]
push edx
mov word [ebp - 0x28], ax
lea edx, [ebp - 0x28]
push edx
or eax, 0xffffffff
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 0x30], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xdc]
xor ebx, ebx
test eax, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
setge bl
call dword [ecx + 0x80]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, ebx
call fcn.0041d04c
ret
Function at 0x40e871
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push edi
call fcn.0040e7c8
push 0x3c
xor edi, edi
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.0041ca70
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x30], str.MsiExec.exe
mov dword [ebp - 0x2c], str._x_86D4B82A_ABED_442A_BE86_96357B70F4FE__q_REBOOTReallySuppress_UPGRADE_UNINSTALL1
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 8], edi
je 0x40e8e8
push 0xea60
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40e8e8
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 4], edi
jne 0x40e8e8
xor eax, eax
inc eax
jmp 0x40e8ea
xor eax, eax
pop edi
leave
ret
Function at 0x40f83d
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x43261f
call fcn.0041d016
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x3c], edi
cmp dword [edi + 0x3c], ebx
je 0x40f956
cmp byte [edi + 0x41], bl
je 0x40f956
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x40f875
xor al, al
jmp 0x40f958
lea esi, [ebp - 0x30]
call fcn.00409a7b
lea eax, [edi + 0x44]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
lea ebx, [ebp - 0x48]
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], eax
call fcn.00409af7
mov esi, eax
call fcn.0040a6bb
add eax, dword [ebp - 0x34]
lea ebx, [ebp - 0x60]
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], eax
call fcn.00409af7
mov esi, eax
call fcn.0040a6bb
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x38]
push esi
push dword [ebp - 0x34]
push eax
push dword [ebp - 0x40]
call dword [edx + 0x18]
xor ebx, ebx
sub eax, ebx
je 0x40f8da
dec eax
je 0x40f8dd
dec eax
dec eax
jne 0x40f946
mov bl, 1
jmp 0x40f946
mov byte [edi + 0x41], bl
lea ebx, [ebp - 0x58]
lea esi, [ebp - 0x30]
call fcn.00409af7
mov esi, eax
call fcn.0040a6bb
mov ecx, dword [ebp - 0x38]
sub ecx, eax
mov dword [ebp - 0x34], ecx
je 0x40f922
push dword [edi + 0x4c]
lea ebx, [ebp - 0x50]
push ecx
push 1
lea esi, [ebp - 0x30]
call fcn.00409af7
mov esi, eax
call fcn.0040a6bb
push eax
call fcn.0041aecf
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x40f944
mov ecx, dword [ebp - 0x34]
cmp byte [edi + 0x41], 0
je 0x40f8d6
test ecx, ecx
jne 0x40f886
push ecx
push 8
pop ebx
lea edi, [ebp - 0x30]
call fcn.00409ab3
mov edi, dword [ebp - 0x3c]
jmp 0x40f886
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004057d3
mov al, bl
jmp 0x40f958
mov al, 1
call fcn.0041d060
ret

Function at 0x41074d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x4441c0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
xor ebx, ebx
xor eax, eax
push 0xfe
mov word [ebp - 0x94], ax
lea eax, [ebp - 0x92]
push ebx
push eax
mov dword [ebp - 0xa8], 0x11c
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
call fcn.0041ca70
xor eax, eax
mov word [ebp + 0x6c], ax
mov word [ebp + 0x6e], ax
mov word [ebp + 0x70], ax
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
mov byte [ebp + 0x72], bl
mov byte [ebp + 0x73], bl
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop ebx
test eax, eax
je 0x4107d9
cmp dword [ebp - 0xa4], 5
jbe 0x4107d9
xor eax, eax
inc eax
jmp 0x4107db
xor eax, eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.004195cf
add ebp, 0x78
leave
ret
Function at 0x4107ea
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0x10], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi]
call esi
test eax, eax
jne 0x410857
mov eax, dword [ebp - 4]
add eax, 2
push eax
call fcn.00418764
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi]
call esi
test eax, eax
jne 0x41084e
xor esi, esi
inc esi
cmp dword [ebp - 8], esi
jne 0x41084e
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405940
mov dword [ebp - 0x10], esi
push dword [ebp - 0xc]
call fcn.0041a352
pop ecx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop esi
leave
ret

Function at 0x410914
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0x20019
xor ebx, ebx
call fcn.00410865
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x4109a1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push dword [ebp + 8]
push eax
call esi
test eax, eax
jne 0x410997
mov eax, dword [ebp - 4]
add eax, 2
push edi
push eax
call fcn.00418764
pop ecx
mov ecx, dword [ebp - 4]
mov edi, eax
cmp ecx, ebx
je 0x410967
mov byte [eax], bl
inc eax
dec ecx
jne 0x410961
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x41098f
cmp dword [ebp - 8], 1
jne 0x41098f
push edi
push dword [ebp + 0xc]
call fcn.00405940
xor ebx, ebx
inc ebx
push edi
call fcn.0041a352
pop ecx
pop edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x4109a6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExtSettingsD4027C7F_154A_4066_A1AD_4243D8127440
push SysReAllocString
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4109d4
xor eax, eax
jmp 0x410a2c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, str.Flags
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x410a1e
cmp dword [ebp - 0xc], 4
jne 0x410a1e
cmp dword [ebp - 8], 4
jne 0x410a1e
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x410a1e
mov dword [ebp - 0x10], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410acd
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4441c0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push ebx
mov ebx, dword [ebp + 0x19c]
push esi
mov esi, dword [ebp + 0x198]
push edi
xor edi, edi
mov dword [ebp - 0x80], esi
cmp ebx, edi
je 0x410b7b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x410b7b
lea eax, [ebp - 0x78]
push eax
push 0x10008
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x410b80
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x410b64
cmp esi, edi
jne 0x410b70
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.00410acd
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x410b23
jmp 0x410b70
push ebx
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410b80
mov esi, 0x3f2
mov ecx, dword [ebp + 0x18c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004195cf
add ebp, 0x190
leave
ret
Function at 0x411c71
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4441c0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x8c], 0
push esi
push edi
lea eax, [ebp - 0x94]
mov edi, ecx
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x411d69
lea eax, [esi + 1]
push eax
call fcn.00418764
pop ecx
push eax
push esi
push dword [ebp - 0x94]
mov dword [ebp - 0x90], eax
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x411d57
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
push 0x43c300
push dword [ebp - 0x90]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x411d57
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x411d57
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x86]
push eax
call fcn.0041ca70
movzx eax, word [esi + 0xc]
add esp, 0xc
push eax
movzx eax, word [esi + 0xe]
push eax
movzx eax, word [esi + 8]
push eax
movzx eax, word [esi + 0xa]
push eax
push str._u._u._u._u
push 0x3f
pop ecx
lea edi, [ebp - 0x88]
call fcn.00401164
add esp, 0x14
mov eax, ebx
call fcn.00405647
mov eax, edi
push eax
push ebx
call fcn.00405940
mov dword [ebp - 0x8c], 1
push dword [ebp - 0x90]
call fcn.0041a352
mov eax, dword [ebp - 0x8c]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004195cf
leave
ret
Function at 0x414313
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x101c8]
mov eax, 0x10248
call fcn.0042c140
mov eax, dword [0x4441c0]
xor eax, ebp
mov dword [ebp + 0x101c4], eax
mov eax, dword [ebp + 0x101d0]
push edi
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0x48]
push ecx
push 0x20019
xor edi, edi
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings5.0User_AgentPost_Platform
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414437
push 0x206
mov word [ebp + 0xffbc], ax
lea eax, [ebp + 0xffbe]
push edi
push eax
call fcn.0041ca70
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x5c]
push eax
push edi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp + 0xffbc]
push eax
push dword [ebp - 0x48]
mov dword [ebp - 0x58], 0x104
mov dword [ebp - 0x5c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x4c], edi
je 0x414437
push ebx
xor ebx, ebx
cmp dword [ebp - 0x4c], edi
jbe 0x414436
xor eax, eax
mov word [ebp - 0x44], ax
mov word [ebp + 0x7fbc], ax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x7fbc]
push eax
push ebx
push dword [ebp - 0x48]
mov dword [ebp - 0x54], 0x3fff
mov dword [ebp - 0x64], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x414430
cmp dword [ebp - 0x60], 1
jne 0x414430
cmp word [ebp + 0x7fbc], di
je 0x414430
push 0x43b638
push dword [ebp - 0x50]
call fcn.0040561e
lea eax, [ebp + 0x7fbc]
push eax
push dword [ebp - 0x50]
call fcn.0040561e
inc ebx
cmp ebx, dword [ebp - 0x4c]
jb 0x4143c4
pop ebx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x101c4]
xor ecx, ebp
pop edi
call fcn.004195cf
add ebp, 0x101c8
leave
ret
Function at 0x41625b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x4162e0
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0041c700
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4162a3
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4162c5
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x41633b
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.00415fa9
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
pop ecx
pop ecx
cmp esi, 3
jb 0x416327
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x41633b
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x416264
pop esi
pop ebx
leave
ret

Function at 0x4195cf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4441c0]
jne 0x4195d9
repz ret
jmp fcn.0041fdac