joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406d71
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea eax, [ebp - 0x214]
push eax
call fcn.00413194
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x406e53
push 1
pop eax
test eax, eax
je 0x406e53
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x80
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406e3d
jmp 0x406e53
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x406ded
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop eax
leave
ret
Function at 0x409875
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 1
cmp dword [0x427530], 0
je 0x409897
mov dword [ebp - 4], 1
jmp 0x409993
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040986c
test eax, eax
je 0x4098b4
mov dword [ebp - 4], 7
jmp 0x409993
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x1e6
ja 0x4098ef
cmp dword [ebp - 0x34], 0x1e6
je 0x409968
cmp dword [ebp - 0x34], 0x182
je 0x409968
jmp 0x409993
cmp dword [ebp - 0x34], 0x259
ja 0x409913
cmp dword [ebp - 0x34], 0x259
je 0x40998c
cmp dword [ebp - 0x34], 0x24a
je 0x409968
jmp 0x409993
cmp dword [ebp - 0x34], 0x26c
ja 0x409939
cmp dword [ebp - 0x34], 0x26c
je 0x40998c
cmp dword [ebp - 0x34], 0x25b
jb 0x409993
cmp dword [ebp - 0x34], 0x25c
jbe 0x40998c
jmp 0x409993
cmp dword [ebp - 0x34], 0x35c
je 0x409971
cmp dword [ebp - 0x34], 0x7d0
je 0x40997a
cmp dword [ebp - 0x34], 0xbb8
je 0x40997a
cmp dword [ebp - 0x34], 0xfa0
je 0x40997a
cmp dword [ebp - 0x34], 0x5248
je 0x409983
jmp 0x409993
mov dword [ebp - 4], 2
jmp 0x409993
mov dword [ebp - 4], 2
jmp 0x409993
mov dword [ebp - 4], 4
jmp 0x409993
mov dword [ebp - 4], 3
jmp 0x409993
mov dword [ebp - 4], 5
mov eax, dword [ebp - 4]
leave
ret

Function at 0x40d138
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetRectEmpty]
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0xa0]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40d16d
xor eax, eax
jmp 0x40d1e9
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0xa0]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xa0]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xc], ecx
xor eax, eax
leave
ret
Function at 0x40e09d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push dword [ebp + 8]
push str.file_d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [0x426a3c]
add eax, 0x226
push eax
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x423b28
push str.main
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x423b40
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40e106
xor eax, eax
jmp 0x40e11e
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040e120
pop ecx
pop ecx
push 1
pop eax
leave
ret

Function at 0x40e120
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push dword [ebp + 0xc]
call fcn.0040dca3
and dword [ebp - 4], 0
jmp 0x40e13e
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 5
jge 0x40e1ae
push dword [ebp - 4]
push str.alt_d
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [0x426a3c]
add eax, 0x226
push eax
push 0x105
lea eax, [ebp - 0x214]
push eax
push 0x423b58
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.NOWAYVALUEXX
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40e1a0
jmp 0x40e1ae
lea eax, [ebp - 0x214]
push eax
call fcn.0040dca3
jmp 0x40e137
push 1
pop eax
leave
ret

Function at 0x40e2ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x528
push 0x105
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x423ba8
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00414a52
push str.tmpdelis.bat
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x528]
push eax
call fcn.00414a52
push 0x423bc8
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.00414a52
push str.winstart.isk
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00414a52
mov eax, dword [0x426a3c]
and dword [eax + 0x14], 0
mov eax, dword [0x426a3c]
and dword [eax + 0x18], 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0040e3ba
add esp, 0xc
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0040e4b6
add esp, 0x10
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0040e5e0
add esp, 0xc
push 1
pop eax
leave
ret

