joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d259d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x4d2639
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4d2639
lea eax, [ebp + 0xc]
push eax
push 0x10008
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x4d263e
push edi
push edi
push edi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 4], 0x100
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
je 0x4d2622
cmp esi, edi
jne 0x4d262e
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call fcn.004d259d
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
je 0x4d25db
jmp 0x4d262e
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4d263e
mov esi, 0x3f2
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d2a2b
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x5721dc
call fcn.00524444
sub esp, 0xe8
mov eax, dword [0x61d784]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x4d2b86
cmp byte [eax], 0x2e
jne 0x4d2b86
push eax
lea ecx, [ebp - 0x28]
call fcn.0053ebbd
push eax
lea eax, [ebp - 0x10]
push str.UltraEdit
push eax
mov byte [ebp - 4], 1
call fcn.0053ee58
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0053eb4f
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push ebx
mov edi, bind
push 0x622c94
push edi
call esi
test eax, eax
je 0x4d2abc
push ebx
push ebx
push str.Registry_Read_Error
call fcn.0054ed65
jmp 0x4d2b7b
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push 0xf003f
push ebx
mov dword [ebp - 0x24], 0xc8
push dword [ebp - 0x10]
mov byte [ebp - 0xf4], bl
push edi
call esi
test eax, eax
jne 0x4d2b65
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push str.Old_Default
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d2b4f
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 0x20006
push ebx
push dword [ebp + 8]
push edi
call esi
test eax, eax
jne 0x4d2b5c
lea eax, [ebp - 0xf4]
push eax
call fcn.00525390
pop ecx
inc eax
push eax
lea eax, [ebp - 0xf4]
push eax
push 1
push ebx
push 0x622c94
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4d2b5c
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.004d259d
pop ecx
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004d259d
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0053eb4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0053eb4f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4dbbc8
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5726f0
call fcn.00524444
sub esp, 0x104
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x4dbc0f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [eax]
push str.my_key
push 0x101
call fcn.0053ef7f
push eax
call fcn.004deb43
mov ecx, dword [ebp + 8]
add esp, 0xc
push 0xffffffffffffffff
call fcn.0053efce
jmp 0x4dbce7
push esi
push edi
push str.sdfkh_we_34u__jwef
lea ecx, [ebp + 0x10]
call fcn.0053ebbd
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
call fcn.00525390
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push dword [esi]
call fcn.00525390
pop ecx
lea edi, [eax - 1]
pop ecx
xor ecx, ecx
test edi, edi
jle 0x4dbca3
mov esi, dword [esi]
mov dl, byte [ebp + 0xb]
mov al, byte [esi + ecx]
cmp al, 0x30
jl 0x4dbc56
cmp al, 0x39
jg 0x4dbc56
shl al, 4
jmp 0x4dbc6b
cmp al, 0x61
jl 0x4dbc5e
cmp al, 0x66
jle 0x4dbc66
cmp al, 0x41
jl 0x4dbc6d
cmp al, 0x46
jg 0x4dbc6d
add al, 9
shl al, 4
mov dl, al
mov al, byte [esi + ecx + 1]
inc ecx
cmp al, 0x30
jl 0x4dbc7e
cmp al, 0x39
jg 0x4dbc7e
sub al, 0x30
jmp 0x4dbc94
cmp al, 0x61
jl 0x4dbc8a
cmp al, 0x66
jg 0x4dbc8a
sub al, 0x57
jmp 0x4dbc94
cmp al, 0x41
jl 0x4dbc96
cmp al, 0x46
jg 0x4dbc96
sub al, 0x37
add dl, al
mov byte [ebp + ebx - 0x110], dl
inc ebx
inc ecx
cmp ecx, edi
jl 0x4dbc46
mov ecx, dword [ebp + 8]
push 0x622c94
call fcn.0053ecd8
xor esi, esi
test ebx, ebx
jle 0x4dbcd9
mov eax, esi
mov ecx, dword [ebp + 8]
cdq
idiv dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov dl, byte [edx + eax]
mov al, byte [ebp + esi - 0x110]
xor al, dl
push eax
call fcn.0053ef52
inc esi
cmp esi, ebx
jl 0x4dbcb6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0053eb4f
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4ded08
Capabilities:
Create directory

