joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ac5e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, ecx
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], ecx
lea ecx, [edi + 0x80]
cmp ecx, eax
je 0x42ac9c
push 0xffffffffffffffff
push 0
push eax
call fcn.0040f338
lea ecx, [edi + 0x98]
cmp ecx, esi
je 0x42acb0
push 0xffffffffffffffff
push 0
push esi
call fcn.0040f338
push dword [ebp - 0x48]
mov ecx, edi
push edi
push 0x42ae96
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042a7a6
test al, al
je 0x42add3
cmp dword [edi + 8], 0
je 0x42add3
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x44]
push eax
push 0x40b
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
push eax
call esi
lea eax, [ebp - 0x34]
push eax
push dword [edi + 8]
call esi
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x38]
push 0x69
pop esi
push 8
mov dword [edi + 0xc8], eax
lea eax, [ebp - 0x24]
push eax
push 0
push dword [edi + 0x14]
mov dword [ebp - 0x24], 0x66
push dword [edi + 8]
mov dword [ebp - 0x20], 0x68
mov dword [ebp - 0x1c], 0x3ef
mov dword [ebp - 0x18], 0x40a
mov dword [ebp - 0x14], 0x40b
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 0x40d
mov dword [ebp - 8], 0x429
call fcn.0042b685
mov eax, dword [ebp - 0x4c]
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x42ad7a
mov eax, dword [eax]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [ebx + 0x14], 8
jb 0x42ad8c
mov ebx, dword [ebx]
push ebx
push 0x410
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push esi
push dword [edi + 8]
call ebx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 5
push 0x3f0
push dword [edi + 8]
call ebx
push eax
call esi
push 0
push dword [edi + 8]
call esi
mov ecx, edi
call fcn.0042af10
mov al, 1
jmp 0x42add5
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00430498
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x42afe9
Capabilities:
Write file on windows

Disassembly:
push 0x3c
mov eax, 0x44d58b
call fcn.0043056f
mov esi, ecx
mov eax, dword [ebp + 8]
cmp eax, 3
jne 0x42b16a
xor ebx, ebx
mov dword [ebp - 0x1c], 7
xor eax, eax
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
lea edi, [esi + 0xc0]
mov dword [ebp - 4], ebx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x14], ebx
jb 0x42b02b
mov eax, dword [edi]
jmp 0x42b02d
mov eax, edi
push ebx
push 0x405c8c
push eax
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.0042de0a
mov eax, dword [ebp - 0x30]
add esp, 0x14
cmp dword [ebp - 0x1c], 8
jae 0x42b04d
lea eax, [ebp - 0x30]
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push eax
call dword [0x4534fc]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42b0c9
xor ebx, ebx
mov dword [ebp - 0x34], 7
xor eax, eax
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push 0x59e
push eax
call fcn.0042d006
lea eax, [esi + 0xd8]
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x42b09f
mov eax, dword [eax]
cmp dword [ebp - 0x34], 8
mov ecx, dword [ebp - 0x48]
jae 0x42b0ab
lea ecx, [ebp - 0x48]
push 0x10
push eax
push ecx
push dword [esi + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040f2f2
push ebx
jmp 0x42b15e
xor ecx, ecx
cmp dword [esi + 0x80], ecx
je 0x42b10c
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0xfeff
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0xb8]
lea ecx, [esi + 0xa8]
cmp dword [ecx + 0x14], 8
jb 0x42b100
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 0x14]
add eax, eax
push edx
push eax
push ecx
jmp 0x42b126
lea eax, [esi + 0x90]
cmp dword [eax + 0x14], 0x10
jb 0x42b11a
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [esi + 0xa0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x14], 8
jb 0x42b13c
mov edi, dword [edi]
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x42b148
lea eax, [ebp - 0x30]
push 1
push edi
push 0
push eax
push 0x405ca0
push dword [esi + 8]
call dword [0x4534f0]
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.0040f2f2
jmp 0x42b181
mov dword [esi + 0x8c], eax
mov eax, dword [esi + 0x88]
test eax, eax
je 0x42b181
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.0043051e
ret 4
Function at 0x42c167
Capabilities:
Copy file

