joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489c36
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4b22c8]
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 + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4120fc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4120fc
call fcn.00410230
mov esi, eax
jmp 0x4121ec
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41211f
call fcn.00410230
jmp 0x4121df
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x41213d
call fcn.00410230
jmp 0x4121df
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x41215e
mov esi, 0x8007000e
jmp 0x4121e1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00410030
jmp 0x412188
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x41219f
mov esi, 0x8007000e
jmp 0x4121e1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4121bf
call fcn.00410230
jmp 0x4121df
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00411eb0
mov esi, eax
test edi, edi
je 0x4121ec
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x412210
lea ecx, [ebp - 0x418]
call fcn.004108b0
nop word [eax + eax]
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 - 0x14]
xor ecx, ebp
call fcn.00446191
mov esp, ebp
pop ebp
ret 0x10
Function at 0x416600
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489f18
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4b22c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xc], 0
je 0x41664d
push 0xa
push str.drv_giveup
lea ecx, [edi + 0x10]
call fcn.00409e30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
call fcn.00407ed0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416685
push 9
lea ecx, [edi + 0x10]
push str.drv_other
call fcn.00409e30
jmp 0x4166a5
push esi
call fcn.0043a930
add esp, 4
test eax, eax
je 0x4166a5
mov eax, dword [edi]
push 0
push 0
push esi
push 1
push eax
push eax
call fcn.004169c0
add esp, 0x18
or eax, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4166c0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416ad0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x416b2e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x416af0
mov eax, dword [edi]
jmp 0x416c19
cmp eax, 0x4e0
jb 0x416c19
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x416b50
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x416ba0
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416f10
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
push esi
and eax, 0x8000000f
jns 0x416f2b
dec eax
or eax, 0xfffffff0
add eax, 1
jne 0x41708a
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41708a
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x417083
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x417083
cmp dword [ebp - 0x10], 0
jg 0x417083
jl 0x416f94
cmp eax, 0x1000000
ja 0x417083
push edi
push 0x1000000
call fcn.004463dd
add esp, 4
mov dword [ebp + 0x14], 0
mov edi, eax
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417067
cmp dword [ebp + 0x14], 0
je 0x417067
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
push edi
call fcn.00416cb0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x417039
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x41704f
call ebx
push 1
push esi
call fcn.00445ee8
add esp, 8
xor al, al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
call ebx
push 1
push esi
call fcn.00445ee8
add esp, 8
mov al, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 1
push edi
call fcn.00445ee8
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4171c0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4171e0
push 9
push str.svc_other
lea ecx, [esi + 0xc]
call fcn.00409e30
pop esi
ret
call fcn.0041de10
test eax, eax
je 0x4171fa
push 6
push str.svc_hr
lea ecx, [esi + 0xc]
call fcn.00409e30
pop esi
ret
push dword [esi]
call fcn.0043a930
add esp, 4
test eax, eax
je 0x41722b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x41722b
push 0x491dcc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41722b
push 0x48f62c
call eax
pop esi
ret
Function at 0x419b00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a300
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4b22c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004192f0
test eax, eax
jne 0x419cc2
lea eax, [ebp - 0x28]
push eax
call fcn.00410af0
mov ecx, eax
call fcn.0040d830
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x419b58
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x64]
call fcn.004033b0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00404460
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.004187f0
or edi, 0xffffffff
push 0
test eax, eax
jne 0x419b9b
push eax
push 1
push eax
push str.24r_safe
call fcn.004109d0
mov ecx, eax
call fcn.00438d60
jmp 0x419ca3
lea eax, [ebp - 0x40]
push eax
call fcn.00410af0
mov ecx, eax
call fcn.0040dc90
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 3
jb 0x419bb7
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004033b0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00404460
push dword [ebp - 0x5c]
call fcn.0043a930
add esp, 4
test eax, eax
je 0x419c85
call fcn.00408700
mov ecx, eax
test ecx, ecx
je 0x419cdd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push 0
push eax
call fcn.00410af0
mov ecx, eax
call fcn.0040d770
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 7
jb 0x419c1b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x60]
push str._autorun___fromhelper___src_s
push eax
call fcn.00408610
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.00404460
mov esi, dword [ebp - 0x60]
push 5
push 0
push esi
push dword [ebp - 0x5c]
push 0x492024
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 1
push 0
push str.24r_succ
call fcn.004109d0
mov ecx, eax
call fcn.00438d60
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x419c85
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x5c]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419ca3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x419cc2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446191
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407d70
int3
Function at 0x41a410
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x68]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a460
mov ecx, esi
call fcn.00409f10
lea ecx, [esi + 0x34]
call fcn.00417270
push str.YxhGametray
push dword [esi + 0x58]
call fcn.00464796
add esp, 8
test eax, eax
jne 0x41a457
push str.LeyouGametray
push dword [esi + 0x58]
call fcn.00464796
add esp, 8
test eax, eax
jne 0x41a460
lea ecx, [esi + 0x44]
pop esi
jmp fcn.00416720
pop esi
ret
Function at 0x41e390
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 8]
push dword [eax]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
jne 0x41e3b4
pop edi
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp esi, 0xb7
pop esi
sete al
pop edi
pop ebp
ret