Disassembly:
mov eax, 0x572d7c
call fcn.00524444
sub esp, 0x10
push esi
and dword [ebp - 4], 0
push 0x3a
lea ecx, [ebp + 8]
call fcn.0053f016
cmp eax, 0xffffffff
je 0x4ded2e
add eax, 2
jmp 0x4ded41
push 0x5c0750
lea ecx, [ebp + 8]
call fcn.0053aa84
cmp eax, 0xffffffff
je 0x4ded4e
inc eax
push eax
push 0x5c
lea ecx, [ebp + 8]
call fcn.0053f024
jmp 0x4ded58
push 0x5c
lea ecx, [ebp + 8]
call fcn.0053f016
mov esi, eax
mov eax, dword [0x61d784]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x4dee02
lea eax, [ebp - 0x14]
push esi
push eax
lea ecx, [ebp + 8]
call fcn.0053a9ea
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0053ef67
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0053eb4f
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0053e8c4
call fcn.004decb5
test eax, eax
pop ecx
jne 0x4dedbc
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4dedfe
inc esi
lea eax, [ebp - 0x18]
push esi
push eax
lea ecx, [ebp + 8]
call fcn.0053a8b5
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0053ec88
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0053eb4f
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0053ef52
push 0x5c
lea ecx, [ebp + 8]
call fcn.0053f016
mov esi, eax
jmp 0x4ded66
xor esi, esi
jmp 0x4dee05
push 1
pop esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0053eb4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0053eb4f
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x4eba74
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edi
push 0x105
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00524810
push 0x5c
push esi
call fcn.0052540b
add esp, 0x14
test eax, eax
je 0x4ebaea
sub eax, edi
inc eax
mov esi, eax
lea eax, [ebp - 0x108]
push esi
push edi
push eax
call fcn.00528044
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4ebae1
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4ebae5
add esi, edi
jmp 0x4eba84
or eax, 0xffffffff
jmp 0x4ebaec
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4eec48
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
mov dword [ecx], 0x58a150
jmp fcn.0047bb67

Function at 0x4f0041
Capabilities:
Copy file

Disassembly:
mov eax, 0x573e78
call fcn.00524444
mov eax, 0x1018
call fcn.00524e70
push ebx
push esi
mov esi, ecx
xor ebx, ebx
xor eax, eax
push edi
cmp dword [esi + 0x5c], ebx
push ebx
sete al
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0047a9b3
add esp, 0xc
push dword [esi + 0x64]
lea ecx, [ebp - 0x1024]
mov dword [ebp - 4], ebx
call fcn.00404989
cmp dword [esi + 0x5c], ebx
mov dword [ebp - 0x10], 0x5bc9e8
jne 0x4f0096
mov dword [ebp - 0x10], 0x5bc9e0
mov edi, dword [esi + 0x64]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x1024]
call fcn.00404a99
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0053ed7e
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0053ede4
mov eax, dword [eax]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x18]
call fcn.0053eb4f
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0053eb4f
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0053eb4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
mov dword [esi + 0x60], 1
call fcn.0053eb4f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4f0056
Capabilities:
Copy file