Disassembly:
push 0x4c
mov eax, 0x44d742
call fcn.0043056f
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.0043032a
pop ecx
pop ecx
test eax, eax
jne 0x42c18d
mov al, 1
jmp 0x42c24f
push 7
pop ecx
xor ebx, ebx
mov dword [ebp - 0x44], ecx
xor eax, eax
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
push edi
mov byte [ebp - 4], 2
call fcn.0042d723
pop ecx
test al, al
je 0x42c22a
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.0042e4bf
mov ecx, dword [ebp - 0x28]
add esp, 0x14
cmp dword [ebp - 0x14], 8
jae 0x42c1e3
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x44], 8
mov eax, dword [ebp - 0x58]
jae 0x42c1ef
lea eax, [ebp - 0x58]
push ebx
push ebx
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042de0a
add esp, 0x14
test al, al
je 0x42c22a
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x42c20f
lea eax, [ebp - 0x40]
push eax
call fcn.0042c255
pop ecx
test al, al
je 0x42c22a
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x42c22a
mov bl, 1
xor esi, esi
lea ecx, [ebp - 0x40]
push esi
push 1
call fcn.0040f2f2
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.0040f2f2
push esi
push 1
lea ecx, [ebp - 0x58]
call fcn.0040f2f2
mov al, bl
call fcn.0043051e
ret
Function at 0x42c255
Capabilities:
Create directory

Disassembly:
push 0x4c
mov eax, 0x44d69f
call fcn.0043056f
mov edx, dword [ebp + 8]
xor ebx, ebx
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x42c26b
sub ecx, esi
sar ecx, 1
cmp ecx, 0x104
jbe 0x42c289
xor al, al
jmp 0x42c3d0
push edx
lea ecx, [ebp - 0x40]
call fcn.0040e1c3
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 1
jae 0x42c2b5
lea eax, [ebp - 0x40]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.0042e4bf
lea eax, [ebp - 0x28]
push 0x5c
push eax
call fcn.0042bf98
mov eax, dword [ebp - 0x28]
add esp, 0x1c
cmp dword [ebp - 0x14], 8
jae 0x42c2dc
lea eax, [ebp - 0x28]
push eax
call fcn.0042d6f7
pop ecx
test al, al
je 0x42c3b6
mov esi, dword [ebp - 0x18]
mov edi, 0x405d7c
push edi
call fcn.0040f51e
pop ecx
push eax
push esi
push edi
lea ecx, [ebp - 0x40]
call fcn.0041a5f8
mov edi, eax
jmp 0x42c391
mov eax, edi
lea ecx, [ebp - 0x40]
sub eax, esi
inc eax
push eax
push esi
lea eax, [ebp - 0x58]
push eax
call fcn.00412630
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x28]
call fcn.00411f38
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x42c33e
lea eax, [ebp - 0x28]
push eax
call fcn.0042d6f7
pop ecx
test al, al
jne 0x42c361
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x42c355
lea eax, [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42c39c
lea esi, [edi + 1]
cmp esi, dword [ebp - 0x30]
jae 0x42c3a9
mov edi, 0x405d7c
push edi
call fcn.0040f51e
pop ecx
push eax
push esi
push edi
lea ecx, [ebp - 0x40]
call fcn.0041a5f8
push ebx
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
mov edi, eax
call fcn.0040f2f2
cmp edi, 0xffffffff
jne 0x42c30c
jmp 0x42c3b4
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.0040f2f2
jmp 0x42c3b6
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.0040f2f2
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040f2f2
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0040f2f2
mov al, bl
call fcn.0043051e
ret
Function at 0x42c3d6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
push eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
call fcn.0042dbd5
push 0x3c
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00431050
add esp, 0x18
mov dword [ebp - 0x40], 0x3c
cmp byte [ebp + 0x10], 0
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x24], 5
je 0x42c45e
cmp dword [ebp - 0x44], 6
jl 0x42c45e
mov esi, dword [0x452018]
mov ecx, esi
push 0x4016a0
call fcn.0040f0e5
push 0x4010cc
mov ecx, esi
call fcn.0040f0e5
mov dword [ebp - 0x34], 0x4016e4
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x42c470
xor al, al
jmp 0x42c486
test ebx, ebx
je 0x42c47b
mov eax, dword [ebp - 8]
mov dword [ebx], eax
jmp 0x42c484
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00430498
mov esp, ebp
pop ebp
ret
Function at 0x42c842
Capabilities:
Get file version info

