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

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x4c1c50]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov edx, dword [ebp + 0xac]
mov ecx, dword [ebp + 0xa0]
mov eax, dword [ebp + 0x9c]
push ebx
mov ebx, dword [ebp + 0xa8]
push esi
mov esi, dword [ebp + 0xb0]
push edi
mov edi, dword [ebp + 0xa4]
push 0x20019
push edx
push ecx
push eax
call fcn.00401a1c
add esp, 0x10
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x403c57
and dword [ebp - 0x78], 0
push 0x103
lea eax, [ebp - 0x73]
push 0
push eax
mov dword [ebp - 0x80], 0x104
mov byte [ebp - 0x74], 0
call fcn.00470280
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push 0
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403c4b
test esi, esi
je 0x403c39
cmp dword [esi], 4
jne 0x403c39
push dword [ebp - 0x74]
mov ecx, ebx
push str.0x_08lx
call fcn.00403650
jmp 0x403c44
lea eax, [ebp - 0x74]
push eax
mov ecx, ebx
call fcn.0044e3b0
mov dword [ebp - 0x78], 1
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00470483
add ebp, 0x94
leave
ret
Function at 0x404352
Capabilities:
Copy file

Disassembly:
push 0x34
mov eax, 0x493452
call fcn.00470906
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.0044e1c0
xor esi, esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
call fcn.00401219
test al, al
jne 0x40439f
lea ecx, [ebp - 0x20]
call fcn.0044e020
cmp byte [ebp - 0x19], 0xff
lea ecx, [ebp - 0x20]
jne 0x40438e
mov ecx, dword [ebp - 0x20]
cmp byte [ecx + eax - 1], 0x5c
je 0x40439f
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.0044e760
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.0044e1c0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00401219
test al, al
jne 0x4043df
lea ecx, [ebp - 0x18]
call fcn.0044e020
cmp byte [ebp - 0x11], 0xff
lea ecx, [ebp - 0x18]
jne 0x4043ce
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + eax - 1], 0x5c
je 0x4043df
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0044e760
push 0x4a0ba4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0044eb40
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], esi
call fcn.0044e010
cmp byte [ebp - 0x11], 0xff
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
jne 0x404413
mov eax, dword [ebp - 0x18]
push esi
push eax
call fcn.00401fd6
mov edi, 0xa0
push edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004022e9
add esp, 0x18
jmp 0x4044ac
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0044eaf0
mov esi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 4
call fcn.0044eaf0
add esp, 0x18
cmp byte [esi + 7], 0xff
mov byte [ebp - 4], 5
jne 0x40446d
mov esi, dword [esi]
cmp byte [eax + 7], 0xff
jne 0x404475
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.0044e260
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.0044e260
push edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004022e9
add esp, 0x10
test eax, eax
jne 0x404436
lea eax, [ebp - 0x10]
push eax
call fcn.004023c4
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0044e260
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0044e260
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0044e260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0044e260
xor eax, eax
inc eax
call fcn.004709de
ret
Function at 0x404570
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493478
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4c1c50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x14]
call fcn.0044e010
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x14]
push eax
push str.CookiesPath
push str.RealMediaSDK
push SysReAllocString
call fcn.00403c6f
add esp, 0x14
test eax, eax
je 0x4045ef
lea ecx, [ebp - 0x14]
call fcn.0040123d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0044e260
mov eax, dword [ebp - 0x18]
jmp 0x404608
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0044e260
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x404620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4934a8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4c1c50]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x4c31ac], 0
jne 0x404656
jmp 0x404735
cmp dword [0x4c0008], 0
jne 0x404664
jmp 0x404735
lea eax, [ebp - 0x34]
push eax
call fcn.00401005
add esp, 4
lea ecx, [ebp - 0x34]
push ecx
call fcn.00401000
add esp, 4
mov dword [ebp - 0x10], eax
mov dl, byte [0x4a099a]
mov byte [ebp - 0x30], dl
xor eax, eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
push 0x19
push 0
lea ecx, [ebp - 0x30]
push ecx
call fcn.00470280
add esp, 0xc
push 0x18
mov edx, dword [ebp - 0x10]
push edx
call fcn.004725f1
add esp, 4
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004713d0
add esp, 0xc
lea ecx, [ebp - 0x3c]
call fcn.0044e010
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.0040123d
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
lea edx, [ebp - 0x30]
push edx
push str.__s___s_r_n
lea eax, [ebp - 0x3c]
push eax
call fcn.0044ee50
add esp, 0x10
mov dword [ebp - 0x40], 0
push 0
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0044e020
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040123d
push eax
mov edx, dword [0x4c31ac]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0044e260
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00470483
mov esp, ebp
pop ebp
ret
Function at 0x405234
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x4c1c50]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x1c
mov eax, 0x4935d4
call fcn.00470906
mov eax, dword [ebp + 0x110]
mov esi, dword [ebp + 0x114]
mov edi, dword [ebp + 0x118]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x11c]
push str.SoftwareRealNetworks_
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], eax
call fcn.0044e280
xor ebx, ebx
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.0044e6e0
push 0x4a0ae8
lea ecx, [ebp - 0x14]
call fcn.0044e6e0
push 0x103
lea eax, [ebp + 1]
push ebx
push eax
mov dword [ebp - 0x18], 0x104
mov byte [ebp], bl
call fcn.00470280
add esp, 0xc
cmp byte [ebp - 0xd], 0xff
lea eax, [ebp - 0x14]
jne 0x4052c6
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
cmp eax, ebx
jne 0x40535b
cmp dword [ebp - 0x18], ebx
jle 0x40535b
push edi
lea eax, [ebp]
push eax
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.00401a56
add esp, 0x10
cmp byte [ebp - 0x19], 0xff
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
jne 0x405305
mov eax, dword [ebp - 0x20]
push 1
push dword [ebp + 0x120]
push dword [ebp - 0x28]
push ebx
push eax
push dword [ebp - 0x24]
call fcn.00404f4a
add esp, 0x18
lea ecx, [ebp - 0x20]
mov esi, eax
mov byte [ebp - 4], bl
call fcn.0044e260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0044e260
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 + 0x104]
xor ecx, ebp
call fcn.00470483
add ebp, 0x108
leave
ret
xor esi, esi
jmp 0x40532a
Function at 0x4069fd
Capabilities:
Get geographical location

