joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41de70
Capabilities:
Create directory

Disassembly:
sub esp, 0x114
mov eax, dword [0x4afa68]
xor eax, esp
mov dword [esp + 0x110], eax
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.00457ee0
add esp, 0xc
lea ecx, [esp + 4]
call fcn.0041e150
lea eax, [esp + 4]
dec eax
jmp 0x41deb0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41deb0
mov ecx, dword [str.Log_]
mov dl, byte [0x49d9b4]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 4]
push eax
call fcn.00421d10
add esp, 4
test eax, eax
jne 0x41dee6
push eax
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test esi, esi
je 0x41defe
lea eax, [esp + 4]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41def4
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004512da
add esp, 0x114
ret

Function at 0x41df20
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x84
mov eax, dword [0x4afa68]
xor eax, esp
mov dword [esp + 0x80], eax
push 0x7f
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00457ee0
push 0x7f
lea ecx, [esp + 0x10]
push 0x20
push ecx
call fcn.00457ee0
mov eax, edi
add esp, 0x18
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41df60
sub eax, ecx
push eax
lea edx, [esp + 4]
push edi
push edx
call fcn.0045a160
lea eax, [esp + 0xc]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41df80
mov ecx, dword [esi]
push ecx
sub eax, edx
push eax
lea edx, [esp + 8]
push 1
push edx
call fcn.004535ea
mov eax, dword [esi]
push eax
push 1
push 1
push str._t_t_t_t_t_t
call fcn.004535ea
mov eax, ebx
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41dfb2
mov ecx, dword [esi]
push ecx
sub eax, edx
push eax
push 1
push ebx
call fcn.004535ea
mov edx, dword [esi]
push edx
push 1
push 2
push 0x49c3e4
call fcn.004535ea
mov ecx, dword [esp + 0xa0]
add esp, 0x20
xor ecx, esp
call fcn.004512da
add esp, 0x84
ret
Function at 0x41e000
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push esi
push edi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
test edi, edi
jne 0x41e12e
xor ecx, ecx
mov eax, 0x400
mov edx, 4
mul edx
seto cl
mov edi, vtable.CWindowIterator.0
mov dword [esp + 8], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
neg ecx
or ecx, eax
push ecx
call fcn.00431836
add esp, 4
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
push 0x4221a0
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x10], vtable.CMainWindowIterator.0
mov dword [esp + 0x24], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], 0
test eax, eax
je 0x41e0e9
cmp dword [esp + 0x14], 0
jbe 0x41e0e9
mov eax, dword [eax]
mov dword [esp + 0x18], 1
test eax, eax
je 0x41e0e9
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 8]
push ecx
push 0x8907
push 0x8907
push eax
call esi
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x41e11b
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x14]
jae 0x41e11b
mov eax, dword [ecx + edx*4]
inc edx
mov dword [esp + 0x18], edx
test eax, eax
jne 0x41e0a7
push ecx
mov dword [esp + 0xc], edi
call fcn.0043182b
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0043d996
test eax, eax
je 0x41e0fd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x41e0ff
xor eax, eax
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x20]
push ecx
push 0x8907
push 0x8907
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0xc]
push ecx
mov dword [esp + 0xc], edi
call fcn.0043182b
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
push 0x8907
push 0x8907
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41e150
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4afa68]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x10], 0
call fcn.00457ee0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test esi, esi
je 0x41e1db
lea eax, [esp + 4]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41e1a1
dec esi
mov eax, esi
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41e1b0
mov edx, dword [str.zj96596Assist_]
mov dword [eax], edx
mov ecx, dword [0x49d9c4]
mov dword [eax + 4], ecx
mov edx, dword [0x49d9c8]
mov dword [eax + 8], edx
mov ecx, dword [0x49d9cc]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004512da
add esp, 0x108
ret
Function at 0x41e540
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4ac
mov eax, dword [0x4afa68]
xor eax, esp
mov dword [esp + 0x4a8], eax
push esi
push 0x90
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0x94
call fcn.00457ee0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41e61a
cmp dword [esp + 0xc], 6
jb 0x41e61a
push 0x103
lea edx, [esp + 0x3a5]
push 0
push edx
mov byte [esp + 0x3ac], 0
call fcn.00457ee0
add esp, 0xc
lea esi, [esp + 0x3a0]
call fcn.0041e650
push 0x300
lea eax, [esp + 0xa4]
push 0
push eax
call fcn.00457ee0
lea edx, [esp + 0xac]
add esp, 0xc
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41e5e2
lea ecx, [esp + 0xa0]
push ecx
mov edx, ebx
lea ecx, [esp + 0x3a4]
call fcn.00419410
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.004512da
mov esp, ebp
pop ebp
ret
push 1
push 0
push edi
push str.iexplore.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x4ac]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004512da
mov esp, ebp
pop ebp
ret