Function at 0x40eb58
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
xor eax, eax
pop ebp
ret
Function at 0x40ec85
Capabilities:
Check for time delay via gettickcount
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x14]
and dword [eax], 0
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x20
jae 0x40eca9
xor eax, eax
jmp 0x40ed1d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1b58
mov dword [ebp - 0x24], eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40ed01
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x24], eax
jbe 0x40ed01
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
jmp 0x40ecc6
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ed1b
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
push 1
pop eax
jmp 0x40ed1d
xor eax, eax
leave
ret
Function at 0x40f507
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
and eax, 1
test eax, eax
jne 0x40f524
xor eax, eax
jmp 0x40f68c
lea eax, [ebp - 0x354]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x21c]
call fcn.004130de
push 1
lea eax, [ebp - 0x354]
push eax
call fcn.00413194
push 0x423d24
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40f57d
xor eax, eax
jmp 0x40f68c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
and eax, 2
test eax, eax
je 0x40f597
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
cmp dword [ebp - 4], 0
je 0x40f689
mov eax, dword [ebp - 0x24c]
and eax, 0x10
test eax, eax
je 0x40f648
movsx eax, byte [ebp - 0x220]
cmp eax, 0x2e
je 0x40f648
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x354]
push eax
call fcn.004130de
push 1
lea eax, [ebp - 0x10c]
push eax
call fcn.00413194
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
lea eax, [ebp - 0x10c]
push eax
call fcn.00413194
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x21c]
push dword [eax + 0x114]
call fcn.00419060
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x21c]
push dword [eax + 0x114]
call fcn.00419100
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f66a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop eax
jmp 0x40f68c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
and eax, 2
test eax, eax
je 0x40f684
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
jmp 0x40f597
push 1
pop eax
leave
ret

Function at 0x40f859
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40f880
xor eax, eax
jmp 0x40f895
mov eax, dword [ebp - 8]
shl eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
leave
ret 4
Function at 0x40fa3c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 8], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40fa63
or eax, 0xffffffff
jmp 0x40fb2d
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40fab3
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 2
push dword [ebp + 8]
call fcn.0040a495
mov dword [ebp - 4], eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [ebp - 4], 0xffffffff
je 0x40faae
push dword [ebp - 4]
call fcn.0040a9ff
push 0xfffffffffffffff8
pop eax
jmp 0x40fb2d
push 0xfffffffffffffffe
pop eax
jmp 0x40fb2d
mov eax, dword [ebp - 0x18]
inc eax
push eax
push 0x7ffe
call fcn.004184d0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40fad0
or eax, 0xffffffff
jmp 0x40fb2d
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40faea
or eax, 0xffffffff
jmp 0x40fb2d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push str.d_____
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40fb08
or eax, 0xffffffff
jmp 0x40fb2d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 0xc]
mov dword [eax], ecx
push dword [ebp - 0x10]
push 0x7ffe
call fcn.004180f0
xor eax, eax
leave
ret 0xc

Function at 0x40fb31
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and dword [ebp - 4], 0
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x210]
push eax
call fcn.00414169
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40fb74
xor eax, eax
jmp 0x40fb77
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x40fb7b
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x20c]
push eax
call fcn.00414169
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
leave
ret 8
Function at 0x41343e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call fcn.00414169
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x413483
xor eax, eax
jmp 0x413498
mov eax, dword [ebp - 0x10c]
and eax, 0x10
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
leave
ret 4

Function at 0x414495
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push dword [ebp + 8]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea eax, [ebp - 0x254]
push eax
call fcn.00413194
push 0x423e74
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4144f9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop eax
jmp 0x41456f
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x414563
mov eax, dword [ebp - 0x14c]
and eax, 0x10
test eax, eax
je 0x41452b
movsx eax, byte [ebp - 0x120]
cmp eax, 0x2e
jne 0x41452b
mov dword [ebp - 0x258], 1
jmp 0x414532
and dword [ebp - 0x258], 0
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41454e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41456f
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 8], eax
jmp 0x414500
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop eax
leave
ret 4
Function at 0x414d8c
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
cmp dword [ebp + 0xc], 0
je 0x414da1
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x5c
jne 0x414e6a
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 1]
cmp eax, 0x5c
jne 0x414e6a
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
call fcn.00414a7e
test eax, eax
jne 0x414de1
xor eax, eax
jmp 0x414ed4
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x414e06
cmp dword [ebp - 0x220], 1
jne 0x414e1f
cmp dword [ebp - 0x220], 0x64
jle 0x414e1f
cmp dword [ebp - 0x220], 0
jge 0x414e1f
xor eax, eax
jmp 0x414ed4
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x414e51
or eax, 0xffffffff
jmp 0x414ed4
push dword [ebp - 0x224]
push dword [ebp - 0x114]
push dword [ebp - 4]
call fcn.0041555b
add esp, 0xc
jmp 0x414ed4
mov eax, dword [ebp + 8]
mov al, byte [eax]
mov byte [ebp - 0x21c], al
mov eax, dword [ebp + 8]
mov al, byte [eax + 1]
mov byte [ebp - 0x21b], al
mov byte [ebp - 0x21a], 0x5c
and byte [ebp - 0x219], 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x414ebd
xor eax, eax
jmp 0x414ed4
push dword [ebp - 0x224]
push dword [ebp - 0x114]
push dword [ebp - 4]
call fcn.0041555b
add esp, 0xc
leave
ret 8