Disassembly:
mov eax, 0x573e78
call fcn.00524444
mov eax, 0x1018
call fcn.00524e70
push ebx
push esi
mov esi, ecx
xor ebx, ebx
xor eax, eax
push edi
cmp dword [esi + 0x5c], ebx
push ebx
sete al
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0047a9b3
add esp, 0xc
push dword [esi + 0x64]
lea ecx, [ebp - 0x1024]
mov dword [ebp - 4], ebx
call fcn.00404989
cmp dword [esi + 0x5c], ebx
mov dword [ebp - 0x10], 0x5bc9e8
jne 0x4f0096
mov dword [ebp - 0x10], 0x5bc9e0
mov edi, dword [esi + 0x64]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x1024]
call fcn.00404a99
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0053ed7e
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0053ede4
mov eax, dword [eax]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x18]
call fcn.0053eb4f
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0053eb4f
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0053eb4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
mov dword [esi + 0x60], 1
call fcn.0053eb4f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4f6cfa
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 0xc]
mov esi, 0x62bfa0
mov edi, 0x5ca1f0
and dword [ebp - 4], 0
push 0x7fff
push esi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 4
push esi
push edi
call fcn.005252e0
add esp, 0xc
test eax, eax
jne 0x4f6d46
and byte [0x62bfa0], al
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4f6d53
and dword [eax], 0
jmp 0x4f6d53
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4f6d53
mov dword [eax], 1
mov ecx, dword [ebp + 8]
push esi
call fcn.0053ebbd
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret

Function at 0x4f6d63
Capabilities:
Read .ini file

Disassembly:
cmp dword [esp + 0xc], 0
push esi
push edi
mov edi, 0x62bfa0
mov esi, 0x7fff
je 0x4f6d7f
push esi
call fcn.005444b9
pop ecx
mov edi, eax
test edi, edi
je 0x4f6d97
push dword [esp + 0xc]
push esi
push edi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
test eax, eax
jne 0x4f6d99
xor edi, edi
mov eax, edi
pop edi
pop esi
ret

