joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4183b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4c3aa8]
xor eax, esp
mov dword [esp + 0x94], eax
push edi
push 0x1fc
xor edi, edi
lea eax, [esi + 8]
push edi
push eax
mov dword [0x4cc84c], esi
call fcn.004553e0
push 0x90
lea ecx, [esp + 0x18]
push edi
push ecx
mov dword [esi + 0x210], edi
mov dword [esi + 0x214], 1
mov dword [esi + 0x218], 1
mov dword [esi + 0x258], edi
mov dword [esi + 0x25c], 1
mov dword [esi + 0x21c], edi
mov dword [esi + 0x23c], edi
mov dword [esi + 0x254], edi
mov dword [esi + 0x20c], edi
mov dword [esi + 0x260], edi
mov dword [esp + 0x1c], 0x94
call fcn.004553e0
add esp, 0x18
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x14], 2
jne 0x418479
cmp dword [esp + 8], 5
jb 0x418479
mov eax, 1
mov dword [esi + 0x220], eax
pop edi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044e1ea
add esp, 0x98
ret
mov ecx, dword [esp + 0x98]
mov dword [esi + 0x220], edi
pop edi
xor ecx, esp
call fcn.0044e1ea
add esp, 0x98
ret

Function at 0x418c60
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x24
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x418c91
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
push 0x418ba0
push edi
call dword [sym.imp.USER32.dll_EnumChildWindows]
pop edi
add esp, 0x24
ret
lea eax, [esp + 4]
push eax
push 5
mov dword [esp + 0xc], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x418cfe
mov eax, dword [esp + 0x10]
cmp eax, 3
ja case.default.0x418cb3
jmp dword [eax*4 + 0x418d24]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
lea ecx, [eax - 0x64]
add eax, 0xfffffff0
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi], edx
pop edi
add esp, 0x24
ret
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esi + 4], ecx
lea ecx, [eax - 0x64]
add eax, 0xfffffff0
mov dword [esi + 0xc], edx
mov dword [esi], ecx
mov dword [esi + 8], eax
pop edi
add esp, 0x24
ret
push 0
push esi
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
sub edx, 0x96
sub eax, 0x1e
mov dword [esi + 4], eax
mov dword [esi], edx
pop edi
add esp, 0x24
ret

