joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ef23
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xb8
mov eax, dword [0x4ff5d0]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
mov esi, dword [ebp + 0x78]
push edi
push 0x98
xor ebx, ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00493d40
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x9c
call edi
test eax, eax
jne 0x40ef76
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x94
call edi
mov eax, dword [ebp - 0x20]
dec eax
je 0x40ef96
dec eax
jne 0x40efd8
cmp byte [esi + 7], 0xff
jne 0x40ef87
mov esi, dword [esi]
push ebx
push ebx
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
jmp 0x40efd8
cmp byte [esi + 7], 0xff
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x38], ebx
jne 0x40efaa
mov esi, dword [esi]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 0x38]
mul dword [ebp - 0x3c]
push ebx
push dword [ebp - 0x34]
push edx
push eax
call fcn.00495280
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 0x7c]
cdq
shld edx, eax, 0x14
pop edi
shl eax, 0x14
pop esi
pop ebx
cmp edx, dword [ebp - 0x40]
ja 0x40eff6
jb 0x40eff2
cmp eax, dword [ebp - 0x44]
jae 0x40eff6
xor eax, eax
jmp 0x40effb
mov eax, 0x80004005
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.00493f43
add ebp, 0x70
leave
ret

Function at 0x40f2e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc260
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4ff5d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x4c], 0
push 0x38
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.00493d40
add esp, 0xc
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x440
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], str.open
lea ecx, [ebp + 8]
call fcn.0040d5be
mov dword [ebp - 0x3c], eax
lea ecx, [ebp + 0x10]
call fcn.0040d5be
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 1
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40f380
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00472320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00472320
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4109a7
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x4bc574
call fcn.004943c6
mov eax, dword [ebp + 8]
xor esi, esi
inc esi
cmp eax, esi
jne 0x410a1d
lea ecx, [ebp - 0x14]
call fcn.00472090
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x23
push esi
mov dword [ebp - 4], esi
call fcn.0040e228
add esp, 0x14
test eax, eax
jne 0x4109e7
lea ecx, [ebp - 0x14]
jmp 0x410a99
push str.Real_setup_
lea ecx, [ebp - 0x14]
call fcn.004727a0
push str.config.ini
lea ecx, [ebp - 0x14]
call fcn.004727a0
cmp dword [ebp + 0xc], esi
jne 0x4109df
cmp byte [ebp - 0xd], 0xff
lea eax, [ebp - 0x14]
jne 0x410a12
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
jmp 0x4109df
mov edi, SysReAllocStringLen
cmp eax, 3
jne 0x410a28
dec edi
cmp dword [ebp + 0xc], 0
push eax
jne 0x410a53
lea eax, [ebp - 0x14]
push eax
call fcn.0040db7a
pop ecx
pop ecx
cmp byte [eax + 7], 0xff
mov dword [ebp - 4], esi
jne 0x410a45
mov eax, dword [eax]
push eax
push edi
call fcn.0040dd36
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
jmp 0x410a97
lea eax, [ebp - 0x24]
push eax
call fcn.0040db7a
push dword [ebp + 0xc]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00472c20
add esp, 0x14
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.00472320
cmp byte [ebp - 0x15], 0xff
lea eax, [ebp - 0x1c]
jne 0x410a8b
mov eax, dword [ebp - 0x1c]
push eax
push edi
call fcn.0040dd36
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
mov esi, eax
or dword [ebp - 4], 0xffffffff
call fcn.00472320
mov eax, esi
call fcn.0049449e
ret

Function at 0x410aaa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x4ff5d0]
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.0040dd5e
add esp, 0x10
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x410b76
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.00493d40
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 0x410b6a
test esi, esi
je 0x410b58
cmp dword [esi], 4
jne 0x410b58
push dword [ebp - 0x74]
mov ecx, ebx
push str.0x_08lx
call fcn.004105d0
jmp 0x410b63
lea eax, [ebp - 0x74]
push eax
mov ecx, ebx
call fcn.00472470
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.00493f43
add ebp, 0x94
leave
ret
Function at 0x411271
Capabilities:
Copy file

