joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401da1
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov ebx, 0x104
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push ebx
push eax
call edi
test eax, eax
je 0x401e2d
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push str._sINF_s.INF
push eax
call esi
lea eax, [ebp - 0x104]
push eax
call fcn.00401618
add esp, 0x14
test eax, eax
jne 0x401e2d
lea eax, [ebp - 0x104]
push ebx
push eax
call edi
test eax, eax
je 0x401e2d
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push str._sINF_s.PNF
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402001
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
and byte [eax], 0
cmp dword [ebp + 8], esi
mov dword [ebp - 0xc], esi
jne 0x402022
xor eax, eax
jmp 0x4020d5
push ebx
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push str.SYSTEMCurrentControlSetServices_s
push 0x104
push eax
call fcn.0040290b
add esp, 0x10
lea eax, [ebp - 8]
push eax
push 0xf003f
lea eax, [ebp - 0x110]
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4020d0
push 1
lea eax, [ebp - 4]
pop ebx
mov edi, str.ImagePath
push eax
lea eax, [ebp + 8]
push esi
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov dword [ebp - 0xc], ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4020d0
cmp dword [ebp + 8], ebx
je 0x402090
cmp dword [ebp + 8], 2
jne 0x4020d0
push dword [ebp - 4]
call fcn.00402a8b
mov ebx, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push ebx
push eax
push 0
push edi
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, eax
mov esi, ebx
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and byte [ebx + eax - 1], 0
call fcn.00402a80
pop ecx
mov eax, dword [ebp - 0xc]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4020fe
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push 0xf003f
push edi
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x4021c5
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x4021a6
push ebx
push esi
mov esi, 0x1000
push esi
call fcn.00402a8b
pop ecx
mov ebx, eax
mov dword [ebp + 8], edi
mov ecx, 0x400
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp + 8]
push eax
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x40218e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x402188
and byte [eax], 0
push dword [ebx + 0xc]
push 0x100
push eax
call fcn.004027db
add esp, 0xc
cmp dword [ebx + 4], 4
jne 0x402192
and dword [ebp - 4], 0
push ebx
call fcn.00402a80
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebx
jmp 0x4021ba
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402001
pop ecx
test eax, eax
pop ecx
jne 0x4021ba
mov dword [ebp - 4], edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4021c8
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
leave
ret