Function at 0x41e400
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1858
call fcn.004463b0
mov eax, dword [0x4b22c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x800
push 0
push eax
call fcn.00460e20
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x804]
add esp, 0xc
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x41e440
cmp dword [ebp + 0x1c], 0
je 0x41e478
lea eax, [ebp - 0x804]
push eax
call fcn.0043a930
add esp, 4
test eax, eax
jne 0x41e478
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446191
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x1858], 0x44
lea eax, [ebp - 0x1858]
movlpd qword [ebp - 0x1854], xmm0
push eax
movlpd qword [ebp - 0x184c], xmm0
movlpd qword [ebp - 0x1844], xmm0
movlpd qword [ebp - 0x183c], xmm0
movlpd qword [ebp - 0x1834], xmm0
movlpd qword [ebp - 0x182c], xmm0
movlpd qword [ebp - 0x1824], xmm0
movlpd qword [ebp - 0x181c], xmm0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ax, word [ebp + 0x10]
xorps xmm0, xmm0
push 0x1000
mov word [ebp - 0x1828], ax
lea eax, [ebp - 0x1804]
push 0
push eax
mov dword [ebp - 0x182c], 1
movups xmmword [ebp - 0x1814], xmm0
call fcn.00460e20
add esp, 0xc
lea eax, [ebp - 0x804]
test esi, esi
je 0x41e529
push esi
push eax
lea eax, [ebp - 0x1804]
push str.__s___s
push eax
call fcn.0041dde0
add esp, 0x10
jmp 0x41e53e
push eax
lea eax, [ebp - 0x1804]
push 0x492948
push eax
call fcn.0041dde0
add esp, 0xc
push edi
lea eax, [ebp - 0x1814]
push eax
lea eax, [ebp - 0x1858]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x41e5ad
cmp dword [ebp + 0x14], 0
je 0x41e583
push dword [ebp + 0x18]
push dword [ebp - 0x1814]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x41e597
push eax
push dword [ebp - 0x1814]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1810]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1814]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00446191
mov esp, ebp
pop ebp
ret
Function at 0x4292b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b492
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x4b22c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x81c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x818], 0
mov word [esi], dx
mov dword [ebp - 4], edx
mov dword [ebp - 0x81c], 1
test ecx, ecx
je 0x4293e0
test eax, eax
je 0x4293e0
test ebx, ebx
je 0x4293e0
lea edx, [ebp - 0x818]
push edx
push 0x20219
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4293cf
cmp dword [ebp - 0x818], eax
je 0x4293e0
push 0x802
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.00460e20
add esp, 0xc
mov dword [ebp - 0x820], 0x800
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x814]
push eax
push 0
push 0xffff
push ebx
push 0
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4293cf
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4293b1
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040b800
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x4293e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.00446191
mov esp, ebp
pop ebp
ret 0x10
Function at 0x429c00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b57d
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4b22c8]
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 ebx, ecx
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x24c], 0
push 0
push eax
call fcn.00460e20
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x429c8e
nop dword [eax]
lea eax, [ebp - 0x218]
push eax
call edi
sub esi, 1
jne 0x429c80
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429cb4
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040b800
xor eax, eax
mov dword [ebp - 4], 1
mov word [ebp - 0x248], ax
lea ecx, [ebp - 0x248]
mov eax, dword [ebp - 0x220]
add eax, 0x10
mov dword [ebp - 0x238], 0
push eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x24c], 1
call fcn.0040eba0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x248]
push eax
call fcn.0040ea20
push 0x10
push 0x494e88
lea ecx, [ebp - 0x248]
call fcn.0040ea20
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x234]
mov esi, eax
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x429db2
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429da8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429e50
push edx
push ecx
call fcn.00445ee8
add esp, 8
lea eax, [ebp - 0x218]
test esi, esi
je 0x429dc3
push str.ProductInfo.dat
jmp 0x429dc8
push str.utilsProductInfo.dat
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x218]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
mov ecx, ebx
call fcn.00429e60
mov edx, dword [ebp - 0x21c]
mov bl, al
cmp edx, 8
jb 0x429e30
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429e26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429e55
push edx
push ecx
call fcn.00445ee8
add esp, 8
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.00446191
mov esp, ebp
pop ebp
ret 4
call fcn.00464349
call fcn.00464349
int3
Function at 0x430f10
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c220
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4b22c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x431059
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x431059
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x431059
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x431059
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push SysReAllocString
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
je 0x431045
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x43103e
cmp dword [ebp - 0x1c], ebx
jne 0x43103e
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
cmp eax, ecx
ja 0x430fdd
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x430fd7
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x430fe9
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0040b2a0
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp - 0x20]
mov ecx, esi
push 0
call fcn.0041fe52
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
jne 0x43103e
push edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
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 0x436690
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c978
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4b22c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00445eb8
mov edi, eax
add esp, 4
test edi, edi
je 0x43672d
push 1
mov dword [ebp - 4], 0
call fcn.0041fad5
add esp, 4
mov dword [edi + 4], eax
jmp 0x43672f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00420662
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov dword [ebp - 4], 3
test edi, edi
je 0x436791
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x436791
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x4367b4
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x4367d7
cmp byte [ebp + 0xc], 0
je 0x4367c3
push esi
call fcn.00420048
add esp, 4
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
test cl, 4
je 0x4367e3
mov esi, str.ios_base::badbit_set
jmp 0x4367f3
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.0040c660
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00404000
push 0x4a9ee8
lea eax, [ebp - 0x30]
push eax
call fcn.0045fefe
int3

Function at 0x438d40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
test ecx, ecx
je 0x438d4f
pop ebp
jmp fcn.00439640
xor eax, eax
pop ebp
ret 0xc