joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4227c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x54006c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0x30
push 0
push esi
call fcn.004c7830
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
mov ebx, 0x30
call fcn.004c7830
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x422824
cmp dword [ebp - 0x114], 6
jae 0x422829
mov ebx, 0x2c
mov eax, dword [ebp + 0x10]
mov dword [esi], ebx
mov dword [esi + 4], 0
test eax, eax
jne 0x42284c
push edi
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
jmp 0x422852
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x422860
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x10], xmm0
mov eax, dword [0x5444a0]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x20], eax
xor ecx, ebp
mov eax, dword [ebp + 0x18]
pop edi
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0
pop esi
pop ebx
call fcn.00465694
mov esp, ebp
pop ebp
ret 0x18
Function at 0x423896
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 8
mov eax, 0x4f0c3c
call fcn.00465f2e
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0xc], 0
jne 0x4238b2
xor al, al
jmp 0x4239d3
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [eax + 0x10], ebx
jne 0x423975
push 0x18
call fcn.0042d050
mov dword [ebp + 0x10], eax
pop ecx
test eax, eax
je 0x4238da
mov ecx, eax
call fcn.004232d8
mov esi, eax
jmp 0x4238dc
mov esi, ebx
mov dword [ebp - 0x14], esi
test esi, esi
je 0x4238e6
inc dword [esi + 4]
push 0x10
mov dword [ebp - 4], ebx
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
mov dword [ebp + 0x10], edi
test edi, edi
je 0x42391e
lea eax, [ebp + 0x10]
mov dword [edi], vtable.Gdiplus::Bitmap.0
push eax
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ebp + 8]
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromResource]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 4], eax
jmp 0x423920
mov edi, ebx
mov dword [esi + 0xc], edi
test edi, edi
je 0x42395b
lea edx, [ebp - 0x14]
lea ecx, [ebp + 8]
call fcn.00424012
mov ecx, dword [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.0041a460
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x423959
dec dword [ecx + 4]
cmp dword [ecx + 4], 0
jg 0x423959
mov eax, dword [ecx]
push 1
call dword [eax]
mov bl, 1
mov dword [ebp - 4], 4
dec dword [esi + 4]
cmp dword [esi + 4], 0
jg 0x4239d1
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
jmp 0x4239d1
cmp dword [eax + 0x14], 8
jb 0x42397d
mov eax, dword [eax]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4238ab
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4238ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x10]
push eax
push esi
call fcn.00423810
push dword [ebp + 0xc]
mov bl, al
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, bl
call fcn.00465ef7
ret 0xc
Function at 0x42548d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x547294], 2
push ebx
mov ebx, ecx
jne 0x425544
mov eax, dword [0x547298]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x425543
mov ecx, dword [edi + 4]
push esi
mov esi, dword [edi]
jmp 0x4254c5
cmp dword [esi + 4], ebx
je 0x4254cb
add esi, 8
cmp esi, ecx
jne 0x4254bd
mov esi, ecx
cmp esi, ecx
je 0x425542
push dword [esi]
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [edi + 4]
jmp 0x4254ea
mov eax, dword [esi]
mov dword [esi - 8], eax
mov eax, dword [esi + 4]
mov dword [esi - 4], eax
add esi, 8
cmp esi, ecx
jne 0x4254df
add dword [edi + 4], 0xfffffff8
mov ecx, dword [edi]
cmp ecx, dword [edi + 4]
jne 0x425542
test ecx, ecx
je 0x42551c
mov eax, dword [edi + 8]
sub eax, ecx
push 8
sar eax, 3
push eax
push ecx
call fcn.00418d20
mov dword [edi], ebx
add esp, 0xc
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
push 0xc
push edi
call fcn.004656c8
cmp dword [0x547294], 2
pop ecx
pop ecx
je 0x425534
call fcn.0042706b
mov eax, dword [0x547298]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop edi
pop ebx
ret

