joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481610
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [ecx]
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x48164c
push ebx
xor eax, eax
mov ebx, edx
mov al, byte [esi]
and ebx, 0xff
and eax, 0xff
inc esi
xor ebx, eax
shr edx, 8
mov eax, dword [ebx*4 + 0x5406e4]
xor edx, eax
dec edi
jne 0x481621
pop ebx
pop edi
mov dword [ecx], edx
pop esi
ret 8
pop edi
mov dword [ecx], edx
pop esi
ret 8

Function at 0x481690
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebp, dword [esp + 0x18]
mov bl, byte [esi]
inc esi
mov ecx, ebp
movzx di, byte [esi]
sub edi, 2
inc esi
and edi, 0xffff
lea eax, [edi + 1]
push eax
call fcn.004dc306
test edi, edi
jle 0x4816d1
mov cl, byte [esi]
add eax, 2
xor cl, bl
inc bl
movsx dx, cl
mov word [eax - 2], dx
inc esi
dec edi
jne 0x4816bc
push 0xffffffffffffffff
mov ecx, ebp
mov word [eax], 0
call fcn.004dc356
mov eax, dword [ebp]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x481740
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10a8
call fcn.004c0990
mov ecx, dword [esp + 0x10b8]
mov edx, dword [esp + 0x10b4]
lea eax, [esp + 0x18]
push edi
push eax
push ecx
push edx
call fcn.0047e1e0
add esp, 0xc
test eax, eax
jne 0x481838
mov eax, dword [esp + 0x10b4]
xor edi, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
test eax, eax
jle 0x481838
push ebx
mov ebx, dword [esp + 0x10c4]
push ebp
push esi
mov esi, dword [esp + 0x10bc]
mov ebp, eax
xor eax, eax
mov ecx, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 4]
test edi, edi
mov dword [esp + 0x14], eax
je 0x4817d4
test ebx, ebx
je 0x4817d4
xor eax, eax
mov cl, byte [esp + eax + 0x20]
mov dl, byte [esp + eax + 0x10]
xor dl, cl
mov byte [esp + eax + 0x10], dl
inc eax
cmp eax, 8
jb 0x4817c0
lea edx, [esp + 0x28]
push ebx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0047dc40
add esp, 0x10
test ebx, ebx
jne 0x481840
test edi, edi
je 0x48180a
xor eax, eax
mov dl, byte [esp + eax + 0x20]
mov cl, byte [esp + eax + 0x18]
xor cl, dl
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 8
jb 0x4817f6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x18]
mov ecx, esi
mov edi, esi
add esi, 8
mov dword [ecx], edx
mov eax, dword [esp + 0x1c]
dec ebp
mov dword [ecx + 4], eax
jne 0x48179d
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10a8
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x48181a
Function at 0x481920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x53c7c8
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x48193b
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x48194a
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0xc]
test eax, eax
mov dword [ecx], eax
jne 0x48195d
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
pop esi
ret

Function at 0x483b20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5025d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004837a0
xor edi, edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], edi
call fcn.004d5ee2
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 1
call fcn.004d549e
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 2
call fcn.004d549e
push 0xa
lea ecx, [esi + 0x54]
mov byte [esp + 0x18], 3
call fcn.004d6f78
push 0xa
lea ecx, [esi + 0x70]
mov byte [esp + 0x18], 4
call fcn.004d6f78
push 0xa
lea ecx, [esi + 0x8c]
mov byte [esp + 0x18], 5
call fcn.004d6f78
mov dword [esi + 0xa8], 0x51769c
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], 0x11
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc0], 0xa
push 0xa
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 7
call fcn.004d6934
mov dword [esi + 0xfc], edi
mov dword [esi + 0xf8], 0x50db74
xor eax, eax
xor ecx, ecx
mov dword [esi + 0xf0], eax
mov dword [esi + 0xe8], eax
mov byte [esp + 0x14], 9
mov dword [esi], 0x51766c
mov dword [esi + 0xf4], ecx
mov dword [esi + 0xec], ecx
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc8], edi
call fcn.004858a0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x100], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x28], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x483c80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x502677
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x51766c
mov dword [esp + 0x1c], 9
call fcn.00483de0
mov edi, dword [esi + 0x100]
xor ebx, ebx
cmp edi, ebx
je 0x483ce8
mov eax, dword [edi + 0x14]
cmp edi, ebx
mov dword [esi + 0x100], eax
je 0x483cde
lea ecx, [edi + 4]
call fcn.004dbec1
push edi
call fcn.004dbc23
add esp, 4
mov edi, dword [esi + 0x100]
cmp edi, ebx
jne 0x483cc0
mov eax, dword [esi + 0x28]
push eax
call fcn.004dbc23
lea ecx, [esi + 0xf8]
add esp, 4
mov dword [esp + 0x10], ecx
mov dword [ecx], vtable.CGdiObject.0
mov byte [esp + 0x1c], 0xa
call fcn.004dfa54
lea ecx, [esi + 0xcc]
mov byte [esp + 0x1c], 7
call fcn.004d6993
lea edi, [esi + 0xa8]
mov dword [esp + 0x10], edi
mov dword [edi], method.CCommandLineInfo.virtual_0
mov edx, dword [edi + 4]
mov byte [esp + 0x1c], 0xb
cmp edx, ebx
je 0x483d59
mov eax, dword [edi + 8]
cmp eax, ebx
jbe 0x483d59
push ebp
mov ecx, edx
mov ebp, eax
mov eax, dword [ecx]
cmp eax, ebx
je 0x483d52
mov eax, dword [eax]
cmp eax, ebx
jne 0x483d4c
add ecx, 4
dec ebp
jne 0x483d46
pop ebp
push edx
call fcn.004dbc23
mov ecx, dword [edi + 0x14]
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
call fcn.004d660c
lea ecx, [esi + 0x8c]
mov dword [edi + 0x14], ebx
mov byte [esp + 0x1c], 5
call fcn.004d6fbb
lea ecx, [esi + 0x70]
mov byte [esp + 0x1c], 4
call fcn.004d6fbb
lea ecx, [esi + 0x54]
mov byte [esp + 0x1c], 3
call fcn.004d6fbb
lea ecx, [esi + 0x4c]
mov byte [esp + 0x1c], 2
call fcn.004d54c7
lea ecx, [esi + 0x44]
mov byte [esp + 0x1c], 1
call fcn.004d54c7
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], bl
call fcn.004d5f15
mov ecx, esi
call fcn.004837e0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x486db0
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x502ab2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x270
push ebx
push esi
push edi
mov edi, dword [esp + 0x290]
mov dword [esp + 0x28], ecx
push edi
lea ecx, [esp + 0x14]
call fcn.004dbf35
mov eax, dword [0x574900]
mov dword [esp + 0x284], 0
mov dword [esp + 0xc], eax
push 0x208
lea ecx, [esp + 0x10]
mov byte [esp + 0x288], 1
call fcn.004dc306
test edi, edi
mov esi, eax
je 0x486e1f
push edi
push esi
call fcn.004bf83f
add esp, 8
jmp 0x486e44
push 0x208
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push esi
call fcn.004c1932
add esp, 8
test eax, eax
je 0x486e44
add eax, 2
mov word [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
je 0x486f8d
test al, 0x10
je 0x486f8d
push esi
call fcn.004bf93a
lea ecx, [esi + eax*2]
push str..dic
push esi
mov dword [esp + 0x30], ecx
call fcn.004bf815
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, edi
je 0x486f8d
mov eax, dword [0x574900]
push ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov ebp, dword [esp + 0x290]
mov byte [esp + 0x288], 2
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x5c]
push eax
push ecx
call fcn.004bf83f
mov ecx, dword [esp + 0x34]
add esp, 8
lea edx, [esp + 0x18]
push 0
push edx
push esi
call fcn.00486fe0
test eax, eax
je 0x486eb4
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
mov ecx, ebp
lea eax, [edi + 1]
push eax
call fcn.004873f0
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
shl ecx, 4
add ecx, eax
call fcn.00487260
lea edx, [esp + 0x30]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x486eb4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.004dc356
lea ecx, [esp + 0x24]
mov byte [esp + 0x288], 5
call fcn.004dbec1
lea ecx, [esp + 0x20]
mov byte [esp + 0x288], 4
call fcn.004dbec1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x288], 3
call fcn.004dbec1
lea ecx, [esp + 0x18]
mov byte [esp + 0x288], 1
call fcn.004dbec1
lea ecx, [esp + 0x10]
mov byte [esp + 0x288], 0
call fcn.004dbec1
lea ecx, [esp + 0x14]
mov dword [esp + 0x288], 0xffffffff
call fcn.004dbec1
pop ebp
jmp 0x486fb8
push edi
lea ecx, [esp + 0x10]
call fcn.004dc356
lea ecx, [esp + 0xc]
mov byte [esp + 0x284], 0
call fcn.004dbec1
lea ecx, [esp + 0x10]
mov dword [esp + 0x284], edi
call fcn.004dbec1
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x27c
ret 8
Function at 0x486fe0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x502aec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x27c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x298]
push edi
push esi
lea ecx, [esp + 0x18]
call fcn.004dbf35
xor ebx, ebx
push esi
mov dword [esp + 0x298], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x487057
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
push 0x208
mov dword [esp + 0x24], ebx
call fcn.004dc306
push eax
push 0x208
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push ebp
lea ecx, [esp + 0x18]
call fcn.004dc356
push 0xfffffffffffffffb
lea ecx, [esp + 0x24]
call fcn.00493b60
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 1
call fcn.004dc98c
test eax, eax
je 0x487188
mov edx, dword [0x574900]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
mov byte [esp + 0x298], 2
call fcn.00494440
test eax, eax
je 0x487177
mov ecx, dword [0x574900]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x29c], 3
call fcn.00485fe0
add esp, 8
lea ecx, [esp + 0x18]
push str.WinDict
call fcn.004d3783
test eax, eax
jne 0x487166
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00494440
test eax, eax
je 0x487166
mov edi, dword [esp + 0x2a0]
cmp edi, ebx
je 0x4871f8
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x8c]
lea esi, [edi + 4]
push edx
push 0x104
mov ecx, esi
call fcn.004dc306
push eax
push ebx
push ebx
push ebp
call fcn.004bfb6f
add esp, 0x14
or ebp, 0xffffffff
mov ecx, esi
push ebp
call fcn.004dc356
lea eax, [esp + 0x8c]
mov ecx, esi
push eax
call fcn.004dc2b2
mov ecx, dword [esp + 0x10]
push edi
push ecx
call fcn.00485fe0
add esp, 8
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
call fcn.00494440
test eax, eax
jne 0x4871af
lea ecx, [esp + 0x18]
mov byte [esp + 0x294], 2
call fcn.004dbec1
lea ecx, [esp + 0x10]
mov byte [esp + 0x294], 1
call fcn.004dbec1
lea ecx, [esp + 0x20]
mov byte [esp + 0x294], bl
call fcn.00493be0
lea ecx, [esp + 0x14]
mov dword [esp + 0x294], ebp
call fcn.004dbec1
xor eax, eax
jmp 0x48723f
mov ecx, dword [esp + 0x10]
lea eax, [edi + 8]
push eax
push ecx
call fcn.00485fe0
add esp, 8
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
call fcn.00494440
test eax, eax
je 0x4871e3
mov eax, dword [esp + 0x10]
add edi, 0xc
push edi
push eax
call fcn.00485fe0
add esp, 8
mov ecx, dword [esp + 0x2a4]
cmp ecx, ebx
je 0x4871f8
lea edx, [esp + 0x14]
push edx
call fcn.004dc008
lea ecx, [esp + 0x18]
mov byte [esp + 0x294], 2
call fcn.004dbec1
lea ecx, [esp + 0x10]
mov byte [esp + 0x294], 1
call fcn.004dbec1
lea ecx, [esp + 0x20]
mov byte [esp + 0x294], bl
call fcn.00493be0
lea ecx, [esp + 0x14]
mov dword [esp + 0x294], ebp
call fcn.004dbec1
mov eax, 1
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x288
ret 0xc
Function at 0x48bdc0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5031b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x6c]
mov ax, word [esp + 0x78]
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1c], 0x44
mov word [esp + 0x4c], ax
mov dword [esp + 0x48], 1
call fcn.004dbf35
push 0x539d6c
lea ecx, [esp + 0x7c]
mov dword [esp + 0x68], 0
call fcn.004dc2b2
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x78]
push edx
call fcn.004dc2b2
mov edx, dword [esp + 0x74]
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x7c]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x48be70
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
lea ecx, [esp + 0x78]
mov dword [esp + 0x64], 0xffffffff
call fcn.004dbec1
mov ecx, dword [esp + 0x5c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret

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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5031d8
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x48c081
mov eax, dword [edi]
mov ecx, dword [eax - 8]
mov eax, dword [esp + 0x1c]
test ecx, ecx
jne 0x48bfba
test eax, eax
je 0x48c081
jmp 0x48bfbe
test eax, eax
je 0x48bfc6
push eax
mov ecx, edi
call fcn.004dc058
push 0x412
call fcn.004dbbfa
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov word [esi], 0
push 0x208
push esi
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push esi
call fcn.004c1932
add esp, 8
test eax, eax
je 0x48c009
mov word [eax + 2], 0
mov eax, dword [edi]
push eax
push esi
call fcn.004bf815
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48c050
push esi
mov ecx, edi
call fcn.004dc058
push esi
mov dword [esp + 0x14], 0xffffffff
call fcn.004dbc23
add esp, 4
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [edi]
push 0
push esi
push 0x104
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x48c021
mov ecx, edi
call fcn.004dbe49
push esi
mov dword [esp + 0x14], 0xffffffff
call fcn.004dbc23
add esp, 4
mov ecx, dword [esp + 8]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x48c390
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x503238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
push ebx
mov ebp, 2
call fcn.004bf93a
add esp, 4
cmp eax, ebp
mov dword [esp + 0x10], eax
jl 0x48c439
lea esi, [ebx + 4]
mov di, word [esi + 2]
add esi, 2
inc ebp
cmp di, 0x5c
je 0x48c3da
test di, di
jne 0x48c435
push ebx
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48c42a
mov eax, dword [0x574900]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
push ecx
push ebx
call fcn.0048c2a0
mov edx, dword [esp + 0x2c]
add esp, 8
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004dbec1
jmp 0x48c42e
test al, 0x10
je 0x48c451
mov eax, dword [esp + 0x10]
mov word [esi], di
cmp ebp, eax
jle 0x48c3c7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x48c520
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push edi
push 0
push 0x2000000
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48c549
xor eax, eax
pop edi
ret
push ebx
mov ebx, dword [esp + 0x10]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test ebx, ebx
mov esi, eax
jne 0x48c564
cmp esi, 0xffffffff
jne 0x48c564
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48c5ba
test al, 0x10
je 0x48c5ba
mov eax, 1
ret
xor eax, eax
ret
Function at 0x48c5c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x503258
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x574900]
push esi
push edi
mov dword [esp + 8], eax
push 0x106
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.004dc306
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004dc356
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 8]
push 0x208
mov ecx, edi
call fcn.004dc306
mov ecx, dword [esp + 0x1c]
push eax
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004dc356
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004dbec1
mov ecx, dword [esp + 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x48dae0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5033d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x574900]
push ebx
mov ebx, ecx
push esi
mov dword [esp + 8], ebx
lea esi, [ebx + 0x24]
mov dword [esi], eax
mov ecx, dword [0x574900]
mov dword [esp + 0x14], 0
mov dword [ebx + 0x28], ecx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x14], 1
test eax, eax
mov dword [ebx], 0x517c7c
jne 0x48db33
push 0x579318
jmp 0x48db34
push eax
mov ecx, esi
call fcn.004dc058
push edi
mov ecx, esi
call fcn.004d3cd7
mov eax, dword [esi]
mov edi, dword [eax - 8]
cmp edi, 3
jle 0x48db66
cmp word [eax + edi*2 - 2], 0x5c
jne 0x48db66
push edi
mov ecx, esi
call fcn.004dc306
dec edi
mov ecx, esi
push edi
call fcn.004dc356
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48dbab
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebp
test al, 0x10
je 0x48db82
cmp eax, 0xffffffff
jne 0x48dbaa
push 0x5c
mov ecx, esi
call fcn.004d3761
mov edi, eax
test edi, edi
jl 0x48dbaa
push edi
mov ecx, esi
call fcn.004dc306
push edi
mov ecx, esi
call fcn.004dc356
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x48db76
pop ebp
mov edx, dword [esp + 0x28]
lea esi, [ebx + 4]
xor eax, eax
mov ecx, 8
mov edi, esi
push eax
rep stosd dword es:[edi], eax
push edx
call fcn.004d9c6f
test eax, eax
pop edi
jne 0x48dbcd
mov dword [esi], eax
jmp 0x48dbd2
mov eax, dword [eax + 0x1c]
mov dword [esi], eax
mov edx, dword [esp + 0x20]
lea ecx, [ebx + 0x2c]
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0xc]
or edx, 0x44
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], str.Current_Selection
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], 0x48dc10
mov dword [ebx + 0x1c], ebx
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x48e810
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push esi
mov esi, dword [esp + 0x11c]
push edi
push str.unknown_Windows_version
mov ecx, esi
call fcn.004dc058
mov edi, dword [esp + 0x124]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x114
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x48e858
pop edi
pop esi
add esp, 0x114
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
and eax, 0xffff
cmp ecx, 1
jne 0x48e9a2
cmp dword [esp + 0xc], 4
jne 0x48eae2
mov ecx, dword [esp + 0x10]
cmp ecx, 0xa
jae 0x48e8fc
cmp eax, 0x3b6
jne 0x48e8a9
push str.Windows_95
mov ecx, esi
call fcn.004dc058
mov dword [edi], 1
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
jbe 0x48e8d2
cmp eax, 0x438
ja 0x48e8d9
push str.Windows_95_SP1
mov ecx, esi
call fcn.004dc058
mov dword [edi], 2
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
cmp eax, 0x438
jbe 0x48e8f9
push str.Windows_95_OSR2
mov ecx, esi
call fcn.004dc058
mov dword [edi], 3
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
cmp ecx, 0xa
jne 0x48e979
cmp eax, 0x7ce
jne 0x48e925
push str.Windows_98
mov ecx, esi
call fcn.004dc058
mov dword [edi], 4
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
jbe 0x48e94e
cmp eax, 0x887
jae 0x48e959
push str.Windows_98_SP1
mov ecx, esi
call fcn.004dc058
mov dword [edi], 5
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
cmp eax, 0x887
jb 0x48eae2
push str.Windows_98_SE
mov ecx, esi
call fcn.004dc058
mov dword [edi], 6
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
cmp ecx, 0x5a
jne 0x48eae2
push str.Windows_ME
mov ecx, esi
call fcn.004dc058
mov dword [edi], 7
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
cmp ecx, 2
jne 0x48eacb
mov eax, dword [esp + 0xc]
cmp eax, 3
jne 0x48e9df
cmp dword [esp + 0x10], 0x33
jne 0x48eae2
push str.Windows_NT_3.51
mov ecx, esi
call fcn.004dc058
mov dword [edi], 0x65
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
cmp eax, 4
jne 0x48ea04
push str.Windows_NT_4
mov ecx, esi
call fcn.004dc058
mov dword [edi], 0x66
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
cmp eax, 5
jne 0x48ea79
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x48ea31
push str.Windows_2000
mov ecx, esi
call fcn.004dc058
mov dword [edi], 0x67
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
cmp eax, 1
jne 0x48ea56
push str.Windows_XP
mov ecx, esi
call fcn.004dc058
mov dword [edi], 0x68
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
push str.Windows_2003
mov ecx, esi
cmp eax, 2
call fcn.004dc058
mov dword [edi], 0x69
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
cmp eax, 6
jne 0x48eae2
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x48eaa6
push str.Windows_Vista
mov ecx, esi
call fcn.004dc058
mov dword [edi], 0x6a
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
cmp eax, 1
jne 0x48eae2
push str.Windows_Vista
mov ecx, esi
call fcn.004dc058
mov dword [edi], 0x6b
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
cmp ecx, 3
jne 0x48eae2
push str.Windows_CE
mov ecx, esi
call fcn.004dc058
mov dword [edi], 0xc9
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret