joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433fa1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x433fde
cmp dword [ebp + 0x14], edi
je 0x433fde
cmp ecx, edi
jne 0x433fe5
call fcn.00430e2c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0042f15e
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x433ff9
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43401a
cmp ebx, 0xffffffff
je 0x434009
push ebx
push edi
push ecx
call fcn.00431290
add esp, 0xc
cmp esi, edi
je 0x433fc6
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x433fc6
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x434036
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43403d
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43412e
test word [esi + 0xc], 0x10c
je 0x434091
mov eax, dword [esi + 4]
test eax, eax
je 0x434091
jl 0x43418f
cmp ebx, eax
mov edi, ebx
jb 0x434062
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x434136
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042f192
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x434126
cmp ebx, dword [ebp - 0xc]
jb 0x4340fe
cmp dword [ebp - 0xc], 0
je 0x4340bb
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4340b0
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4340b7
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4340c6
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4340c6
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x434162
push eax
push dword [ebp - 8]
push esi
call fcn.00433bf1
pop ecx
push eax
call fcn.0043f16d
add esp, 0xc
test eax, eax
je 0x4341a1
cmp eax, 0xffffffff
je 0x43418f
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x434126
push esi
call fcn.0043ea8c
cmp eax, 0xffffffff
pop ecx
je 0x434193
cmp dword [ebp - 4], 0
je 0x434162
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x434045
mov eax, dword [ebp + 0x14]
jmp 0x433fe0
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43414d
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00431290
add esp, 0xc
call fcn.00430e2c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x433fd6
cmp dword [ebp + 0xc], 0xffffffff
je 0x434178
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00431290
add esp, 0xc
call fcn.00430e2c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x433fd6
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x433fe0
or dword [esi + 0xc], 0x10
jmp 0x434193
Function at 0x435aa7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x486680]
je 0x435ac2
inc edi
cmp edi, 0x17
jb 0x435ab3
cmp edi, 0x17
jae 0x435c42
push ebp
push 3
call fcn.00441a64
cmp eax, 1
pop ecx
je 0x435c0e
push 3
call fcn.00441a64
test eax, eax
pop ecx
jne 0x435af6
cmp dword [0x4864c8], 1
je 0x435c0e
cmp ebx, 0xfc
je 0x435c41
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x48a5a0
push ebp
call fcn.00437c25
add esp, 0xc
test eax, eax
je 0x435b2c
push esi
push esi
push esi
push esi
push esi
call fcn.0042f062
add esp, 0x14
push 0x104
mov esi, 0x48a5b9
push esi
push 0
mov byte [0x48a6bd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x435b70
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00437c25
add esp, 0xc
test eax, eax
je 0x435b70
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042f062
add esp, 0x14
push esi
call fcn.00437c90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x435bb5
push esi
call fcn.00437c90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x48a8b4
push 0x470944
sub ecx, eax
push ecx
push eax
call fcn.0043add6
add esp, 0x14
test eax, eax
je 0x435bb5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042f062
add esp, 0x14
jmp 0x435bb7
xor esi, esi
push 0x470940
push ebx
push ebp
call fcn.0043ad16
add esp, 0xc
test eax, eax
je 0x435bd7
push esi
push esi
push esi
push esi
push esi
call fcn.0042f062
add esp, 0x14
push dword [edi*8 + 0x486684]
push ebx
push ebp
call fcn.0043ad16
add esp, 0xc
test eax, eax
je 0x435bf9
push esi
push esi
push esi
push esi
push esi
call fcn.0042f062
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004418a7
add esp, 0xc
jmp 0x435c41
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x435c41
cmp ebp, 0xffffffff
je 0x435c41
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x486684]
push dword [esi]
call fcn.00437c90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4418a7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043666b
xor ebx, ebx
cmp dword [0x48b0a8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44197d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x441a5d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x441a5d
push eax
call fcn.004365fd
mov dword [esp], 0x471f70
push edi
mov dword [0x48b0a8], eax
call esi
push eax
call fcn.004365fd
mov dword [esp], 0x471f5c
push edi
mov dword [0x48b0ac], eax
call esi
push eax
call fcn.004365fd
mov dword [0x48b0b0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042f407
test eax, eax
pop ecx
pop ecx
je 0x44194b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042f062
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44197d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004365fd
cmp eax, ebx
pop ecx
mov dword [0x48b0b8], eax
je 0x44197d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004365fd
pop ecx
mov dword [0x48b0b4], eax
mov eax, dword [0x48b0b4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x441a02
cmp dword [0x48b0b8], ecx
je 0x441a02
push eax
call fcn.00436674
push dword [0x48b0b8]
mov esi, eax
call fcn.00436674
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x441a02
cmp edi, ebx
je 0x441a02
call esi
cmp eax, ebx
je 0x4419cf
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4419cf
test byte [ebp - 0x18], 1
jne 0x441a02
lea eax, [ebp - 0x10]
push eax
call fcn.0042f43e
test eax, eax
pop ecx
je 0x4419ea
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042f062
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4419f9
or dword [ebp + 0x10], 0x200000
jmp 0x441a3d
or dword [ebp + 0x10], 0x40000
jmp 0x441a3d
mov eax, dword [0x48b0ac]
cmp eax, dword [ebp - 8]
je 0x441a3d
push eax
call fcn.00436674
cmp eax, ebx
pop ecx
je 0x441a3d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x441a3d
mov eax, dword [0x48b0b0]
cmp eax, dword [ebp - 8]
je 0x441a3d
push eax
call fcn.00436674
cmp eax, ebx
pop ecx
je 0x441a3d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48b0a8]
call fcn.00436674
cmp eax, ebx
pop ecx
je 0x441a5d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x441a5f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44774e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x486668]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004476e3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00431290
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x44779d
cmp dword [ebp - 0x1c], 5
jb 0x4477b5
jmp 0x4477b1
cmp dword [ebp - 0x10], 1
jne 0x4477b5
cmp dword [ebp - 0x1c], 4
ja 0x4477b1
jne 0x4477b5
cmp dword [ebp - 0x18], 0
jbe 0x4477b5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x472f60
call fcn.004475b7
test eax, eax
jge 0x4477d6
mov byte [0x48b348], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042eddf
add ebp, 0x78
leave
ret

Function at 0x4484b0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
xor eax, eax
cmp ecx, edx
je 0x4484e1
push esi
push edi
mov esi, eax
mov edi, eax
shl esi, 6
shr edi, 2
add esi, edi
movzx edi, word [ecx]
lea esi, [esi + edi - 0x61c88647]
add ecx, 2
xor eax, esi
cmp ecx, edx
jne 0x4484c0
pop edi
pop esi
ret
Function at 0x459620
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4691e8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x486668]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.0044b3f0
mov dword [esi], vtable.boost::regex_error.0
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
test ecx, ecx
mov dword [esp + 0x18], 0
mov dword [esi + 0x34], ecx
je 0x459685
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [edi + 0x38]
mov dword [esi + 0x38], ecx
mov edx, dword [edi + 0x3c]
mov dword [esi + 0x3c], edx
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::regex_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::regex_error_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x459720
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x469223
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x486668]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00459620
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esi + 0x44], vtable.boost::exception_detail::clone_base.0
cmp edi, ecx
lea eax, [esi + 0x30]
mov byte [esp + 0x18], 1
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::regex_error__.2.0
mov dword [eax], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::regex_error__.1.0
mov dword [esi + 0x44], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::regex_error__.0
je 0x459782
lea ecx, [edi + 0x30]
push ecx
push eax
call fcn.004133d0
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x459f80
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx ecx, word [eax]
test cx, cx
je 0x459fc4
add eax, 2
cmp cx, 0x22
jne 0x459fb1
push 0x22
push eax
call fcn.00432ffc
add esp, 8
test eax, eax
je 0x459fc4
cmp word [eax + 2], 0
je 0x459fc4
add eax, 4
ret
push 0x20
push eax
call fcn.00432ffc
add esp, 8
test eax, eax
je 0x459fc4
add eax, 2
ret
mov eax, 0x477ce4
ret
Function at 0x459fd0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x469328
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x486668]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
call fcn.0041af16
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x45a015
push 0x80004005
call fcn.00402b50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x1c], edi
jge 0x45a04f
push 0x104
lea ecx, [esp + 0x10]
call fcn.004035e0
mov esi, dword [esp + 0xc]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp esi, edi
jne 0x45a063
xor eax, eax
jmp 0x45a081
mov eax, esi
lea edx, [eax + 2]
jmp 0x45a070
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45a070
sub eax, edx
sar eax, 1
js 0x45a0e7
cmp eax, dword [esi - 8]
jg 0x45a0e7
mov dword [esi - 0xc], eax
push ecx
mov word [esi + eax*2], di
add esi, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
push esi
call fcn.00402cb0
add eax, 0x10
mov dword [edi], eax
mov edi, dword [esp + 0x2c]
add esp, 4
push edi
call fcn.0040d8e0
add esp, 8
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a0d3
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
push 0x80070057
call fcn.00402b50
int3
Function at 0x45a100
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x469358
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x486668]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x14], edi
call fcn.0041af16
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x45a147
push 0x80004005
call fcn.00402b50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov ebx, 0x104
sub eax, ebx
or eax, ecx
mov dword [esp + 0x24], edi
jge 0x45a17f
push ebx
lea ecx, [esp + 0x18]
call fcn.004035e0
mov esi, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push 0x104
call ebp
mov edi, eax
cmp edi, ebx
jbe 0x45a1ba
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
mov ebx, edi
jge 0x45a1b4
push edi
lea ecx, [esp + 0x18]
call fcn.004035e0
mov esi, dword [esp + 0x14]
push esi
push edi
call ebp
mov edi, eax
test edi, edi
je 0x45a214
cmp edi, ebx
ja 0x45a214
push edi
lea ecx, [esp + 0x18]
call fcn.004163a5
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x1c], esp
mov edi, esp
push esi
call fcn.00402cb0
add eax, 0x10
mov dword [edi], eax
mov edi, dword [esp + 0x34]
add esp, 4
push edi
call fcn.0040d8e0
add esp, 8
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a264
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x45a264
call fcn.0041af16
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45a22e
push 0x80004005
call fcn.00402b50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [esp + 0x2c]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a264
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x45a610
Capabilities:
Get common file path