Disassembly:
push ebp
sub esp, 0x9c
lea ebp, [esp - 4]
mov eax, dword [0x4c1c50]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0xc
mov eax, 0x4937ba
call fcn.00470906
mov edi, dword [ebp + 0xa8]
and dword [ebp - 0x14], 0
mov ecx, edi
mov dword [ebp - 0x18], edi
call fcn.00405360
xor esi, esi
inc esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], esi
call fcn.00405360
and dword [ebp], 0
push 0x98
lea eax, [ebp + 4]
push 0
push eax
mov dword [ebp - 4], esi
call fcn.00470280
mov esi, 0x9c
push esi
lea eax, [ebp]
push 0
push eax
call fcn.00470280
add esp, 0x18
lea eax, [ebp]
mov dword [ebp], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x406a8e
lea eax, [ebp]
push eax
mov dword [ebp], 0x94
call esi
mov eax, 0x104
push eax
push eax
lea ecx, [ebp - 0x10]
call fcn.004058b0
push eax
push 0x59
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004048d0
lea ecx, [ebp - 0x10]
call fcn.00403330
push eax
movzx eax, word [ebp + 0x94]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 4]
push str._d._d._dSP_d_s
push edi
call fcn.00406450
add esp, 0x1c
lea ecx, [ebp - 0x10]
call fcn.00405380
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 + 0x9c]
xor ecx, ebp
call fcn.00470483
add ebp, 0xa0
leave
ret
Function at 0x40712d
Capabilities:
Read .ini file