Function at 0x425546
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.0042548d
push 0x425629
push dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x547294], 2
mov dword [ebp + 8], eax
je 0x425578
call fcn.0042706b
mov eax, dword [0x547298]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4255c1
push 0xc
call fcn.0042d050
mov esi, eax
pop ecx
test esi, esi
je 0x4255a3
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
jmp 0x4255a5
mov esi, ebx
cmp dword [0x547294], 2
je 0x4255b3
call fcn.0042706b
mov eax, dword [0x547298]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 4]
lea ecx, [ebp - 8]
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
cmp ecx, eax
jae 0x425603
cmp dword [esi], ecx
ja 0x425603
mov edi, ecx
sub edi, dword [esi]
sar edi, 3
cmp eax, dword [esi + 8]
jne 0x4255ec
push ecx
mov ecx, esi
call fcn.004270c8
mov edx, dword [esi + 4]
test edx, edx
je 0x42561c
mov ecx, dword [esi]
mov eax, dword [ecx + edi*8]
mov dword [edx], eax
mov eax, dword [ecx + edi*8 + 4]
mov dword [edx + 4], eax
jmp 0x42561c
cmp eax, dword [esi + 8]
jne 0x425610
push ecx
mov ecx, esi
call fcn.004270c8
mov eax, dword [esi + 4]
test eax, eax
je 0x42561c
mov dword [eax], ebx
mov dword [eax + 4], edi
add dword [esi + 4], 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x425958
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x1c
mov eax, 0x4f0d9e
call fcn.00465f2e
mov ebx, ecx
mov eax, dword [ebx]
call dword [eax + 8]
cmp dword [0x54729c], 2
mov dword [ebp - 0x10], eax
je 0x42597c
call fcn.0042700e
mov eax, dword [0x5472a0]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4259d5
push 8
call fcn.0042d050
mov edi, eax
pop ecx
mov dword [ebp - 0x18], edi
xor eax, eax
mov dword [ebp - 4], eax
test edi, edi
je 0x4259b3
mov dword [edi], eax
mov dword [edi + 4], eax
call fcn.00427192
mov dword [edi], eax
jmp 0x4259b5
mov edi, eax
or dword [ebp - 4], 0xffffffff
cmp dword [0x54729c], 2
je 0x4259c7
call fcn.0042700e
mov eax, dword [0x5472a0]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00426bb6
mov eax, dword [edi]
cmp dword [ebp - 0x14], eax
je 0x4259ef
xor al, al
jmp 0x425a1d
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
call fcn.004272c9
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004272f5
push esi
call dword [sym.imp.USER32.dll_SetCapture]
mov al, 1
call fcn.00465ef7
ret

Function at 0x425a23
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x54729c], 2
push edi
mov edi, ecx
je 0x425a3c
xor al, al
jmp 0x425ad1
mov eax, dword [0x5472a0]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x425a75
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov dword [ebp - 4], eax
mov ecx, esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00426bb6
mov eax, dword [ebp - 8]
cmp eax, dword [esi]
je 0x425a75
cmp dword [eax + 0x14], edi
je 0x425a79
xor al, al
jmp 0x425ad0
push eax
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00426bf9
cmp dword [esi + 4], 0
jne 0x425ab9
mov ecx, esi
call fcn.00426e5b
push 8
push esi
call fcn.004656c8
cmp dword [0x54729c], 2
pop ecx
pop ecx
je 0x425aaa
call fcn.0042700e
mov eax, dword [0x5472a0]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp byte [ebp + 8], 0
je 0x425ac4
xor eax, eax
inc eax
jmp 0x425ad0
call dword [sym.imp.USER32.dll_ReleaseCapture]
neg eax
sbb eax, eax
neg eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x425ad8
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [0x54729c], 2
mov dword [ebp - 4], ecx
je 0x425aed
xor eax, eax
jmp 0x425b1f
mov eax, dword [0x5472a0]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x425b17
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 8]
push eax
call fcn.00426bb6
mov eax, dword [ebp - 8]
cmp eax, dword [esi]
jne 0x425b1b
xor eax, eax
jmp 0x425b1e
mov eax, dword [eax + 0x14]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42700e
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 1
push 0x54729c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x42705e
push esi
push 4
call fcn.0042d050
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x427041
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x427043
xor esi, esi
mov dword [0x5472a0], esi
mov dword [0x54729c], 2
pop esi
jmp 0x427067
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x54729c], 2
jne 0x427056
mov esp, ebp
pop ebp
ret

Function at 0x42706b
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 1
push 0x547294
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x4270bb
push esi
push 4
call fcn.0042d050
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x42709e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x4270a0
xor esi, esi
mov dword [0x547298], esi
mov dword [0x547294], 2
pop esi
jmp 0x4270c4
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x547294], 2
jne 0x4270b3
mov esp, ebp
pop ebp
ret

