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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f2566
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x67d070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 4]
mov dword [edi], vtable.ThorSDK::AppletMessageManager.0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041c9d0
mov dword [esi], eax
lea esi, [edi + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041c9d0
mov dword [esi], eax
lea esi, [edi + 0x14]
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041c9d0
mov dword [esi], eax
xor eax, eax
mov dword [edi + 0x30], 7
mov dword [edi + 0x2c], 0
mov word [edi + 0x1c], ax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 7
mov word [edi + 0x34], ax
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 7
mov word [edi + 0x4c], ax
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], 7
mov word [edi + 0x64], ax
mov dword [edi + 0x7c], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], eax
mov dword [edi + 0xa0], eax
mov dword [edi + 0xa4], 7
mov word [edi + 0x90], ax
mov dword [edi + 0xb8], eax
mov dword [edi + 0xbc], 7
mov word [edi + 0xa8], ax
mov dword [edi + 0xc0], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x499b90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f3a38
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
cmp dword [edi + 0x14], 8
jb 0x499bd0
mov eax, dword [edi]
jmp 0x499bd2
mov eax, edi
push 0x625cbc
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
call fcn.005c99cb
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [esi + 0x30], eax
test eax, eax
jne 0x499c29
call fcn.0048e300
cmp dword [eax], 0
je 0x499c22
call fcn.0048e300
cmp dword [edi + 0x14], 8
mov ecx, dword [eax]
jb 0x499c0e
mov edi, dword [edi]
mov eax, dword [ecx]
push edi
push str.Data_file_could_not_be_opened_at_path__s
push str.Validator
push ecx
call dword [eax + 0x1c]
add esp, 0x10
xor al, al
jmp 0x499d01
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x499c22
push eax
mov bl, 1
mov dword [esi + 4], eax
call fcn.0059a123
add esp, 4
mov dword [ebp - 0x14], 0
mov edi, eax
mov dword [ebp - 0x18], 7
xor eax, eax
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
nop
mov eax, dword [esi + 0x30]
test eax, eax
je 0x499cc0
push eax
push dword [esi + 4]
push 1
push edi
call fcn.005cd8e4
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x499cc0
mov eax, dword [esi]
lea edx, [ebp - 0x2c]
push edx
push ecx
mov dword [esi + 8], ecx
mov ecx, esi
mov eax, dword [eax + 0x10]
push edi
call eax
neg al
lea ecx, [esi + 0x10]
sbb al, al
and bl, al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0049a670
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
add ecx, 0x14
cmp ecx, eax
je 0x499cbb
push 0xffffffffffffffff
push 0
push eax
call fcn.00407550
inc dword [ebp - 0x14]
jmp 0x499c60
test bl, bl
je 0x499cd2
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x38]
mov eax, dword [eax + 0x28]
call eax
mov bl, al
push edi
call fcn.00599f1f
push dword [esi + 0x30]
call fcn.005c9aaa
add esp, 8
test eax, eax
jne 0x499cea
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x499cff
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00407b40
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 - 0x10]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49a2b0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f3b08
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x49a2ea
mov eax, dword [edi]
jmp 0x49a2ec
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49a386
cmp dword [esi + 4], 0
je 0x49a386
xorps xmm0, xmm0
lea edx, [ebp - 0x38]
mov ecx, edi
movlpd qword [ebp - 0x38], xmm0
call fcn.0049e7f0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
cmp dword [ebp - 0x38], eax
jne 0x49a386
cmp dword [ebp - 0x34], edx
jne 0x49a386
cmp dword [edi + 0x14], 8
jb 0x49a334
mov eax, dword [edi]
jmp 0x49a336
mov eax, edi
push 0x625cbc
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
call fcn.005c99cb
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov dword [esi + 0x30], eax
test eax, eax
jne 0x49a3a6
call fcn.0048e300
cmp dword [eax], 0
je 0x49a386
call fcn.0048e300
cmp dword [edi + 0x14], 8
mov ecx, dword [eax]
jb 0x49a372
mov edi, dword [edi]
mov eax, dword [ecx]
push edi
push str.Data_file_could_not_be_opened_at_path__s
push str.Validator
push ecx
call dword [eax + 0x1c]
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret 4
push dword [esi + 4]
mov byte [ebp - 0x2d], 1
call fcn.0059a123
xor edi, edi
mov dword [ebp - 0x14], 7
add esp, 4
mov dword [ebp - 0x18], edi
mov ebx, eax
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
nop dword [eax]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x49a403
push eax
push dword [esi + 4]
push 1
push ebx
call fcn.005cd8e4
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x49a403
mov eax, dword [esi]
push edi
push ecx
push ebx
mov eax, dword [eax + 0xc]
mov ecx, esi
call eax
test al, al
je 0x49a3ff
inc edi
jmp 0x49a3d0
mov byte [ebp - 0x2d], 0
push ebx
call fcn.00599f1f
push dword [esi + 0x30]
call fcn.005c9aaa
add esp, 8
test eax, eax
jne 0x49a41b
mov dword [esi + 0x30], eax
lea ecx, [ebp - 0x28]
call fcn.00406e20
mov al, byte [ebp - 0x2d]
jmp 0x49a388
Function at 0x49ab30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x67d070]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0xc], ebx
mov esi, 4
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
nop dword [eax]
push 0
xor edx, edx
mov ecx, esi
call fcn.0049a9d0
add esp, 4
test al, al
je 0x49ab8a
inc esi
cmp esi, 0xf
jl 0x49ab70
jmp 0x49ab8d
dec esi
mov dword [ebx], esi
mov edi, 1
movzx esi, word [ebx]
xor eax, eax
push 0xfe
push eax
mov word [esp + 0x2c], ax
xorps xmm0, xmm0
lea eax, [esp + 0x2e]
mov dword [esp + 0x18], 0x11c
push eax
movups xmmword [esp + 0x20], xmm0
call fcn.005b3770
add esp, 0xc
xor eax, eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
mov ecx, esi
mov dword [esp + 0x18], ecx
push eax
movzx ecx, di
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
xor ecx, ecx
push 0x23
push eax
mov word [esp + 0x134], cx
call dword [sym.imp.KERNEL32.DLL_VerifyVersionInfoW]
test eax, eax
je 0x49ac29
inc edi
cmp edi, 0xa
jl 0x49ab92
jmp 0x49ac2f
lea eax, [edi - 1]
mov dword [ebx + 4], eax
mov ebx, 1
mov eax, dword [esp + 0xc]
xorps xmm0, xmm0
push 0xfe
mov dword [esp + 0x14], 0x11c
movups xmmword [esp + 0x18], xmm0
movzx edi, word [eax + 4]
movzx esi, word [eax]
xor eax, eax
push eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2e]
push eax
call fcn.005b3770
add esp, 0xc
xor eax, eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
mov ecx, esi
mov word [esp + 0x12c], bx
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x18]
push 0x23
mov ecx, edi
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.DLL_VerifyVersionInfoW]
test eax, eax
je 0x49ace5
inc ebx
cmp ebx, 0xa
jl 0x49ac34
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
lea eax, [ebx - 1]
pop edi
pop esi
pop ebx
mov dword [ecx + 8], eax
mov al, 1
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
Function at 0x49bbd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0
push 0
mov edi, ecx
mov esi, edx
push edi
push 0
xor bl, bl
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x20c]
push eax
js 0x49bc6e
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x49bc60
cmp word [ebp - 0x20c], 0
jne 0x49bc33
xor ecx, ecx
jmp 0x49bc4f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49bc40
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407060
mov bl, 1
push dword [ebp - 0x210]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x49bcb6
push 1
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x49bcb6
cmp word [ebp - 0x20c], 0
jne 0x49bc8d
xor ecx, ecx
jmp 0x49bca5
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49bc96
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407060
mov bl, 1
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x49bd08
cmp dword [esi + 0x14], 8
jb 0x49bcc7
mov eax, dword [esi]
jmp 0x49bcc9
mov eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x49bd08
lea eax, [ecx - 1]
cmp eax, ecx
ja 0x49bcfc
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 8
jb 0x49bce3
mov esi, dword [esi]
xor ecx, ecx
pop edi
mov word [esi + eax*2], cx
mov al, bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0040aa60
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00599c70
mov esp, ebp
pop ebp
ret

