joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ad90
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4dc703
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x52472c]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
lea eax, [esp + 0x38]
xor ebx, ebx
push eax
mov dword [esp + 0x38], edi
mov esi, ecx
mov dword [esp + 0x18], ebx
call fcn.0045ac30
add esp, 4
mov dword [esp + 0x26c], 1
mov ebp, 8
cmp dword [esi + 0x18], ebp
jb 0x45adfd
mov esi, dword [esi + 4]
jmp 0x45ae00
add esi, 4
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebp
jae 0x45ae0e
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x54]
push ecx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp byte [esp + 0x274], bl
je 0x45ae30
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x54]
xor eax, eax
mov esi, 7
push ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
call fcn.004b3310
add esp, 4
push eax
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x20]
call fcn.004042c6
mov byte [esp + 0x26c], 2
push edi
lea ecx, [esp + 0x1c]
call fcn.0045a5d0
mov dword [esp + 0x14], 1
mov byte [esp + 0x26c], 1
cmp dword [esp + 0x30], ebp
jb 0x45ae95
mov eax, dword [esp + 0x1c]
push eax
call fcn.004b1963
add esp, 4
xor ecx, ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
mov dword [esp + 0x26c], ebx
cmp dword [esp + 0x50], ebp
jb 0x45aebe
mov edx, dword [esp + 0x3c]
push edx
call fcn.004b1963
add esp, 4
xor eax, eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
mov eax, edi
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.004b196e
add esp, 0x260
ret
Function at 0x45c300
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2c0
mov eax, dword [0x52472c]
xor eax, esp
mov dword [esp + 0x2bc], eax
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4011
push 0x2b4
lea eax, [esp + 0x14]
push eax
push 0x10
push 0x4f7388
call edi
push 0x4011
push 0x2b4
lea ecx, [esp + 0x14]
push ecx
push 0x10
push str.C:FAKE_DIR_
mov dword [esi], eax
call edi
mov edx, dword [esp + 0x10]
push 0x4013
push 0x2b4
lea eax, [esp + 0x14]
push eax
push 0x10
push str.C:FAKE_DIR_
mov dword [esi + 4], edx
call edi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 4]
push edx
push 0x11
push 0
mov dword [esi + 8], ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x45c3dd
mov ecx, dword [esp + 4]
push 0x4009
push 0x2b4
lea eax, [esp + 0x14]
push eax
push 0
push ecx
call edi
mov edx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
mov dword [esi + 0xc], edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x45c3e4
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, esi
pop edi
mov ecx, dword [esp + 0x2bc]
xor ecx, esp
call fcn.004b196e
add esp, 0x2c0
ret
mov dword [esi + 0xc], 0
mov ecx, dword [esp + 0x2c0]
pop edi
xor ecx, esp
mov eax, esi
call fcn.004b196e
add esp, 0x2c0
ret