Function at 0x429744
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.00429ac0
test al, al
jne 0x429758
mov ecx, esi
pop esi
jmp fcn.0042548d
pop esi
ret

Function at 0x429ec2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x54006c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x5c
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call fcn.004c7830
add esp, 0xc
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push esi
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x118
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.004c7830
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x11c], 6
jne 0x429f38
cmp byte [ebp - 6], cl
jne 0x429f45
mov bl, cl
cmp dword [ebp - 0x11c], 6
movzx ebx, bl
cmova ebx, ecx
mov ecx, str.Tahoma
test bl, bl
mov eax, 0x52e2c4
cmove eax, ecx
push eax
lea eax, [esi + 0x1c]
push 0x20
push eax
call fcn.004d0393
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
pop ebx
call fcn.00465694
mov esp, ebp
pop ebp
ret
Function at 0x42ad7b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 8]
push esi
push edi
push 0x52dd94
mov esi, edx
mov dword [ebp - 4], ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x42ae22
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x42ae21
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42ae21
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x42ae1a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x42ae13
push ebx
push edi
push eax
call fcn.004c7dd0
and dword [ebp + 8], 0
lea eax, [ebp + 8]
add esp, 0xc
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x42ae0c
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0042a658
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42ae28
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x42aeba
push ebx
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jle 0x42aeb9
mov eax, dword [edi + 0x10]
mov dword [ebp - 8], 0xff
push esi
and dword [ebp - 4], 0
test eax, eax
jle 0x42aeb2
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
imul ecx, dword [ebp - 4]
imul eax, ebx
cdq
and edx, 7
lea esi, [edx + eax]
xor edx, edx
sar esi, 3
add esi, ecx
add esi, dword [edi + 8]
movzx ecx, byte [esi + 3]
movzx eax, byte [esi]
imul eax, ecx
div dword [ebp - 8]
xor edx, edx
mov byte [esi], al
movzx eax, byte [esi + 1]
imul eax, ecx
div dword [ebp - 8]
xor edx, edx
mov byte [esi + 1], al
movzx eax, byte [esi + 2]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 4]
inc ecx
mov byte [esi + 2], al
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], ecx
cmp ecx, eax
jl 0x42ae55
inc ebx
cmp ebx, dword [edi + 0xc]
jl 0x42ae4d
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42b7bf
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x28], ebx
je case.default.0x42b823
mov edx, dword [ebp + 0x10]
movzx eax, dx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
shr edx, 0x10
mov dword [ebp - 4], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.0042b8cf
mov edi, eax
test edi, edi
jne 0x42b812
push esi
push 0x42baa6
call dword [sym.imp.USER32.dll_EnumWindows]
jmp case.default.0x42b823
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [edi - 1]
cmp eax, 7
ja case.default.0x42b823
jmp dword [eax*4 + 0x42b8af]
push dword [esi + 0x98]
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
cmp edi, 2
setne al
add eax, 0xf001
jmp 0x42b891
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf006
cmp edi, 1
lea ecx, [eax - 3]
jmp 0x42b88e
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf008
cmp edi, 5
lea ecx, [eax - 4]
jmp 0x42b88e
push dword [esi + 0xa4]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf007
cmp edi, 6
lea ecx, [eax - 2]
cmove eax, ecx
push ebx
push eax
push 0x112
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42d906
Capabilities:
Check if file exists
Get file version info

Disassembly:
push 0x280
mov eax, 0x4f142d
call fcn.00465f62
mov dword [ebp - 0x284], edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x288], eax
test esi, esi
je 0x42db21
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42db21
lea eax, [ebp - 0x268]
xor ebx, ebx
push eax
push esi
mov dword [ebp - 0x268], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x42db21
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x270], ebx
lea eax, [ebp - 0x25d]
mov dword [ebp - 4], ebx
push eax
lea eax, [edi + 1]
mov byte [ebp - 0x25d], bl
push eax
lea ecx, [ebp - 0x278]
call fcn.0042dfd3
push dword [ebp - 0x278]
push edi
push dword [ebp - 0x268]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x42db12
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], ebx
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x278]
mov dword [ebp - 0x27c], ebx
call esi
test eax, eax
je 0x42db12
mov ecx, dword [ebp - 0x26c]
push 0x52e944
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_ls
mov eax, 0x104
push eax
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0042e0b8
add esp, 0x1c
mov dword [ebp - 0x264], ebx
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x278]
call esi
test eax, eax
je 0x42db12
cmp dword [ebp - 0x264], ebx
je 0x42db12
push dword [ebp - 0x264]
lea ecx, [ebp - 0x244]
call fcn.004146c0
inc ebx
lea ecx, [ebp - 0x244]
push 0x52e9a0
mov byte [ebp - 4], bl
call fcn.00414620
xor eax, eax
mov word [ebp - 0x20], ax
mov esi, eax
mov dword [ebp - 0x1e], eax
mov edi, eax
mov word [ebp - 0x1a], ax
push esi
push 0x52e9a0
lea ecx, [ebp - 0x244]
call fcn.004145a0
mov dword [ebp - 0x280], eax
cmp eax, 0xffffffff
je 0x42db05
sub eax, esi
lea ecx, [ebp - 0x244]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0042e04d
cmp dword [eax + 0x14], 8
jb 0x42dab5
mov eax, dword [eax]
push eax
call fcn.004cc13b
pop ecx
lea ecx, [ebp - 0x25c]
mov word [ebp + edi*2 - 0x20], ax
call fcn.00418e80
mov esi, dword [ebp - 0x280]
inc esi
inc edi
cmp edi, 4
jl 0x42da7b
movzx ecx, word [ebp - 0x20]
movzx eax, word [ebp - 0x1e]
shl ecx, 0x10
or ecx, eax
mov eax, dword [ebp - 0x284]
mov dword [eax], ecx
movzx ecx, word [ebp - 0x1a]
movzx eax, word [ebp - 0x18]
shl ecx, 0x10
or ecx, eax
mov eax, dword [ebp - 0x288]
mov dword [eax], ecx
jmp 0x42db07
xor ebx, ebx
lea ecx, [ebp - 0x244]
call fcn.00418e80
lea ecx, [ebp - 0x278]
call fcn.0042a34f
mov eax, ebx
jmp 0x42db23
xor eax, eax
call fcn.00465f0c
ret
Function at 0x42db29
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x54006c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x541a6c]
push esi
xor esi, esi
push edi
mov edi, 0xfffffc18
cmp eax, 0xffffffff
jne 0x42dca4
push 0x110
lea eax, [ebp - 0x324]
mov dword [0x541a6c], edi
push esi
push eax
mov dword [ebp - 0x328], 0x114
call fcn.004c7830
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42dc9a
cmp dword [ebp - 0x318], 2
jne 0x42dc9a
cmp dword [ebp - 0x324], 5
jne 0x42dc2f
mov eax, dword [ebp - 0x320]
test eax, eax
jne 0x42dbbc
inc eax
mov dword [0x541a6c], eax
jmp 0x42dd4b
cmp eax, 1
jne 0x42dc20
push 0x7f
lea eax, [ebp - 0x314]
push eax
push 0x52e9a4
call fcn.004d04c8
add esp, 0xc
test eax, eax
jne 0x42dbe0
push 3
pop eax
jmp 0x42dbb2
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_2
call fcn.004d04c8
add esp, 0xc
test eax, eax
jne 0x42dbfe
push 4
jmp 0x42dbdd
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_3
call fcn.004d04c8
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
jmp 0x42dbb2
cmp eax, 2
jne 0x42dc9a
push 6
pop eax
mov dword [0x541a6c], eax
jmp 0x42dc9f
cmp dword [ebp - 0x324], 6
jne 0x42dc9a
cmp dword [ebp - 0x320], esi
jne 0x42dc86
push 0x7f
lea eax, [ebp - 0x314]
push eax
push 0x52e9a4
call fcn.004d04c8
add esp, 0xc
test eax, eax
jne 0x42dc61
push 8
jmp 0x42dbdd
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_2
call fcn.004d04c8
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 9
jmp 0x42dbb2
cmp dword [ebp - 0x320], 1
mov eax, dword [0x541a6c]
push 0xa
pop ecx
cmove eax, ecx
jmp 0x42dc28
mov eax, dword [0x541a6c]
cmp eax, 0xffffffff
je 0x42dcac
cmp eax, edi
jne 0x42dd4b
push 0x208
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004c7830
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.kernel32.dll
lea eax, [ebp - 0x210]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x330]
mov dword [ebp - 0x32c], esi
push eax
lea edx, [ebp - 0x32c]
mov dword [ebp - 0x330], esi
lea ecx, [ebp - 0x210]
call fcn.0042d906
pop ecx
test eax, eax
je 0x42dd46
mov eax, dword [ebp - 0x32c]
cmp eax, 0x60002
jne 0x42dd23
push 0xb
jmp 0x42dbdd
cmp eax, 0x60003
jne 0x42dd31
push 0xc
jmp 0x42dbdd
cmp eax, 0xa0000
je 0x42dd3f
cmp eax, 0x60004
jne 0x42dd46
push 0xd
jmp 0x42dbdd
mov eax, dword [0x541a6c]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00465694
mov esp, ebp
pop ebp
ret
Function at 0x42dd5b
Capabilities:
Check os version