Disassembly:
push 0x224
mov eax, 0x44d702
call fcn.0043056f
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x22c]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x220]
push eax
push ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
call fcn.00411e16
mov dword [ebp - 4], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], ebx
test edi, edi
je 0x42c9c8
push edi
call fcn.0042d723
pop ecx
test al, al
je 0x42c9c8
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x42c8bb
sub esi, ecx
mov dword [ebp - 0x220], ebx
lea eax, [ebp - 0x220]
sar esi, 1
push eax
inc esi
lea ecx, [ebp - 0x22c]
push esi
call fcn.004271fd
push 0xffffffffffffffff
push edi
push esi
push dword [ebp - 0x22c]
call fcn.004312e9
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x22c]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x42c9c8
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x42c9c8
push esi
push edi
push dword [ebp - 0x218]
push dword [ebp - 0x22c]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42c9c1
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x405cac
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42c9c1
cmp dword [ebp - 0x214], 0
je 0x42c9c1
mov eax, dword [ebp - 0x21c]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [ebp - 0x210]
push edx
push 0x405d84
push 0xff
push eax
call fcn.0042e775
add esp, 0x1c
test eax, eax
js 0x42c9c1
lea eax, [ebp - 0x210]
push eax
call fcn.0040f51e
pop ecx
mov ecx, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040f3cc
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [ebp - 0x22c]
call fcn.00411f1c
mov al, bl
call fcn.0043051e
ret

Function at 0x42c9db
Capabilities:
Parse url

Disassembly:
push 0x48
mov eax, 0x44d7b3
call fcn.0043056f
mov edi, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], edi
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ecx
mov word [edi], ax
push 0x3c
push ecx
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], ecx
push eax
mov dword [ebp - 0x50], 1
call fcn.00431050
xor ecx, ecx
mov dword [ebp - 0x4c], 0x3c
push 2
mov eax, 0x825
pop edx
mov dword [ebp - 0x38], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00432d4a
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [esi + 0x14], 8
jb 0x42ca4b
mov esi, dword [esi]
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
push dword [ebp - 0x3c]
call fcn.0040f51e
pop ecx
push eax
push dword [ebp - 0x3c]
mov ecx, edi
call fcn.0040f3cc
push dword [ebp - 0x3c]
call fcn.00432d53
pop ecx
mov eax, edi
call fcn.0043051e
ret
Function at 0x42cc76
Capabilities:
Get common file path

Disassembly:
push 0x23c
mov eax, 0x44d772
call fcn.0043056f
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x230], 7
mov dword [ebp - 0x234], ebx
mov word [ebp - 0x244], ax
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x248], ebx
lea eax, [ebp - 0x248]
mov dword [ebp - 4], ebx
push eax
push 0x405e14
push 0x405da0
call fcn.0042e02c
add esp, 0xc
test al, al
je 0x42ccfb
cmp dword [ebp - 0x248], 1
jne 0x42ccfb
lea eax, [ebp - 0x244]
cmp esi, eax
je 0x42cd32
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.0040f338
jmp 0x42cd32
mov edi, 0x104
lea eax, [ebp - 0x218]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42cd34
cmp eax, edi
ja 0x42cd34
lea eax, [ebp - 0x218]
push eax
call fcn.0040f51e
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040f3cc
mov bl, 1
lea ecx, [ebp - 0x224]
call fcn.00411f1c
push 0
push 1
lea ecx, [ebp - 0x244]
call fcn.0040f2f2
mov al, bl
call fcn.0043051e
ret

Function at 0x42ce0c
Capabilities:
Parse url