Function at 0x45dc20
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
mov ebx, ecx
call fcn.0045ddd0
mov eax, 8
cmp dword [edi + 0x18], eax
jb 0x45dc3d
mov edi, dword [edi + 4]
jmp 0x45dc40
add edi, 4
cmp dword [ebx + 0x18], eax
jb 0x45dc4a
mov ebx, dword [ebx + 4]
jmp 0x45dc4d
add ebx, 4
test edi, edi
je 0x45dc6c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi]
lea eax, [eax + eax + 2]
push eax
push edi
push 2
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret
Function at 0x45dc70
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4d9743
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [eax]
cmp eax, ebx
je 0x45dd8e
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x45dcbe
mov ecx, dword [esi]
jmp 0x45dcc0
mov ecx, esi
lea edx, [esp + 0x14]
push edx
push ebx
lea edx, [esp + 0x24]
push edx
push ebx
push ecx
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x45dd8e
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x45dcf2
cmp eax, 2
jne 0x45dd8e
mov eax, dword [esp + 0x14]
shr eax, 1
mov dword [esp + 0x1c], eax
cmp eax, ebx
jbe 0x45dd8e
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0045bc30
mov dword [esp + 0x40], 1
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
sar ecx, 1
jne 0x45dd28
call fcn.004b3673
cmp dword [edi + 0x18], 8
jb 0x45dd32
mov eax, dword [esi]
jmp 0x45dd34
mov eax, esi
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x2c]
push eax
push edx
lea esi, [esp + 0x24]
call fcn.0042a0b2
cmp eax, ebx
jne 0x45dd80
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
sar eax, 1
jne 0x45dd5c
call fcn.004b3673
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.00404357
mov dword [esp + 0x18], 1
mov byte [esp + 0x40], bl
lea edx, [esp + 0x20]
push edx
call fcn.0045cbd0
jmp 0x45ddaa
mov byte [esp + 0x40], bl
lea eax, [esp + 0x20]
push eax
call fcn.0045cbd0
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
xor ecx, ecx
mov word [ebp + 4], cx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x18], 1
mov eax, ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
Function at 0x45ef30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4dea28
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x52472c]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
push 0x104
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x45ef9f
mov edx, dword [0x52702c]
mov eax, dword [edx + 0xc]
mov ecx, 0x52702c
call eax
add eax, 0x10
mov dword [esi], eax
jmp 0x45f01a
cmp word [esp + eax*2 + 0xe], 0x5c
je 0x45efb2
mov ecx, 0x5c
mov word [esp + eax*2 + 0x10], cx
inc eax
xor edx, edx
mov word [esp + eax*2 + 0x10], dx
mov eax, dword [0x52702c]
mov edx, dword [eax + 0xc]
mov ecx, 0x52702c
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x224], 2
lea eax, [esp + 0x10]
test eax, 0xffff0000
jne 0x45f000
mov ecx, eax
movzx edi, cx
push edi
call fcn.004051f2
add esp, 4
test eax, eax
je 0x45f01a
push edi
push eax
mov eax, esi
call fcn.00405340
jmp 0x45f01a
lea edx, [esp + 0x10]
push edx
call fcn.004b3310
add esp, 4
push eax
lea eax, [esp + 0x14]
push eax
mov eax, esi
call fcn.0040540f
mov dword [esp + 0x224], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004b196e
add esp, 0x220
ret
Function at 0x45f060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dc631
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.00460510
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 0x45f162
mov ebp, dword [esp + 0x1c]
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x45f132
lea ecx, [eax - 1]
test ecx, ecx
jl 0x45f1e3
cmp ecx, eax
jg 0x45f1e3
movzx ecx, word [edx + ecx*2]
cmp cx, 0x5d
je 0x45f132
test eax, eax
jle 0x45f132
lea ecx, [eax - 1]
test ecx, ecx
jl 0x45f1e3
cmp ecx, eax
jg 0x45f1e3
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x45f132
push 0x5c
call fcn.00459f20
test esi, esi
jl 0x45f1ed
cmp esi, ebx
jge 0x45f1ed
mov eax, ebp
call fcn.00461520
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov eax, edi
call fcn.00446332
inc esi
add ebp, 4
cmp esi, ebx
jl 0x45f0e4
xor esi, esi
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x45f1c5
cmp ebx, esi
jle 0x45f1b8
mov esi, eax
mov ebp, ebx
jmp 0x45f180
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 0x45f1aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
sub ebp, 1
jne 0x45f180
mov eax, dword [esp + 0x1c]
xor esi, esi
push eax
call fcn.004b1a6a
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.004029f2
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x45f200
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4de9b8
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 0x45f270
mov edx, dword [0x52702c]
mov eax, dword [edx + 0xc]
mov ecx, 0x52702c
call eax
add eax, 0x10
mov dword [esi], eax
jmp 0x45f2b9
lea ecx, [esp + 0x10]
push ecx
push edi
push 0x4f73f4
lea edx, [esp + 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x45f2a3
mov eax, dword [0x52702c]
mov edx, dword [eax + 0xc]
mov ecx, 0x52702c
call edx
add eax, 0x10
mov dword [esi], eax
jmp 0x45f2b9
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.004054af
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.004b196e
add esp, 0x428
ret
Function at 0x45fac0
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 0x45fb06
xor al, al
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004b196e
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 0x45faee
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 4]
push ecx
call fcn.004b3310
add esp, 4
push eax
lea edx, [esp + 8]
push edx
mov eax, edi
call fcn.0040540f
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
mov al, 1
call fcn.004b196e
add esp, 0x414
ret
Function at 0x460c20
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4d0b48
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 0x460c9a
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 0x460cce
mov dword [esp + 0x1c], eax
cmp esi, edi
je 0x460cba
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 0x460ceb
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 0x460d00
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4d5330
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.00460d90
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 0x460d6e
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 0x461570
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 0x46159b
call fcn.004053cd
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 0x4615ba
mov eax, edi
mov ecx, esi
call fcn.00402886
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 0x4615dc
push ecx
push eax
call fcn.004b19ce
add esp, 8
test eax, eax
jl 0x4615fc
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4615fc
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.004029f2
int3
Function at 0x465d80
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov edi, eax
push edi
call fcn.00419e70
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 0x465df2
mov eax, dword [edi + 0x14]
mov ecx, edi
cmp esi, eax
ja 0x465dc0
push 0xffffffffffffffff
push esi
call fcn.00403f7a
jmp 0x465dcc
mov edx, esi
push 0
sub edx, eax
push edx
call fcn.0041abb3
cmp dword [edi + 0x18], 8
jb 0x465de5
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 0x466400
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d9516
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.0045c880
add esp, 8
xor ebx, ebx
mov dword [esp + 0x15c], ebx
cmp dword [esp + 0x40], ebx
jne 0x46650c
push 0x103
lea ecx, [esp + 0x4d]
push ebx
push ecx
mov byte [esp + 0x54], bl
call fcn.004b3b00
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.004b3690
add esp, 4
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x34]
call fcn.00404a5d
lea edx, [esp + 0xc]
push edx
lea edi, [esp + 0x30]
mov byte [esp + 0x10], 0x5c
call fcn.00466bb0
cmp eax, 0xffffffff
je 0x46650c
push eax
lea eax, [esp + 0x14]
push eax
xor ecx, ecx
mov edx, edi
call fcn.00466b40
mov byte [esp + 0x15c], 1
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.00404e05
mov byte [esp + 0x15c], bl
cmp dword [esp + 0x28], 0x10
jb 0x4664fc
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004b1963
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 0x46651b
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 0x46654c
mov eax, dword [esp + 0x30]
push eax
call fcn.004b1963
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.004b196e
add esp, 0x154
ret 4
Function at 0x466e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dc36e
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.00466cf0
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 0x466e73
xor eax, eax
jmp 0x466e7c
push esi
call fcn.004b3310
add esp, 4
push eax
push esi
lea eax, [esp + 0x14]
call fcn.0040540f
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.004672f0
mov dword [esp + 0x30], 0xffffffff
mov edx, ebx
push edx
call fcn.00466d50
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 0x20
Function at 0x467dd8
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 0x467df1
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.004afb50
or dword [ebp - 0x24], 0xffffffff
push edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], edi
call fcn.004afb50
pop ecx
pop ecx
lea esi, [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], edi
call fcn.0045e450
or dword [ebp - 0x24], 0xffffffff
push edi
call fcn.004afb50
and dword [ebp + 0x10], 0
pop ecx
mov dword [ebp - 0x20], eax
test ebx, ebx
jne 0x467f2a
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 0x467ed7
lea esi, [ebp - 0x2c]
call fcn.0045e450
push dword [ebp - 0xc]
or dword [ebp - 0x2c], 0xffffffff
call fcn.004afb50
pop ecx
lea esi, [ebp - 0x24]
mov dword [ebp - 0x28], eax
call fcn.0045e450
push dword [ebp - 8]
or dword [ebp - 0x24], 0xffffffff
call fcn.004afb50
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 0x467f1d
jg 0x467f1d
test cl, cl
je 0x467ef3
test dl, dl
jne 0x467edf
mov ebx, dword [ebp - 0x20]
or dword [ebp + 0x10], 0xffffffff
lea eax, [ebp + 0x10]
push eax
call fcn.0045e500
pop ecx
mov edi, eax
lea esi, [ebp - 0x24]
call fcn.0045e450
lea esi, [ebp - 0x2c]
call fcn.0045e450
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
inc dword [ebp + 0x10]
cmp dword [ebp - 0x1c], 0
je 0x467e67
xor edi, edi
jmp 0x467f06
Function at 0x46ac4d
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 [ebp + 8]
test byte [eax + 0x6c], 1
jne 0x46ac6a
xor al, al
jmp 0x46ace0
push edi
push eax
call fcn.0046ba7e
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x46aca9
test ecx, ecx
jge 0x46ac8b
push 0x80070057
call fcn.004029f2
cmp word [eax], 0x5c
jne 0x46acad
cmp ecx, 1
jl 0x46ac81
cmp word [eax + 2], 0x5c
jne 0x46acad
cmp ecx, 2
jl 0x46ac81
cmp word [eax + 4], 0x5c
je 0x46acad
xor al, al
jmp 0x46acdf
push esi
xor esi, esi
test esi, esi
jl 0x46ac81
mov ecx, esi
mov eax, edi
call fcn.00461610
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x46acb0
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
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b196e
leave
ret 4

