joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bd60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push esi
mov esi, eax
push esi
call fcn.0040a376
cmp eax, 0x3f6
jae 0x40bf74
push ebx
push edi
push 0x3c
pop edi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.0040a27b
mov cl, byte [esi]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x5c0
cmp cl, 0x22
jne 0x40bda8
lea eax, [esi + 1]
mov dword [ebp - 0x34], eax
jmp 0x40bdab
mov dword [ebp - 0x34], esi
xor eax, eax
cmp cl, bl
je 0x40bdf0
mov ecx, esi
cmp byte [ecx], 0x22
jne 0x40bdcc
jmp 0x40bdc0
cmp byte [eax + esi], 0x22
je 0x40bdc8
inc eax
cmp byte [eax + esi], bl
jne 0x40bdba
jmp 0x40bdcc
mov byte [eax + esi], 0x20
cmp byte [eax + esi], 0x20
je 0x40bde3
cmp byte [eax + esi + 1], 0x2f
je 0x40bde3
inc eax
lea ecx, [eax + esi]
cmp byte [ecx], bl
jne 0x40bdb3
jmp 0x40bdf0
add eax, esi
cmp byte [eax], 0x20
jne 0x40bdec
mov byte [eax], bl
inc eax
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], bl
jne 0x40be04
cmp byte [0x41a392], bl
je 0x40be04
mov dword [ebp - 0x30], 0x41a392
push dword [ebp - 0x34]
mov dword [ebp - 0x28], 1
call fcn.00407682
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40be30
push str..inf
push eax
call fcn.0040a58c
test eax, eax
jne 0x40be30
mov dword [ebp - 0x38], str.Install
push ebx
push dword [ebp - 0x34]
call fcn.00405759
mov byte [ebp - 1], al
cmp al, bl
je 0x40be58
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x34]
call fcn.00405814
lea eax, [ebp - 0x844]
mov dword [ebp - 0x34], eax
cmp byte [ebp + 8], bl
je 0x40be97
cmp byte [ebp - 1], bl
jne 0x40be97
push dword [ebp - 0x34]
lea eax, [ebp - 0x444]
push eax
call fcn.0040a469
push str..exe
lea eax, [ebp - 0x444]
push eax
call fcn.0040a5d4
push ebx
lea eax, [ebp - 0x444]
push eax
call fcn.00405759
test al, al
je 0x40bf72
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea eax, [ebp - 0x44]
push eax
call edi
test eax, eax
setne al
cmp al, bl
jne 0x40bec9
and dword [ebp - 0x40], 0xfffffbff
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x34], esi
call edi
test eax, eax
setne al
cmp al, bl
je 0x40bf72
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
cmp byte [0x419f88], bl
jne 0x40bedf
cmp byte [ebp + 8], bl
je 0x40bf16
mov eax, dword [0x419f80]
cmp eax, ebx
je 0x40bf00
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40bf00
push ebx
push dword [0x419f80]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0xc]
call fcn.0040b6ca
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x40bf35
push str..exe
push dword [ebp - 8]
call fcn.0040a58c
test eax, eax
je 0x40bf63
cmp byte [0x419f88], bl
je 0x40bf49
cmp byte [ebp + 8], bl
jne 0x40bf49
push 0x1b58
jmp 0x40bf5d
xor eax, eax
cmp byte [ebp + 8], bl
sete al
dec eax
and eax, 0xfffffce0
add eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp - 1], bl
je 0x40bf72
push 1
push dword [0x419f80]
call esi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40d31c
Capabilities:
Accept command line arguments
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x41fdc0
call fcn.0040e404
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
je 0x40d358
push esi
call fcn.0040b474
push esi
push str.sfxcmd
call edi
push 0x400
mov esi, 0x419ad8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push str.sfxname
call edi
call fcn.00406e97
test eax, eax
je 0x40d38e
push 0x400
push 0x4192d8
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x40d396
xor eax, eax
mov word [0x4192d8], ax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
push 0x64
push edi
mov dword [0x414c78], edi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x65
push dword [0x414c78]
mov dword [0x4192d4], eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea ecx, [ebp - 8]
mov dword [0x4192d0], eax
call fcn.00411534
push esi
mov ecx, 0x414c88
call fcn.004098d2
lea ecx, [ebp - 0x40]
call fcn.0040646b
lea ecx, [ebp - 0x24]
call fcn.0040646b
push 0x64
call fcn.0040ac90
push 0x64
mov dword [ebp - 0x28], eax
call fcn.0040ac90
push ebx
push 0x40cc04
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x418ecc], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x418ec8], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
lea ecx, [ebp - 0x24]
mov dword [0x419f80], ebx
mov dword [0x418ec8], ebx
mov dword [0x418ecc], ebx
call fcn.00406481
lea ecx, [ebp - 0x40]
call fcn.00406481
lea ecx, [ebp - 8]
call fcn.004115ac
cmp byte [0x419f88], bl
je 0x40d457
call fcn.0040b709
push 0x80
push ebx
push 0x419ee8
call fcn.0040a27b
cmp dword [0x41a824], ebx
jbe 0x40d47a
push dword [0x41a818]
call fcn.0040a1f7
push dword [0x4192d4]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x4192d0]
cmp eax, ebx
je 0x40d494
push eax
call esi
cmp dword [0x414c7c], ebx
jne 0x40d4b3
cmp dword [0x419f78], ebx
je 0x40d4b3
push 0xff
mov ecx, 0x414c7c
call fcn.004032e6
mov eax, dword [0x41a828]
mov dword [0x419f78], 2
cmp eax, ebx
je 0x40d4cc
push eax
call fcn.0040b6ca
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x414c7c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40d83e
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4
Function at 0x4012fb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0041213d
mov esi, eax
cmp esi, 0x100000
pop ecx
jbe 0x401321
xor eax, eax
jmp 0x4013e2
push edi
lea edi, [esi + 0x80]
push edi
call fcn.0040fb14
pop ecx
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push dword [ebp + 8]
mov dword [0x44c68c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x40138f
push dword [0x44c68c]
mov byte [0x44c688], bl
mov byte [0x44c689], bl
mov dword [0x44c694], ebx
call fcn.0040fb5b
push dword [0x44c690]
mov dword [0x44c68c], ebx
call fcn.0040fb5b
pop ecx
pop ecx
mov dword [0x44c690], ebx
xor eax, eax
jmp 0x4013e1
push ebx
lea ecx, [ebp - 4]
push ecx
push esi
push dword [0x44c68c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [0x44c694], esi
call fcn.0040fb14
push esi
push dword [0x44c68c]
mov dword [0x44c690], eax
push eax
call fcn.0041fd50
push esi
push dword [0x44c68c]
push dword [0x44c690]
call fcn.0041fd50
xor eax, eax
add esp, 0x1c
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4013e6
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
xor ebx, ebx
cmp byte [0x44c6a0], bl
push esi
push edi
je 0x401407
xor ebp, ebp
inc ebp
mov byte [0x44c6a0], bl
mov byte [0x44c6a1], 1
jmp 0x401417
push 2
pop ebp
mov byte [0x44c6a1], bl
mov byte [0x44c6a0], 1
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1388
call esi
cmp ebp, 1
jne 0x401431
cmp dword [0x44c698], ebx
ja 0x401424
cmp ebp, 2
jne 0x40143e
cmp dword [0x44c69c], ebx
ja 0x401424
push 0x3e8
call esi
push dword [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.0041213d
pop ecx
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push dword [esp + 0x30]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4014b6
push dword [0x44c6a4]
mov byte [0x44c6a0], bl
mov dword [0x44c6ac], ebx
mov byte [0x44c6a1], bl
mov dword [0x44c6b0], ebx
call fcn.0040fb5b
push dword [0x44c6a8]
mov dword [0x44c6a4], ebx
call fcn.0040fb5b
pop ecx
pop ecx
mov dword [0x44c6a8], ebx
xor eax, eax
jmp 0x401526
cmp ebp, 1
jne 0x4014ea
push dword [0x44c6a4]
call fcn.0040fb5b
push esi
call fcn.0040fb14
pop ecx
pop ecx
push ebx
lea ecx, [esp + 0x14]
push ecx
push esi
push eax
push edi
mov dword [0x44c6a4], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [0x44c6ac], esi
jmp 0x40151c
cmp ebp, 2
jne 0x40151c
push dword [0x44c6a8]
call fcn.0040fb5b
push esi
call fcn.0040fb14
pop ecx
pop ecx
push ebx
lea ecx, [esp + 0x14]
push ecx
push esi
push eax
push edi
mov dword [0x44c6a8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [0x44c6b0], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4015d6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov byte [ebp - 1], bl
call fcn.0041213d
mov esi, eax
push esi
call fcn.0040fb14
pop ecx
pop ecx
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401646
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 8]
call fcn.00401587
test al, al
pop ecx
pop ecx
je 0x401646
mov byte [ebp - 1], 1
push dword [ebp - 8]
call fcn.0040fb5b
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
cmp al, bl
pop ebx
je 0x401660
mov byte [0x44c6b4], 1
leave
ret
Function at 0x401b9f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov byte [ebp - 1], 0
call fcn.0040fb14
push dword [ebp + 0xc]
mov ebx, eax
push dword [ebp + 8]
push ebx
call fcn.0041fd50
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00418dcf
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x1c
mov edi, 0x12c
push edi
call esi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00418dcf
add esp, 0xc
push edi
call esi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00418dcf
add esp, 0xc
push edi
call esi
cmp byte [ebx], 0x4d
jne 0x401c6b
cmp byte [ebx + 1], 0x5a
jne 0x401c6b
push 0x26
lea eax, [ebx + 0x4e]
push str.This_program_cannot_be_run_in_DOS_mode
push eax
call fcn.004200f0
add esp, 0xc
test eax, eax
jne 0x401c6b
xor esi, esi
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401c64
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 8], esi
jne 0x401c64
mov byte [ebp - 1], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0040fb5b
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401c7a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
mov byte [ebp - 1], bl
call fcn.0041213d
mov esi, eax
cmp esi, 0xc350
pop ecx
jae 0x401c9e
xor al, al
jmp 0x401d09
push edi
push esi
call fcn.0040fb14
push esi
mov edi, eax
push ebx
push edi
call fcn.00420090
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x401cfe
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
call fcn.00401662
test al, al
pop ecx
pop ecx
je 0x401cfe
mov byte [ebp - 1], 1
push edi
call fcn.0040fb5b
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40216f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push 5
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
call fcn.00413578
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x402193
xor al, al
jmp 0x4021fc
push edi
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x20], bl
lea edi, [ebp - 0x1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00411049
add esp, 0xc
push ebx
push 0xa
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push esi
call fcn.00403022
cmp eax, 1
pop ecx
pop ecx
pop edi
jne 0x4021f3
push ebx
push 0x44c6b8
push esi
call fcn.0040264e
add esp, 0xc
test eax, eax
je 0x4021f3
mov bl, 1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x405aa9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00420220
push esi
push dword [ebp + 8]
call fcn.0041213d
mov esi, eax
test esi, esi
pop ecx
jge 0x405acb
mov esi, 0x186a0
cmp esi, 0x989680
jle 0x405ae0
call fcn.004201b2
mov esi, eax
imul esi, esi, 0x3e8
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004201a8
cmp dword [ebp - 4], 0xffffffff
pop ecx
je 0x405b69
test esi, esi
jle 0x405b57
push ebx
push edi
mov edi, 0x1000
xor ebx, ebx
call fcn.004201b2
cdq
mov ecx, 0x100
idiv ecx
inc ebx
cmp ebx, edi
mov byte [ebp + ebx - 0x1009], dl
jl 0x405b1e
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esi, dword [ebp - 8]
test esi, esi
jg 0x405b1c
pop edi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call fcn.00413662
pop ecx
pop esi
leave
ret

Function at 0x405b6c
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x348]
push str._s
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405c83
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [ebp - 0x244], 0x10
je 0x405c05
cmp byte [ebp - 0x218], 0x2e
je 0x405c6c
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x4283c0
push eax
call edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push eax
call fcn.00405b6c
add esp, 0x1c
jmp 0x405c6c
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4283c8
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x104]
push eax
call fcn.004127aa
pop ecx
push 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp byte [ebp + 0xc], 0
lea eax, [ebp - 0x104]
push eax
je 0x405c66
call fcn.00405aa9
jmp 0x405c6b
call fcn.00413662
pop ecx
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405bc0
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x405dfe
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
push esi
lea eax, [ebp - 0x508]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [ebp - 0x508], 0
lea esi, [ebp - 0x508]
je 0x405e96
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [esi]
cmp al, 0x41
je 0x405e86
cmp al, 0x61
je 0x405e86
mov byte [ebp - 0x108], al
push str.:System_Volume_Information
lea eax, [ebp - 0x107]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call fcn.004123a9
test eax, eax
pop ecx
je 0x405e86
lea eax, [ebp - 0x108]
push eax
call fcn.004127aa
push 0x28
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00405b6c
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x405e29
pop esi
leave
ret
Function at 0x4060c6
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
and dword [ebp - 4], 0
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 - 0x110], 0
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x218], al
lea edi, [ebp - 0x217]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x418], al
push 0x7f
pop ecx
lea edi, [ebp - 0x417]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp byte [esi], 0x5c
je 0x40613c
cmp esi, dword [ebp + 8]
jbe 0x40612f
dec esi
cmp byte [esi], 0x5c
jne 0x406124
cmp byte [esi], 0x5c
je 0x40613c
or eax, 0xffffffff
jmp 0x40629b
push 0x455f08
lea eax, [ebp - 0x110]
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004201a8
pop ecx
call fcn.004201b2
push 0xa
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x110]
add edx, 4
push edx
push eax
call ebx
lea eax, [ebp + eax - 0x110]
push eax
call fcn.00411f79
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x418]
push str.cw__y__tk__inul___s____s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x418]
push eax
push 0x4563c8
push edi
push edi
call dword [0x455ba0]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x110]
push eax
call fcn.004123a9
test eax, eax
pop ecx
je 0x40628b
push edi
push 0x80
push 3
push edi
push 1
push connect
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x406287
lea eax, [ebp - 0x218]
push esi
push eax
mov dword [ebp - 8], edi
call fcn.00420480
pop ecx
pop ecx
push esi
push esi
call ebx
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp + eax - 0x218]
push eax
call fcn.00411ede
add esp, 0xc
push edi
lea eax, [ebp - 8]
push eax
push 0x100
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
mov byte [ebp - 0x2ec], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00412073
test eax, eax
pop ecx
pop ecx
je 0x40628b
mov dword [ebp - 4], 1
jmp 0x40628b
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4062a0
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 0x406312
cmp esi, dword [ebp + 8]
jbe 0x406305
dec esi
cmp byte [esi], 0x5c
jne 0x4062fa
cmp byte [esi], 0x5c
je 0x406312
or eax, 0xffffffff
jmp 0x406432
push 0x455f08
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.004201a8
pop ecx
call fcn.004201b2
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.00411f79
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.00420480
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.00411ede
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 0x406432
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 0x4563c8
push esi
push esi
call dword [0x455ba0]
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