Disassembly:
push 0x34
mov eax, 0x4bc6d5
call fcn.004943c6
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.00472280
xor esi, esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
call fcn.0040d59a
test al, al
jne 0x4112be
lea ecx, [ebp - 0x20]
call fcn.004720a0
cmp byte [ebp - 0x19], 0xff
lea ecx, [ebp - 0x20]
jne 0x4112ad
mov ecx, dword [ebp - 0x20]
cmp byte [ecx + eax - 1], 0x5c
je 0x4112be
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.00472820
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.00472280
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040d59a
test al, al
jne 0x4112fe
lea ecx, [ebp - 0x18]
call fcn.004720a0
cmp byte [ebp - 0x11], 0xff
lea ecx, [ebp - 0x18]
jne 0x4112ed
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + eax - 1], 0x5c
je 0x4112fe
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00472820
push 0x4d1c38
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00472c20
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], esi
call fcn.00472090
cmp byte [ebp - 0x11], 0xff
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
jne 0x411332
mov eax, dword [ebp - 0x18]
push esi
push eax
call fcn.0040e521
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.0040e834
add esp, 0x18
jmp 0x4113cb
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00472bd0
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.00472bd0
add esp, 0x18
cmp byte [esi + 7], 0xff
mov byte [ebp - 4], 5
jne 0x41138c
mov esi, dword [esi]
cmp byte [eax + 7], 0xff
jne 0x411394
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.00472320
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00472320
push edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040e834
add esp, 0x10
test eax, eax
jne 0x411355
lea eax, [ebp - 0x10]
push eax
call fcn.0040e90f
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00472320
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00472320
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00472320
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00472320
xor eax, eax
inc eax
call fcn.0049449e
ret
Function at 0x411af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc788
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4ff5d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x50148c], 0
jne 0x411b26
jmp 0x411c05
cmp dword [0x4fd008], 0
jne 0x411b34
jmp 0x411c05
lea eax, [ebp - 0x34]
push eax
call fcn.0040d518
add esp, 4
lea ecx, [ebp - 0x34]
push ecx
call fcn.0040d513
add esp, 4
mov dword [ebp - 0x10], eax
mov dl, byte [0x4d1a1a]
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.00493d40
add esp, 0xc
push 0x18
mov edx, dword [ebp - 0x10]
push edx
call fcn.00496201
add esp, 4
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00494f10
add esp, 0xc
lea ecx, [ebp - 0x3c]
call fcn.00472090
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.0040d5be
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.00472ff0
add esp, 0x10
mov dword [ebp - 0x40], 0
push 0
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004720a0
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040d5be
push eax
mov edx, dword [0x50148c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00472320
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00493f43
mov esp, ebp
pop ebp
ret
Function at 0x413f8d
Capabilities:
Get geographical location

Disassembly:
push ebp
sub esp, 0x9c
lea ebp, [esp - 4]
mov eax, dword [0x4ff5d0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0xc
mov eax, 0x4bcaea
call fcn.004943c6
mov edi, dword [ebp + 0xa8]
and dword [ebp - 0x14], 0
mov ecx, edi
mov dword [ebp - 0x18], edi
call fcn.00412850
xor esi, esi
inc esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], esi
call fcn.00412850
and dword [ebp], 0
push 0x98
lea eax, [ebp + 4]
push 0
push eax
mov dword [ebp - 4], esi
call fcn.00493d40
mov esi, 0x9c
push esi
lea eax, [ebp]
push 0
push eax
call fcn.00493d40
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 0x41401e
lea eax, [ebp]
push eax
mov dword [ebp], 0x94
call esi
mov eax, 0x104
push eax
push eax
lea ecx, [ebp - 0x10]
call fcn.00413060
push eax
push 0x59
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00411ec0
lea ecx, [ebp - 0x10]
call fcn.004103e0
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.004139e0
add esp, 0x1c
lea ecx, [ebp - 0x10]
call fcn.00412060
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.00493f43
add ebp, 0xa0
leave
ret
Function at 0x41464d
Capabilities:
Read .ini file

Disassembly:
push 0x18
mov eax, 0x4bcbd4
call fcn.004943c6
xor esi, esi
inc esi
cmp dword [ebp + 8], esi
jne 0x414700
lea ecx, [ebp - 0x14]
call fcn.00472090
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x23
push esi
mov dword [ebp - 4], esi
call fcn.0040e228
add esp, 0x14
test eax, eax
jne 0x41468f
lea ecx, [ebp - 0x14]
jmp 0x41475c
push str.Real_setup_
lea ecx, [ebp - 0x14]
call fcn.004727a0
cmp byte [ebp - 0xd], 0xff
lea eax, [ebp - 0x14]
jne 0x4146a8
mov eax, dword [ebp - 0x14]
push esi
push eax
call fcn.0040e521
pop ecx
pop ecx
push str.config.ini
lea ecx, [ebp - 0x14]
call fcn.004727a0
lea ecx, [ebp - 0x14]
call fcn.004145c2
cmp byte [ebp - 0xd], 0xff
lea eax, [ebp - 0x14]
jne 0x4146d2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, 0x100
push eax
push eax
call fcn.00472db0
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.00472e40
jmp 0x414687
cmp dword [ebp + 8], 3
mov edi, SysReAllocStringLen
jne 0x41470c
dec edi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.0040db7a
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00472c20
add esp, 0x14
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00472320
cmp byte [ebp - 0x15], 0xff
lea eax, [ebp - 0x1c]
jne 0x414743
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.00410aaa
add esp, 0x18
mov esi, eax
lea ecx, [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
call fcn.00472320
mov eax, esi
call fcn.0049449e
ret
Function at 0x419380
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd408
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4ff5d0]
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 0x419482
push 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.004183e0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x419416
lea ecx, [ebp - 0x18]
call fcn.0040d5be
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.0040d5be
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x50148c], eax
jmp 0x419439
push 0
push 0x80
push 3
push 0
push 1
push 4
lea ecx, [ebp - 0x18]
call fcn.0040d5be
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x50148c], eax
cmp dword [0x50148c], 0xffffffff
jne 0x419452
mov dword [ebp - 0x1c], 5
mov dword [ebp - 0x1c], 4
jmp 0x419463
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00472320
jmp 0x419482
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00472320
jmp 0x4193ac
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x419c4b
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 0x42304b
Capabilities:
Create http request

