joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f3a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dcd31
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov ebx, 1
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x1c]
push eax
call fcn.00460850
mov edx, dword [0x52702c]
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, 0x52702c
call eax
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x30], bl
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x20]
cmp ebx, esi
jle 0x45f4a2
mov ebp, dword [esp + 0x1c]
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x45f472
lea ecx, [eax - 1]
test ecx, ecx
jl 0x45f523
cmp ecx, eax
jg 0x45f523
movzx ecx, word [edx + ecx*2]
cmp cx, 0x5d
je 0x45f472
test eax, eax
jle 0x45f472
lea ecx, [eax - 1]
test ecx, ecx
jl 0x45f523
cmp ecx, eax
jg 0x45f523
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x45f472
push 0x5c
call fcn.0045a1e0
test esi, esi
jl 0x45f52d
cmp esi, ebx
jge 0x45f52d
mov eax, ebp
call fcn.00461860
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov eax, edi
call fcn.0044678f
inc esi
add ebp, 4
cmp esi, ebx
jl 0x45f424
xor esi, esi
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x45f505
cmp ebx, esi
jle 0x45f4f8
mov esi, eax
mov ebp, ebx
jmp 0x45f4c0
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], 0
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f4ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
sub ebp, 1
jne 0x45f4c0
mov eax, dword [esp + 0x1c]
xor esi, esi
push eax
call fcn.004b20aa
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0x80070057
call fcn.00402a1f
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x45f540
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4defe8
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x52472c]
xor eax, esp
mov dword [esp + 0x418], eax
push edi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x424]
mov dword fs:[0], eax
lea eax, [esp + 0x218]
push eax
xor edi, edi
push 0x104
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x45f5b0
mov edx, dword [0x52702c]
mov eax, dword [edx + 0xc]
mov ecx, 0x52702c
call eax
add eax, 0x10
mov dword [esi], eax
jmp 0x45f5f9
lea ecx, [esp + 0x10]
push ecx
push edi
push 0x4f7474
lea edx, [esp + 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x45f5e3
mov eax, dword [0x52702c]
mov edx, dword [eax + 0xc]
mov ecx, 0x52702c
call edx
add eax, 0x10
mov dword [esi], eax
jmp 0x45f5f9
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.004054bc
mov dword [esp + 0x42c], edi
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.004b1fae
add esp, 0x428
ret
Function at 0x45fe00
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x52472c]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
lea eax, [esp + 0x20c]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x45fe46
xor al, al
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004b1fae
add esp, 0x414
ret
mov esi, dword [esi]
lea ecx, [esp + 4]
push ecx
push 0
push esi
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x45fe2e
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 4]
push ecx
call fcn.004b3950
add esp, 4
push eax
lea edx, [esp + 8]
push edx
mov eax, edi
call fcn.0040541c
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
mov al, 1
call fcn.004b1fae
add esp, 0x414
ret
Function at 0x460f60
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4d11c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
cmp esi, 0xffffffff
jne 0x460fda
mov dword [esp + 0x1c], eax
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc], edi
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x46100e
mov dword [esp + 0x1c], eax
cmp esi, edi
je 0x460ffa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc], edi
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov dword [esp + 0x1c], 0xffffffff
cmp esi, edi
je 0x46102b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc], edi
mov al, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret

Function at 0x461040
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4d5620
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
call fcn.004610d0
add esp, 4
mov dword [esp + 0x14], 0
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete bl
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4610ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x10
ret
Function at 0x4618b0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
push 0
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x4618db
call fcn.004053da
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 4
mov eax, dword [esi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, edi
or ecx, edx
jge 0x4618fa
mov eax, edi
mov ecx, esi
call fcn.004028d0
mov eax, dword [esi]
push edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x46191c
push ecx
push eax
call fcn.004b200e
add esp, 8
test eax, eax
jl 0x46193c
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x46193c
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
pop edi
pop esi
xor edx, edx
mov ebx, 1
mov word [ecx + eax*2], dx
pop ebp
mov eax, ebx
pop ebx
ret 4
push 0x80070057
call fcn.00402a1f
int3
Function at 0x4660c0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov edi, eax
push edi
call fcn.00419fd8
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x24]
push 0x1f6
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x466132
mov eax, dword [edi + 0x14]
mov ecx, edi
cmp esi, eax
ja 0x466100
push 0xffffffffffffffff
push esi
call fcn.00403f65
jmp 0x46610c
mov edx, esi
push 0
sub edx, eax
push edx
call fcn.0041af79
cmp dword [edi + 0x18], 8
jb 0x466125
mov edi, dword [edi + 4]
inc esi
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop edi
pop esi
pop ebx
ret 4
inc esi
push esi
add edi, 4
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop edi
pop esi
pop ebx
ret 4

