joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f5a
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0x214
mov eax, 0x527721
call fcn.004b785c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
jne 0x405f7a
xor eax, eax
jmp 0x4060bf
push 0x208
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004faaf0
add esp, 0xc
call fcn.0040686c
push str.StoreTray.exe
test eax, eax
lea eax, [ebp - 0x218]
push esi
push eax
je 0x405fe6
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x21c]
call fcn.00407b51
push ebx
push edi
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push str.StoreTray
lea ecx, [ebp - 0x21c]
call fcn.004089b7
lea ecx, [ebp - 0x21c]
mov edi, eax
call fcn.004081c8
jmp 0x4060bd
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x220]
push eax
push 0x20006
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4060bd
call fcn.004065f6
push eax
lea ecx, [ebp - 0x21c]
call fcn.00405d79
mov dword [ebp - 4], 1
lea eax, [ebp - 0x218]
test ebx, ebx
je 0x40604b
push ebx
push eax
lea eax, [ebp - 0x21c]
push 0x5349dc
push eax
call fcn.00406501
add esp, 0x10
jmp 0x406060
push eax
lea eax, [ebp - 0x21c]
push str.__s_
push eax
call fcn.00406501
add esp, 0xc
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 4], 1
mov ebx, dword [esi - 0xc]
jle 0x406081
push ebx
lea ecx, [ebp - 0x21c]
call fcn.00406497
mov esi, dword [ebp - 0x21c]
lea eax, [ebx + ebx]
push eax
push esi
push 1
push edi
push str.storetray
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
mov edi, eax
call fcn.00406af0
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.00406ad8
mov eax, edi
call fcn.004b7806
ret

Function at 0x406393
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push 8
mov eax, 0x527751
call fcn.004b7828
cmp dword [ebp + 8], 0
jne 0x4063a9
xor eax, eax
jmp 0x406422
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
call fcn.004066ef
pop ecx
pop ecx
test eax, eax
jne 0x4063c3
inc eax
jmp 0x406422
call fcn.0040686c
test eax, eax
je 0x4063f2
lea ecx, [ebp + 8]
call fcn.00407b51
push 1
push str.StoreTray
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.0040912d
lea ecx, [ebp + 8]
mov esi, eax
call fcn.004081c8
jmp 0x406420
lea eax, [ebp - 0x14]
push eax
push 0x20006
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406420
push str.storetray
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, esi
call fcn.004b77f1
ret
Function at 0x4066ef
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0x428
mov eax, 0x52778d
call fcn.004b785c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
jne 0x40670f
xor eax, eax
jmp 0x406866
xor edi, edi
test ebx, ebx
je 0x406717
mov dword [ebx], edi
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004faaf0
add esp, 0xc
call fcn.0040686c
push str.StoreTray.exe
test eax, eax
lea eax, [ebp - 0x218]
push esi
push eax
je 0x406780
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x42c]
call fcn.00407b51
push ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push str.StoreTray
lea ecx, [ebp - 0x42c]
call fcn.004094d1
lea ecx, [ebp - 0x42c]
mov edi, eax
call fcn.004081c8
jmp 0x406864
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x430]
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406864
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x104
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push edi
push str.storetray
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x430]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x406864
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x428]
call fcn.00405da2
inc esi
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], esi
call fcn.00406931
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.00405da2
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.00406931
push edi
push dword [ebp - 0x424]
lea ecx, [ebp - 0x428]
call fcn.0040645d
test eax, eax
js 0x406848
mov edi, esi
test ebx, ebx
je 0x406848
mov dword [ebx], esi
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.00406ad8
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00406ad8
mov eax, edi
call fcn.004b7806
ret
Function at 0x40937a
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp word [0x57c7e8], 0
push esi
mov esi, 0x57c7e8
jne 0x4093a1
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push esi
push 2
call sub.Secur32.dll_GetUserNameExW
mov ecx, dword [ebp + 8]
push esi
call fcn.00405da2
mov eax, dword [ebp + 8]
pop esi
leave
ret 4
Function at 0x40d349
Capabilities:
Compare security identifiers