Function at 0x41e650
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4afa68]
xor eax, esp
mov dword [esp + 0x10c], eax
push edi
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.00457ee0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 1
xor edi, edi
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e6da
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push edi
push edi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x41e6da
test esi, esi
je 0x41e6da
lea eax, [esp + 0xc]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41e6d0
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004512da
add esp, 0x110
ret
Function at 0x41f560
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48ed21
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4afa68]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push esi
push edi
mov eax, dword [0x4afa68]
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.00457ee0
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.004031c0
push 1
push 0x49ac28
lea ecx, [esp + 0x18]
mov dword [esp + 0x26c], ebx
call fcn.00402b80
push 0xa
push str.update.txt
lea ecx, [esp + 0x18]
call fcn.00402b80
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.00457ee0
add esp, 0xc
lea ecx, [esp + 0x44]
call fcn.0041e150
lea eax, [esp + 0x44]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x41f661
mov edx, dword [str._ver.txt]
mov ecx, dword [0x49db48]
mov dword [eax], edx
mov dl, byte [0x49db4c]
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.004538a1
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, 0x49c377
call fcn.00422b20
push 0x1c
mov esi, eax
push esi
lea edx, [esp + 0x30]
push 0x1c
push edx
call fcn.00451366
push esi
call fcn.0043182b
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 0x41f6fc
push eax
call fcn.004538a1
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.004229d0
test esi, esi
je 0x41f72a
push esi
call fcn.004514ed
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41f73b
push eax
call fcn.004514ed
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 0x41f766
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.004512da
add esp, 0x258
ret 4
Function at 0x41f7a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48ecc6
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4afa68]
xor eax, esp
mov dword [esp + 0x114], eax
push ebp
push esi
push edi
mov eax, dword [0x4afa68]
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.00457ee0
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.004031c0
push 1
push 0x49ac28
lea ecx, [esp + 0x18]
mov dword [esp + 0x13c], 0
call fcn.00402b80
push 0xa
push str.update.txt
lea ecx, [esp + 0x18]
call fcn.00402b80
mov eax, dword [esp + 0x10]
xor esi, esi
mov dword [esp + 0x14], vtable.CIni.0
mov dword [esp + 0x18], esi
test eax, eax
je 0x41f872
push eax
call fcn.004538a1
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
push 0x49c377
mov eax, str.File
mov ecx, ebp
lea edx, [esp + 0x18]
mov byte [esp + 0x138], 1
call fcn.004229d0
test esi, esi
je 0x41f89c
push esi
call fcn.004514ed
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 0x41f8c7
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.004512da
add esp, 0x128
ret 4
Function at 0x4203f0
Capabilities:
Create http request
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x48e808
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebp
push esi
push edi
mov eax, dword [0x4afa68]
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.004384a4
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x42043e
push 0x80004005
call fcn.00405cc0
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.004030b0
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
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 0x4204d3
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 0x420504
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 0x420524
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 0x420540
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x48e808
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x4afa68]
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 0x420578
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esp + 0x10], vtable.CRegistry.0
call fcn.004384a4
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x42059a
push 0x80004005
call fcn.00405cc0
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.004030b0
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
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 0x420635
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 0x420650
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 0x420670
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 0x4207f0
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 0x48d9c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4afa68]
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 0x42085b
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 0x420876
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xa000
call fcn.00431836
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x42089b
push 0xa000
push edi
push esi
call fcn.00457ee0
add esp, 0xc
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
push 0xa000
push 0
push esi
call fcn.00457ee0
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 0x420907
test ecx, ecx
jbe 0x42092f
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 0x4208a1
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4a74e4
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], 0x103
call fcn.004581eb
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4a74e4
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], 0x103
call fcn.004581eb
mov eax, 0x42092c
ret
test esi, esi
je 0x42093c
push esi
call fcn.0043182b
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 0x421810
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc58
mov eax, dword [0x4afa68]
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 0x42183e
xor al, al
jmp 0x421972
test ebp, ebp
jne 0x421845
lea ebp, [edi + 8]
push ebp
call fcn.00421990
add esp, 4
test al, al
je 0x421837
lea esi, [esp + 0x18]
call fcn.00421720
cmp byte [esp + 0x248], 0
push 0
mov eax, esi
push eax
je 0x421895
add edi, 8
push edi
lea ecx, [esp + 0x364]
push 0
push ecx
call fcn.0045291b
lea edx, [esp + 0x36c]
add esp, 0x14
push edx
call fcn.00421990
add esp, 4
jmp 0x421972
push ebp
lea ecx, [esp + 0x25c]
push 0
push ecx
call fcn.0045291b
add esp, 0x14
lea eax, [esp + 0x250]
call fcn.00421a40
test al, al
je 0x421837
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 0x421837
mov eax, dword [edi + 4]
push eax
call fcn.0042c2b0
test eax, eax
jne 0x421837
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.0042bc20
mov esi, eax
test esi, esi
jle 0x421944
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 0x421941
cmp dword [esp + 0x14], esi
je 0x421900
or esi, 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 4]
push edx
call fcn.0042be20
test esi, esi
jne 0x42196b
mov ecx, dword [esp + 0x230]
lea eax, [esp + 0x250]
call fcn.00421a80
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.004512da
add esp, 0xc58
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x421a32
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x421a32
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4219c5
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.004538a1
mov edi, eax
push 0x5c
push edi
call fcn.004524c0
mov ecx, esi
add esp, 0xc
lea ebx, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4219e0
sub ecx, ebx
cmp byte [ecx + esi - 1], 0x5c
sete bl
test eax, eax
je 0x421a2c
push edi
mov byte [eax], dl
call fcn.00421990
add esp, 4
push edi
test al, al
jne 0x421a13
call fcn.004514ed
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
ret
call fcn.004514ed
add esp, 4
test bl, bl
jne 0x421a2c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x421a0d
pop edi
pop ebx
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x421a80
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 0x421aad
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 0x421b1b
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 0x421b1b
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 0x421b1b
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 0x421b30
Capabilities:
Delete file

Disassembly:
sub esp, 0x134
mov eax, dword [0x4afa68]
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.00457ee0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.00453c01
lea edx, [esp + 0x30]
add esp, 0xc
push edx
call fcn.00421d10
add esp, 4
cmp eax, 1
jne 0x421ba4
push 0x10000000
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004512da
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 edx, [esp + 4]
lea eax, [esp + 0x24]
mov ecx, 0x294
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [esp + 0x130]
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.004512da
add esp, 0x134
ret