Function at 0x418da0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
push esi
push 0
lea eax, [esp + 0xc]
push eax
push 8
push 0x48
mov dword [esp + 0x18], 8
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
cmp dword [esp + 0xc], 0
je 0x418dea
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea esi, [esp + 8]
call fcn.00418c60
mov edx, esi
push edx
lea eax, [esp + 0x1c]
push eax
push 3
push edi
call dword [sym.imp.USER32.dll_DrawAnimatedRects]
push edi
call fcn.00418d40
add esp, 4
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push 0
push 0
push 0
push 0
push 1
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
add esp, 0x28
ret
Function at 0x418e20
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
push esi
push 0
lea eax, [esp + 0xc]
push eax
push 8
push 0x48
mov dword [esp + 0x18], 8
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
cmp dword [esp + 0xc], 0
je 0x418e81
lea ecx, [esp + 8]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea esi, [esp + 0x18]
call fcn.00418c60
push 0
push edi
call dword [sym.imp.USER32.dll_SetParent]
lea edx, [esp + 8]
push edx
mov eax, esi
push eax
push 3
push edi
call dword [sym.imp.USER32.dll_DrawAnimatedRects]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
add esp, 0x28
ret
push 0
push edi
call dword [sym.imp.USER32.dll_SetParent]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
add esp, 0x28
ret
Function at 0x419c50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x492771
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4c3aa8]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push esi
push edi
mov eax, dword [0x4c3aa8]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x26c]
xor ebx, ebx
push 0x103
mov edi, ecx
lea ecx, [esp + 0x151]
push ebx
mov dword [esp + 0x18], ebx
push ecx
mov dword [esp + 0x30], eax
mov byte [esp + 0x158], bl
call fcn.004553e0
add esp, 0xc
lea edx, [esp + 0x14c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x14]
call fcn.00402950
push 1
push 0x4aec7c
lea ecx, [esp + 0x18]
mov dword [esp + 0x26c], ebx
call fcn.00402570
push 0xa
push str.update.txt
lea ecx, [esp + 0x18]
call fcn.00402570
xor eax, eax
push 0x103
lea ecx, [esp + 0x49]
push ebx
push ecx
mov byte [esp + 0x34], bl
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov word [esp + 0x4d], ax
mov byte [esp + 0x4f], al
mov byte [esp + 0x50], bl
call fcn.004553e0
add esp, 0xc
lea ecx, [esp + 0x44]
call fcn.00417a50
lea eax, [esp + 0x44]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x419d51
mov edx, dword [str._ver.txt]
mov ecx, dword [0x4b1728]
mov dword [eax], edx
mov dl, byte [0x4b172c]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x18], vtable.CIni.0
call fcn.00450dd3
add esp, 4
mov dword [esp + 0x18], eax
push edi
mov byte [esp + 0x268], 1
push str.version
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
push ecx
mov ebx, 0x4aefa4
call fcn.0041cf10
push 0x1c
mov esi, eax
push esi
lea edx, [esp + 0x30]
push 0x1c
push edx
call fcn.004511d0
push esi
call fcn.0042e69b
mov eax, dword [esp + 0x24]
xor esi, esi
add esp, 0x14
mov dword [esp + 0x1c], vtable.CIni.0
mov dword [esp + 0x20], esi
test eax, eax
je 0x419dec
push eax
call fcn.00450dd3
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
lea eax, [esp + 0x28]
push eax
mov ecx, edi
mov edi, dword [esp + 0x28]
mov eax, str.Version
lea edx, [esp + 0x20]
mov byte [esp + 0x268], 2
call fcn.0041cdc0
test esi, esi
je 0x419e1a
push esi
call fcn.0044e276
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x419e2b
push eax
call fcn.0044e276
add esp, 4
mov dword [esp + 0x264], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419e56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0044e1ea
add esp, 0x258
ret 4
Function at 0x419e90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x492716
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4c3aa8]
xor eax, esp
mov dword [esp + 0x114], eax
push ebp
push esi
push edi
mov eax, dword [0x4c3aa8]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x13c]
push 0x103
lea eax, [esp + 0x21]
push 0
mov dword [esp + 0x18], 0
push eax
mov edi, ecx
mov byte [esp + 0x28], 0
call fcn.004553e0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
call fcn.00402950
push 1
push 0x4aec7c
lea ecx, [esp + 0x18]
mov dword [esp + 0x13c], 0
call fcn.00402570
push 0xa
push str.update.txt
lea ecx, [esp + 0x18]
call fcn.00402570
mov eax, dword [esp + 0x10]
xor esi, esi
mov dword [esp + 0x14], vtable.CIni.0
mov dword [esp + 0x18], esi
test eax, eax
je 0x419f62
push eax
call fcn.00450dd3
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
push 0x4aefa4
mov eax, str.File
mov ecx, ebp
lea edx, [esp + 0x18]
mov byte [esp + 0x138], 1
call fcn.0041cdc0
test esi, esi
je 0x419f8c
push esi
call fcn.0044e276
add esp, 4
mov dword [esp + 0x134], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419fb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0044e1ea
add esp, 0x128
ret 4
Function at 0x41a300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x492690
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c3aa8]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
call fcn.00435396
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41a360
push 0x80004005
call fcn.00402c90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
push 0x87
mov dword [ebp - 4], ebx
call fcn.00435e93
cmp eax, ebx
je 0x41a391
push 0x87
push eax
lea ecx, [ebp - 0x1c]
call fcn.004027a0
mov esi, dword [ebp - 0x1c]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x14]
call fcn.00402950
mov byte [ebp - 4], 1
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00402570
push 0x207
lea ecx, [ebp + 1]
push ebx
push ecx
mov byte [ebp], bl
call fcn.004553e0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0x208
mov dword [ebp - 0x2c], ebx
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
add esp, 0xc
or ecx, eax
jge 0x41a3f0
push ebx
lea ecx, [ebp - 0x14]
call fcn.00402b30
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x41a41e
push 0x4bb7fc
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], eax
call fcn.0045578e
lea edx, [ebp - 0x30]
push edx
mov edx, dword [ebp - 0x18]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push str.DisplayVersion
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x41a466
mov dword [ebp - 0x28], eax
push 0x4bb7fc
lea eax, [ebp - 0x28]
push eax
call fcn.0045578e
mov dword [ebp - 4], 1
mov eax, 0x41a45f
ret
cmp edi, ebx
je 0x41a47a
lea ecx, [ebp]
mov edx, edi
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x41a470
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x41a48f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 0x18], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a4b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a4d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0044e1ea
add ebp, 0x20c
mov esp, ebp
pop ebp
ret
Function at 0x41a9b0
Capabilities:
Create http request
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x491ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebp
push esi
push edi
mov eax, dword [0x4c3aa8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x10], vtable.CRegistry.0
call fcn.00435396
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x41a9fe
push 0x80004005
call fcn.00402c90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], reloc.OLEAUT32.dll_SysReAllocString
push 0x3b
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], esi
call fcn.00402be0
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, 4
push edi
lea edx, [esp + 0x40]
push edx
push edi
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
push str.CertificateRevocation
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x54], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x41aa93
push eax
call edi
mov dword [esp + 0x20], esi
push esi
push esi
push esi
push esi
push str.AutoUpdateAgent
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esp + 0x34], 0xffffffff
mov dword [ebp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], vtable.CRegistry.0
cmp eax, esi
je 0x41aac4
push eax
call edi
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41aae4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4
Function at 0x41ab00
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x491ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x4c3aa8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
xor esi, esi
cmp eax, esi
je 0x41ab38
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esp + 0x10], vtable.CRegistry.0
call fcn.00435396
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x41ab5a
push 0x80004005
call fcn.00402c90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], reloc.OLEAUT32.dll_SysReAllocString
push 0x3b
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], esi
call fcn.00402be0
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, 4
push edi
lea edx, [esp + 0x40]
push edx
push edi
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
push str.CertificateRevocation
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x54], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x41abf5
push eax
call edi
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x10], vtable.CRegistry.0
cmp eax, esi
je 0x41ac10
push eax
call edi
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ac30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret 4
Function at 0x41adb0
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491430
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4c3aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
push 0x80
push 2
push edi
push 3
push 0x40000000
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x41ae1b
xor al, al
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
mov ecx, dword [ebp + 8]
push edi
push edi
push edi
push edi
push ecx
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, edi
jne 0x41ae36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xa000
call fcn.0042e6a6
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x41ae5b
push 0xa000
push edi
push esi
call fcn.004553e0
add esp, 0xc
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
push 0xa000
push 0
push esi
call fcn.004553e0
mov eax, dword [ebp + 8]
add esp, 0xc
lea edx, [ebp - 0x1c]
push edx
push 0x1000
push esi
push eax
call ebx
mov ecx, dword [ebp - 0x1c]
mov edi, ecx
test eax, eax
je 0x41aec7
test ecx, ecx
jbe 0x41aeef
mov eax, dword [ebp + 0xc]
add dword [ebp - 0x14], ecx
push 0
lea edx, [ebp - 0x20]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, dword [ebp - 0x20]
je 0x41ae61
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4bb7fc
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], 0x103
call fcn.0045578e
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4bb7fc
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], 0x103
call fcn.0045578e
mov eax, 0x41aeec
ret
test esi, esi
je 0x41aefc
push esi
call fcn.0042e69b
add esp, 4
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
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
Function at 0x41bcc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc58
mov eax, dword [0x4c3aa8]
xor eax, esp
mov dword [esp + 0xc54], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc64]
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0
jne 0x41bcee
xor al, al
jmp 0x41be22
test ebp, ebp
jne 0x41bcf5
lea ebp, [edi + 8]
push ebp
call fcn.0041be40
add esp, 4
test al, al
je 0x41bce7
lea esi, [esp + 0x18]
call fcn.0041bbd0
cmp byte [esp + 0x248], 0
push 0
mov eax, esi
push eax
je 0x41bd45
add edi, 8
push edi
lea ecx, [esp + 0x364]
push 0
push ecx
call fcn.004508ca
lea edx, [esp + 0x36c]
add esp, 0x14
push edx
call fcn.0041be40
add esp, 4
jmp 0x41be22
push ebp
lea ecx, [esp + 0x25c]
push 0
push ecx
call fcn.004508ca
add esp, 0x14
lea eax, [esp + 0x250]
call fcn.0041bef0
test al, al
je 0x41bce7
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41bce7
mov eax, dword [edi + 4]
push eax
call fcn.00429120
test eax, eax
jne 0x41bce7
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, edi
mov edx, dword [edi + 4]
push 0x800
lea ecx, [esp + 0x464]
push ecx
push edx
call fcn.00428a90
mov esi, eax
test esi, esi
jle 0x41bdf4
push 0
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x46c]
push ecx
push ebp
mov dword [esp + 0x28], 0
call ebx
test eax, eax
je 0x41bdf1
cmp dword [esp + 0x14], esi
je 0x41bdb0
or esi, 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 4]
push edx
call fcn.00428c90
test esi, esi
jne 0x41be1b
mov ecx, dword [esp + 0x230]
lea eax, [esp + 0x250]
call fcn.0041bf30
xor eax, eax
test esi, esi
sete al
mov ecx, dword [esp + 0xc64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044e1ea
add esp, 0xc58
ret 4

Function at 0x41be40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x41bee2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x41bee2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41be75
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov al, cl
pop esi
ret
push ebx
push edi
push esi
call fcn.00450dd3
mov edi, eax
push 0x5c
push edi
call fcn.0044f5b0
mov ecx, esi
add esp, 0xc
lea ebx, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x41be90
sub ecx, ebx
cmp byte [ecx + esi - 1], 0x5c
sete bl
test eax, eax
je 0x41bedc
push edi
mov byte [eax], dl
call fcn.0041be40
add esp, 4
push edi
test al, al
jne 0x41bec3
call fcn.0044e276
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
ret
call fcn.0044e276
add esp, 4
test bl, bl
jne 0x41bedc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x41bebd
pop edi
pop ebx
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x41bf30
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x30
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
jne 0x41bf5d
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x30
ret
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x41bfcb
lea ecx, [esp + 0x18]
push ecx
push esi
shr esi, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x41bfcb
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x41bfcb
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
mov eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp eax, 1
sete bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x30
ret

Function at 0x41bfe0
Capabilities:
Delete file

Disassembly:
sub esp, 0x134
mov eax, dword [0x4c3aa8]
xor eax, esp
mov dword [esp + 0x130], eax
push 0x105
lea eax, [esp + 0x29]
push 0
push eax
mov byte [esp + 0x30], 0
call fcn.004553e0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.00450cd7
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.0041c1c0
cmp eax, 1
jne 0x41c050
push 0x10000000
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0044e1ea
add esp, 0x134
ret
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], ax
lea ecx, [esp + 4]
lea edx, [esp + 0x24]
mov eax, 0x290
push ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 3
mov word [esp + 0x18], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [esp + 0x130]
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.0044e1ea
add esp, 0x134
ret