Disassembly:
push 0x34
push 0x567e38
call fcn.004b7960
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
mov dword [ecx], ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x40d392
cmp dword [ebp - 0x28], ebx
jne 0x40d3c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x40d495
lea eax, [ebp - 0x28]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40d495
cmp dword [ebp - 0x28], 0
je 0x40d495
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x40d495
cmp dword [ebp - 0x2c], eax
jbe 0x40d495
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40d495
push dword [ebp - 0x2c]
call fcn.00502f04
pop ecx
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x40d495
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
push esi
push 2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40d495
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x40d495
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40d495
cmp dword [ebp - 0x30], 0
je 0x40d495
mov dword [ebp - 0x3c], ebx
cmp ebx, dword [esi]
jae 0x40d495
push dword [ebp - 0x30]
push dword [esi + ebx*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40d47f
inc ebx
jmp 0x40d464
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [esi + ebx*8 + 8]
shr eax, 2
and eax, ecx
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0040d4b6
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40de4b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5766c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.004faaf0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40de9b
cmp dword [ebp - 0x114], 6
jb 0x40de9b
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b77e0
leave
ret
Function at 0x40edf9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x42c
push 0x567df8
call fcn.004b7960
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x43c], esi
xor ebx, ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
push 0x200
push ebx
lea eax, [ebp - 0x42c]
push eax
call fcn.004faaf0
push edi
push str.SYSTEMCurrentControlSetServices_sParameters
push 0xff
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x430]
push eax
push 0x20219
push ebx
lea eax, [ebp - 0x42c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40eedf
mov dword [ebp - 0x438], ebx
mov edi, 0x210
push edi
push ebx
lea eax, [ebp - 0x22c]
push eax
call fcn.004faaf0
add esp, 0xc
mov dword [ebp - 0x434], edi
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
push ebx
push str.ServiceDll
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40eedf
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp + 0x10], eax
jle 0x40eedf
push dword [ebp + 0x10]
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.0040ef05
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40f068
Capabilities:
Print debug messages

Disassembly:
push 0x27c
mov eax, 0x528688
call fcn.004b785c
call fcn.0040de38
test al, al
jne 0x40f30f
push 7
pop ebx
xor eax, eax
mov dword [ebp - 0x224], ebx
xor edi, edi
mov word [ebp - 0x238], ax
push str._autorun
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], edi
call fcn.0040aee9
lea eax, [ebp - 0x238]
mov dword [ebp - 4], edi
push edi
push eax
call fcn.0040d9b8
mov ecx, eax
call fcn.0040fe78
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
mov esi, eax
call fcn.0040ac85
xor eax, eax
push str.tray
test esi, esi
je 0x40f1e9
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x250], ax
call fcn.0040aee9
xor eax, eax
mov dword [ebp - 4], 1
push 0x535844
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x238], ax
call fcn.0040aee9
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.0040d9b8
mov ecx, eax
call fcn.004100f8
lea ecx, [ebp - 0x238]
call fcn.0040ac85
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.0040ac85
xor eax, eax
mov dword [ebp - 0x228], edi
push 0x535730
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x238], ax
call fcn.0040aee9
xor eax, eax
mov dword [ebp - 4], 3
push str.show
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x250], ax
call fcn.0040aee9
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.0040d9b8
mov ecx, eax
call fcn.004100f8
lea ecx, [ebp - 0x250]
call fcn.0040ac85
lea ecx, [ebp - 0x238]
jmp 0x40f262
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x26c], ebx
mov word [ebp - 0x280], ax
call fcn.0040aee9
xor eax, eax
mov dword [ebp - 4], 5
push 0x535844
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], ebx
mov word [ebp - 0x268], ax
call fcn.0040aee9
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.0040d9b8
mov ecx, eax
call fcn.004100f8
lea ecx, [ebp - 0x268]
call fcn.0040ac85
lea ecx, [ebp - 0x280]
or dword [ebp - 4], 0xffffffff
call fcn.0040ac85
lea eax, [ebp - 0x284]
push eax
call fcn.0040d9b8
mov ecx, eax
call fcn.0041000d
push 0x210
lea eax, [ebp - 0x220]
mov dword [ebp - 4], ebx
push edi
push eax
call fcn.004faaf0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x108
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x535940
lea eax, [ebp - 0x220]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
push 1
push 1
push fcn.004236b0
lea eax, [ebp - 0x288]
mov dword [ebp - 0x288], edi
push eax
push dword [ebp - 0x284]
lea eax, [ebp - 0x220]
push eax
call fcn.0040c8c6
test eax, eax
jne 0x40f301
push str._n__tWinMain:_CreateProcess_fail.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x284]
lea ecx, [ecx - 0x10]
call fcn.00406ad8
call fcn.004b7806
ret 4
Function at 0x4107d9
Capabilities:
Get file version info