Function at 0x415024
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
test eax, eax
je 0x41506c
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 1]
cmp eax, 0x3a
jne 0x41506c
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 2]
test eax, eax
jne 0x41506c
mov byte [ebp - 0x106], 0x5c
and byte [ebp - 0x105], 0
lea eax, [ebp - 0x108]
push eax
call fcn.00414169
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x415099
or eax, 0xffffffff
jmp 0x4150a6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10c]
mov dword [eax], ecx
xor eax, eax
leave
ret
Function at 0x419a20
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
test ebp, ebp
push edi
mov ebx, 1
jne 0x419a3a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [ebp + 4]
test eax, eax
je 0x419a4a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x426b50], eax
mov dword [esp + 0x18], eax
jne 0x419a7e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, dword [0x424158]
push 0x401
push ecx
call fcn.004184d0
push ebp
mov esi, eax
mov byte [esp + 0x18], 0xd
mov byte [esp + 0x19], 0xa
mov byte [esp + 0x1a], 0
call fcn.00419040
mov edi, eax
test edi, edi
je 0x419afb
test ebx, ebx
mov byte [esi], 0
jne 0x419abf
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x426b54
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov dword [0x426b58], eax
call fcn.004190a0
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x419aac
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x424158]
push esi
push edx
call fcn.004180f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8

Function at 0x41b6d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov al, byte [esp + 8]
mov cl, 1
test al, al
mov byte [esp], cl
je 0x41b6ee
mov dl, al
and dl, 1
xor cl, dl
shr al, 1
jne 0x41b6df
mov byte [esp], cl
mov eax, dword [esp]
and eax, 0xff
pop ecx
ret 4
Function at 0x41c330
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4213d0
push 0x41e068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x426bb4], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x426bb0], ecx
shl ecx, 8
add ecx, edx
mov dword [0x426bac], ecx
shr eax, 0x10
mov dword [0x426ba8], eax
call fcn.0041c820
test eax, eax
jne 0x41c39a
push 0x1c
call fcn.0041c500
add esp, 4
mov dword [ebp - 4], 0
call fcn.0041dd70
call fcn.0041dd60
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x427a78], eax
call fcn.0041d720
mov dword [0x426b6c], eax
test eax, eax
je 0x41c3cd
mov eax, dword [0x427a78]
test eax, eax
jne 0x41c3d7
push 0xffffffffffffffff
call fcn.0041d080
add esp, 4
call fcn.0041d470
call fcn.0041d380
call fcn.0041d050
mov esi, dword [0x427a78]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x41c4b6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x41c41e
test al, al
je 0x41c41e
and eax, 0xff
push eax
call fcn.0041d320
add esp, 4
test eax, eax
je 0x41c3f8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x41c3f8
cmp byte [esi], 0x22
jne 0x41c427
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x41c437
cmp al, 0x20
ja 0x41c437
inc esi
mov dword [ebp - 0x64], esi
jmp 0x41c427
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x41c458
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x41c45d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0041d080
jmp 0x41c49b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x41c427
inc esi
mov dword [ebp - 0x64], esi
jmp 0x41c4b6

Function at 0x41c500
Capabilities:
Terminate process

Disassembly:
cmp dword [0x426b74], 1
jne 0x41c50e
call fcn.0041e140
mov eax, dword [esp + 4]
push eax
call fcn.0041e180
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]