Disassembly:
push 0x18
mov eax, 0x4938a4
call fcn.00470906
xor esi, esi
inc esi
cmp dword [ebp + 8], esi
jne 0x4071e0
lea ecx, [ebp - 0x14]
call fcn.0044e010
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x23
push esi
mov dword [ebp - 4], esi
call fcn.00401ce8
add esp, 0x14
test eax, eax
jne 0x40716f
lea ecx, [ebp - 0x14]
jmp 0x40723c
push str.Real_setup_
lea ecx, [ebp - 0x14]
call fcn.0044e6e0
cmp byte [ebp - 0xd], 0xff
lea eax, [ebp - 0x14]
jne 0x407188
mov eax, dword [ebp - 0x14]
push esi
push eax
call fcn.00401fd6
pop ecx
pop ecx
push str.config.ini
lea ecx, [ebp - 0x14]
call fcn.0044e6e0
lea ecx, [ebp - 0x14]
call fcn.004070a2
cmp byte [ebp - 0xd], 0xff
lea eax, [ebp - 0x14]
jne 0x4071b2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, 0x100
push eax
push eax
call fcn.0044ec10
push eax
push esi
push dword [ebp + 0xc]
push str.Upgrade_Helper
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
mov esi, eax
call fcn.0044eca0
jmp 0x407167
cmp dword [ebp + 8], 3
mov edi, SysReAllocString
jne 0x4071ec
inc edi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.0040184c
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0044eb40
add esp, 0x14
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0044e260
cmp byte [ebp - 0x15], 0xff
lea eax, [ebp - 0x1c]
jne 0x407223
mov eax, dword [ebp - 0x1c]
xor esi, esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push eax
push edi
call fcn.00403b8b
add esp, 0x18
mov esi, eax
lea ecx, [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
call fcn.0044e260
mov eax, esi
call fcn.004709de
ret
Function at 0x408ccb
Capabilities:
Get disk size

Disassembly:
push ebp
sub esp, 0x9c
lea ebp, [esp - 4]
mov eax, dword [0x4c1c50]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x1c
mov eax, 0x493b26
call fcn.00470906
mov eax, dword [ebp + 0xa8]
push eax
lea ecx, [ebp - 0x10]
mov ebx, 0x80004005
call fcn.00408580
xor edi, edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.004059a0
push 0x98
lea eax, [ebp + 4]
push edi
push eax
call fcn.00470280
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [ebp], 0x9c
call esi
test eax, eax
jne 0x408d46
lea eax, [ebp]
push eax
mov dword [ebp], 0x94
call esi
mov eax, dword [ebp + 0x10]
dec eax
je 0x408d66
dec eax
jne 0x408da8
push edi
push edi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403340
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
jmp 0x408da8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
call fcn.00403340
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [ebp - 0x18]
mul dword [ebp - 0x1c]
push edi
push dword [ebp - 0x14]
push edx
push eax
call fcn.00472820
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0xac]
cdq
shld edx, eax, 0x14
shl eax, 0x14
cmp edx, dword [ebp - 0x20]
ja 0x408dc4
jb 0x408dc2
cmp eax, dword [ebp - 0x24]
jae 0x408dc4
xor ebx, ebx
lea ecx, [ebp - 0x10]
call fcn.00405380
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00470483
add ebp, 0xa0
leave
ret
Function at 0x40cbe0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4941b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4c1c50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x40cce2
push 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.0040bc40
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x40cc76
lea ecx, [ebp - 0x18]
call fcn.0040123d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x18]
call fcn.0040123d
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x4c31ac], eax
jmp 0x40cc99
push 0
push 0x80
push 3
push 0
push 1
push 4
lea ecx, [ebp - 0x18]
call fcn.0040123d
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x4c31ac], eax
cmp dword [0x4c31ac], 0xffffffff
jne 0x40ccb2
mov dword [ebp - 0x1c], 5
mov dword [ebp - 0x1c], 4
jmp 0x40ccc3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0044e260
jmp 0x40cce2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0044e260
jmp 0x40cc0c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x40d3d8
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x10], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x416125
Capabilities:
Create http request

Disassembly:
xor eax, eax
cmp dword [0x4c33a8], eax
je 0x416130
ret
push eax
push eax
push eax
push eax
push str.StubInstaller
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [0x4c33a8], eax
neg eax
sbb eax, eax
and eax, 0x7fff555f
add eax, 0x8000aaa1
ret
Function at 0x4161bf
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4c1c50]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x70
mov eax, 0x4950d2
call fcn.00470906
mov edi, dword [ebp + 0x80c]
push edi
lea eax, [ebp - 0x1c]
push str.GetURLStatus__:_strURL_
push eax
call fcn.0044eb90
push 0x4a2580
push eax
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0044eb40
push eax
mov byte [ebp - 4], 1
call fcn.00404620
add esp, 0x1c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0044e260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0044e260
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea eax, [ebp - 0x14]
push eax
push 2
push ebx
mov dword [ebp - 0x14], 0x7530
call esi
push 4
lea eax, [ebp - 0x14]
push eax
push 6
push ebx
call esi
push 4
lea eax, [ebp - 0x14]
push eax
push 5
push ebx
call esi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.00470280
lea eax, [ebp]
mov dword [ebp - 0x6c], eax
mov eax, 0x400
add esp, 0xc
cmp byte [edi + 7], 0xff
lea ecx, [ebp + 0x400]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
jne 0x416294
mov edi, dword [edi]
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push ebx
push ebx
push ebx
push ebx
push str.StubInstaller
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x41638c
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x416387
push ebx
push ebx
lea ecx, [ebp - 0x30]
push ecx
push ebx
push ebx
lea ecx, [ebp + 0x400]
push ecx
push str.HEAD
push eax
mov dword [ebp - 0x30], 0x4a2574
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
cmp esi, ebx
je 0x416382
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x41637f
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000013
push esi
mov dword [ebp - 0x20], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
push dword [ebp - 0x10]
lea eax, [ebp - 0x40]
push eax
call fcn.0042b05f
push eax
lea eax, [ebp - 0x38]
push str.dwStatus_
push eax
mov dword [ebp - 4], 2
call fcn.0044eb90
push eax
mov byte [ebp - 4], 3
call fcn.00404620
add esp, 0x18
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0044e260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0044e260
push esi
call edi
push dword [ebp - 0x18]
call edi
push dword [ebp - 0x24]
call edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00470483
add ebp, 0x804
leave
ret
Function at 0x4173fb
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
sub esp, 0x204
lea ebp, [esp - 4]
mov eax, dword [0x4c1c50]
xor eax, ebp
mov dword [ebp + 0x204], eax
push 0x18
mov eax, 0x495358
call fcn.00470906
mov esi, dword [ebp + 0x210]
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 8]
test eax, eax
js 0x4175c6
push 0x103
lea eax, [ebp + 0x101]
push 0
push eax
mov byte [ebp + 0x100], 0
call fcn.00470280
lea eax, [ebp + 0x100]
push esi
push eax
call fcn.00470ce0
mov esi, 0x4a2770
lea eax, [ebp + 0x100]
push esi
push eax
call fcn.0046f770
add esp, 0x1c
test eax, eax
je 0x417486
lea eax, [ebp + 0x100]
push esi
push eax
call fcn.0046f770
pop ecx
pop ecx
mov byte [eax], 0
lea eax, [ebp + 0x100]
push eax
lea ebx, [edi + 8]
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0044eb40
add esp, 0xc
and dword [ebp - 4], 0
lea esi, [edi + 0x10]
push eax
mov ecx, esi
call fcn.0044e310
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0044e260
lea ecx, [edi + 0x18]
call fcn.00401219
test al, al
jne 0x417577
and dword [ebp - 0x10], 0
push 0xff
mov byte [ebp], al
lea eax, [ebp + 1]
push 0
push eax
call fcn.00470280
add esp, 0xc
lea eax, [edi + 0x18]
cmp byte [eax + 7], 0xff
jne 0x4174ed
mov eax, dword [eax]
push dword [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
call fcn.0047176b
inc dword [ebp - 0x10]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.0044eb40
add esp, 0x18
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0044e310
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0044e260
cmp byte [esi + 7], 0xff
mov eax, esi
jne 0x417533
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x417577
lea eax, [ebp + 0x100]
push eax
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.0044eb40
add esp, 0xc
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.0044e310
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0044e260
cmp dword [ebp - 0x10], 0x64
jl 0x4174e2
cmp byte [esi + 7], 0xff
mov eax, esi
jne 0x417581
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [esi + 7], 0xff
mov eax, esi
jne 0x417592
mov eax, dword [esi]
xor ecx, ecx
push ecx
push 0x80
push 2
push ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x4175c4
push esi
mov ecx, 0x4c33b0
call fcn.0044e310
mov eax, 0x80004005
jmp 0x4175c6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x204]
xor ecx, ebp
call fcn.00470483
add ebp, 0x208
leave
ret 4

Function at 0x417610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
leave
ret 8
Function at 0x4189b5
Capabilities:
Delete file
Read .ini file

Disassembly:
push 0x18
mov eax, 0x4955fc
call fcn.00470906
xor ebx, ebx
push 0x4a099a
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.0044e280
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
xor esi, esi
call fcn.00401219
test al, al
jne 0x418acd
lea ecx, [ebp + 8]
call fcn.0044e020
cmp byte [ebp + 0xf], 0xff
lea ecx, [ebp + 8]
jne 0x4189fd
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax - 1]
cmp al, 0x5c
je 0x418a0f
push 0x5c
lea ecx, [ebp + 8]
call fcn.0044e760
push str.version.ini
lea ecx, [ebp + 8]
call fcn.0044e6e0
cmp byte [ebp + 0xf], 0xff
lea eax, [ebp + 8]
jne 0x418a28
mov eax, dword [ebp + 8]
push eax
mov eax, 0x100
push eax
push eax
lea ecx, [ebp - 0x24]
call fcn.0044ec10
push eax
push ebx
push 0x4a2b1c
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.0044eca0
lea ecx, [ebp - 0x24]
call fcn.00401219
test al, al
jne 0x418acd
cmp byte [ebp - 0x1d], 0xff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x24]
jne 0x418a78
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push str._d._d._d._d
push eax
call fcn.00470500
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
and esi, 0x7f
shl eax, 7
or esi, eax
movzx eax, byte [ebp - 0x18]
shl esi, 8
or esi, eax
mov eax, dword [ebp - 0x1c]
and eax, 0xfff
shl esi, 0xc
or esi, eax
add esp, 0x18
cmp byte [ebp + 0xf], 0xff
lea eax, [ebp + 8]
jne 0x418ac6
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x418add
lea eax, [ebp - 0x24]
push eax
call fcn.0044e310
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0044e260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0044e260
mov eax, esi
call fcn.004709de
ret 0xc