Disassembly:
push 0x48
mov eax, 0x44d7b3
call fcn.0043056f
mov edi, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], edi
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ecx
mov word [edi], ax
push 0x3c
push ecx
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], ecx
push eax
mov dword [ebp - 0x50], 1
call fcn.00431050
xor ecx, ecx
mov dword [ebp - 0x4c], 0x3c
push 2
mov eax, 0x825
pop edx
mov dword [ebp - 0x1c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00432d4a
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [esi + 0x14], 8
jb 0x42ce7c
mov esi, dword [esi]
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
push dword [ebp - 0x20]
call fcn.0040f51e
pop ecx
push eax
push dword [ebp - 0x20]
mov ecx, edi
call fcn.0040f3cc
push dword [ebp - 0x20]
call fcn.00432d53
pop ecx
mov eax, edi
call fcn.0043051e
ret

Function at 0x42cf76
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
push ebx
push esi
mov esi, dword [ebp + 0x18]
mov ebx, dword [esi]
jne 0x42cf8f
test ebx, ebx
je 0x42cf8f
push 0x57
pop eax
jmp 0x42d002
mov eax, dword [ebp + 0xc]
push edi
movzx eax, ax
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [0x453504]
mov edi, eax
test edi, edi
je 0x42cffc
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x18], eax
test eax, eax
je 0x42cffc
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
jbe 0x42cfce
mov dword [esi], edi
jmp 0x42cff5
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x42cfec
push edi
push eax
push dword [ebp + 0x14]
call fcn.00430a00
add esp, 0xc
xor eax, eax
jmp 0x42d001
xor eax, eax
inc eax
cmp dword [esi], eax
mov dword [esi], eax
jae 0x42cfe8
mov eax, 0xea
jmp 0x42d001
mov eax, 0x716
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42d46a
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, 0x206
mov word [ebp - 0x414], ax
push edi
push eax
lea eax, [ebp - 0x412]
push eax
call fcn.00431050
xor eax, eax
push edi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00431050
add esp, 0x18
lea eax, [ebp - 0x414]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x42d548
cmp eax, edi
jae 0x42d548
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x405f34
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x42d548
lea eax, [ebp - 0x20c]
push eax
call fcn.0042d723
pop ecx
test al, al
je 0x42d521
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0042d723
pop ecx
test al, al
jne 0x42d548
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f51e
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040f3cc
push esi
call fcn.0042bfc7
pop ecx
mov al, 1
jmp 0x42d54a
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00430498
mov esp, ebp
pop ebp
ret

Function at 0x42d6f7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
test eax, eax
je 0x42d71e
xor ebx, ebx
cmp word [eax], bx
je 0x42d71e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42d71a
test al, 0x10
jbe 0x42d71a
inc ebx
mov al, bl
jmp 0x42d720
xor al, al
pop ebx
pop ebp
ret

Function at 0x42d723
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
test eax, eax
je 0x42d74a
xor ebx, ebx
cmp word [eax], bx
je 0x42d74a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42d746
test al, 0x10
jne 0x42d746
inc ebx
mov al, bl
jmp 0x42d74c
xor al, al
pop ebx
pop ebp
ret
Function at 0x42dc5e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov edi, 0x208
push edi
push 0
push eax
call fcn.00431050
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x42dcbc
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0042dd0f
pop ecx
pop ecx
test eax, eax
jne 0x42dcfe
push edi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00431050
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x42dcf7
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0042dd0f
pop ecx
pop ecx
test eax, eax
jne 0x42dcfe
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00430498
mov esp, ebp
pop ebp
ret

Function at 0x42dea2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 1
push ebx
push 0x403e98
push 0x80000001
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42df11
push esi
push 4
pop esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], esi
push eax
push ebx
push 0x4064b0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42df10
cmp dword [ebp - 8], esi
jne 0x42df10
cmp dword [ebp - 0xc], esi
jne 0x42df10
cmp dword [ebp - 0x10], ebx
jne 0x42df10
mov bl, 1
pop esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00430498
mov esp, ebp
pop ebp
ret
Function at 0x42f26e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push edi
xor edi, edi
push edi
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], edi
push eax
mov dword [ebp - 0x214], edi
call fcn.0042dbd5
movzx eax, byte [ebp - 0x210]
xor ecx, ecx
add esp, 0xc
cmp dword [ebp - 0x214], ecx
setne cl
shl eax, 8
or eax, ecx
cmp eax, 0x500
jb 0x42f37d
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], edi
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x42f37d
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov dword [ebp - 0x214], edi
cmp dword [ebp - 0x210], edi
je 0x42f340
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x42f340
mov ecx, dword [ebp - 0x214]
test ecx, ecx
je 0x42f340
push dword [ebp - 0x210]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x42f349
sub ecx, edx
sar ecx, 1
je 0x42f37d
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f51e
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.0040f3cc
mov al, 1
jmp 0x42f401
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push dword [ebp + 8]
push edi
call fcn.0042f411
add esp, 0x14
test eax, eax
js 0x42f3c8
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x42f3a0
sub ecx, edx
sar ecx, 1
je 0x42f3c8
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0040f51e
pop ecx
push eax
lea ecx, [ebp - 0x20c]
push ecx
jmp 0x42f36f
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push dword [ebp + 8]
push edi
call fcn.0042f411
add esp, 0x14
test eax, eax
js 0x42f3ff
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x42f3ea
sub ecx, edx
sar ecx, 1
jne 0x42f35a
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00430498
mov esp, ebp
pop ebp
ret