Function at 0x466740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d9af6
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x52472c]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push edi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov eax, dword [esp + 0x164]
push eax
lea eax, [esp + 0x30]
push eax
xor edx, edx
call fcn.0045cc90
add esp, 8
xor ebx, ebx
mov dword [esp + 0x15c], ebx
cmp dword [esp + 0x40], ebx
jne 0x46684c
push 0x103
lea ecx, [esp + 0x4d]
push ebx
push ecx
mov byte [esp + 0x54], bl
call fcn.004b4140
add esp, 0xc
push 0x104
lea edx, [esp + 0x4c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x48]
push eax
call fcn.004b3cd0
add esp, 4
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x34]
call fcn.00404a6b
lea edx, [esp + 0xc]
push edx
lea edi, [esp + 0x30]
mov byte [esp + 0x10], 0x5c
call fcn.00466ef0
cmp eax, 0xffffffff
je 0x46684c
push eax
lea eax, [esp + 0x14]
push eax
xor ecx, ecx
mov edx, edi
call fcn.00466e80
mov byte [esp + 0x15c], 1
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.00404e13
mov byte [esp + 0x15c], bl
cmp dword [esp + 0x28], 0x10
jb 0x46683c
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004b1fa3
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x46685b
lea eax, [esp + 0x30]
mov edx, dword [esi]
push eax
push edx
call dword [sym.imp.dbghelp.dll_SymSetSearchPath]
cmp eax, 1
sete byte [esp + 0xc]
mov dword [esp + 0x15c], 0xffffffff
cmp dword [esp + 0x44], 0x10
jb 0x46688c
mov eax, dword [esp + 0x30]
push eax
call fcn.004b1fa3
add esp, 4
mov al, byte [esp + 0xc]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.004b1fae
add esp, 0x154
ret 4
Function at 0x467160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dca6e
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
call fcn.00467030
mov dword [esp + 0x30], 1
mov ecx, dword [esp + 0x3c]
mov dx, word [esp + 0x40]
mov dword [esp + 0x20], ecx
mov word [esp + 0x24], dx
test esi, esi
jne 0x4671b3
xor eax, eax
jmp 0x4671bc
push esi
call fcn.004b3950
add esp, 4
push eax
push esi
lea eax, [esp + 0x14]
call fcn.0040541c
mov eax, dword [esp + 0x44]
mov cx, word [esp + 0x48]
mov dx, word [esp + 0x4c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov ax, word [esp + 0x50]
mov word [esp + 0x18], cx
mov cx, word [esp + 0x54]
add esi, 0x14
lea ebx, [esp + 0xc]
mov dword [esp + 0x14], 0
mov word [esp + 0x1a], dx
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], cx
call fcn.00467630
mov dword [esp + 0x30], 0xffffffff
mov edx, ebx
push edx
call fcn.00467090
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 0x20
Function at 0x468118
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor esi, esi
inc esi
cmp byte [ebp + 0x10], 0
push edi
mov eax, esi
je 0x468131
mov eax, 0x101
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
or dword [ebp - 0x2c], 0xffffffff
push 0x14
pop edi
push edi
mov ebx, eax
mov dword [ebp - 0x14], esi
call fcn.004b0190
or dword [ebp - 0x24], 0xffffffff
push edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], edi
call fcn.004b0190
pop ecx
pop ecx
lea esi, [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], edi
call fcn.0045e790
or dword [ebp - 0x24], 0xffffffff
push edi
call fcn.004b0190
and dword [ebp + 0x10], 0
pop ecx
mov dword [ebp - 0x20], eax
test ebx, ebx
jne 0x46826a
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebx, str.InstallLanguage
mov dword [ebp - 0x10], ebx
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x28]
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, 0xea
jne 0x468217
lea esi, [ebp - 0x2c]
call fcn.0045e790
push dword [ebp - 0xc]
or dword [ebp - 0x2c], 0xffffffff
call fcn.004b0190
pop ecx
lea esi, [ebp - 0x24]
mov dword [ebp - 0x28], eax
call fcn.0045e790
push dword [ebp - 8]
or dword [ebp - 0x24], 0xffffffff
call fcn.004b0190
pop ecx
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x28]
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call edi
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
sub esi, ebx
inc eax
mov cl, byte [esi + eax]
mov dl, byte [eax]
cmp cl, dl
jl 0x46825d
jg 0x46825d
test cl, cl
je 0x468233
test dl, dl
jne 0x46821f
mov ebx, dword [ebp - 0x20]
or dword [ebp + 0x10], 0xffffffff
lea eax, [ebp + 0x10]
push eax
call fcn.0045e840
pop ecx
mov edi, eax
lea esi, [ebp - 0x24]
call fcn.0045e790
lea esi, [ebp - 0x2c]
call fcn.0045e790
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
inc dword [ebp + 0x10]
cmp dword [ebp - 0x1c], 0
je 0x4681a7
xor edi, edi
jmp 0x468246
Function at 0x46af8e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x52472c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x6c]
push edi
test al, 1
je 0x46b01f
shr eax, 0xd
test al, 1
jne 0x46b01f
push ecx
call fcn.0046bdbe
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x46b01f
test ecx, ecx
jge 0x46afcd
push 0x80070057
call fcn.00402a1f
cmp word [eax], 0x5c
jne 0x46afeb
cmp ecx, 1
jl 0x46afc3
cmp word [eax + 2], 0x5c
jne 0x46afeb
cmp ecx, 2
jl 0x46afc3
cmp word [eax + 4], 0x5c
jne 0x46b01f
push esi
xor esi, esi
test esi, esi
jl 0x46afc3
mov ecx, esi
mov eax, edi
call fcn.00461950
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x46afee
xor eax, eax
mov word [ebp - 6], ax
pop esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
setne al
jmp 0x46b021
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004b1fae
leave
ret

Function at 0x46b02e
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call fcn.0046bdbe
lea esi, [ebp - 4]
mov ebx, eax
call fcn.0045f270
push 0x5c
mov esi, ebx
call fcn.0044667d
lea edx, [eax + 1]
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.0043b3a4
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.0044678f
lea ecx, [ebp - 0xc]
call fcn.004029ae
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46b08e
push 0x80
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebx]
push 0
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x46b0a8
xor esi, esi
inc esi
mov dword [edi + 0x10], esi
jmp 0x46b11c
push ebx
push 3
lea esi, [edi + 0x18]
pop eax
mov ecx, esi
call fcn.004773d2
lea eax, [ebp - 8]
push eax
call fcn.00447480
xor ebx, ebx
push ebx
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.0047745a
push dword [eax]
lea eax, [ebp - 8]
push dword [ebp - 4]
push 0x4f7fa0
push eax
call fcn.0044c153
add esp, 0x10
lea ecx, [ebp - 0xc]
call fcn.004029ae
lea eax, [edi + 0x168]
call fcn.00477141
push ebx
push 0x20
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00471a7e
add esp, 0x14
xor esi, esi
test al, al
jne 0x46b114
inc esi
mov dword [edi + 0x10], esi
lea ecx, [ebp - 8]
call fcn.004029ae
lea ecx, [ebp - 4]
call fcn.004029ae
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46dd62
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0xc0], 0
je 0x46dee3
cmp byte [ebx + 0xd8], 0
jne 0x46dee3
push esi
lea esi, [ebx + 0x84]
cmp dword [esi], 3
push edi
je 0x46ddbf
mov edi, ebx
call fcn.0046f247
mov esi, dword [esi]
cmp esi, 2
je 0x46ddbf
cmp esi, 1
je 0x46ddbf
mov eax, dword [ebx + 0x44]
mov ecx, eax
shr ecx, 3
test cl, 1
jne 0x46ddba
shr eax, 6
test al, 1
je 0x46ddbf
call fcn.0046e50b
mov ecx, dword [ebx + 0xa8]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
cmp ecx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
jle 0x46de30
lea eax, [ebx + 0xa4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0044ba5a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call edi
test esi, esi
jne 0x46de25
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0044ba5a
mov ebx, eax
lea esi, [ebp - 0x24]
call fcn.0045e2c0
mov ebx, dword [ebp + 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x46ddf2
mov esi, dword [ebx + 0xb4]
dec esi
mov dword [ebp - 4], esi
js 0x46de82
lea eax, [ebx + 0xb0]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.0044ba5a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], 0
jne 0x46de7c
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.0044ba5a
mov ebx, eax
lea esi, [ebp - 0x18]
call fcn.0045e2c0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
dec esi
mov dword [ebp - 4], esi
jns 0x46de45
lea eax, [ebx + 0xa4]
lea edi, [ebp - 0x24]
call fcn.00470685
lea esi, [ebx + 0xb0]
call fcn.00447a36
mov edi, dword [ebp - 0x14]
dec edi
js 0x46deb8
mov eax, edi
lea ecx, [ebp - 0x18]
call fcn.0044ba5a
mov ebx, eax
call fcn.0045e2c0
dec edi
jns 0x46dea1
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0xa8], eax
jne 0x46decb
cmp dword [ebx + 0xb4], eax
jne 0x46decb
inc eax
lea esi, [ebp - 0x18]
mov byte [ebx + 0xd8], al
call fcn.00447a36
lea esi, [ebp - 0x24]
call fcn.00447a36
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46e50b
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [edi + 0x5c]
push eax
lea eax, [ebp - 4]
push eax
call int.0041808f
mov eax, dword [edi + 0x44]
xor edx, edx
inc edx
test dl, al
jne 0x46e55c
shr eax, 3
movzx ecx, al
and al, dl
and ecx, edx
movzx eax, al
add ecx, ecx
or ecx, edx
neg eax
sbb eax, eax
and eax, 7
push ecx
push eax
mov eax, edi
call fcn.0046ec99
lea ecx, [edi + 0x6c]
call fcn.00470789
mov esi, eax
lea eax, [ebp - 8]
add esi, 0x18
push eax
jmp 0x46e5a4
shr eax, 6
test dl, al
je 0x46e5c0
lea esi, [ebp - 8]
mov ecx, edi
call fcn.00470016
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.0044678f
mov ecx, esi
call fcn.004029ae
lea eax, [ebp - 4]
call fcn.0045f230
push 6
mov eax, edi
call fcn.0046ecdd
lea ecx, [edi + 0x98]
call fcn.0047779b
lea ecx, [ebp - 8]
push ecx
mov esi, eax
call fcn.0045f630
mov eax, dword [eax]
pop ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.0044678f
lea ecx, [ebp - 8]
call fcn.004029ae
lea eax, [ebp - 4]
push eax
call fcn.0045fa40
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 4]
call fcn.004029ae
xor eax, eax
pop esi
leave
ret
Function at 0x46f33b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov ebx, 0x400
push ebx
mov esi, eax
call fcn.004b0190
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
cmp eax, ecx
jne 0x46f369
push ecx
call fcn.004b3fe5
pop ecx
push 3
jmp 0x46f4dd
xor eax, eax
and dword [ebp - 0x10], eax
and dword [ebp - 8], eax
lea edi, [ebp - 0x24]
mov dword [ebp - 0x28], ecx
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], ecx
sub dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
inc dword [ebp - 0xc]
add dword [ebp - 0x10], 0xa
cmp dword [ebp - 0xc], 1
cdq
mov ecx, eax
mov dword [ebp - 0x2c], edx
jle 0x46f3a3
mov eax, dword [ebp - 0x10]
cdq
add ecx, eax
adc dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push 2
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x78]
push ecx
push eax
call edi
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x46f3cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46f4c1
mov eax, dword [esi + 0x78]
push 0
lea ecx, [ebp - 0x14]
push ecx
push ebx
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46f4bb
cmp dword [ebp - 0x14], ebx
jne 0x46f4bb
mov eax, ebx
mov ebx, dword [ebp - 4]
call fcn.0045f170
xor ebx, ebx
cmp eax, ebx
jge 0x46f40b
mov ebx, 0x400
jmp 0x46f381
mov ecx, dword [ebp - 0x1c]
push ebx
lea eax, [eax + ecx - 0x40]
mov ecx, dword [esi + 0x78]
lea edx, [ebp - 0x24]
push edx
push eax
push ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
call edi
cmp eax, 0xffffffff
je 0x46f4bb
mov eax, dword [esi + 0x78]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push 0x4a
lea ecx, [esi + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46f494
cmp dword [ebp - 0x14], ebx
je 0x46f494
push 0xa
lea eax, [esi + 0x48]
push str.ADVINSTSFX
push eax
call fcn.004b21ed
add esp, 0xc
test eax, eax
je 0x46f466
push 5
jmp 0x46f4ad
cmp dword [esi + 0x14], 0x64
jne 0x46f462
mov eax, dword [esi + 0x18]
mov edx, dword [ebp - 0x28]
push dword [ebp - 4]
xor ecx, ecx
sub edx, eax
mov eax, dword [ebp - 0x24]
sbb eax, ecx
mov dword [esi + 0x90], edx
mov dword [esi + 0x94], eax
call fcn.004b3fe5
pop ecx
xor eax, eax
jmp 0x46f4de
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x54]
push ecx
push 0x103
push esi
mov ebx, eax
call fcn.00470055
push 2
pop esi
push dword [ebp - 4]
call fcn.004b3fe5
pop ecx
mov eax, esi
jmp 0x46f4de
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x54]
push ecx
push 0x103
push esi
mov ebx, eax
call fcn.00470055
push dword [ebp - 4]
call fcn.004b3fe5
pop ecx
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret