joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cb5e0
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f85f8
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5341c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [edi + 8]
lea ebx, [edi + 8]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x4cb63a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x18]
mov dword [ebx], 0
mov byte [edi + 0x10], 0
cmp dword [edi + 4], 0
mov dword [ebp - 4], 0
je 0x4cb769
test ecx, ecx
je 0x4cb784
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
je 0x4cb669
cmp esi, 0x18
je 0x4cb669
cmp esi, 0x20
jne 0x4cb79f
push 0x2c
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00470cd0
add esp, 0xc
mov dword [ebp - 0x44], 0x208
mov byte [ebp - 4], 1
cmp esi, 0x10
je 0x4cb6b0
cmp esi, 0x18
je 0x4cb6a2
cmp esi, 0x20
jne 0x4cb7ba
mov dword [ebp - 0x40], 0x6610
mov eax, esi
jmp 0x4cb6bc
mov dword [ebp - 0x40], 0x660f
mov eax, 0x18
jmp 0x4cb6bc
mov dword [ebp - 0x40], 0x660e
mov eax, 0x10
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004cdf80
add esp, 0x10
test eax, eax
jne 0x4cb7d5
push ebx
push 0
push 0
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4cb7f6
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x4cb817
jmp 0x4cb733
mov al, 1
lea ecx, [ebp - 0x44]
mov edx, 4
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x4cb740
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044666a
mov esp, ebp
pop ebp
ret 8
push str.SetKey:_Provider_is_not_valid
lea ecx, [ebp - 0x58]
call fcn.004c92c0
push 0x52d4bc
lea eax, [ebp - 0x58]
push eax
call fcn.004706d4
push str.SetKey:_Key_buffer_is_NULL
lea ecx, [ebp - 0x64]
call fcn.004c92c0
push 0x52d4bc
lea eax, [ebp - 0x64]
push eax
call fcn.004706d4
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x70]
call fcn.004c92c0
push 0x52d4bc
lea eax, [ebp - 0x70]
push eax
call fcn.004706d4
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x7c]
call fcn.004c92c0
push 0x52d4bc
lea eax, [ebp - 0x7c]
push eax
call fcn.004706d4
push str.SetKey:_Unable_to_copy_key
lea ecx, [ebp - 0x88]
call fcn.004c92c0
push 0x52d4bc
lea eax, [ebp - 0x88]
push eax
call fcn.004706d4
push str.SetKey:_Import_key_failed
lea ecx, [ebp - 0x94]
call fcn.004c92c0
push 0x52d4bc
lea eax, [ebp - 0x94]
push eax
call fcn.004706d4
push str.SetKey:_Set_CBC_mode_failed
lea ecx, [ebp - 0xa0]
call fcn.004c92c0
push 0x52d4bc
lea eax, [ebp - 0xa0]
push eax
call fcn.004706d4
push 0
push 0
call fcn.004706d4
int3
Function at 0x4cd530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f87c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5341c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0041cfa0
mov edi, eax
add esp, 4
test edi, edi
je 0x4cd5d4
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004d2e75
add esp, 4
mov dword [edi + 4], eax
jmp 0x4cd5d6
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.004c8c30
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x4cd637
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4cd637
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x4cd65a
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x4cd67d
cmp byte [ebp + 0xc], 0
je 0x4cd669
push esi
call fcn.004d312d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4cd689
mov esi, str.ios_base::badbit_set
jmp 0x4cd699
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004cd6c0
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.004c9430
push 0x52d478
lea eax, [ebp - 0x30]
push eax
call fcn.004706d4
int3
Function at 0x40615a
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0x214
mov eax, 0x521bd1
call fcn.004b4d0c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
jne 0x40617a
xor eax, eax
jmp 0x4062bf
push 0x208
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004f7ef0
add esp, 0xc
call fcn.00406a6c
push 0x52e9f0
test al, al
lea eax, [ebp - 0x218]
push esi
push eax
je 0x4061e6
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x21c]
call fcn.00407d51
push ebx
push edi
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push str.Ultra_Uninstaller_Tray
lea ecx, [ebp - 0x21c]
call fcn.00408bb7
lea ecx, [ebp - 0x21c]
mov edi, eax
call fcn.004083c8
jmp 0x4062bd
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 0x4062bd
call fcn.004067f6
push eax
lea ecx, [ebp - 0x21c]
call fcn.00405f79
mov dword [ebp - 4], 1
lea eax, [ebp - 0x218]
test ebx, ebx
je 0x40624b
push ebx
push eax
lea eax, [ebp - 0x21c]
push 0x52eab4
push eax
call fcn.00406701
add esp, 0x10
jmp 0x406260
push eax
lea eax, [ebp - 0x21c]
push str.__s_
push eax
call fcn.00406701
add esp, 0xc
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 4], 1
mov ebx, dword [esi - 0xc]
jle 0x406281
push ebx
lea ecx, [ebp - 0x21c]
call fcn.00406697
mov esi, dword [ebp - 0x21c]
lea eax, [ebx + ebx]
push eax
push esi
push 1
push edi
push str.Ultra_Uninstaller_Tray
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
mov edi, eax
call fcn.00406cf0
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.00406cd8
mov eax, edi
call fcn.004b4cb6
ret

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