Disassembly:
push 0x20
mov eax, 0x5287f3
call fcn.004b7828
lea eax, [ebp - 0x14]
xor ebx, ebx
and dword [ebp - 0x14], ebx
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x410977
push esi
call fcn.004b7a6a
mov edi, eax
pop ecx
test edi, edi
je 0x410977
mov eax, dword [ebp + 8]
push edi
push esi
push dword [ebp - 0x14]
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x410970
call fcn.00410a4e
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x410924
call fcn.004109d4
test eax, eax
jne 0x410924
and dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x410924
xor esi, esi
test dword [ebp + 8], 0xfffffffc
mov dword [ebp - 0x1c], esi
jbe 0x410924
call fcn.004065f6
push eax
lea ecx, [ebp - 0x18]
call fcn.00405d79
mov ecx, dword [ebp - 0x28]
and dword [ebp - 4], 0
movzx eax, word [ecx + esi*4 + 2]
push eax
movzx eax, word [ecx + esi*4]
push eax
lea eax, [ebp - 0x18]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.00406501
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
and dword [ebp - 0x24], 0
add esp, 0x10
and dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4108e8
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406ad8
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
inc esi
shr eax, 2
mov dword [ebp - 0x1c], esi
cmp esi, eax
jb 0x41087a
jmp 0x410924
push dword [ebp - 0x20]
mov ecx, ebx
push dword [ebp - 0x24]
call fcn.00406b64
push 0x2e
push 0x2c
mov ecx, ebx
call fcn.00410b2b
push 0x20
mov ecx, ebx
call fcn.00410aab
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
mov dword [ebp - 0x10], 1
call fcn.00406ad8
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x41096d
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
and dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x534a0c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41096d
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push ebx
call fcn.00406501
xor ebx, ebx
add esp, 0x18
inc ebx
jmp 0x410970
mov ebx, dword [ebp - 0x10]
push edi
call fcn.004b7957
pop ecx
mov eax, ebx
call fcn.004b77f1
ret
Function at 0x411172
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004b7a80
mov eax, dword [0x5766c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x4000
push ebx
push eax
call fcn.004faaf0
add esp, 0xc
mov dword [ebp - 0x4008], ebx
test esi, esi
je 0x41124c
test edi, edi
je 0x41124c
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x41124c
cmp eax, 0x3fff
ja 0x41124c
lea ecx, [ebp - 0x4004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41124c
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x534a0c
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41124c
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push ebx
push edi
call fcn.004faaf0
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [esi - 1]
push eax
push edi
call fcn.00410faa
xor eax, eax
add esp, 0x28
inc eax
jmp 0x41124e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b77e0
leave
ret

Function at 0x411362
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4113cd
cmp dword [ebp + 0xc], 0
je 0x4113cd
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4113cd
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4113cd
and dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4113c7
push esi
push dword [ebp + 0xc]
push edi
call fcn.004f9ff0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
add esp, 0xc
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4113c7
mov al, 1
jmp 0x4113cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
leave
ret
Function at 0x4117cb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi], ebx
jne 0x411836
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x41184a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
pop esi
test eax, eax
je 0x411836
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], ebx
je 0x411848
cmp dword [edi + 4], ebx
je 0x411848
cmp dword [edi + 0xc], ebx
je 0x411848
xor ebx, ebx
inc ebx
mov eax, ebx
pop edi
pop ebx
pop ebp
ret 4

Function at 0x411850
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5766c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
je 0x411874
xor eax, eax
inc eax
jmp 0x411901
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004faaf0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [ebp + 8]
test edi, edi
je 0x4118c8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
sub edi, 1
jne 0x4118b6
push str.netul.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
je 0x411901
lea eax, [ebp - 0x20c]
mov dword [esi + 0x1c], 1
push eax
mov ecx, esi
call fcn.004117cb
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b77e0
leave
ret 4
Function at 0x413420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x528a45
call fcn.004b78ca
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], 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 0x41349d
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 0x41349d
call fcn.004126db
mov esi, eax
jmp 0x413574
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4134c0
call fcn.004126db
jmp 0x413567
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x4134b6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4134f0
mov esi, 0x8007000e
jmp 0x413569
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00412558
jmp 0x413516
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x4134e9
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4134b6
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004132e7
mov esi, eax
test edi, edi
je 0x413574
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x41358d
lea ecx, [ebp - 0x418]
call fcn.00412a8b
mov eax, esi
call fcn.004b7817
ret 0x10
Function at 0x413eb7
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 0x413eca
push 0xd
pop eax
jmp 0x413f0e
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 0x413edd
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x413ed5
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 0x413f13
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x413f25
push 0xd
pop eax
jmp 0x413f57
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x413f2e
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
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