Function at 0x4021ce
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 2
lea eax, [ebp - 0x10c]
push ebx
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x402213
xor eax, eax
jmp 0x40225a
push esi
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x402252
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40224c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
je 0x40224c
mov dword [ebp - 4], ebx
push edi
call esi
mov ebx, dword [ebp - 4]
push dword [ebp - 8]
call esi
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x40225e
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
push 2
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
jne 0x40229f
xor eax, eax
jmp 0x4022ed
push ebx
push ebx
push ebx
push ebx
push str.Filter
push dword [ebp + 0xc]
push 1
pop edi
push edi
push ebx
push edi
push 0xf01ff
push dword [ebp + 8]
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, ebx
jne 0x4022dd
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
push ebx
push dword [ebp + 8]
call fcn.00402337
add esp, 0xc
jmp 0x4022ed
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push dword [ebp - 4]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402337
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push str.SYSTEMCurrentControlSetServices_
mov esi, 0x104
push 0x40b1b8
lea eax, [ebp - 0x114]
push esi
push eax
mov dword [ebp - 8], 1
call fcn.0040290b
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.00402836
add esp, 0x1c
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0xf003f
lea eax, [ebp - 0x114]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4023a2
mov dword [ebp - 8], ebx
jmp 0x40242e
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp + 8]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10]
mov esi, str.DeleteFlag
push eax
push ebx
push esi
mov dword [ebp - 0xc], 4
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4023de
cmp dword [ebp + 8], 1
jne 0x4023de
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x4023e6
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 8], ebx
je 0x402424
lea eax, [ebp - 0xc]
mov esi, str.Start
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x402424
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
je 0x402424
lea eax, [ebp + 0xc]
push 4
push eax
push 4
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret
Function at 0x402435
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4024ee
push edi
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, ebx
je 0x4024db
lea eax, [ebp - 0x24]
push esi
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4024bf
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x24]
push eax
push edi
call esi
test eax, eax
je 0x4024b2
cmp dword [ebp - 0x20], 3
jne 0x4024b2
mov eax, ebx
inc ebx
cmp eax, 0xa
je 0x4024b8
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
push edi
jmp 0x40248c
cmp dword [ebp - 0x20], 1
je 0x4024bf
mov dword [ebp - 4], 1
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
pop esi
jne 0x4024d2
mov dword [ebp - 4], 2
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4024e2
mov dword [ebp - 4], 3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
jmp 0x4024f5
mov dword [ebp - 4], 4
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x4025fd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
pop ebx
not ecx
push ecx
push esi
call fcn.0040293d
push str.DRIVERS
push esi
call fcn.00402a00
add esp, 0x10
test eax, eax
je 0x4026ef
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x134]
rep stosd dword es:[edi], eax
push 0xc
lea edi, [ebp - 0x34]
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + esi - 1]
cmp byte [eax], 0x5c
je 0x402666
dec eax
jmp 0x40265e
inc eax
push eax
lea eax, [ebp - 0x34]
push 0x32
push eax
call fcn.004027db
add esp, 0xc
mov esi, 0x100
lea eax, [ebp - 0x134]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp - 0x134]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x135], 0x5c
je 0x4026b8
push 0x40b374
lea eax, [ebp - 0x134]
push esi
push eax
call fcn.00402836
add esp, 0xc
push str.system32drivers_
lea eax, [ebp - 0x134]
push esi
push eax
call fcn.00402836
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x134]
push 0x32
push eax
call fcn.00402836
lea eax, [ebp - 0x134]
push eax
call fcn.00401618
add esp, 0x1c
test eax, eax
jne 0x4026f1
xor ebx, ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x40561d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40be58
cmp edx, dword [eax]
je 0x40563f
add eax, 8
inc ecx
cmp eax, 0x40bee8
jl 0x405630
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40be58]
jne 0x40576d
mov eax, dword [0x40e180]
cmp eax, 1
je 0x405747
test eax, eax
jne 0x405670
cmp dword [0x40b4f4], 1
je 0x405747
cmp edx, 0xfc
je 0x40576d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4056a7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406c00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004048e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4056ea
lea eax, [ebp - 0x1a4]
push eax
call fcn.004048e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4095cc
push edi
call fcn.00402d90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406c00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406c10
lea eax, [ebp - 0xa0]
push 0x4095ac
push eax
call fcn.00406c10
push dword [esi + 0x40be5c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406c10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040785d
add esp, 0x2c
pop edi
jmp 0x40576d
lea eax, [ebp + 8]
lea esi, [esi + 0x40be5c]
push 0
push eax
push dword [esi]
call fcn.004048e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1003fe1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
or ecx, 0xffffffff
sub ecx, dword [ebp + 0x10]
test edx, edx
je 0x1004010
mov eax, dword [ebp + 8]
push esi
push edi
movzx esi, byte [eax]
movzx edi, cl
xor esi, edi
shr ecx, 8
xor ecx, dword [esi*4 + 0x1015020]
inc eax
dec edx
jne 0x1003ff8
pop edi
pop esi
or eax, 0xffffffff
sub eax, ecx
pop ebp
ret 0xc

Function at 0x10068e4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, 0x1000
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [edi], ebx
call dword [sym.imp.msvcrt.dll_malloc]
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
jne 0x100692f
push dword [ebp + 8]
push 0x1001850
push 0x10023e0
push dword [ebp + 0x10]
call fcn.01008b55
add esp, 0x10
xor eax, eax
jmp 0x10069b8
lea eax, [ebp - 0xc]
push eax
push 0x8000
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__open]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x100698b
push dword [ebp + 8]
push 0x1001850
push 0x10023c8
push dword [ebp + 0x10]
call fcn.01008b55
add esp, 0x10
jmp 0x10069ab
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, 0xffffffff
je 0x10069bf
test eax, eax
je 0x100698b
push dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.01003fe1
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.msvcrt.dll__eof]
test eax, eax
pop ecx
je 0x1006965
mov eax, dword [ebp - 4]
mov dword [ebp - 8], 1
mov dword [edi], eax
push ebx
call dword [sym.imp.msvcrt.dll__close]
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp + 8]
push 0x1001850
push 0x10023a4
push dword [ebp + 0x10]
call fcn.01008b55
add esp, 0x10
jmp 0x10069a3
Function at 0x1008933
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1015ab4]
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_setvbuf]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 0x220], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 4
add eax, 0x20
push ebx
push eax
call esi
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
push 4
add eax, 0x40
push ebx
push eax
call esi
add esp, 0x20
lea eax, [ebp - 0x21c]
push eax
call fcn.01008b85
push 0xc10
mov dword [ebp - 0x18], ebx
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x10089c4
lea eax, [ebp - 0x21c]
push 0x1002ea0
push eax
call fcn.01008b55
pop ecx
pop ecx
lea eax, [ebp - 0x21c]
push eax
push ebx
call fcn.01006194
push 1
call dword [sym.imp.msvcrt.dll_exit]
push 0x13
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x84], ebx
mov word [esi + 0x80], bx
mov byte [esi + 0xb04], bl
mov dword [esi + 0xac], ebx
mov dword [esi + 0xc0c], ebx
pop ecx
mov eax, 0x20202020
lea edi, [esi + 0x9b4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
mov byte [esi + 0xa03], bl
call fcn.010060e2
push 0x1002524
push 0x1001850
push 0x1002e38
lea edi, [esi + 0x1b4]
push 0x800
push edi
call fcn.0100c3e3
push edi
mov edi, dword [sym.imp.msvcrt.dll_printf]
call edi
add esp, 0x18
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01004a40
cmp eax, ebx
je 0x1008ac5
mov dword [esi + 8], eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x220]
push dword [ebp + 8]
push esi
call fcn.010077e1
test eax, eax
je 0x1008ac5
cmp dword [esi], 1
jne 0x1008aa2
push 0x1002bd0
call edi
xor eax, eax
jmp 0x1008b42
call dword [sym.imp.msvcrt.dll_clock]
mov dword [esi + 0x74], eax
mov eax, dword [esi]
dec eax
dec eax
je 0x1008ad7
dec eax
jne 0x1008af7
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01008679
test eax, eax
jne 0x1008af7
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01006194
xor eax, eax
inc eax
jmp 0x1008b43
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.010067ae
test eax, eax
je 0x1008ad2
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.010073f5
jmp 0x1008ac1
xor eax, eax
cmp dword [esi + 0x38], ebx
setg al
mov edi, eax
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1008b15
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0100cc04
mov eax, dword [esi + 0x84]
cmp eax, ebx
je 0x1008b25
push eax
call fcn.0100a03c
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1008b39
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.01008c9d
push esi
call dword [sym.imp.msvcrt.dll_free]
mov eax, edi
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100d125
leave
ret
Function at 0x1008fa9
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
push edi
je 0x1008fc1
push eax
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll_remove]
test eax, eax
pop ecx
je 0x1008fea
push dword [esi + 4]
push dword [esi + 8]
push 0x1001afc
push 0x1002f7c
push dword [ebp + 0xc]
call fcn.01008b55
add esp, 0x14
mov eax, dword [esi + 8]
test eax, eax
mov edi, dword [sym.imp.msvcrt.dll_free]
je 0x1008ffb
push eax
call edi
pop ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x1009006
push eax
call edi
pop ecx
push esi
call edi
pop ecx
xor eax, eax
pop edi
inc eax
pop esi
pop ebp
ret 8
Function at 0x10095ed
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
push esi
push esi
push 3
push esi
push esi
mov ebx, 0x40000000
push ebx
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x1009635
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push esi
push 3
push esi
push esi
push ebx
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10096b1
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
xor eax, eax
mov ax, word [edi + 2]
push eax
xor eax, eax
mov ax, word [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
or ebx, eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 4]
or ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ax, word [edi + 4]
push eax
call fcn.01009107
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or eax, ebx
jne 0x10096b1
push dword [ebp + 8]
push 0x1001850
push 0x10030f8
push dword [ebp + 0x10]
call fcn.01008b55
add esp, 0x10
xor eax, eax
jmp 0x10096b4
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10096c0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.msvcrt.dll__open]
push edi
mov edi, dword [ebp + 0xc]
push 0x8000
push edi
call esi
cmp eax, 0xffffffff
pop ecx
pop ecx
mov dword [ebp - 8], eax
jne 0x1009708
push edi
push 0x1001850
push 0x1003184
push dword [ebp + 0x20]
call fcn.01008b55
add esp, 0x10
jmp 0x1009831
push ebx
mov ebx, dword [ebp + 0x20]
push ebx
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.0100957c
test eax, eax
je 0x1009816
cmp dword [ebp + 0x18], 0
je 0x1009738
push ebx
push dword [ebp + 0x1c]
lea eax, [ebp - 0x14]
push eax
call dword [ebp + 0x18]
test eax, eax
je 0x1009816
cmp dword [ebp + 0x10], 0
jne 0x100974a
mov dword [ebp - 0xc], 1
jmp 0x1009816
push dword [ebp + 0x14]
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jne 0x1009777
push dword [ebp + 8]
push edi
push 0x1001afc
push 0x1003158
push ebx
call fcn.01008b55
add esp, 0x14
jmp 0x1009816
push 0x180
push 0x8301
push dword [ebp + 8]
call esi
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
jne 0x10097a3
push dword [ebp + 8]
push 0x1001850
push 0x1003184
push ebx
jmp 0x1009859
mov ebx, dword [sym.imp.msvcrt.dll__eof]
jmp 0x10097da
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__read]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x100983a
test esi, esi
je 0x10097da
push esi
push dword [ebp - 4]
push edi
call dword [sym.imp.msvcrt.dll__write]
add esp, 0xc
cmp eax, esi
jne 0x1009849
push dword [ebp - 8]
call ebx
test eax, eax
pop ecx
je 0x10097ab
push edi
call dword [sym.imp.msvcrt.dll__close]
pop ecx
push dword [ebp + 0x20]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
or edi, 0xffffffff
call fcn.010095ed
test eax, eax
je 0x1009816
mov dword [ebp - 0xc], 1
cmp edi, 0xffffffff
je 0x1009816
push edi
call dword [sym.imp.msvcrt.dll__close]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__close]
cmp dword [ebp - 4], 0
pop ecx
pop ebx
je 0x1009831
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret 0x1c
push dword [ebp + 0xc]
push 0x1001850
push 0x1003140
jmp 0x1009856
push dword [ebp + 0xc]
push 0x1001850
push 0x1003128
push dword [ebp + 0x20]
call fcn.01008b55
add esp, 0x10
jmp 0x1009809
Function at 0x100a5a5
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x1015ab4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x21c]
push eax
push ebx
mov dword [ebp - 0x220], edi
call fcn.01008ef5
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x21c]
push eax
push ebx
call fcn.01008f09
mov esi, 0x800
push esi
mov dword [ebp - 0x22c], eax
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x224], eax
jne 0x100a649
push dword [ebp - 0x230]
push dword [ebp - 0x22c]
push dword [ebp - 0x228]
push 0x1001a34
push 0x1003518
push edi
call fcn.01008b55
add esp, 0x18
jmp 0x100a729
push edi
push dword [ebp - 0x238]
push ebx
call fcn.01008f60
test eax, eax
je 0x100a720
push edi
push ebx
call fcn.01008ee2
mov edi, eax
jmp 0x100a6aa
push edi
push esi
push 1
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test byte [edi + 0xc], 0x20
jne 0x100a6db
test eax, eax
jle 0x100a6aa
push dword [ebp - 0x234]
push eax
push 1
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_fwrite]
mov eax, dword [ebp - 0x234]
add esp, 0x10
test byte [eax + 0xc], 0x20
jne 0x100a702
test byte [edi + 0xc], 0x10
je 0x100a669
push dword [ebp - 0x220]
push ebx
call fcn.01008f1d
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_free]
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100d125
leave
ret 0x14
push dword [ebp - 0x230]
push dword [ebp - 0x22c]
push dword [ebp - 0x228]
push 0x1001a34
push 0x10034f8
push dword [ebp - 0x220]
jmp 0x100a63c
push dword [ebp - 0x230]
push dword [ebp - 0x22c]
push dword [ebp - 0x228]
push 0x1001a34
push 0x10034d4
jmp 0x100a6f7
push 0
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x100a6cc