Disassembly:
push 8
mov eax, 0x521c01
call fcn.004b4cd8
cmp dword [ebp + 8], 0
jne 0x4065a9
xor eax, eax
jmp 0x406622
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
call fcn.004068ef
pop ecx
pop ecx
test eax, eax
jne 0x4065c3
inc eax
jmp 0x406622
call fcn.00406a6c
test al, al
je 0x4065f2
lea ecx, [ebp + 8]
call fcn.00407d51
push 1
push str.Ultra_Uninstaller_Tray
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.0040932d
lea ecx, [ebp + 8]
mov esi, eax
call fcn.004083c8
jmp 0x406620
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 0x406620
push str.Ultra_Uninstaller_Tray
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, esi
call fcn.004b4ca1
ret
Function at 0x4068ef
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0x428
mov eax, 0x521c3d
call fcn.004b4d0c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
jne 0x40690f
xor eax, eax
jmp 0x406a66
xor edi, edi
test ebx, ebx
je 0x406917
mov dword [ebx], edi
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004f7ef0
add esp, 0xc
call fcn.00406a6c
push 0x52e9f0
test al, al
lea eax, [ebp - 0x218]
push esi
push eax
je 0x406980
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x42c]
call fcn.00407d51
push ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push str.Ultra_Uninstaller_Tray
lea ecx, [ebp - 0x42c]
call fcn.004096d1
lea ecx, [ebp - 0x42c]
mov edi, eax
call fcn.004083c8
jmp 0x406a64
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 0x406a64
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x104
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push edi
push str.Ultra_Uninstaller_Tray
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 0x406a64
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x428]
call fcn.00405fa2
inc esi
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], esi
call fcn.00406b36
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.00405fa2
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.00406b36
push edi
push dword [ebp - 0x424]
lea ecx, [ebp - 0x428]
call fcn.0040665d
test eax, eax
js 0x406a48
mov edi, esi
test ebx, ebx
je 0x406a48
mov dword [ebx], esi
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.00406cd8
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00406cd8
mov eax, edi
call fcn.004b4cb6
ret
Function at 0x40957a
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp word [0x577690], 0
push esi
mov esi, 0x577690
jne 0x4095a1
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.00405fa2
mov eax, dword [ebp + 8]
pop esi
leave
ret 4

Function at 0x40dd5e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x571720]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
lea edi, [ebp - 0x414]
mov ecx, 0x82
lea eax, [ebp - 0x20c]
mov esi, 0x52f980
rep movsd dword es:[edi], dword [esi]
push 0x208
xor esi, esi
push esi
push eax
call fcn.004f7ef0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x414]
push eax
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]
test eax, eax
je 0x40de20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40de20
push str.CreatePlugin
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40de20
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x418], esi
push ecx
push 1
call eax
test eax, eax
je 0x40de20
mov dword [ebx + 0x3f8], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4c90
leave
ret
Function at 0x40fce1
Capabilities:
Get file version info

