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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8a0
cmp dword [ebp + 8], 0
je 0x4bf454
mov dword [ebp - 0x44], 0
push 0x1f
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.0054bf90
add esp, 0xc
push 0xd
push 0
lea ecx, [ebp - 0x40]
push ecx
call fcn.0054bf90
add esp, 0xc
mov byte [ebp - 0x30], 0x55
mov byte [ebp - 0x2f], 0x53
mov byte [ebp - 0x2e], 0x42
mov byte [ebp - 0x2d], 0x43
mov byte [ebp - 0x28], 8
mov byte [ebp - 0x24], 0x80
mov byte [ebp - 0x23], 0
mov byte [ebp - 0x22], 0xa
mov byte [ebp - 0x21], 0x25
mov byte [ebp - 0x2a], 0
mov byte [ebp - 0x29], 2
push 0
lea edx, [ebp - 0x10]
push edx
push 0x1f
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x4bf3b7
xor eax, eax
jmp 0x4bf582
push 0
lea edx, [ebp - 0x10]
push edx
push 8
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x4bf3dd
xor eax, eax
jmp 0x4bf582
push 0
lea edx, [ebp - 0x10]
push edx
push 0xd
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x4bf403
xor eax, eax
jmp 0x4bf582
mov edx, dword [ebp - 0x34]
and edx, 0xff
test edx, edx
je 0x4bf417
xor eax, eax
jmp 0x4bf582
mov eax, dword [ebp - 8]
and eax, 0xff
shl eax, 0x18
mov ecx, dword [ebp - 7]
and ecx, 0xff
shl ecx, 0x10
add eax, ecx
mov edx, dword [ebp - 6]
and edx, 0xff
shl edx, 8
add eax, edx
mov ecx, dword [ebp - 5]
and ecx, 0xff
add eax, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
jmp 0x4bf582
push 0x850
push 0
lea edx, [ebp - 0x894]
push edx
call fcn.0054bf90
add esp, 0xc
mov word [ebp - 0x894], 0x2c
mov byte [ebp - 0x891], 0
mov byte [ebp - 0x890], 1
mov byte [ebp - 0x88f], 0
mov byte [ebp - 0x88e], 0x10
mov byte [ebp - 0x88d], 0
mov byte [ebp - 0x88c], 1
mov dword [ebp - 0x888], 8
mov dword [ebp - 0x884], 5
mov dword [ebp - 0x880], 0x50
mov dword [ebp - 0x87c], 0x30
mov byte [ebp - 0x878], 0x25
mov eax, dword [ebp - 0x888]
add eax, 0x50
mov dword [ebp - 0x89c], eax
mov dword [ebp - 0x898], 0
mov dword [ebp - 0x8a0], 0
cmp dword [ebp + 0x20], 0xffffffff
je 0x4bf57c
push 0
lea ecx, [ebp - 0x898]
push ecx
mov edx, dword [ebp - 0x89c]
push edx
lea eax, [ebp - 0x894]
push eax
push 0x2c
lea ecx, [ebp - 0x894]
push ecx
push 0x4d004
mov edx, dword [ebp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x8a0], eax
push 8
lea eax, [ebp - 0x844]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0054c7e0
add esp, 0xc
mov edx, dword [ebp - 8]
and edx, 0xff
shl edx, 0x18
mov eax, dword [ebp - 7]
and eax, 0xff
shl eax, 0x10
add edx, eax
mov ecx, dword [ebp - 6]
and ecx, 0xff
shl ecx, 8
add edx, ecx
mov eax, dword [ebp - 5]
and eax, 0xff
add edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
jmp 0x4bf582
mov eax, dword [ebp - 0x8a0]
mov esp, ebp
pop ebp
ret
Function at 0x4bfb26
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
lea eax, [ebp - 0x10c]
push eax
call fcn.00529440
add esp, 4
push 0x5c6df0
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0054bea0
add esp, 8
push 0x20
push 0
lea edx, [ebp - 0x12c]
push edx
call fcn.0054bf90
add esp, 0xc
mov dword [ebp - 0x130], 0
jmp 0x4bfb80
mov eax, dword [ebp - 0x130]
add eax, 1
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 4
jge 0x4bfbbd
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x130]
xor edx, edx
mov dl, byte [ecx]
push edx
push 0x5c6e04
lea eax, [ebp - 8]
push eax
call fcn.0054c6e3
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x12c]
push edx
call fcn.0054bea0
add esp, 8
jmp 0x4bfb71
lea eax, [ebp - 0x10c]
push eax
push 0
lea ecx, [ebp - 0x12c]
push ecx
push str.SIZE4BYTES
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x4bfbf2
mov eax, dword [ebp - 0x144]
jmp 0x4bfe10
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 1]
push eax
push 0x5c6e18
lea ecx, [ebp - 0x140]
push ecx
call fcn.0054c6e3
add esp, 0xc
lea edx, [ebp - 0x10c]
push edx
push 0
lea eax, [ebp - 0x140]
push eax
push 0x5c6e20
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x4bfc44
mov eax, dword [ebp - 0x144]
jmp 0x4bfe10
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 1]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x148]
sub eax, 1
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0xf0
ja case.0x4bfc7f.20
mov edx, dword [ebp - 0x148]
xor ecx, ecx
mov cl, byte [edx + 0x4bfe68]
jmp dword [ecx*4 + 0x4bfe14]
mov dword [ebp - 0x144], 8
jmp 0x4bfe0a
mov dword [ebp - 0x144], 0x10
jmp 0x4bfe0a
mov dword [ebp - 0x144], 0x20
jmp 0x4bfe0a
mov dword [ebp - 0x144], 0x40
jmp 0x4bfe0a
mov dword [ebp - 0x144], 0x80
jmp 0x4bfe0a
mov dword [ebp - 0x144], 0x80
jmp 0x4bfe0a
mov dword [ebp - 0x144], pe_nt_image_headers32
jmp 0x4bfe0a
mov dword [ebp - 0x144], 0x200
jmp 0x4bfe0a
mov dword [ebp - 0x144], 0x80
jmp 0x4bfe0a
mov dword [ebp - 0x144], 0x400
jmp 0x4bfe0a
mov dword [ebp - 0x144], 0x800
jmp 0x4bfe0a
mov dword [ebp - 0x144], 0x1000
jmp 0x4bfe0a
mov dword [ebp - 0x144], 0x2000
jmp 0x4bfe0a
mov dword [ebp - 0x144], pe_nt_image_headers32
jmp 0x4bfe0a
mov dword [ebp - 0x144], 0x200
jmp 0x4bfe0a
mov dword [ebp - 0x144], 0x200
jmp 0x4bfe0a
mov dword [ebp - 0x144], 0x800
jmp 0x4bfe0a
mov dword [ebp - 0x144], 0x1000
jmp 0x4bfe0a
mov dword [ebp - 0x144], 0x2000
jmp 0x4bfe0a
mov dword [ebp - 0x144], 0x2000
jmp 0x4bfe0a
lea eax, [ebp - 0x10c]
push eax
call fcn.00529440
add esp, 4
push str.UFD_MPDBSIZE.INI
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0054bea0
add esp, 8
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 1]
push eax
push 0x5c6e3c
lea ecx, [ebp - 0x140]
push ecx
call fcn.0054c6e3
add esp, 0xc
lea edx, [ebp - 0x10c]
push edx
push 0
lea eax, [ebp - 0x140]
push eax
push str.SIZE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov esp, ebp
pop ebp
ret
Function at 0x4d9b08
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov dword [ebp - 0x21c], 0
push 0x10
push 0
lea eax, [ebp - 0x214]
push eax
call fcn.0054bf90
add esp, 0xc
mov byte [ebp - 0x214], 0xf0
mov byte [ebp - 0x213], 0x2c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5940]
mov dword [ebp - 0x224], edx
cmp dword [ebp - 0x224], 0xf
je 0x4d9b68
cmp dword [ebp - 0x224], 0x11
je 0x4d9b68
cmp dword [ebp - 0x224], 0x13
je 0x4d9b68
jmp 0x4d9b76
mov eax, dword [ebp + 8]
push eax
call fcn.0052120a
add esp, 4
jmp 0x4d9b93
push 0
push 0
lea ecx, [ebp - 0x214]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004c2d67
add esp, 0x10
mov dword [ebp - 0x21c], eax
push 0x6784a8
push 0
push str.RESETWAITING
push 0x5c738c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x6784a8
push 0
push str.DisableTestUnitReady
push 0x5c73b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x4d9bd6
mov eax, 1
jmp 0x4d9d5b
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6c94], 0x800
jge 0x4d9c09
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x5e88], 0
je 0x4d9c07
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4d9c44
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6c94]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
imul eax, eax, 0x64
add eax, 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5e88], 0
je 0x4d9c44
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0xc], 0
je 0x4d9c57
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x67c4], 0xc
mov edx, dword [ebp + 8]
cmp dword [edx + 0x5e88], 0
je 0x4d9cc4
mov dword [ebp - 0x220], 0
jmp 0x4d9c7e
mov eax, dword [ebp - 0x220]
add eax, 1
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 1
jg 0x4d9cc4
push 0
push 0x200
lea ecx, [ebp - 0x204]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0051b488
add esp, 0x10
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x4d9cb7
xor eax, eax
jmp 0x4d9d5b
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4d9c6f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6cb8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x6cb8], 0x32
mov dword [ebp - 0x218], 0
jmp 0x4d9cf8
mov eax, dword [ebp - 0x218]
add eax, 1
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 3
jge 0x4d9d49
push 0x10
push 0
lea ecx, [ebp - 0x214]
push ecx
call fcn.0054bf90
add esp, 0xc
push 0
push 0
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004c2d67
add esp, 0x10
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x4d9d3c
jmp 0x4d9d49
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4d9ce9
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x6cb8], edx
mov eax, dword [ebp - 0x21c]
mov esp, ebp
pop ebp
ret
Function at 0x4e6354
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [ebp + 8]
mov dword [eax + 0x6cb8], 0x12c
mov dword [ebp - 0x204], 0xfc
mov byte [ebp - 0x20c], 0
mov byte [ebp - 0x208], 0
push 0x200
push 0
lea ecx, [ebp - 0x200]
push ecx
call fcn.0054bf90
add esp, 0xc
mov edx, dword [ebp + 8]
cmp dword [edx + 0x5940], 0x14
je 0x4e63cb
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5940], 0x15
je 0x4e63cb
push 0x6784a8
push 0
push str.BypassCheckUSBMode
push 0x5c7c24
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x4e63d5
mov eax, 1
jmp 0x4e6552
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x5940], 0xe
jl 0x4e6469
mov edx, dword [ebp + 8]
cmp dword [edx + 0x5940], 0x16
jg 0x4e6469
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5940], 0x12
je 0x4e6409
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x5940], 0x13
jne 0x4e6415
mov dword [ebp - 0x204], 0xf6
jmp 0x4e641f
mov dword [ebp - 0x204], 0xfc
push 0
push 0x200
lea edx, [ebp - 0x200]
push edx
mov eax, dword [ebp - 0x204]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0051b8a0
add esp, 0x14
mov dword [ebp - 0x210], eax
mov edx, dword [ebp - 0x1f1]
and edx, 0xff
and edx, 0x20
neg edx
sbb edx, edx
neg edx
add edx, 1
mov byte [ebp - 0x208], dl
jmp 0x4e652c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5940], 8
jl 0x4e64bc
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x5940], 0xd
jg 0x4e64bc
push 0x200
lea edx, [ebp - 0x200]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0051b5b9
add esp, 0xc
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 2]
and ecx, 0xff
and ecx, 0x20
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 1
mov byte [ebp - 0x208], cl
jmp 0x4e652c
push 0x200
lea edx, [ebp - 0x200]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0051b6f6
add esp, 0xc
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x5940], 1
jl 0x4e64fd
mov edx, dword [ebp + 8]
cmp dword [edx + 0x5940], 6
jg 0x4e64fd
mov al, byte [ebp - 0x69]
mov byte [ebp - 0x20c], al
jmp 0x4e6506
mov cl, byte [ebp - 0x62]
mov byte [ebp - 0x20c], cl
mov edx, dword [ebp - 0x20c]
and edx, 0xff
and edx, 0x80
test edx, edx
je 0x4e6525
mov byte [ebp - 0x208], 2
jmp 0x4e652c
mov byte [ebp - 0x208], 1
mov eax, dword [ebp - 0x208]
and eax, 0xff
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x5ae0]
je 0x4e654c
mov dword [ebp - 0x210], 0
mov eax, dword [ebp - 0x210]
mov esp, ebp
pop ebp
ret
Function at 0x4f7da0
Capabilities:
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5757bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x360
lea ecx, [ebp - 0x360]
call fcn.00401420
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401420
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x258]
push ecx
push 0x5c8880
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x364], eax
cmp dword [ebp - 0x364], 0xffffffff
jne 0x4f7e3a
mov dword [ebp - 0x368], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0056206c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x360]
call fcn.0056206c
mov eax, dword [ebp - 0x368]
jmp 0x4f7f5b
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x4f7efa
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x5c8884
lea ecx, [ebp - 0x360]
push ecx
call fcn.0055f827
add esp, 0x10
lea ecx, [ebp - 0x360]
call fcn.005287a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
jne 0x4f7eb9
movsx edx, byte [ebp - 0x22c]
cmp edx, 0x2e
je 0x4f7eb7
mov eax, dword [ebp - 0x360]
push eax
push 0x5c888c
lea ecx, [ebp - 0x35c]
push ecx
call fcn.0054c6e3
add esp, 0xc
lea edx, [ebp - 0x35c]
push edx
call fcn.004f7da0
add esp, 4
jmp 0x4f7ecb
lea ecx, [ebp - 0x360]
call fcn.005287a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x364]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4f7ef5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4f7ef5
mov dword [ebp - 0x10], 1
jmp 0x4f7e41
mov edx, dword [ebp - 0x364]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x118]
push eax
call fcn.00529440
add esp, 4
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x36c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0056206c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x360]
call fcn.0056206c
mov eax, dword [ebp - 0x36c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4fd17e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x90], 5
jne 0x4fd1d1
cmp dword [ebp - 0x8c], 0
jne 0x4fd1bd
mov eax, 1
jmp 0x4fd1e3
cmp dword [ebp - 0x8c], 1
jne 0x4fd1cd
mov eax, 2
jmp 0x4fd1e3
xor eax, eax
jmp 0x4fd1e3
cmp dword [ebp - 0x90], 6
jne 0x4fd1e1
mov eax, 2
jmp 0x4fd1e3
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4fd432
Capabilities:
Delete file
Get common file path
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0054be90
add esp, 8
push 0x2e
lea edx, [ebp - 0x20c]
push edx
call fcn.0054f060
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4fd46f
mov eax, dword [ebp - 4]
mov byte [eax + 1], 0x70
push 0x104
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4fd48a
jmp 0x4fd561
lea edx, [ebp - 0x108]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4fd4a5
jmp 0x4fd561
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x314]
push ecx
call fcn.0054be90
add esp, 8
push str.inf
lea edx, [ebp - 0x314]
push edx
call fcn.0054bea0
add esp, 8
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4fd4e2
jmp 0x4fd561
push 0x20
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 0x210], al
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 0x210], al
push str.other
lea ecx, [ebp - 0x314]
push ecx
call fcn.0054bea0
add esp, 8
lea edx, [ebp - 0x314]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4fd538
jmp 0x4fd561
push 0x20
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 0x210], al
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esp, ebp
pop ebp
ret
Function at 0x4fd612
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54c
mov dword [ebp - 4], 0x200
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.INF_
lea edx, [ebp - 0x204]
push edx
call fcn.0054bea0
add esp, 8
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x54c]
push ecx
push 0x5c8d50
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0xffffffff
jne 0x4fd67a
jmp 0x4fd889
mov edx, 1
test edx, edx
je 0x4fd87c
movsx eax, byte [ebp - 0x520]
cmp eax, 0x2e
je 0x4fd852
lea ecx, [ebp - 0x204]
push ecx
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x520]
push eax
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x408], eax
mov eax, dword [ebp - 0x408]
and eax, 0x10
test eax, eax
jne 0x4fd852
lea ecx, [ebp - 0x520]
push ecx
call fcn.0054ce70
add esp, 4
cmp eax, 7
jb 0x4fd852
movsx edx, byte [ebp - 0x520]
cmp edx, 0x6f
je 0x4fd717
movsx eax, byte [ebp - 0x520]
cmp eax, 0x4f
jne 0x4fd852
movsx ecx, byte [ebp - 0x51f]
cmp ecx, 0x65
je 0x4fd733
movsx edx, byte [ebp - 0x51f]
cmp edx, 0x45
jne 0x4fd852
movsx eax, byte [ebp - 0x51e]
cmp eax, 0x6d
je 0x4fd74f
movsx ecx, byte [ebp - 0x51e]
cmp ecx, 0x4d
jne 0x4fd852
lea edx, [ebp - 0x520]
push edx
call fcn.0054ce70
add esp, 4
movsx eax, byte [ebp + eax - 0x523]
cmp eax, 0x69
je 0x4fd7c3
lea ecx, [ebp - 0x520]
push ecx
call fcn.0054ce70
add esp, 4
movsx edx, byte [ebp + eax - 0x523]
cmp edx, 0x49
je 0x4fd7c3
lea eax, [ebp - 0x520]
push eax
call fcn.0054ce70
add esp, 4
movsx ecx, byte [ebp + eax - 0x523]
cmp ecx, 0x70
je 0x4fd7c3
lea edx, [ebp - 0x520]
push edx
call fcn.0054ce70
add esp, 4
movsx eax, byte [ebp + eax - 0x523]
cmp eax, 0x50
jne 0x4fd852
lea ecx, [ebp - 0x520]
push ecx
call fcn.0054ce70
add esp, 4
movsx edx, byte [ebp + eax - 0x522]
cmp edx, 0x6e
je 0x4fd7fb
lea eax, [ebp - 0x520]
push eax
call fcn.0054ce70
add esp, 4
movsx ecx, byte [ebp + eax - 0x522]
cmp ecx, 0x4e
jne 0x4fd852
lea edx, [ebp - 0x520]
push edx
call fcn.0054ce70
add esp, 4
movsx eax, byte [ebp + eax - 0x521]
cmp eax, 0x66
je 0x4fd833
lea ecx, [ebp - 0x520]
push ecx
call fcn.0054ce70
add esp, 4
movsx edx, byte [ebp + eax - 0x521]
cmp edx, 0x46
jne 0x4fd852
push 0x80
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x54c]
push edx
mov eax, dword [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4fd877
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4fd877
jmp 0x4fd87c
jmp 0x4fd67a
mov ecx, dword [ebp - 0x40c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret
Function at 0x4fdf48
Capabilities:
Check if file exists
Get common file path
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0x200
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4fdfe4
lea edx, [ebp - 0x104]
push edx
call fcn.00529440
add esp, 4
push str.UFD_MPSetting.set
lea eax, [ebp - 0x104]
push eax
call fcn.0054bea0
add esp, 8
lea ecx, [ebp - 0x104]
push ecx
push 0x104
mov edx, dword [ebp + 8]
push edx
push 0x6857d8
push str.SYSTEMFOLDER
push str.INFUPDATE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4fdfe4
push 0
push 0x6857dc
push str.Cant_Get_System_Folder
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
xor eax, eax
jmp 0x4fdfe9
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x500dcb
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push 0x800
push 0
lea eax, [ebp - 0x800]
push eax
call fcn.0054bf90
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x804]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x804]
push edx
mov eax, dword [ebp + 8]
push eax
push str.Func:_s__Error_:__s_r_n
lea ecx, [ebp - 0x800]
push ecx
call fcn.0054c6e3
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x500e4b
push 0x40
push str.Error
lea edx, [ebp - 0x800]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x500e58
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esp, ebp
pop ebp
ret

Function at 0x500e69
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
shl eax, 3
push eax
call fcn.0054cfd4
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
shl ecx, 3
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.0054bf90
add esp, 0xc
mov dword [ebp - 0x18], 0
jmp 0x500ea8
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp + 0xc]
jge 0x500ede
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [edx]
push eax
push str.0x_.2X
lea ecx, [ebp - 0x14]
push ecx
call fcn.0054c6e3
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0054bea0
add esp, 8
jmp 0x500e9f
push 0x5c9454
mov ecx, dword [ebp - 4]
push ecx
call fcn.0054bea0
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x500f0a
push 0
push 0x68580c
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x500f14
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.0054ccb2
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x500f24
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push eax
call fcn.0054ce70
add esp, 4
add eax, 0x40
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0054cfd4
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.0054bf90
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str._s:_.4d_r_n
mov eax, dword [ebp - 4]
push eax
call fcn.0054c6e3
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x500f91
push 0
push 0x685810
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x500f9b
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
push eax
call fcn.0054ccb2
add esp, 4
mov esp, ebp
pop ebp
ret