Function at 0x49bd20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
push 0
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov edi, eax
test edi, edi
jne 0x49bd3f
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005bca01
mov esi, eax
add esp, 4
test esi, esi
je 0x49bd77
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push esi
test eax, eax
jne 0x49bd7f
call fcn.005b3b4d
add esp, 4
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
call fcn.00407010
push esi
call fcn.005b3b4d
add esp, 4
mov al, 1
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x49bed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x2c
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x49bf0e
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
push 0x62320c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005ce31b
add esp, 0xc
cmp word [ebp - 0x20c], 0
jne 0x49bf35
xor ecx, ecx
jmp 0x49bf4f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49bf40
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407060
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00599c70
mov esp, ebp
pop ebp
ret

Function at 0x49c0e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x1c
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x49c11e
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
push 0x62320c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005ce31b
add esp, 0xc
cmp word [ebp - 0x20c], 0
jne 0x49c145
xor ecx, ecx
jmp 0x49c15f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49c150
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407060
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00599c70
mov esp, ebp
pop ebp
ret

Function at 0x49c1b0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x26
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x49c1ee
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x20c], 0
jne 0x49c1fc
xor ecx, ecx
jmp 0x49c214
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49c205
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407060
push 0x1b
push str.AdobeAdobe_Creative_Cloud
mov ecx, esi
call fcn.004097c0
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00599c70
mov esp, ebp
pop ebp
ret
Function at 0x49c250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x2b
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x49c28e
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x20c], 0
jne 0x49c29c
xor ecx, ecx
jmp 0x49c2b4
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49c2a5
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407060
push 0x1b
push str.AdobeAdobe_Desktop_Common
mov ecx, esi
call fcn.004097c0
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00599c70
mov esp, ebp
pop ebp
ret
Function at 0x49ccd0
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x49ccdd
mov eax, dword [esi]
jmp 0x49ccdf
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49cd00
cmp dword [esi + 0x14], 8
jb 0x49ccf2
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
pop esi
setne al
ret
cmp dword [esi + 0x14], 8
jb 0x49cd08
mov esi, dword [esi]
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
test esi, esi
je 0x49cd71
mov eax, dword [0x689958]
test eax, eax
je 0x49cd4c
push esi
push str.SHCreateDirectoryEx_failed._Error:__d
push 0x622628
push 0x622628
push str.FileUtils
push str.OOBEUtils
push 0x32
call eax
add esp, 0x1c
xor eax, eax
test esi, esi
sete al
pop esi
ret
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x49cd71
mov eax, dword [ecx]
push esi
push str.SHCreateDirectoryEx_failed._Error:__d
push str.FileUtils
push 0x622628
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x18
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x49e040
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e61c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x49e079
mov eax, dword [esi]
jmp 0x49e07b
mov eax, esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
jne 0x49e0e3
mov eax, dword [0x689958]
test eax, eax
je 0x49e0b8
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push 0x622628
push 0x622628
push str.FileUtils
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
xor al, al
jmp 0x49e215
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x49e0dc
mov eax, dword [ecx]
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push str.FileUtils
push 0x622628
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
xor al, al
jmp 0x49e215
cmp byte [ebp + 8], 0
je 0x49e10e
cmp dword [edi + 0x14], 8
jb 0x49e0f3
mov eax, dword [edi]
jmp 0x49e0f5
mov eax, edi
push eax
call ebx
test eax, eax
je 0x49e10e
push 0
mov dl, 1
mov ecx, edi
call fcn.0049de10
add esp, 4
test al, al
je 0x49e0dc
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00407550
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0049c780
push ecx
lea ecx, [ebp - 0x28]
call fcn.0049ccd0
add esp, 4
cmp dword [edi + 0x14], 8
jb 0x49e153
mov eax, dword [edi]
jmp 0x49e155
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x49e15d
mov esi, dword [esi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x49e1e8
cmp dword [0x689958], eax
je 0x49e1ab
cmp dword [edi + 0x14], 8
jb 0x49e17b
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push 0x622628
push 0x622628
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x689958]
add esp, 0x20
xor bl, bl
jmp 0x49e1fe
mov esi, dword [0x68995c]
test esi, esi
je 0x49e1e4
cmp dword [edi + 0x14], 8
jb 0x49e1bd
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push str.FileUtils
push 0x622628
push 0x32
push dword [0x68995c]
call dword [esi + 0x34]
add esp, 0x1c
xor bl, bl
jmp 0x49e1fe
cmp dword [edi + 0x14], 8
jb 0x49e1f0
mov edi, dword [edi]
push 0x80
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov bl, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x49e213
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00407b40
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 - 0x10]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
Function at 0x49e700
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test edi, edi
jne 0x49e730
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
push ebx
push eax
movzx eax, dx
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x49e7aa
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x49e7aa
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push ebx
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
cmp dword [esi + 0x14], 8
mov ebx, eax
jb 0x49e76d
mov ecx, dword [esi]
jmp 0x49e76f
mov ecx, esi
push 0
push 0x200080
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
test edi, edi
je 0x49e7aa
push 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
test eax, eax
jne 0x49e7bd
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esi + 0x14], 8
jb 0x49e7cb
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
test eax, eax
pop ebx
setne al
xor ecx, ebp
pop edi
pop esi
call fcn.00599c70
mov esp, ebp
pop ebp
ret

Function at 0x49e7f0
Capabilities:
Get file size

Disassembly:
cmp dword [ecx + 0x14], 8
push esi
mov esi, edx
jb 0x49e7fb
mov ecx, dword [ecx]
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x49e835
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esi], 0xffffffff
pop edi
jne 0x49e845
cmp dword [esi + 4], 0
jne 0x49e845
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x49e850
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f3e78
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
xor bl, bl
mov dword [ebp - 0x21c], 0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push 0x208
mov edi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005b3770
add esp, 0xc
test edi, edi
je 0x49e98c
push edi
call fcn.0059a123
add esp, 4
mov esi, eax
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push esi
push edi
push dword [ebp - 0x21c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x49e983
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x62325c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x49e983
cmp dword [ebp - 0x220], 0
je 0x49e983
mov ecx, dword [ebp - 0x224]
cmp dword [ecx], 0xfeef04bd
jne 0x49e983
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00420ad0
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x218]
add esp, 0x1c
push eax
call fcn.00407010
mov bl, 1
push esi
call fcn.00599f1f
add esp, 4
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x49e9a1
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00407b40
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 - 0x10]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret