joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4096d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1410
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
push 0x34
xor eax, eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.00408440
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00407350
movzx eax, byte [ebp + 8]
mov ecx, dword [ebp - 0x2c]
neg eax
sbb eax, eax
and eax, 0x100
mov esi, 8
add eax, 0xf003f
cmp dword [ebp - 0x18], esi
jae 0x409759
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x30]
push edx
push ebx
push eax
push ebx
push ebx
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4097b6
push str.RegWriteUninstInfo
call fcn.004085f0
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x409794
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ba3a4
add esp, 4
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp eax, ebx
je 0x4097b2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x409808
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], esi
jb 0x4097c0
mov edi, dword [edi]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x30]
push edx
push edi
push 1
push ebx
push str.ChannelName
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x18], esi
jb 0x4097e8
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004ba3a4
add esp, 4
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp eax, ebx
je 0x409806
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret

Function at 0x409830
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx ecx, cl
neg ecx
sbb ecx, ecx
lea eax, [ebp - 4]
push eax
and ecx, 0x100
add ecx, 0xf003f
push ecx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40987d
mov eax, dword [ebp - 4]
test eax, eax
je 0x409877
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x409887
mov eax, dword [esi]
jmp 0x409889
mov eax, esi
mov edx, dword [ebp - 4]
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov eax, dword [ebp - 4]
sete bl
test eax, eax
je 0x4098a8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a3d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x244], edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov dword [ebp - 0x248], esi
mov ebx, ecx
mov word [esi], ax
mov eax, 1
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x23c], 0x104
mov dword [ebp - 0x238], edi
lea ecx, [ebp - 0x234]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push ecx
mov dword [ebp - 4], eax
call fcn.0040a830
add esp, 8
movzx eax, byte [ebp + 8]
neg eax
sbb eax, eax
and eax, 0x100
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x234]
mov ebx, 8
add eax, 0x20019
cmp dword [ebp - 0x220], ebx
jae 0x40a47d
lea ecx, [ebp - 0x234]
lea edx, [ebp - 0x238]
push edx
push eax
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a522
push 0x206
lea ecx, [ebp - 0x216]
push edi
push ecx
mov dword [ebp - 0x23c], 0x104
mov dword [ebp - 0x240], edi
mov word [ebp - 0x218], ax
call fcn.004c24e0
add esp, 0xc
lea edx, [ebp - 0x23c]
push edx
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
push ecx
push edi
push str.ChannelName
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a522
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x40a500
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a500
sub eax, edx
sar eax, 1
cmp eax, edi
jbe 0x40a522
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00408440
cmp dword [ebp - 0x220], ebx
jb 0x40a539
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004ba3a4
add esp, 4
mov eax, dword [ebp - 0x238]
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
cmp eax, edi
je 0x40a563
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret
Function at 0x40a580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef948
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x244], edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov dword [ebp - 0x248], esi
mov ebx, ecx
mov word [esi], ax
mov eax, 1
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x23c], 0x104
mov dword [ebp - 0x238], edi
lea ecx, [ebp - 0x234]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push ecx
mov dword [ebp - 4], eax
call fcn.0040a830
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x234]
mov ebx, 8
cmp dword [ebp - 0x220], ebx
jae 0x40a61b
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x238]
push edx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a6c2
push 0x206
lea ecx, [ebp - 0x216]
push edi
push ecx
mov dword [ebp - 0x23c], 0x104
mov dword [ebp - 0x240], edi
mov word [ebp - 0x218], ax
call fcn.004c24e0
add esp, 0xc
lea edx, [ebp - 0x23c]
push edx
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
push ecx
push edi
push str.SubChannelName
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a6c2
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a6a0
sub eax, edx
sar eax, 1
cmp eax, edi
jbe 0x40a6c2
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00408440
cmp dword [ebp - 0x220], ebx
jb 0x40a6d9
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004ba3a4
add esp, 4
mov eax, dword [ebp - 0x238]
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
cmp eax, edi
je 0x40a703
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret
Function at 0x40a720
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f12cb
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a7a1
push str.RegWritePca
call fcn.004085f0
mov eax, dword [ebp - 0x21c]
add esp, 4
test eax, eax
je 0x40a79d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40a7f8
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 0x21c]
push 4
lea edx, [ebp - 0x220]
push edx
push 4
push 0
lea eax, [ebp - 0x218]
push eax
push ecx
mov dword [ebp - 0x220], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, dword [ebp - 0x21c]
sete bl
test eax, eax
je 0x40a7f6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret

Function at 0x40d6a0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push pe_nt_image_headers32
lea ecx, [ebp - 0x11c]
push 0
push ecx
mov dword [ebp - 0x120], 0x11c
call fcn.004c24e0
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40d701
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004ba3af
mov esp, ebp
pop ebp
ret
Function at 0x40d8e0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1163
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040d810
add esp, 4
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x7c]
mov ebx, 8
cmp dword [ebp - 0x68], ebx
jae 0x40d92f
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
je 0x40da19
mov eax, dword [ebp - 0x7c]
cmp dword [ebp - 0x68], ebx
jae 0x40d949
lea eax, [ebp - 0x7c]
push 0x5102ac
push eax
call fcn.004bb543
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x40d979
cmp dword [ebp - 0x68], ebx
jb 0x40da2a
mov edx, dword [ebp - 0x7c]
push edx
call fcn.004ba3a4
add esp, 4
xor al, al
jmp 0x40da6d
push 0x4e
lea ecx, [ebp - 0x5e]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x60], ax
call fcn.004c24e0
push esi
push 1
lea edx, [ebp - 0x60]
push 0x50
push edx
call fcn.004bb92b
push esi
call fcn.004bb9b5
add esp, 0x20
mov esi, 7
xor eax, eax
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], edi
mov word [ebp - 0x98], ax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40d9c6
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x98]
call fcn.00408440
cmp dword [ebp - 0x88], edi
jne 0x40da2e
cmp dword [ebp - 0x84], ebx
jb 0x40da04
mov edx, dword [ebp - 0x98]
push edx
call fcn.004ba3a4
add esp, 4
xor eax, eax
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], edi
mov word [ebp - 0x98], ax
cmp dword [ebp - 0x68], ebx
jb 0x40da2a
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.004ba3a4
add esp, 4
xor al, al
jmp 0x40da6d
cmp dword [ebp - 0x84], ebx
jb 0x40da45
mov edx, dword [ebp - 0x98]
push edx
call fcn.004ba3a4
add esp, 4
xor eax, eax
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], edi
mov word [ebp - 0x98], ax
cmp dword [ebp - 0x68], ebx
jb 0x40da6b
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.004ba3a4
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret
Function at 0x40ecd0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef69b
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov esi, 7
xor eax, eax
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], ax
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push edi
mov dword [ebp - 4], edi
push edx
mov word [ebp - 0x218], cx
call fcn.004c24e0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40ed87
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], edi
xor ecx, ecx
lea edi, [ebp - 0x234]
mov esi, ebx
mov word [ebx], cx
call fcn.00407640
cmp dword [ebp - 0x220], 8
jb 0x40eec5
mov edx, dword [ebp - 0x234]
push edx
jmp 0x40eebd
lea esi, [ebp - 0x250]
cmp dword [0x54c684], edi
jne 0x40ee04
call fcn.00403fc0
cmp dword [eax + 0x14], 8
jb 0x40eda2
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebp - 0x23c], 8
mov esi, eax
jb 0x40edca
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004ba3a4
add esp, 4
cmp esi, edi
je 0x40ee74
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x40ede0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ede0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00408440
jmp 0x40ee74
call fcn.00403fc0
mov edi, 8
cmp dword [eax + 0x14], edi
jb 0x40ee15
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, eax
cmp dword [ebp - 0x23c], edi
jb 0x40ee3c
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004ba3a4
add esp, 4
test esi, esi
je 0x40ee72
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ee50
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00408440
xor edi, edi
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40ee89
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov dword [ebx + 0x10], edi
xor eax, eax
mov dword [ebx + 0x14], 7
lea edi, [ebp - 0x234]
mov esi, ebx
mov word [ebx], ax
call fcn.00407640
cmp dword [ebp - 0x220], 8
jb 0x40eec5
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004ba3a4
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret
Function at 0x40eef0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef65b
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
mov dword [ebp - 4], ebx
push edx
mov word [ebp - 0x218], cx
call fcn.004c24e0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40efad
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x234]
mov word [esi], cx
call fcn.00407640
cmp dword [ebp - 0x220], 8
jb 0x40f0c5
mov edx, dword [ebp - 0x234]
push edx
jmp 0x40f0bd
lea ecx, [ebp - 0x250]
cmp dword [edi + 0x10], ebx
jne 0x40f010
mov edx, 0x54c674
call fcn.00403e20
cmp dword [eax + 0x14], 8
jb 0x40efca
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebp - 0x23c], 8
mov edi, eax
jb 0x40eff2
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004ba3a4
add esp, 4
cmp edi, ebx
je 0x40f076
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f003
jmp 0x40f05f
mov edx, edi
call fcn.00403e20
cmp dword [eax + 0x14], 8
jb 0x40f01f
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebp - 0x23c], 8
mov edi, eax
jb 0x40f047
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004ba3a4
add esp, 4
cmp edi, ebx
je 0x40f076
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f054
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00408440
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40f08b
lea eax, [ebp - 0x234]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x234]
mov word [esi], ax
call fcn.00407640
cmp dword [ebp - 0x220], 8
jb 0x40f0c5
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004ba3a4
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret
Function at 0x40f340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edx, [eax + 2]
jmp 0x40f390
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f390
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
mov ecx, esi
call fcn.00408440
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.004ba3af
mov esp, ebp
pop ebp
ret

