joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b059
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x45b0f6
push ebx
push esi
call fcn.0045b022
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00458626
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x45b0a3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45b0f5
push edi
push eax
call fcn.00451f12
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x45b0c3
call fcn.00450ed9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45b0f4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00458626
add esp, 0x20
test eax, eax
jne 0x45b0e2
push edi
call fcn.00450ed9
jmp 0x45b0ea
push ebx
call fcn.00450ed9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x45b0f9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45b10a
pop esi
ret
push ebx
push edi
push esi
call fcn.0045b022
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00451f12
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45b132
push ebx
push esi
push edi
call fcn.00424b40
add esp, 0xc
push 0
call fcn.00450ed9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x45b941
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045b3a5
Function at 0x4603db
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47cd40]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46041b
cmp byte [ebx], 0xa
jne 0x46041b
or byte [eax + edi + 0x28], 4
jmp 0x460420
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46051e
mov al, byte [edx]
cmp al, 0x1a
je 0x460500
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46044f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x460474
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46047e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x460431
jmp 0x46051e
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4604fb
cmp dword [ebp - 0xc], 0
je 0x4604fb
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47cd40]
test byte [eax + edi + 0x28], 0x48
je 0x4604d5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4604c0
mov byte [esi], dl
jmp 0x4604d1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47cd40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46051e
cmp byte [ebp - 1], 0xa
jne 0x4604e4
cmp esi, ebx
jne 0x4604e4
mov byte [esi], 0xa
jmp 0x46051d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004560c7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46051e
mov byte [esi], 0xd
jmp 0x46051d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47cd40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46051a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46051e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x460527
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47cd40]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46056a
cmp word [esi], dx
jne 0x46056a
or byte [edi + eax + 0x28], 4
jmp 0x46056f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4606c2
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4606a2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4605b1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4605e7
cmp eax, edx
jae 0x4605f3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x460589
jmp 0x4606c2
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46069e
cmp dword [ebp - 0x14], 0
je 0x46069e
mov eax, dword [ebx*4 + 0x47cd40]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x460676
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46063f
mov word [esi], cx
jmp 0x460672
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47cd40]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47cd40]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47cd40]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4606c2
pop ebx
cmp word [ebp - 4], bx
jne 0x460687
cmp esi, dword [ebp + 0xc]
jne 0x460687
mov word [esi], bx
jmp 0x4606bf
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004560c7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4606c2
push 0xd
jmp 0x4606bb
mov ecx, dword [ebx*4 + 0x47cd40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4606b9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4606c2
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4689b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4689dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4689dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x405820
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40bc80]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x4059cd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x40bb80]
lea edi, [ecx*4 + 0x40bb80]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x4059cd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40588e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40589f
push 2
push ebp
push eax
call fcn.00405a40
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4059fe
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x405949
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4058fa
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4058e7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4058ca
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4059ef
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x405945
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4058c6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4059be
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405992
cmp eax, 5
jne 0x40597b
mov dword [0x40b9c4], eax
mov dword [0x40b9c0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00406040
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4059b2
cmp byte [ebp], 0x1a
jne 0x4059b2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40b9c0], 0x1c
jmp 0x4059d7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40b9c0], 9
pop edi
pop esi
pop ebp
mov dword [0x40b9c4], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x405945
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x405a2f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x405949
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x405949
Function at 0x403035
Capabilities:
Get file version info

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.00451930
push dword [esp + 0x28]
call fcn.00429210
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00429060
push 0
mov eax, dword [esp + 4]
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov dword [esp + 4], eax
mov ebx, dword [esp + 4]
cmp ebx, 1
jge 0x403097
mov edx, 0x4e8040
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.00451890
pop eax
push eax
call fcn.004291e0
pop edx
add eax, edx
jmp 0x40322a
push dword [esp + 4]
call fcn.00450580
mov dword [esp + 0xc], eax
push dword [esp + 0xc]
push dword [esp + 8]
push 0
mov eax, dword [esp + 0xc]
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
mov eax, 0x4e89ec
push eax
push dword [esp + 0x18]
call sub.VERSION.DLL_VerQueryValueW
cmp dword [esp + 0x10], 0
je 0x4031f9
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0x10]
cdq
push edx
push eax
mov ecx, 0x10
mov eax, dword [esp]
mov edx, dword [esp + 4]
call fcn.00429070
mov dword [esp], eax
mov dword [esp + 4], edx
and dword [esp], 0xffff
and dword [esp + 4], 0
pop eax
pop edx
push edx
push eax
call fcn.0044f580
mov edx, 0x4e852e
push edx
call fcn.00451890
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 0x10]
cdq
push edx
push eax
and dword [esp], 0xffff
and dword [esp + 4], 0
pop eax
pop edx
push edx
push eax
call fcn.0044f580
pop eax
mov edx, 0x4e852e
push edx
call fcn.00451890
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 0x14]
cdq
push edx
push eax
mov ecx, 0x10
mov eax, dword [esp]
mov edx, dword [esp + 4]
call fcn.00429070
mov dword [esp], eax
mov dword [esp + 4], edx
and dword [esp], 0xffff
and dword [esp + 4], 0
pop eax
pop edx
push edx
push eax
call fcn.0044f580
pop eax
mov edx, 0x4e852e
push edx
call fcn.00451890
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 0x14]
cdq
push edx
push eax
and dword [esp], 0xffff
and dword [esp + 4], 0
pop eax
pop edx
push edx
push eax
call fcn.0044f580
pop eax
lea eax, [esp + 0x18]
push eax
call fcn.00451800
push dword [esp + 0xc]
call fcn.004505f0
mov edx, dword [esp + 0x14]
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.00451890
pop eax
push eax
call fcn.004291e0
pop edx
add eax, edx
jmp 0x40322a
push dword [esp]
call fcn.004519f0
push dword [esp + 0x14]
call fcn.004519f0
add esp, 0x18
pop ebx
pop ebp
ret 4
Function at 0x403ae3
Capabilities:
Get file version info

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.00451930
push dword [esp + 0x28]
call fcn.00429210
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00429060
push 0
mov eax, dword [esp + 4]
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov dword [esp + 4], eax
mov ebx, dword [esp + 4]
cmp ebx, 1
jge 0x403b45
mov edx, 0x4e8040
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.00451890
pop eax
push eax
call fcn.004291e0
pop edx
add eax, edx
jmp 0x403cd8
push dword [esp + 4]
call fcn.00450580
mov dword [esp + 0xc], eax
push dword [esp + 0xc]
push dword [esp + 8]
push 0
mov eax, dword [esp + 0xc]
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
mov eax, 0x4e89ec
push eax
push dword [esp + 0x18]
call sub.VERSION.DLL_VerQueryValueW
cmp dword [esp + 0x10], 0
je 0x403ca7
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 8]
cdq
push edx
push eax
mov ecx, 0x10
mov eax, dword [esp]
mov edx, dword [esp + 4]
call fcn.00429070
mov dword [esp], eax
mov dword [esp + 4], edx
and dword [esp], 0xffff
and dword [esp + 4], 0
pop eax
pop edx
push edx
push eax
call fcn.0044f580
mov edx, 0x4e852e
push edx
call fcn.00451890
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
cdq
push edx
push eax
and dword [esp], 0xffff
and dword [esp + 4], 0
pop eax
pop edx
push edx
push eax
call fcn.0044f580
pop eax
mov edx, 0x4e852e
push edx
call fcn.00451890
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 0xc]
cdq
push edx
push eax
mov ecx, 0x10
mov eax, dword [esp]
mov edx, dword [esp + 4]
call fcn.00429070
mov dword [esp], eax
mov dword [esp + 4], edx
and dword [esp], 0xffff
and dword [esp + 4], 0
pop eax
pop edx
push edx
push eax
call fcn.0044f580
pop eax
mov edx, 0x4e852e
push edx
call fcn.00451890
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 0xc]
cdq
push edx
push eax
and dword [esp], 0xffff
and dword [esp + 4], 0
pop eax
pop edx
push edx
push eax
call fcn.0044f580
pop eax
lea eax, [esp + 0x18]
push eax
call fcn.00451800
push dword [esp + 0xc]
call fcn.004505f0
mov edx, dword [esp + 0x14]
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.00451890
pop eax
push eax
call fcn.004291e0
pop edx
add eax, edx
jmp 0x403cd8
push dword [esp]
call fcn.004519f0
push dword [esp + 0x14]
call fcn.004519f0
add esp, 0x18
pop ebx
pop ebp
ret 4
Function at 0x4079f0
Capabilities:
Check if file exists

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.00451930
push dword [0x6fe54c]
call fcn.00433c9f
mov dword [esp], eax
cmp dword [esp], 0
je 0x407a97
mov dword [esp + 4], 0
jmp 0x407a1e
mov ebx, dword [esp]
dec ebx
cmp ebx, dword [esp + 4]
jl 0x407a97
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push dword [esp + 0xc]
push dword [0x6fe54c]
call fcn.00433d33
lea eax, [esp + 0xc]
push eax
call fcn.00451800
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathFileExistsW
mov ebx, eax
and ebx, ebx
jne 0x407a91
mov edx, dword [esp + 0xc]
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.00451890
mov edx, dword [esp + 0xc]
push edx
call fcn.00451890
mov edx, 0x4ed280
push edx
call fcn.00451890
lea eax, [esp + 0x10]
push eax
call fcn.00451800
inc dword [esp + 4]
jno 0x407a1e
mov edx, dword [esp + 0xc]
xor ecx, ecx
call fcn.00429220
jne 0x407aff
push edx
call fcn.004517c0
pop edx
push eax
push 0x10
mov edx, dword [0x6fe984]
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.00451890
mov edx, str._r_n_r_n
push edx
call fcn.00451890
mov edx, dword [esp + 0x18]
push edx
call fcn.00451890
call fcn.00451990
push dword [0x6fe788]
call fcn.004291f2
add dword [esp + 4], edx
call fcn.0040cd54
call fcn.00429210
mov eax, 1
jmp 0x407b01
xor eax, eax
push dword [esp + 0xc]
call fcn.004519f0
push dword [esp + 8]
call fcn.004519f0
add esp, 0x10
pop ebx
ret

Function at 0x4085f7
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
call fcn.00451930
push 0x400
call fcn.00450580
mov dword [esp], eax
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
call fcn.00430441
lea eax, [esp + 8]
push eax
call fcn.00451800
push dword [esp]
push 0
mov eax, 0x4e8040
push eax
push dword [esp + 0x10]
call sub.KERNEL32.DLL_GetTempFileNameW
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push dword [esp + 8]
call fcn.004505a0
lea eax, [0x6fe91c]
push eax
call fcn.00451800
push dword [0x6fe91c]
call fcn.004304d2
push dword [0x6fe91c]
call fcn.004304e0
push dword [0x6fe91c]
call sub.SHLWAPI.DLL_PathAddBackslashW
push dword [0x6fe91c]
call fcn.004304e0
mov eax, 1
jmp 0x40869d
push dword [esp + 4]
call fcn.004519f0
add esp, 8
ret
Function at 0x40b2fb
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00451930
push 0x4e8040
call fcn.0041ee97
mov ebx, eax
and ebx, ebx
jne 0x40b31d
jmp 0x40b456
call fcn.004079f0
mov ebx, eax
cmp ebx, 1
jne 0x40b32e
jmp 0x40b456
push 0xa
call fcn.00433d94
mov dword [esp], eax
push dword [esp]
push 0xa
call fcn.00433dc1
mov dword [esp + 4], eax
push dword [esp + 4]
call fcn.0043417c
mov ebx, eax
and ebx, ebx
jne 0x40b360
jmp 0x40b456
push dword [esp + 4]
call fcn.0043589d
push eax
call sub.USER32.DLL_IsWindowEnabled
mov ebx, eax
and ebx, ebx
jne 0x40b37a
jmp 0x40b456
push 0x2710
call fcn.00450580
mov dword [esp + 8], eax
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
call fcn.00430441
lea eax, [esp + 0x10]
push eax
call fcn.00451800
push dword [esp + 8]
push 0
push dword [0x6fe900]
push dword [esp + 0x18]
call sub.KERNEL32.DLL_GetTempFileNameW
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push 0xffffffff
push dword [esp + 0x14]
call fcn.00450970
lea eax, [esp + 0x14]
push eax
call fcn.00451800
push dword [esp + 0x10]
call fcn.004304d2
mov edx, dword [esp + 0x10]
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.00451890
mov edx, 0x4e852e
push edx
call fcn.00451890
mov edx, dword [0x6fe6e8]
push edx
call fcn.00451890
lea eax, [esp + 0x14]
push eax
call fcn.00451800
push dword [esp + 0x10]
call fcn.00411550
mov ebx, eax
and ebx, ebx
jne 0x40b434
jmp 0x40b439
jmp 0x40b3a7
push dword [esp + 0x10]
call fcn.004304d2
push dword [esp + 8]
call fcn.004505f0
push dword [esp + 0x10]
call fcn.0041dc6d
xor eax, eax
push dword [esp + 0xc]
call fcn.004519f0
push dword [esp + 0x10]
call fcn.004519f0
add esp, 0x14
pop ebx
ret
Function at 0x40c637
Capabilities:
Check if file exists

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.00451930
mov edx, dword [esp + 0x1c]
lea ecx, [esp]
call fcn.00429060
mov edx, dword [esp + 0x24]
lea ecx, [esp + 4]
call fcn.00429060
push dword [esp + 4]
mov edx, dword [0x6fe900]
pop ecx
call fcn.00429220
je 0x40c699
mov edx, dword [0x6fe3a8]
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.00451890
mov edx, dword [esp + 4]
push edx
call fcn.00451890
lea eax, [esp + 8]
push eax
call fcn.00451800
jmp 0x40c6c3
push dword [esp + 4]
call sub.SHLWAPI.DLL_PathFileExistsW
mov ebx, eax
and ebx, ebx
jne 0x40c6c3
push dword [0x6feb58]
push dword [0x6feb50]
call fcn.0044876c
call fcn.0041811e
jmp 0x40c825
push dword [esp + 4]
call fcn.0042c0dd
mov dword [esp + 8], 0
jmp 0x40c6d6
push dword [0x6feb50]
call fcn.004486a1
cmp eax, dword [esp + 8]
jl 0x40c7de
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x6feb50]
shl ebx, 2
push dword [ebp + ebx]
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
mov eax, dword [esp + 0x1c]
cdq
push edx
push eax
call fcn.0044f580
call fcn.004291f2
add dword [esp], edx
call fcn.0042c11b
lea eax, [esp + 0x10]
push eax
call fcn.00451800
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push dword [esp + 0x14]
call fcn.0044f560
call fcn.00451990
mov edx, dword [0x6fe900]
pop ecx
push ecx
call fcn.00429260
mov ecx, eax
call fcn.00429220
je 0x40c7ab
mov ebx, dword [esp + 8]
mov ebp, dword [0x6feb50]
shl ebx, 2
mov edx, dword [ebp + ebx]
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.00451890
mov ebx, dword [esp + 0xc]
mov ebp, dword [0x6feb58]
shl ebx, 2
lea eax, [ebp + ebx]
push eax
call fcn.00451800
jmp 0x40c7d4
mov edx, dword [esp + 0xc]
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.00451890
mov ebx, dword [esp + 0xc]
mov ebp, dword [0x6feb58]
shl ebx, 2
lea eax, [ebp + ebx]
push eax
call fcn.00451800
inc dword [esp + 8]
jno 0x40c6d6
call fcn.0042c20f
call fcn.0041811e
push edx
call fcn.004517c0
pop edx
push eax
push edx
call fcn.004517c0
pop edx
push eax
push dword [esp + 0xc]
call fcn.00430842
lea eax, [0x6fe838]
push eax
call fcn.00451800
cmp dword [esp + 0x20], 0
je 0x40c823
push dword [esp + 0x20]
pop eax
mov dword [0x6fe81c], eax
call fcn.004147d1
xor eax, eax
push dword [esp]
call fcn.004519f0
push dword [esp + 4]
call fcn.004519f0
push dword [esp + 0xc]
call fcn.004519f0
add esp, 0x10
pop ebx
pop ebp
ret 0xc
Function at 0x40d638
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40d63d
call fcn.00451930
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00429060
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.00429060
push dword [esp]
call sub.KERNEL32.DLL_LoadLibraryW
mov dword [esp + 8], eax
push 0x10
push 1
push dword [esp + 0x10]
call sub.KERNEL32.DLL_FindResourceW
mov dword [esp + 0xc], eax
push dword [esp + 0xc]
push dword [esp + 0xc]
call sub.KERNEL32.DLL_LoadResource
mov dword [esp + 0x10], eax
push dword [esp + 0x10]
call sub.KERNEL32.DLL_LockResource
mov dword [esp + 0x14], eax
cmp dword [esp + 8], 0
je 0x40d6cc
cmp dword [esp + 0xc], 0
je 0x40d6cc
cmp dword [esp + 0x10], 0
je 0x40d6cc
cmp dword [esp + 0x14], 0
je 0x40d6cc
mov eax, 1
jmp 0x40d6ce
xor eax, eax
and eax, eax
je 0x40d720
push 0
push dword [esp + 8]
call sub.KERNEL32.DLL_BeginUpdateResourceW
mov dword [esp + 0x18], eax
push dword [esp + 0xc]
push dword [esp + 0xc]
call sub.KERNEL32.DLL_SizeofResource
push eax
push dword [esp + 0x18]
push 0
push 1
push 0x10
push dword [esp + 0x2c]
call sub.KERNEL32.DLL_UpdateResourceW
mov dword [esp + 0x1c], eax
push 0
push dword [esp + 0x1c]
call sub.KERNEL32.DLL_EndUpdateResourceW
push dword [esp + 8]
call sub.KERNEL32.DLL_FreeLibrary
mov eax, dword [esp + 0x1c]
jmp 0x40d731
push dword [esp]
call fcn.004519f0
push dword [esp + 4]
call fcn.004519f0
add esp, 0x20
ret 8