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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebx]
test edi, edi
je 0x40103c
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push edi
push esi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401036
add esi, dword [ebp - 4]
sub edi, dword [ebp - 4]
jne 0x401014
jmp 0x40103c
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esi, dword [ebp + 0xc]
xor eax, eax
pop edi
mov dword [ebx], esi
inc eax
pop esi
leave
ret 8

Function at 0x40104a
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x565470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push edx
push ecx
push str.allow
push 0x5477c8
push eax
push str.netsh_advfirewall_firewall_add_rule_name__s__dir_s_action_s_program__s__protocol_s
mov edi, 0x400
lea eax, [ebp - 0xc08]
push edi
push eax
call fcn.004012c2
add esp, 0x20
mov dword [ebp - 0xc0c], edi
call fcn.0040129d
and dword [ebp - 0xc14], 0
push edi
lea eax, [ebp - 0xc18]
push eax
lea eax, [esi + 8]
push eax
lea ebx, [esi + 4]
push ebx
mov dword [ebp - 0xc18], 0xc
mov dword [ebp - 0xc10], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x401101
push 0
push 1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x401101
lea ecx, [ebp - 0xc08]
call fcn.004011d1
test eax, eax
je 0x401101
lea eax, [ebp - 0x404]
push eax
push esi
lea ebx, [ebp - 0xc0c]
call fcn.00401005
jmp 0x401103
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f8839
leave
ret 8

Function at 0x401114
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x565470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
push str.powershell__command_Add_MpPreference__ExclusionPath___s_
mov edi, 0x400
lea eax, [ebp - 0xc08]
push edi
push eax
mov esi, ecx
call fcn.004012c2
add esp, 0x10
mov dword [ebp - 0xc0c], edi
call fcn.0040129d
and dword [ebp - 0xc14], 0
push edi
lea eax, [ebp - 0xc18]
push eax
lea eax, [esi + 8]
push eax
lea ebx, [esi + 4]
push ebx
mov dword [ebp - 0xc18], 0xc
mov dword [ebp - 0xc10], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4011be
push 0
push 1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x4011be
lea ecx, [ebp - 0xc08]
call fcn.004011d1
test eax, eax
je 0x4011be
lea eax, [ebp - 0x404]
push eax
push esi
lea ebx, [ebp - 0xc0c]
call fcn.00401005
jmp 0x4011c0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f8839
leave
ret 4
Function at 0x4011d1
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x565470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x85c]
push eax
mov edi, ecx
mov dword [ebp - 0x85c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esi + 8]
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x820], eax
push 0xffffffffffffffff
xor eax, eax
push edi
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x808]
push 0x401
push eax
mov dword [ebp - 0x830], 0x101
call fcn.004f8848
add esp, 0x10
lea eax, [ebp - 0x818]
push eax
xor ebx, ebx
lea eax, [ebp - 0x85c]
push eax
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
lea eax, [ebp - 0x808]
push eax
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x40126e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40128f
push dword [ebp - 0x814]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x818]
call edi
push dword [esi + 8]
call edi
xor eax, eax
mov dword [esi + 8], ebx
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004f8839
leave
ret
Function at 0x402c78
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x565470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, 0x2001f
push ebx
mov edi, str.SOFTWAREGrabsun_fss
mov dword [ebp - 0x820], eax
xor eax, eax
push edi
mov esi, SysReAllocString
push esi
lea ecx, [ebp - 0x81c]
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x814], eax
call fcn.00403d94
mov dword [ebp - 0x80c], eax
cmp eax, 2
jne 0x402cfd
xor eax, eax
push eax
push eax
push ebx
push eax
push eax
push edi
push esi
lea ecx, [ebp - 0x81c]
mov dword [ebp - 0x810], 1
call fcn.00403cd5
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
pop edi
pop esi
pop ebx
jne 0x402d3c
mov eax, dword [ebp - 0x820]
mov eax, dword [eax + 0xc4]
push 1
push eax
push str.Path
lea ecx, [ebp - 0x81c]
mov dword [ebp - 0x810], 2
call fcn.00403c3b
mov dword [ebp - 0x80c], eax
test eax, eax
je 0x402d6e
push dword [ebp - 0x80c]
lea eax, [ebp - 0x808]
push dword [ebp - 0x810]
push str._REG_Error:_d__d_n
push 0x400
push eax
call fcn.004012c2
add esp, 0x14
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x81c]
call fcn.00403de3
cmp dword [ebp - 0x80c], 0
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
call fcn.004f8839
leave
ret 4

Function at 0x402d91
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x20006
xor eax, eax
mov edi, str.SOFTWAREGrabsun_fss
push edi
mov esi, SysReAllocString
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call fcn.00403d94
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x402dd2
push str.Path
push dword [ebp - 0xc]
call ebx
push 0x2001f
push edi
push esi
lea ecx, [ebp - 0xc]
call fcn.00403d94
test eax, eax
jne 0x402df3
push str.Title
push dword [ebp - 0xc]
call ebx
test eax, eax
je 0x402dfc
cmp eax, 2
je 0x402dfc
xor bl, bl
jmp 0x402dfe
mov bl, 1
lea ecx, [ebp - 0xc]
call fcn.00403de3
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x402ec7
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push 0x230
mov eax, 0x51a9c4
call fcn.004f98eb
mov esi, dword [ebp + 8]
push esi
push str._s
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00403a18
add esp, 0x10
lea ecx, [ebp - 0x23c]
call fcn.00413d97
xor ebx, ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], ebx
call fcn.00413e3e
test eax, eax
je 0x402fb0
lea ecx, [ebp - 0x23c]
call fcn.00413a07
lea ecx, [ebp - 0x23c]
mov edi, eax
call fcn.00413d59
test eax, eax
jne 0x402fa8
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00414081
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x23c]
push 0x10
lea ecx, [ebp - 0x23c]
call dword [eax + 0x38]
test eax, eax
je 0x402f73
push dword [ebp - 0x220]
call fcn.00402ec7
pop ecx
jmp 0x402f97
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x80
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.004017be
cmp edi, ebx
jne 0x402f1e
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, ebx
jne 0x402fc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x402fc9
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.00413dc9
mov eax, ebx
call fcn.004f996e
ret

Function at 0x402fe0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x565470]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jbe 0x403036
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40307c
call esi
cmp eax, 3
je 0x40307c
cmp eax, 2
je 0x40307c
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, dword [ebp + 8]
jb 0x403002
call esi
push eax
push ebx
push 0x546ff4
lea eax, [ebp - 0x418]
push 0x208
push eax
call fcn.00403a37
add esp, 0x14
push 0x25
push 0
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 4
je 0x402ffb
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f8839
leave
ret
xor eax, eax
inc eax
jmp 0x40306e
Function at 0x403bcc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403c35
cmp dword [ebp + 0x10], 1
je 0x403c0d
cmp dword [ebp + 0x10], 2
je 0x403c0d
push 0xd
pop eax
jmp 0x403c35
mov eax, dword [ebp - 4]
test edi, edi
je 0x403c2f
test eax, eax
je 0x403c2a
test al, 1
jne 0x403c08
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x403c2f
jmp 0x403c08
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x404106
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x565470]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 0x400
push 0x401
push eax
call fcn.004f8caf
add esp, 0x14
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8839
leave
ret
Function at 0x40419d
Capabilities:
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x565470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x244], eax
movzx eax, word [ebp + 8]
mov ebx, str.FILE
push ebx
push eax
xor edi, edi
push edi
call esi
mov dword [ebp - 0x234], eax
cmp eax, edi
jne 0x40423b
push 7
xor eax, eax
pop ecx
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
push 0x10
stosw word es:[edi], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.004f93a6
add esp, 0x10
push ebx
lea eax, [ebp - 0x24]
push eax
push 0
call esi
mov dword [ebp - 0x234], eax
test eax, eax
jne 0x404239
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.FindResource__u__failed__err_u_n
call fcn.00404106
add esp, 0xc
xor eax, eax
jmp 0x40435a
xor edi, edi
push dword [ebp - 0x234]
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40425d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.LoadResource__u__failed__err_u_n
jmp 0x40422a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x238], eax
cmp eax, edi
jne 0x40427f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.LockResource__u__failed__err_u_n
jmp 0x40422a
push dword [ebp - 0x244]
lea eax, [ebp - 0x230]
push dword [ebp - 0x240]
push str._s_s
push 0x104
push eax
call fcn.00403a18
add esp, 0x14
mov esi, 0x80
push esi
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push esi
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4042ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x230]
push eax
push str.CreateFile_failed__s___err_u_n
jmp 0x40422a
push dword [ebp - 0x234]
mov dword [ebp - 0x23c], edi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
lea eax, [ebp - 0x23c]
push eax
push esi
push dword [ebp - 0x238]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x238], eax
cmp eax, edi
je 0x40432b
cmp esi, dword [ebp - 0x23c]
je 0x40434d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x23c]
lea eax, [ebp - 0x230]
push esi
push eax
push str.WriteFile_failed__s_u_u___err_u_n
call fcn.00404106
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f8839
leave
ret
Function at 0x404369
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0x238
mov eax, 0x51a986
call fcn.004f9921
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0xc]
push esi
mov edi, ecx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x224]
push eax
push 0x546298
push 1
push esi
push 0x5462d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
cmp ebx, esi
jge 0x4043f4
push ebx
push str.CoCreateInstance_failed__x__n
call fcn.00404106
pop ecx
pop ecx
mov dword [ebp - 0x23c], ebx
push 0x55cf74
lea eax, [ebp - 0x23c]
push eax
call fcn.004f9d10
xor eax, eax
push 0x208
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push esi
push eax
call fcn.004f99b0
push 0x5c
push edi
call fcn.004f9299
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x220]
push 0x105
push eax
call fcn.004f8848
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
add esp, 0x24
push edi
push eax
call dword [ecx + 0x50]
cmp dword [ebp - 0x228], esi
je 0x404455
mov eax, dword [ebp - 0x224]
push dword [ebp - 0x228]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
push 0x547b58
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
lea edx, [ebp - 0x220]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
push esi
push edi
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
lea edx, [ebp - 0x22c]
push edx
push 0x5462a8
push eax
call dword [ecx]
cmp eax, esi
jl 0x4044d8
mov eax, dword [ebp - 0x22c]
cmp eax, esi
je 0x4044d8
lea edx, [ebp - 0x228]
push edx
mov dword [ebp - 0x228], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax]
or edx, 0x2000
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
lea edx, [ebp - 0x230]
push edx
push 0x546318
push eax
call dword [ecx]
mov edi, eax
cmp edi, esi
jge 0x404518
push edi
push str.IShellLink::QueryInterface_IID_IPersistFile__failed__x__n
call fcn.00404106
pop ecx
pop ecx
mov dword [ebp - 0x240], edi
push 0x55cf74
lea eax, [ebp - 0x240]
jmp 0x4043ee
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push 1
push dword [ebp - 0x238]
push eax
call dword [ecx + 0x18]
or dword [ebp - 4], 0xffffffff
jmp 0x40454a
mov eax, dword [ebp - 0x230]
cmp eax, esi
je 0x40455a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x22c]
cmp eax, esi
je 0x40456a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x224]
cmp eax, esi
je 0x40457a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x234]
call fcn.004f997d
ret
Function at 0x4046a8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x565470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x21c], eax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004f99b0
lea eax, [ebp - 0x210]
push eax
push 0x16
call fcn.00404152
mov esi, eax
lea eax, [ebp - 0x210]
push eax
push esi
push str.StartMenuShortcut:_u_s_n
call fcn.00404106
add esp, 0x20
test esi, esi
jne 0x404722
xor eax, eax
jmp 0x40482d
push ebx
push edi
or ebx, 0xffffffff
push ebx
mov edi, 0x547e74
push edi
mov esi, 0x105
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
push ebx
push 0x5471fc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
add esp, 0x20
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40477d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40477d
xor eax, eax
jmp 0x40482b
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x4047c9
xor ecx, ecx
cmp cx, word [eax]
je 0x4047c9
push ebx
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
push ebx
push dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
push ebx
push 0x547e78
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
add esp, 0x30
jmp 0x404811
push 0x5c
push dword [ebp - 0x214]
call fcn.004f9299
push ebx
push eax
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
lea eax, [ebp - 0x210]
push 0x2e
push eax
call fcn.004f9299
add esp, 0x20
push 0x6c
pop ecx
push 0x6e
mov word [eax + 2], cx
pop ecx
mov word [eax + 4], cx
push 0x6b
pop ecx
mov word [eax + 6], cx
xor ecx, ecx
mov word [eax + 8], cx
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
call fcn.00404369
pop ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f8839
leave
ret
Function at 0x40483a
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x565470]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004f99b0
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call fcn.00404152
add esp, 0x14
test eax, eax
je 0x4048f3
push esi
push 0xffffffffffffffff
push 0x547e74
mov esi, 0x105
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
push 0xffffffffffffffff
push 0x547104
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
push 0xffffffffffffffff
push 0x547e78
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
add esp, 0x30
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
test al, 1
je 0x4048e6
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8839
leave
ret

Function at 0x4048ff
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x565470]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004f99b0
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call fcn.00404152
add esp, 0x14
test eax, eax
je 0x4049b4
push esi
push 0xffffffffffffffff
push 0x547eb8
mov esi, 0x105
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
push 0xffffffffffffffff
push 0x547e78
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
add esp, 0x30
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
test al, 1
je 0x4049a7
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8839
leave
ret
Function at 0x4049c0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x565470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x214], eax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004f99b0
lea eax, [ebp - 0x210]
push eax
push 0x16
call fcn.00404152
add esp, 0x14
test eax, eax
je 0x404ab0
push esi
push edi
push 0xffffffffffffffff
mov edi, 0x547e74
push edi
mov esi, 0x105
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
push 0xffffffffffffffff
push 0x5471fc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
push 0xffffffffffffffff
push dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
add esp, 0x40
push 0xffffffffffffffff
push 0x547e78
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop esi
test al, 1
je 0x404aa3
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8839
leave
ret

Function at 0x404abc
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x565470]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004f99b0
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call fcn.00404152
add esp, 0x14
test eax, eax
je 0x404b5d
push esi
push 0xffffffffffffffff
push 0x547e74
mov esi, 0x105
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f91c3
add esp, 0x20
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
test al, 1
je 0x404b50
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8839
leave
ret