Disassembly:
sub esp, 0x62c
mov eax, dword [0x486668]
xor eax, esp
mov dword [esp + 0x628], eax
push ebx
push esi
mov esi, dword [esp + 0x638]
push edi
mov edi, dword [esp + 0x640]
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push 0x104
mov dword [esp + 0x14], ebx
mov word [esp + 0x430], bx
mov word [esp + 0x18], bx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x104
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x18]
push edx
mov word [esp + 0x228], bx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [esp + 0x428]
push eax
push ebx
push edi
lea ecx, [esp + 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [esp + 0x428]
push edx
mov ecx, esi
call fcn.00403710
mov ecx, dword [esp + 0x634]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0042eddf
add esp, 0x62c
ret
Function at 0x45a6c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x469411
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
mov eax, dword [0x486668]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x28]
push eax
mov ecx, esi
mov dword [esp + 0x24], ebx
call fcn.00403710
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], 1
je 0x45a777
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea esp, [esp]
push eax
call ebp
cmp eax, 0xffffffff
je 0x45a72c
test al, 0x10
jne 0x45a777
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0045b240
add esp, 8
push eax
mov ecx, esi
mov dword [esp + 0x24], 1
call fcn.00405a10
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x20], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45a770
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x45a720
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x45b3d0
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x45b3f4
push eax
call fcn.004314a4
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov edi, dword [esp + 0x14]
cmp edi, ebx
jne 0x45b405
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret 4
lea eax, [esp + 0xc]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [esi + 8], eax
jbe 0x45b445
push eax
call fcn.004313e1
mov ecx, dword [esi + 8]
add esp, 4
push eax
push ecx
push ebx
push edi
mov dword [esi + 4], eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x45b445
mov edx, dword [esi + 4]
push edx
call fcn.004314a4
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
xor eax, eax
cmp dword [esi + 4], ebx
pop edi
pop esi
setne al
pop ebx
pop ecx
ret 4
Function at 0x45d540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x469328
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x486668]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push 0x477ce4
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edi
call fcn.00403710
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
mov dword [esp + 0x30], edi
call fcn.0045d290
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45d5c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
push 0x477ce4
push ecx
call fcn.004071a0
add esp, 8
test al, al
je 0x45d62a
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
push 0x477cdc
push esi
call fcn.00433320
mov edi, dword [esp + 0x1c]
lea eax, [esi - 0x10]
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d614
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0x10
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d64a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0x10
Function at 0x45e950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x469898
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x486668]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x3c]
xor ebp, ebp
cmp ecx, ebp
je 0x45e98c
push ebp
push 0x477ce6
call fcn.0040c4d0
mov eax, dword [esp + 0x40]
cmp eax, ebp
je 0x45e996
mov dword [eax], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x34]
push 2
push ebp
push eax
mov dword [esp + 0x38], ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebp
je 0x45eaf1
mov ecx, dword [esp + 0x38]
push 0xa
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebp
je 0x45ea27
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x45ea27
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x45ea25
push esi
push edi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push 0
push esi
lea ecx, [esp + 0x1c]
call fcn.0045e8a0
push esi
push ebp
push 0
lea ecx, [esp + 0x20]
call fcn.0045e540
push eax
call fcn.004378c0
mov eax, dword [esp + 0x4c]
add esp, 0xc
test eax, eax
je 0x45ea25
mov dword [eax], esi
xor ebp, ebp
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
je 0x45eac7
mov ebx, dword [esp + 0x3c]
cmp ebx, ebp
je 0x45eaa0
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
jne 0x45ea4a
xor eax, eax
jmp 0x45ea50
mov eax, dword [esp + 0x1c]
sub eax, ecx
push eax
mov ecx, ebx
call fcn.0040c4a0
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
mov edi, eax
jne 0x45ea66
xor esi, esi
jmp 0x45ea72
mov eax, dword [esp + 0x1c]
sub eax, ecx
cmp eax, ebp
mov esi, eax
ja 0x45ea7b
call fcn.0042f182
mov ecx, dword [esp + 0x18]
push esi
push ecx
push edi
call fcn.004378c0
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp ecx, ebp
jne 0x45ea92
xor eax, eax
jmp 0x45ea98
mov eax, dword [esp + 0x1c]
sub eax, ecx
push eax
mov ecx, ebx
call fcn.00407200
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x45eab1
push eax
call fcn.00413dbc
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x45ead8
push eax
call fcn.00413dbc
add esp, 4
mov eax, 2
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x45eb02
push eax
call fcn.00413dbc
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret