joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4066e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x46c664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x406810
cmp byte [edi + 0x49], bl
je 0x406810
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x4067a2
mov eax, 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x2c], bl
pxor xmm0, xmm0
mov dword [ebp - 0x1c], ebx
movq qword [ebp - 0x2c], xmm0
cmp eax, 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], 8
jae 0x406757
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40676f
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4067a6
dec eax
je 0x4067aa
sub eax, 2
je 0x406801
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040acc0
xor al, al
jmp 0x406812
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4067ba
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4067e3
cmp ebx, 0x10
jae 0x4067c9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0043334e
add esp, 0x10
cmp esi, eax
jne 0x406793
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x406801
test esi, esi
jne 0x406763
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00409650
jmp 0x40675d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040acc0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00432675
mov esp, ebp
pop ebp
ret
Function at 0x406aa0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ffb3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x46c664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00430508
mov dword [ebp - 4], 0
push 4
call fcn.0043284b
mov edi, eax
add esp, 4
test edi, edi
je 0x406b24
call fcn.004309af
mov dword [edi], eax
call fcn.0043076e
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004306a3
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406b16
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004306cb
jmp 0x406b26
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407a90
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4524e3
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x46c664]
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 eax, dword [ebp + 8]
mov esi, ecx
push esi
push 4
push esi
xor ebx, ebx
push 0x407b90
push ebx
lea edi, [esi + 8]
push ebx
mov dword [ebp - 0x34], esi
mov dword [esi], ebx
mov dword [esi + 4], eax
mov dword [edi], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
mov word [esi + 0x14], bx
lea ebx, [esi + 0x18]
mov dword [ebx], 0
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x407b06
test eax, eax
jne 0x407b44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
xor ecx, ecx
push 0x17
mov eax, str.Thread_creation_failed.
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
call fcn.0040e990
mov byte [ebp - 4], 0
push 0x4630f4
lea edx, [ebp - 0x30]
push edx
call fcn.00436bf2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
call edi
push ebx
mov byte [esi + 0x14], 1
call edi
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
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.00432675
mov esp, ebp
pop ebp
ret 4
Function at 0x40c8b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450413
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x46c664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00430508
mov dword [ebp - 4], 0
push 4
call fcn.0043284b
mov edi, eax
add esp, 4
test edi, edi
je 0x40c938
call fcn.004309af
mov dword [edi], eax
call fcn.0043076e
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004306a3
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40c92a
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004306cb
jmp 0x40c93a
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413400
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45032b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x46c664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], edi
mov dword [ebp - 4], edi
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 0x218]
mov eax, dword [eax]
or ebx, 0x2001f
mov dword [ebp - 0x228], edi
cmp esi, edi
je 0x413483
push ebx
push ecx
push eax
lea edi, [ebp - 0x228]
call fcn.00413320
xor edi, edi
jmp 0x413494
lea edx, [ebp - 0x228]
push edx
push ebx
push edi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x41358d
mov ecx, dword [ebp - 0x220]
xor eax, eax
cmp ecx, edi
je 0x4134b7
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x220], edi
mov ecx, dword [ebp - 0x228]
and ebx, 0x300
mov dword [ebp - 0x21c], edi
mov esi, eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ebx
cmp eax, edi
jne 0x41358d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x238]
push eax
push edi
push edi
push edi
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x214]
push eax
push edi
push ecx
mov dword [ebp - 0x224], pe_nt_image_headers32
call esi
test eax, eax
jne 0x41355c
nop
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x220]
call fcn.00413400
mov ebx, eax
cmp ebx, edi
jne 0x4135d1
lea edx, [ebp - 0x238]
push edx
mov edx, dword [ebp - 0x220]
push edi
push edi
push edi
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x214]
push ecx
push edi
push edx
mov dword [ebp - 0x224], pe_nt_image_headers32
call esi
test eax, eax
je 0x413510
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x413573
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x220], edi
mov eax, dword [ebp - 0x230]
push eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x21c], edi
call fcn.00413670
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x4135ab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x220], edi
mov eax, esi
mov dword [ebp - 0x21c], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00432675
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x4135ef
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x220], edi
mov eax, ebx
jmp 0x4135ad
Function at 0x414320
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4522c6
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x46c664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, ecx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x418], ecx
mov byte [ebp - 4], 1
push 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x41439c
call fcn.00412460
mov edi, eax
jmp 0x4144c3
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4143b5
call fcn.00412460
jmp 0x4144ba
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x4143d3
call fcn.00412460
jmp 0x4144ba
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4143f4
mov edi, 0x8007000e
jmp 0x4144bc
mov byte [ebp - 4], 2
xor ecx, ecx
shld ecx, eax, 1
mov dword [ebp - 0x434], ecx
add eax, eax
mov dword [ebp - 0x438], eax
test ecx, ecx
jne 0x414415
cmp eax, 0xffffffff
jbe 0x41441f
push 0x80070216
call fcn.0040eae0
cmp eax, 0x400
jbe 0x41443b
lea ecx, [ebp - 0x418]
push ecx
call fcn.00412c50
mov dword [ebp - 4], 1
jmp 0x41446f
lea edx, [ebp - 0x414]
mov dword [ebp - 0x418], edx
mov dword [ebp - 4], 1
jmp 0x41446f
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x414480
mov edi, 0x8007000e
jmp 0x4144bc
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x414499
call fcn.00412460
jmp 0x4144ba
xor ecx, ecx
mov edx, dword [ebp - 0x418]
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.00414180
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x4144e0
lea eax, [ebp - 0x418]
call fcn.00412cf0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00432675
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x46e5f4
call fcn.00432348
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x4151cd
test esi, esi
jne 0x4151cd
push esi
push 7
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x4151b5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4151af
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4151af
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
mov ecx, 5
nop
cmp esi, eax
jae 0x4151a2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x415190
cmp esi, eax
jb 0x4151a6
xor eax, eax
jmp 0x4151af
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x4151d6
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x46e5f4
call fcn.00432348
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x415151
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4151e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4151f6
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x415225
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
mov ecx, 5
cmp esi, eax
jae 0x415225
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x415213
cmp esi, eax
jb 0x41522b
pop esi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x416d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x454cd4
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x46c664]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x46c664]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, edx
cmp dword [edi + 0x14], 8
mov esi, ecx
jb 0x416da5
mov eax, dword [edi]
jmp 0x416da7
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x416e51
and al, 0x10
cmp al, 0x10
sete al
xor ebx, ebx
cmp al, bl
je 0x416e51
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00415df0
mov dword [esp + 0x58], ebx
lea ecx, [esp + 0x10]
push ecx
push edi
mov ecx, eax
call fcn.0040e8a0
mov byte [esp + 0x58], 1
push esi
mov edi, eax
call fcn.00419be0
add esp, 4
mov byte [esp + 0x58], bl
mov esi, 8
cmp dword [esp + 0x24], esi
jb 0x416e11
mov edx, dword [esp + 0x10]
push edx
call fcn.0043266a
add esp, 4
mov edi, 7
xor eax, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ebx
mov word [esp + 0x10], ax
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x40], esi
jb 0x416e40
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0043266a
add esp, 4
xor edx, edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
jmp 0x416e5a
push esi
call fcn.00419be0
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00432675
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45026b
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x46c664]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push esi
mov eax, dword [0x46c664]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x416ecb
xor al, al
jmp 0x416f38
lea eax, [esp + 0xc]
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.0041a210
add esp, 8
mov dword [esp + 0x278], 0
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x416f0d
test eax, eax
je 0x416f0d
mov dword [esp + 0x278], 0xffffffff
lea esi, [esp + 0xc]
call fcn.004184d0
mov al, 1
jmp 0x416f38
cmp dword [esi + 0x14], 8
jb 0x416f15
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov dword [esp + 0x278], 0xffffffff
lea esi, [esp + 0xc]
call fcn.004184d0
mov al, bl
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00432675
mov esp, ebp
pop ebp
ret
Function at 0x4174b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450e7e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x46c664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp dword [eax + 0x14], 8
jb 0x4174eb
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edx, eax
xor eax, eax
mov dword [ebp - 0x14], edx
cmp edx, ebx
jne 0x41752b
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], ebx
mov word [esi + 8], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
jmp 0x417640
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
cmp edx, ebx
jbe 0x417565
lea ecx, [ebp - 0x30]
call fcn.004181c0
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov eax, edi
sub eax, ecx
add eax, dword [ebp - 0x14]
je 0x41755c
push eax
push ebx
push ecx
call fcn.0043a080
add esp, 0xc
mov ecx, dword [ebp - 0x14]
lea eax, [edi + ecx]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
sub eax, edi
cmp dword [ecx + 0x14], 8
jb 0x417579
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x1c]
push edi
push eax
push edx
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
cmp eax, ebx
jne 0x4175a9
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
xor ecx, ecx
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], ebx
mov word [esi + 8], cx
jmp 0x41761c
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x18]
push eax
push 0x45e1e4
push edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp eax, ebx
jne 0x4175e3
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
xor edx, edx
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], ebx
mov word [esi + 8], dx
jmp 0x41761c
mov eax, dword [ebp - 0x18]
movzx edx, word [eax + 0xe]
movzx ecx, word [eax + 0xc]
mov dword [ebp + 8], edx
movzx edx, word [eax + 8]
mov ax, word [eax + 0xa]
mov word [esi + 2], dx
mov dx, word [ebp + 8]
mov word [esi], ax
mov word [esi + 4], dx
mov word [esi + 6], cx
xor eax, eax
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], ebx
mov word [esi + 8], ax
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], bl
cmp edi, ebx
je 0x417637
push edi
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4176d0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, eax
push edi
mov ecx, esi
call fcn.00416e80
test al, al
je 0x417726
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor edi, edi
nop
mov eax, esi
call fcn.00401a80
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x417721
and eax, 0xfffffffe
push eax
mov eax, esi
call fcn.00401a80
push eax
call ebx
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3e8
jl 0x4176f0
call fcn.00419990
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417730
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4540a0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x46c664]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x46c664]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x14]
call fcn.0041a0e0
xor esi, esi
mov dword [esp + 0x58], esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, esi
jne 0x4177cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], esi
xor edx, edx
push 0x1f
mov eax, 0x45e200
lea esi, [esp + 0x30]
mov dword [esp + 0x44], 7
mov word [esp + 0x30], dx
call fcn.0040e990
mov byte [esp + 0x58], 0
push 0x4630f4
lea eax, [esp + 0x2c]
push eax
call fcn.00436bf2
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x417803
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x417824
test eax, eax
je 0x417824
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x417824
dec dword [eax]
jne 0x417824
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x417817
test eax, eax
je 0x417817
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043266a
add esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xffffffff
mov eax, edi
mov edx, ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00432675
mov esp, ebp
pop ebp
ret