Disassembly:
xor eax, eax
cmp dword [0x501688], eax
je 0x423056
ret
push eax
push eax
push eax
push eax
push str.StubInstaller
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [0x501688], eax
neg eax
sbb eax, eax
and eax, 0x7fff555f
add eax, 0x8000aaa1
ret
Function at 0x4230e5
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 [0x4ff5d0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x70
mov eax, 0x4be326
call fcn.004943c6
mov edi, dword [ebp + 0x80c]
push edi
lea eax, [ebp - 0x1c]
push str.GetURLStatus__:_strURL_
push eax
call fcn.00472c70
push 0x4d37d4
push eax
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00472c20
push eax
mov byte [ebp - 4], 1
call fcn.00411af0
add esp, 0x1c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00472320
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00472320
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.00493d40
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 0x4231ba
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 0x4232b2
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 0x4232ad
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], 0x4d37c8
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
cmp esi, ebx
je 0x4232a8
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4232a5
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.00437c91
push eax
lea eax, [ebp - 0x38]
push str.dwStatus_
push eax
mov dword [ebp - 4], 2
call fcn.00472c70
push eax
mov byte [ebp - 4], 3
call fcn.00411af0
add esp, 0x18
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00472320
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00472320
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.00493f43
add ebp, 0x804
leave
ret
Function at 0x424321
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
sub esp, 0x204
lea ebp, [esp - 4]
mov eax, dword [0x4ff5d0]
xor eax, ebp
mov dword [ebp + 0x204], eax
push 0x18
mov eax, 0x4be5ac
call fcn.004943c6
mov esi, dword [ebp + 0x210]
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 8]
test eax, eax
js 0x4244ec
push 0x103
lea eax, [ebp + 0x101]
push 0
push eax
mov byte [ebp + 0x100], 0
call fcn.00493d40
lea eax, [ebp + 0x100]
push esi
push eax
call fcn.00494820
mov esi, 0x4d39c8
lea eax, [ebp + 0x100]
push esi
push eax
call fcn.00493420
add esp, 0x1c
test eax, eax
je 0x4243ac
lea eax, [ebp + 0x100]
push esi
push eax
call fcn.00493420
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.00472c20
add esp, 0xc
and dword [ebp - 4], 0
lea esi, [edi + 0x10]
push eax
mov ecx, esi
call fcn.004723d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00472320
lea ecx, [edi + 0x18]
call fcn.0040d59a
test al, al
jne 0x42449d
and dword [ebp - 0x10], 0
push 0xff
mov byte [ebp], al
lea eax, [ebp + 1]
push 0
push eax
call fcn.00493d40
add esp, 0xc
lea eax, [edi + 0x18]
cmp byte [eax + 7], 0xff
jne 0x424413
mov eax, dword [eax]
push dword [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
call fcn.004952eb
inc dword [ebp - 0x10]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.00472c20
add esp, 0x18
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.004723d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00472320
cmp byte [esi + 7], 0xff
mov eax, esi
jne 0x424459
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42449d
lea eax, [ebp + 0x100]
push eax
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.00472c20
add esp, 0xc
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.004723d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00472320
cmp dword [ebp - 0x10], 0x64
jl 0x424408
cmp byte [esi + 7], 0xff
mov eax, esi
jne 0x4244a7
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [esi + 7], 0xff
mov eax, esi
jne 0x4244b8
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 0x4244ea
push esi
mov ecx, 0x501690
call fcn.004723d0
mov eax, 0x80004005
jmp 0x4244ec
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.00493f43
add ebp, 0x208
leave
ret 4

Function at 0x424536
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 0x4257f2
Capabilities:
Delete file
Read .ini file

Disassembly:
push 0x18
mov eax, 0x4be80b
call fcn.004943c6
xor ebx, ebx
push 0x4d1a1a
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00472340
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
xor esi, esi
call fcn.0040d59a
test al, al
jne 0x42590a
lea ecx, [ebp + 8]
call fcn.004720a0
cmp byte [ebp + 0xf], 0xff
lea ecx, [ebp + 8]
jne 0x42583a
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax - 1]
cmp al, 0x5c
je 0x42584c
push 0x5c
lea ecx, [ebp + 8]
call fcn.00472820
push str.version.ini
lea ecx, [ebp + 8]
call fcn.004727a0
cmp byte [ebp + 0xf], 0xff
lea eax, [ebp + 8]
jne 0x425865
mov eax, dword [ebp + 8]
push eax
mov eax, 0x100
push eax
push eax
lea ecx, [ebp - 0x24]
call fcn.00472db0
push eax
push ebx
push 0x4d3d68
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.00472e40
lea ecx, [ebp - 0x24]
call fcn.0040d59a
test al, al
jne 0x42590a
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 0x4258b5
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.00493fc0
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 0x425903
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x42591a
lea eax, [ebp - 0x24]
push eax
call fcn.004723d0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00472320
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00472320
mov eax, esi
call fcn.0049449e
ret 0xc