Disassembly:
push 0x20
mov eax, 0x522b22
call fcn.004b4cd8
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 0x40fe80
push esi
call fcn.004b4e3d
mov edi, eax
pop ecx
test edi, edi
je 0x40fe80
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 0x40fe79
call fcn.0040ff5d
mov ebx, dword [ebp + 0xc]
test al, al
je 0x40fe2d
call fcn.0040fedb
test al, al
jne 0x40fe2d
and dword [ebp + 8], 0
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 0x40fe2d
xor esi, esi
test dword [ebp + 8], 0xfffffffc
mov dword [ebp - 0x1c], esi
jbe 0x40fe2d
call fcn.004067f6
push eax
lea ecx, [ebp - 0x18]
call fcn.00405f79
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.00406701
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 0x40fdf1
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406cd8
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
inc esi
shr eax, 2
mov dword [ebp - 0x1c], esi
cmp esi, eax
jb 0x40fd83
jmp 0x40fe2d
push dword [ebp - 0x20]
mov ecx, ebx
push dword [ebp - 0x24]
call fcn.00406d64
push 0x2e
push 0x2c
mov ecx, ebx
call fcn.0041003f
push 0x20
mov ecx, ebx
call fcn.0040ffbf
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
mov dword [ebp - 0x10], 1
call fcn.00406cd8
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x40fe76
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
and dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x52ead0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40fe76
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.00406701
xor ebx, ebx
add esp, 0x18
inc ebx
jmp 0x40fe79
mov ebx, dword [ebp - 0x10]
push edi
call fcn.004b4e07
pop ecx
mov al, bl
call fcn.004b4ca1
ret
Function at 0x4101eb
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004b4e10
mov eax, dword [0x571720]
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.004f7ef0
add esp, 0xc
mov dword [ebp - 0x4008], ebx
test esi, esi
je 0x4102c5
test edi, edi
je 0x4102c5
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4102c5
cmp eax, 0x3fff
ja 0x4102c5
lea ecx, [ebp - 0x4004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4102c5
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x52ead0
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4102c5
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push ebx
push edi
call fcn.004f7ef0
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.0040c9bb
xor eax, eax
add esp, 0x28
inc eax
jmp 0x4102c7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4c90
leave
ret

Function at 0x4103db
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 0x410446
cmp dword [ebp + 0xc], 0
je 0x410446
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x410446
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x410446
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 0x410440
push esi
push dword [ebp + 0xc]
push edi
call fcn.004f73f0
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 0x410440
mov al, 1
jmp 0x410448
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
leave
ret
Function at 0x41083b
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 0x4108a6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x4108ba
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 0x4108a6
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], ebx
je 0x4108b8
cmp dword [edi + 4], ebx
je 0x4108b8
cmp dword [edi + 0xc], ebx
je 0x4108b8
xor ebx, ebx
inc ebx
mov eax, ebx
pop edi
pop ebx
pop ebp
ret 4

Function at 0x4108c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x571720]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
je 0x4108e4
xor eax, eax
inc eax
jmp 0x410971
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004f7ef0
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 0x410938
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
sub edi, 1
jne 0x410926
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 0x410971
lea eax, [ebp - 0x20c]
mov dword [esi + 0x1c], 1
push eax
mov ecx, esi
call fcn.0041083b
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b4c90
leave
ret 4
Function at 0x4122b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x522ce1
call fcn.004b4d7a
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 0x412336
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 0x412336
call fcn.004115a8
mov esi, eax
jmp 0x41240d
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x412359
call fcn.004115a8
jmp 0x412400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x41234f
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 0x412389
mov esi, 0x8007000e
jmp 0x412402
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00411425
jmp 0x4123af
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x412382
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 0x41234f
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.00412180
mov esi, eax
test edi, edi
je 0x41240d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x412426
lea ecx, [ebp - 0x418]
call fcn.00411957
mov eax, esi
call fcn.004b4cc7
ret 0x10
Function at 0x414931
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
imul esi, ebx, 0x4058
mov edi, ecx
add esi, edi
push esi
push dword [esi + 0x28]
and dword [esi + 0x4038], 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x414979
mov byte [esi + 0x2c], 0
mov dword [esi + 0x4038], 1
mov ecx, dword [edi + 0x80ec]
test ecx, ecx
je 0x414979
mov eax, dword [ecx]
push 0
push ebx
push edi
call dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x414997
cmp eax, 0x3e5
je 0x414991
xor al, al
jmp 0x4149a6
mov byte [esi + 0x2c], 1
jmp 0x4149a0
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [esi + 0x2d], 0
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4149ad
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
call fcn.00414b83
xor edi, edi
push edi
push 0x40000000
push 3
push edi
push edi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x4149e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x414a5b
push dword [ebp + 8]
lea ecx, [esi + 0x10]
call fcn.0040b0e9
push edi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 2
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x414a15
mov eax, dword [ecx]
push edi
push esi
call dword [eax]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp byte [esi + 0x28], 0
mov dword [esi + 8], eax
jne 0x414a59
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x414fff
push edi
push edi
call fcn.005001e7
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x414a59
cmp dword [esi + 4], 0xffffffff
je 0x4149e3
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 4], 0xffffffff
jmp 0x4149e3
mov al, 1
pop edi
pop esi
leave
ret 4