joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4942d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5571d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4943bd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004943d0
mov esi, dword [ebp - 0x10]
or ecx, 0xffffffff
test al, al
jne 0x494335
xor bl, bl
jmp 0x49438d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebx]
lea ecx, [esi - 0x10]
sub edi, 0x10
cmp ecx, edi
je 0x494388
cmp dword [edi + 0xc], 0
jl 0x49437d
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x49437d
call fcn.0040a1d0
mov dword [ebp - 0x14], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x494376
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
jmp 0x494388
push dword [esi - 0xc]
mov ecx, ebx
push esi
call fcn.004126c0
mov bl, 1
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4943a9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004126a0
int3

Function at 0x4943d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x5d0074]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
push edi
lea eax, [esp + 0x210]
mov edi, edx
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x494458
lea eax, [esp + 8]
push eax
push 0
push dword [esi]
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x494458
lea edx, [esp + 8]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x494423
sub edx, esi
lea eax, [esp + 8]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.004126c0
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.005214e1
add esp, 0x414
ret
mov ecx, dword [esp + 0x418]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.005214e1
add esp, 0x414
ret
Function at 0x494ef0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5573e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], 0x57dd34
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x494f52
or esi, eax
xor bl, bl
jmp 0x494f68
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x494f64
xor bl, bl
jmp 0x494f68
mov dword [edi], eax
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x57dd34
test esi, esi
je 0x494f88
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x495100
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x556f49
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0
push 0x25
lea eax, [ebp]
mov dword [ebp - 0x18], esi
push eax
push 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4951b4
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4951fa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 1
lea eax, [ebp]
test eax, 0xffff0000
jne 0x495191
movzx eax, ax
mov ecx, esi
push eax
call fcn.00412350
jmp 0x4951b2
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495197
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004126c0
jmp 0x4951c9
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x495204
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.005214e1
lea esp, [ebp + 0x20c]
pop ebp
ret
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
int3
Function at 0x495370
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push 0
push 0
push dword [esp + 0x18]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x49539a
mov ecx, esi
call fcn.00412410
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4
js 0x495400
mov edx, dword [esi]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x4953b9
push edi
mov ecx, esi
call fcn.00412580
mov edx, dword [esi]
push edi
push edx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x4953cf
xor ecx, ecx
jmp 0x4953e1
push dword [eax - 8]
push eax
call fcn.005295a5
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x495400
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x495400
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
pop edi
pop esi
mov word [eax + ecx*2], dx
mov eax, ebx
pop ebx
ret 4
push 0x80070057
call fcn.004126a0
int3
Function at 0x49e090
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558bf0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, dl
mov byte [ebp - 0xd], al
mov ebx, ecx
or edi, 0xffffffff
cmp byte [0x5d6558], 0
je 0x49e142
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x49e23b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 2
mov edx, dword [ebx]
test edx, edx
je 0x49e113
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49e0f7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.00416df0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
mov ecx, 0x5d6524
push eax
call fcn.004c8520
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49e13f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0xd]
cmp byte [0x5d0b04], 0
push dword [ebx]
je 0x49e223
movzx eax, al
lea ecx, [ebp - 0x14]
shl eax, 0x12
add eax, 0x10
mov dword [ebp - 0x18], eax
call fcn.004127e0
mov dword [ebp - 4], 5
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x49e245
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 7
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov byte [ebp - 0xd], 0
test esi, esi
jne 0x49e1a6
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov byte [ebp - 0xd], 1
mov edx, dword [ebp - 0x18]
xor eax, eax
cmp dword [ebx - 0xc], eax
mov ecx, ebx
cmove ecx, eax
push ecx
mov eax, esp
push ecx
mov dword [eax], ecx
mov ecx, esp
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov ecx, esi
call fcn.004379c0
add esp, 8
cmp byte [ebp - 0xd], 0
je 0x49e1d7
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov byte [ebp - 4], 5
lea edx, [ebx - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49e1f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x49e229
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
int3
Function at 0x4a2990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559a82
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov dword [ebp + 8], esi
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.0040a1d0
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 1
add esi, 4
mov ecx, dword [edi + 4]
sub ecx, 0x10
mov dword [ebp + 8], esi
call fcn.0040a1d0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x10]
mov ecx, dword [edi + 8]
add esi, 8
sub ecx, 0x10
mov dword [ebp + 8], esi
call fcn.0040a1d0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x10]
mov ecx, dword [edi + 0xc]
add esi, 0xc
sub ecx, 0x10
mov dword [ebp + 8], esi
call fcn.0040a1d0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x10]
mov ecx, dword [edi + 0x10]
add esi, 0x10
sub ecx, 0x10
mov dword [ebp + 8], esi
call fcn.0040a1d0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x10]
mov ecx, dword [edi + 0x14]
add esi, 0x14
sub ecx, 0x10
mov dword [ebp + 8], esi
call fcn.0040a1d0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xb
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x10]
movups xmmword [ecx + 0x18], xmm0
mov dword [ecx + 0x28], 0
mov eax, dword [edi + 0x18]
mov dword [ecx + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [ecx + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [ecx + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [ecx + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [ecx + 0x28], eax
movups xmmword [ecx + 0x2c], xmm0
mov dword [ecx + 0x3c], 0
mov eax, dword [edi + 0x2c]
mov dword [ecx + 0x2c], eax
lea esi, [ecx + 0x40]
mov eax, dword [edi + 0x30]
mov dword [ecx + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [ecx + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [ecx + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [ecx + 0x3c], eax
mov ecx, dword [edi + 0x40]
sub ecx, 0x10
mov dword [ebp + 8], esi
call fcn.0040a1d0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x10]
movzx eax, byte [edi + 0x44]
mov byte [ecx + 0x44], al
movzx eax, byte [edi + 0x45]
mov byte [ecx + 0x45], al
mov eax, dword [edi + 0x48]
mov dword [ecx + 0x48], eax
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4a2cf0
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x559ae0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x1c], ecx
mov ebx, dword [ebp + 0x20c]
push dword [ebx + 4]
call fcn.00521c5a
push esi
lea eax, [ebp]
mov dword [ebx + 4], 0
push str.SELECT__Text__FROM__UIText__WHERE__Key____s
push eax
mov dword [ebx], 0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test eax, eax
je 0x4a2d7a
push eax
call edi
push dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
lea ecx, [ebp]
call fcn.004a3030
add esp, 4
test eax, eax
jns 0x4a2d9a
xor bl, bl
jmp 0x4a2df4
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4a2daf
push eax
call edi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0
test eax, eax
je 0x4a2de4
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jle 0x4a2dd6
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x4a2e2a
cmp eax, 0x80070103
je 0x4a2de4
call fcn.004a30f0
xor bl, bl
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4a2df4
push eax
call edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4a2e05
push ecx
call edi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.005214e1
lea esp, [ebp + 0x204]
pop ebp
ret
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x57df48
push 1
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
jne 0x4a2e83
mov esi, dword [ebp - 0x18]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mov dword [ebp - 0x18], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00521c5f
add esp, 4
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x18]
mov dword [ebx], esi
push ecx
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
test eax, eax
sete bl
jmp 0x4a2de6
Function at 0x4a3590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559be0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1c]
push eax
movzx eax, byte [ebp + 0xc]
shl eax, 8
inc eax
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x14
mov esi, eax
mov dword [ebp - 0x18], 1
call fcn.00521c5f
mov ebx, eax
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 0
push 0x14
mov dword [ebp - 0x14], 0x14
call fcn.00521c5f
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x10], 0x14
call fcn.00521c5a
push 0x14
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.00521c5f
add esp, 0x10
mov dword [ebp + 0xc], eax
xor edi, edi
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], eax
test esi, esi
jne 0x4a3734
mov esi, str.AI_InstallLanguage
dec esi
mov dword [ebp - 0x24], esi
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x20], eax
cmp eax, 0xea
jne 0x4a36e7
push ebx
call fcn.00521c5a
push dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
call fcn.00521c5f
mov ebx, eax
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], ebx
push dword [ebp + 0xc]
call fcn.00521c5a
push dword [ebp - 0x10]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.00521c5f
add esp, 0x10
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x10]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x2c], 0xffffffff
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edx, esi
mov esi, ebx
sub esi, str.AI_InstallLanguage
mov al, byte [esi + edx + 1]
lea edx, [edx + 1]
mov cl, byte [edx]
cmp al, cl
jl 0x4a3722
jg 0x4a3722
test al, al
je 0x4a3708
test cl, cl
jne 0x4a36f1
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0xffffffff
call fcn.004991e0
add esp, 4
mov esi, eax
jmp 0x4a3736
inc edi
cmp dword [ebp - 0x20], 0
jne 0x4a3734
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x24]
jmp 0x4a3653
xor esi, esi
mov byte [ebp - 4], 0
push dword [ebp + 0xc]
call fcn.00521c5a
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
push ebx
call fcn.00521c5a
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a68f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a6c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1c]
add ecx, 0x30
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004ae5a0
mov dword [ebp - 4], 0
or edi, 0xffffffff
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4a6a36
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x28], 0x57dd34
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp esi, edi
jne 0x4a6981
mov byte [ebp - 4], 0
mov dword [ebp - 0x28], 0x57dd34
push edi
jmp 0x4a6a29
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
add ecx, 2
push 0
push eax
push ecx
push esi
add ebx, 0xfffffffe
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4a6a19
mov eax, ebx
lea ecx, [ebp - 0x10]
shr eax, 1
push eax
push 0x78
call fcn.00476110
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x4a69d4
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004124b0
mov eax, dword [ebp - 0x10]
push 0
lea ecx, [ebp - 0x20]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a69fb
cmp dword [ebp - 0x20], 0
je 0x4a69fb
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004c8df0
jmp 0x4a69fb
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a6a19
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov dword [ebp - 0x28], 0x57dd34
test esi, esi
je 0x4a6a36
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4a6a55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ada30
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bcd0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0xc0], 0
je 0x4adc32
cmp byte [edi + 0xd8], 0
jne 0x4adc32
cmp dword [edi + 0x90], 3
je 0x4ada9f
call fcn.004b0ec0
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x4ada9f
cmp eax, 1
je 0x4ada9f
test byte [edi + 0x44], 0x48
je 0x4ada9f
mov ecx, edi
call fcn.004aeea0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
xor ebx, ebx
mov eax, dword [edi + 0xa8]
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x4adb43
test ebx, ebx
js 0x4adc44
cmp ebx, dword [edi + 0xa8]
jge 0x4adc44
mov eax, dword [edi + 0xa4]
lea ecx, [ebx*4]
push dword [eax + ecx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4adb3d
cmp ebx, dword [edi + 0xa8]
jge 0x4adc44
mov eax, dword [edi + 0xa4]
lea ecx, [ebx*4]
add eax, ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.0048f3e0
inc ebx
cmp ebx, dword [ebp - 0x10]
jl 0x4adae3
mov ebx, dword [edi + 0xb4]
lea esi, [edi + 0xb0]
sub ebx, 1
js 0x4adbab
test ebx, ebx
js 0x4adc44
cmp ebx, dword [esi + 4]
jge 0x4adc44
mov eax, dword [esi]
lea ecx, [ebx*4]
push dword [eax + ecx]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
lea esi, [edi + 0xb0]
jne 0x4adba6
cmp ebx, dword [esi + 4]
jge 0x4adc44
mov eax, dword [esi]
lea ecx, [ebx*4]
add eax, ecx
lea ecx, [ebp - 0x1c]
push eax
call fcn.0048f3e0
sub ebx, 1
jns 0x4adb54
lea eax, [ebp - 0x28]
lea ecx, [edi + 0xa4]
push eax
call fcn.004b3460
mov ecx, esi
call fcn.0047dd80
mov ecx, dword [ebp - 0x18]
lea esi, [ecx - 1]
test esi, esi
js 0x4adbf9
mov eax, dword [ebp - 0x1c]
lea eax, [eax + esi*4]
mov dword [ebp - 0x10], eax
test esi, esi
js 0x4adc44
cmp esi, ecx
jge 0x4adc44
push eax
lea ecx, [edi + 0xb0]
call fcn.0048f3e0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
sub eax, 4
sub esi, 1
mov dword [ebp - 0x10], eax
jns 0x4adbd4
cmp dword [edi + 0xa8], 0
jne 0x4adc0f
cmp dword [edi + 0xb4], 0
jne 0x4adc0f
mov al, 1
jmp 0x4adc11
xor al, al
mov byte [edi + 0xd8], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0047dd80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0047dd80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0xc000008c
call fcn.0040db10
int3