Function at 0x40f6f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
push 0
push eax
mov dword [ebp - 0x120], 0x11c
call fcn.004c24e0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40f744
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
setae al
xor ecx, ebp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret
Function at 0x4147f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x414808
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41483a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x414836
cmp esi, eax
jae 0x41483a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x414828
cmp esi, eax
jb 0x414840
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x415460
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef55b
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x54b1b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, 0x1388
mov dword [esi], vtable.CHttpClient.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov eax, dword [0x54af28]
mov edx, dword [eax + 0xc]
mov ecx, 0x54af28
lea edi, [esi + 0x20]
call edx
add eax, 0x10
mov dword [edi], eax
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
push 0x512358
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x4154fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x512390
push 0x512690
call fcn.00407bd0
add esp, 0xc
jmp 0x41550f
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push ecx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
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 0x415a30
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0d68
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x14], 0x10
mov edi, ecx
mov dword [esi + 0x10], ebx
jb 0x415a6e
mov ecx, dword [esi]
jmp 0x415a70
mov ecx, esi
mov byte [ecx], bl
push eax
xor ecx, ecx
mov edx, edi
mov byte [ebp - 0x2d], bl
call fcn.00415eb0
test al, al
je 0x415aee
xor eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], ebx
call fcn.00415d90
test al, al
je 0x415af5
push 3
push 0x512404
lea edx, [ebp - 0x2c]
push edx
xor eax, eax
call fcn.004071a0
cmp eax, 0xffffffff
je 0x415af5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryRawHeaders404
push 0x512690
add edi, 0x20
call fcn.00407bd0
add esp, 0xc
cmp dword [ebp - 0x18], 8
jb 0x415aee
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ba3a4
add esp, 4
xor al, al
jmp 0x415b99
mov edx, dword [edi + 0xc]
lea ecx, [ebp - 0x34]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x415adc
push 0x100000
call fcn.004bb5e0
mov ebx, eax
mov eax, dword [ebp - 0x34]
add esp, 4
cmp eax, 0x100000
ja 0x415b61
mov edx, dword [edi + 0xc]
lea ecx, [ebp - 0x38]
push ecx
push eax
push ebx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x415b7b
mov eax, dword [ebp - 0x38]
push eax
mov eax, ebx
mov ecx, esi
call fcn.004017f0
mov edx, dword [edi + 0xc]
lea ecx, [ebp - 0x34]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x415b7b
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x415b77
cmp eax, 0x100000
jbe 0x415b20
push ebx
call fcn.004bba29
mov eax, dword [ebp - 0x34]
push eax
call fcn.004bb5e0
add esp, 8
mov ebx, eax
jmp 0x415b7b
mov byte [ebp - 0x2d], 1
push ebx
call fcn.004bba29
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x415b96
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004ba3a4
add esp, 4
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret 4