Disassembly:
push 0x12c
mov eax, 0x4f1482
call fcn.00465f62
mov esi, ecx
mov dword [ebp - 0x12c], esi
xor edi, edi
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x130], edi
mov dword [esi + 0x10], edi
push edi
mov dword [esi + 0x14], 7
call fcn.00418de0
xor ebx, ebx
mov dword [ebp - 4], edi
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x114
inc ebx
push eax
mov dword [ebp - 0x130], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x42df4f
sub eax, ebx
je 0x42def5
sub eax, ebx
je 0x42ddd7
push str.Unknown
jmp 0x42df54
mov eax, dword [ebp - 0x124]
cmp eax, 5
jne 0x42de45
mov eax, dword [ebp - 0x120]
cmp eax, 2
jne 0x42de0a
push str.Windows_2003
mov ecx, esi
call fcn.00414670
mov eax, dword [ebp - 0x124]
cmp eax, 5
jne 0x42de45
mov eax, dword [ebp - 0x120]
cmp eax, ebx
jne 0x42de2b
push str.Windows_XP
mov ecx, esi
call fcn.00414670
mov eax, dword [ebp - 0x124]
cmp eax, 5
jne 0x42de45
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x42df5b
push str.Windows_2000
mov ecx, esi
call fcn.00414670
mov eax, dword [ebp - 0x124]
cmp eax, 4
ja 0x42de5c
push str.Windows_NT
mov ecx, esi
call fcn.00414670
mov eax, dword [ebp - 0x124]
push 6
pop edi
cmp eax, edi
jne 0x42dee9
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x42de8d
push str.Windows_Vista
mov ecx, esi
call fcn.00414670
mov eax, dword [ebp - 0x124]
cmp eax, edi
jne 0x42dee9
mov eax, dword [ebp - 0x120]
cmp eax, ebx
jne 0x42dead
push str.Windows_7
mov ecx, esi
call fcn.00414670
mov eax, dword [ebp - 0x124]
cmp eax, edi
jne 0x42dee9
mov eax, dword [ebp - 0x120]
cmp eax, 2
jne 0x42dece
push str.Windows_8
mov ecx, esi
call fcn.00414670
mov eax, dword [ebp - 0x124]
cmp eax, edi
jne 0x42dee9
mov eax, dword [ebp - 0x120]
cmp eax, 3
jne 0x42df5b
push str.Windows_8.1
mov ecx, esi
call fcn.00414670
mov eax, dword [ebp - 0x124]
cmp eax, 0xa
jne 0x42df5b
push str.Windows_10
jmp 0x42df54
cmp dword [ebp - 0x124], 4
jne 0x42df5b
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x42df23
push str.Windows_95
mov ecx, esi
call fcn.00414670
cmp dword [ebp - 0x124], 4
jne 0x42df5b
mov eax, dword [ebp - 0x120]
cmp eax, 0xa
jne 0x42df43
push str.Windows_98
mov ecx, esi
call fcn.00414670
cmp dword [ebp - 0x124], 4
jne 0x42df5b
mov eax, dword [ebp - 0x120]
cmp eax, 0x5a
jne 0x42df5b
push str.Windows_ME
jmp 0x42df54
push str.Windows_Win32s
mov ecx, esi
call fcn.00414670
lea ecx, [ebp - 0x12c]
call fcn.00420970
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x12c]
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push str.__build_d._d._d_
push eax
call fcn.00421840
add esp, 0x14
cmp word [ebp - 0x114], 0
je 0x42dfb3
push 0x52eb90
mov ecx, esi
call fcn.00414620
lea eax, [ebp - 0x114]
mov ecx, esi
push eax
call fcn.00414620
push dword [ebp - 0x12c]
mov ecx, esi
call fcn.00414620
lea ecx, [ebp - 0x12c]
call fcn.00420950
mov eax, esi
call fcn.00465f0c
ret