Function at 0x46acee
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.0046ba7e
lea esi, [ebp - 4]
mov ebx, eax
call fcn.0045ef30
push 0x5c
mov esi, ebx
call fcn.004460e6
lea edx, [eax + 1]
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.00446104
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00446332
lea ecx, [ebp - 0xc]
call fcn.00402964
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46ad4e
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 0x46ad68
xor esi, esi
inc esi
mov dword [edi + 0x10], esi
jmp 0x46addc
push ebx
push 3
lea esi, [edi + 0x18]
pop eax
mov ecx, esi
call fcn.00477117
lea eax, [ebp - 8]
push eax
call fcn.004029ba
xor ebx, ebx
push ebx
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.0047719f
push dword [eax]
lea eax, [ebp - 8]
push dword [ebp - 4]
push 0x4f7f20
push eax
call fcn.0044bda7
add esp, 0x10
lea ecx, [ebp - 0xc]
call fcn.00402964
lea eax, [edi + 0x168]
call fcn.00476e86
push ebx
push 0x20
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004717ba
add esp, 0x14
xor esi, esi
test al, al
jne 0x46add4
inc esi
mov dword [edi + 0x10], esi
lea ecx, [ebp - 8]
call fcn.00402964
lea ecx, [ebp - 4]
call fcn.00402964
mov eax, esi
pop esi
pop ebx
leave
ret