Function at 0x4f7022
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x5747e0
call fcn.00524444
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
je 0x4f7109
cmp dword [ebp + 0xc], ebx
je 0x4f7109
push dword [ebp + 8]
mov esi, 0x62bfa0
push 0x7fff
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
test eax, eax
je 0x4f7109
push edi
push 0x400
lea ecx, [ebp - 0x38]
call fcn.0054b04e
mov dword [ebp - 0x38], 0x57aaf0
xor edi, edi
cmp byte [0x62bfa0], bl
mov dword [ebp - 4], ebx
je 0x4f70de
push 0x3d
push esi
call fcn.0052540b
pop ecx
cmp eax, ebx
pop ecx
je 0x4f70cd
lea esi, [eax + 1]
mov eax, edi
push esi
push eax
lea eax, [ebp - 0x10]
push str._d_s
push eax
inc edi
call fcn.0041f785
add esp, 0x10
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
mov eax, dword [ecx - 8]
inc eax
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.0054b25f
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0053eb4f
push esi
call fcn.00525390
cmp byte [esi + eax + 1], bl
lea esi, [esi + eax + 1]
pop ecx
jne 0x4f7086
push 1
push 0x622ce4
lea ecx, [ebp - 0x38]
call fcn.0054b25f
push dword [ebp + 8]
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0054b101
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4f7329
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x574837
call fcn.00524444
mov eax, 0x1210
call fcn.00524e70
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], ebx
je 0x4f741f
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x5bd950
push eax
call fcn.0041f785
push dword [eax]
lea eax, [ebp + 0x10]
mov dword [ebp - 4], ebx
push str.Workspace
push dword [ebp + 0xc]
push eax
call fcn.004f6e18
add esp, 0x1c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0053eb4f
mov eax, dword [ebp + 0x10]
cmp dword [eax - 8], ebx
je 0x4f7413
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x121c]
call fcn.00404989
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x121c]
push eax
call fcn.00404a99
mov esi, dword [eax]
lea eax, [ebp - 0x218]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4f73cb
mov byte [ebp - 0x218], bl
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp esi, ebx
je 0x4f73dc
cmp byte [esi], bl
je 0x4f73dc
push esi
call edi
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.0053eb4f
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00494696
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0053eb4f
mov eax, dword [ebp + 8]
pop edi
pop esi
jmp 0x4f742f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0053eb4f
mov ecx, dword [ebp + 8]
push 0x622c94
call fcn.0053ebbd
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4f9324
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x574bf6
call fcn.00524444
sub esp, 0x214
and dword [ebp - 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
test ebx, ebx
mov edi, 0x5b8650
je 0x4f9367
push 5
push edi
push ebx
call fcn.005251ed
add esp, 0xc
test eax, eax
jne 0x4f9367
mov ecx, dword [ebp + 8]
push ebx
call fcn.0053ebbd
jmp 0x4f9436
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004f9149
cmp dword [ebp - 0x14], 0
push 1
pop esi
mov dword [ebp - 4], esi
je 0x4f93d5
test ebx, ebx
je 0x4f93a1
push 5
push edi
push ebx
call fcn.005251ed
add esp, 0xc
test eax, eax
jne 0x4f93a1
mov ecx, dword [ebp + 8]
push ebx
call fcn.0053ebbd
jmp 0x4f93d0
push ebx
call fcn.0049ca8a
test eax, eax
pop ecx
jne 0x4f93c1
push 0x7c
push ebx
call fcn.0052517b
pop ecx
pop ecx
mov ecx, eax
inc eax
neg ecx
sbb ecx, ecx
test eax, ecx
je 0x4f9396
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004fb694
add esp, 0xc
mov dword [ebp - 0x10], esi
jmp 0x4f942a
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x220]
push eax
push 0x208
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4f93f7
and byte [ebp - 0x220], al
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
je 0x4f940c
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0
je 0x4f940c
push eax
call edi
push 0
push ebx
push dword [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00494696
add esp, 0xc
lea eax, [ebp - 0x220]
mov dword [ebp - 0x10], esi
push eax
call edi
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0053eb4f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4f9550
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x574c4f
call fcn.00524444
sub esp, 0x228
push ebx
push esi
mov esi, ecx
push edi
push 0x5bff20
lea ecx, [ebp - 0x14]
call fcn.0053ebbd
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], ebx
je 0x4f95ac
cmp byte [edi], bl
je 0x4f95ac
push edi
mov ecx, esi
call fcn.004f944a
cmp eax, 0xffffffff
jne 0x4f9596
or esi, eax
jmp 0x4f971b
push 0x5bfdbc
lea ecx, [ebp - 0x14]
call fcn.0053ef2b
push edi
lea ecx, [ebp - 0x14]
call fcn.0053ef2b
lea eax, [ebp - 0x18]
push ebx
push eax
mov ecx, esi
call fcn.004f9149
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x234]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4f95d7
mov byte [ebp - 0x234], bl
cmp edi, ebx
je 0x4f95e6
cmp byte [edi], bl
je 0x4f95e6
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0053ebbd
push 0x5bc998
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0053ae66
push 0x5bc994
lea ecx, [ebp - 0x10]
call fcn.0053ef2b
mov dword [ebp - 0x2c], 0x58ba94
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x2c]
lea edi, [esi + 8]
push eax
mov ecx, edi
push dword [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004f862e
xor esi, esi
cmp eax, ebx
mov dword [ebp + 8], eax
jle 0x4f967c
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x10]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push eax
call fcn.00524e9f
pop ecx
test eax, eax
pop ecx
je 0x4f96eb
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x10]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push eax
call fcn.004a0938
pop ecx
test eax, eax
pop ecx
jne 0x4f96eb
inc esi
cmp esi, dword [ebp + 8]
jl 0x4f9644
lea eax, [ebp + 8]
mov ecx, edi
push eax
push dword [ebp - 0x14]
call fcn.004fb0fb
test eax, eax
mov esi, 0x5bd950
je 0x4f96b5
mov eax, dword [ebp + 8]
push esi
push ebx
mov dword [ebp + 0xc], eax
lea ecx, [eax + 4]
call fcn.004faff5
cmp eax, ebx
je 0x4f96b0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 1
mov dword [ebp + 8], eax
jmp 0x4f96b8
mov dword [ebp + 8], ebx
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.0041f785
add esp, 0xc
push dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, edi
mov byte [ebp - 4], 5
push eax
push dword [ebp - 0x14]
call fcn.004f7d9c
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.0053eb4f
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004fb24f
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0053eb4f
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0053eb4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0053eb4f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4fa3c7
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x574d9b
call fcn.00524444
sub esp, 0x224
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x20], eax
push edi
lea eax, [ebp - 0x14]
push ebx
mov edi, ecx
push eax
mov dword [ebp - 0x28], ebx
call fcn.004f9149
mov esi, dword [eax]
lea eax, [ebp - 0x230]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4fa40f
mov byte [ebp - 0x230], bl
cmp esi, ebx
je 0x4fa41e
cmp byte [esi], bl
je 0x4fa41e
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.0053eb4f
push 0x5bff20
lea ecx, [ebp + 0xc]
call fcn.0053ebbd
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x4fa45b
cmp byte [esi], bl
je 0x4fa45b
push 0x5bfdbc
lea ecx, [ebp + 0xc]
call fcn.0053ef2b
push esi
lea ecx, [ebp + 0xc]
call fcn.0053ef2b
lea eax, [ebp + 8]
add edi, 8
push eax
mov ecx, edi
push dword [ebp + 0xc]
call fcn.004fb0fb
test eax, eax
je 0x4fa495
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push 0x4fa4fe
lea ecx, [eax + 4]
mov esi, eax
call fcn.004fad57
cmp dword [ebp - 0x10], ebx
je 0x4fa495
mov dword [esi], 1
cmp dword [ebp - 0x28], ebx
je 0x4fa4c9
lea eax, [ebp + 8]
mov ecx, edi
push eax
push dword [ebp + 0xc]
call fcn.004fb0fb
test eax, eax
je 0x4fa4c9
mov eax, dword [ebp + 8]
push 0x5bd950
push ebx
mov esi, eax
lea ecx, [eax + 4]
call fcn.004faff5
cmp eax, ebx
je 0x4fa4c9
mov dword [esi], 1
xor eax, eax
cmp dword [ebp - 0x28], ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
setne al
mov esi, eax
call fcn.0053eb4f
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4fe78a
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x575550
call fcn.00524444
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
mov edi, 0x5bc994
cmp dword [ebp + 8], 0
je 0x4fe86d
push 1
push edi
push 0
lea eax, [ebp - 0x10]
push dword [ebp + 8]
lea ebx, [esi + 0xc0]
mov ecx, ebx
push eax
call fcn.004fdd6f
lea eax, [ebp - 0x14]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
push dword [ebp + 8]
call fcn.0053c06a
test eax, eax
jne 0x4fe7e5
mov dword [ebp - 0x14], 2
cmp dword [ebp - 0x14], 1
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x78]
push eax
jle 0x4fe81a
lea eax, [ebp - 0x1c]
push eax
call fcn.0053ed7e
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
lea ecx, [ebp - 0x1c]
neg ebx
sbb bl, bl
inc bl
call fcn.0053eb4f
test bl, bl
jne 0x4fe85d
jmp 0x4fe833
lea eax, [ebp - 0x20]
push eax
call fcn.0053ed7e
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x20]
call fcn.0053eb4f
push dword [ebp + 8]
push 3
push 0x110a
push dword [esi + 0xdc]
call dword [sym.imp.USER32.dll_SendMessageA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [ebp + 8], eax
call fcn.0053eb4f
jmp 0x4fe7a1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0053eb4f
xor eax, eax
jmp 0x4fe89f
add esi, 0x78
lea ecx, [ebp - 0x18]
push esi
call fcn.0053e8c4
push 1
lea ecx, [ebp - 0x18]
pop esi
push edi
mov dword [ebp - 4], esi
call fcn.0053ae66
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0053eb4f
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4