joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44eeb0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x495873
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00488efd
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048e595
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048fab1
test eax, eax
je 0x44efcc
mov ecx, dword [esp + 0x3c]
call fcn.0048e5c2
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44ef90
push edi
mov ecx, esi
call fcn.0048bc2b
mov ecx, esi
call fcn.0044f130
cmp dword [esp + 0x38], 1
jne 0x44efc5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048bd66
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4519f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x451a23
push esi
call fcn.00454ae0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x451a1c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x451aa9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x451a92
mov eax, dword [esi + 8]
test eax, eax
je 0x451a47
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x451a8e
cmp eax, 2
je 0x451a92
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x451a3a
cmp eax, 3
je 0x451a6d
cmp eax, 1
jne 0x451a3a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x451a3a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x451a3a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00451ad0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x451ab8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00451ad0
add esp, 4
pop esi
ret

Function at 0x462980
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x517090]
xor edx, edx
cmp eax, edx
jne 0x4629a6
xor eax, eax
mov byte [eax + 0x516f90], al
inc eax
cmp eax, 0x100
jl 0x46298e
mov dword [0x517090], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x516f90
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x462a37
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x462a0a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4629d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x462ab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x462b03
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x462aea
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4694c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x495d2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00469de0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4c6314
call fcn.00487665
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x469553
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00487665
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x46954c
push 0
mov ecx, eax
call fcn.004605c0
mov dword [esi + 0xc], eax
jmp 0x469555
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x469555
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x489cf2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x489d2a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00487d7f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00487d57
jmp 0x489d36
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48b3e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48b42a
call fcn.00490e9c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x48b42a
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x48b421
xor eax, eax
jmp 0x48b432
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048b438
pop edi
pop esi
pop ebx
ret 4
Function at 0x4913cc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4913fa
push dword [esi]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x491418
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00491332
jmp 0x491418
mov eax, dword [esi + 0x14]
test eax, eax
je 0x491418
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00491332
test edi, edi
mov eax, edi
jne 0x491402
pop edi
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x8b3f40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x223000]
push edi
or ebp, 0xffffffff
jmp 0x8b3f62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8b3f69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8b3f58
mov eax, 1
add ebx, ebx
jne 0x8b3f7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8b3f8c
jne 0x8b3fab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8b3fab
dec eax
add ebx, ebx
jne 0x8b3f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8b3f70
add ebx, ebx
jne 0x8b3fa7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8b3ffd
xor ecx, ecx
sub eax, 3
jb 0x8b3fc3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8b4032
sar eax, 1
mov ebp, eax
jmp 0x8b3fce
add ebx, ebx
jne 0x8b3fce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8b3f9c
inc ecx
add ebx, ebx
jne 0x8b3fdc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8b3f9c
add ebx, ebx
jne 0x8b3fe9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8b3fde
jne 0x8b3ffa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8b3fde
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8b401c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8b400e
jmp 0x8b3f5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8b401c
add edi, ecx
jmp 0x8b3f5e
pop esi
mov edi, esi
mov ecx, 0x7287
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8b403a
cmp byte [edi], 0x13
jne 0x8b403a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x8b403f
lea edi, [esi + 0x4b0000]
mov eax, dword [edi]
or eax, eax
je 0x8b40b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x50f93c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x50fa54]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8b406c
mov ecx, edi
jns 0x8b409b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x50fa58]
or eax, eax
je 0x8b40b1
mov dword [ebx], eax
add ebx, 4
jmp 0x8b4089
call dword [esi + 0x50fa68]
mov ebp, dword [esi + 0x50fa5c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x8b40eb
sub esp, 0xffffff80
jmp 0x4dec39
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00409c90
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00409c90
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00409c90
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00409c90
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00409c90
mov dword [0x41203c], eax
call fcn.00409c90
test eax, eax
jge 0x402550
push 8
call fcn.00409c90
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00409c90
pop ecx
push 1
call fcn.00409c90
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00409c90
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00409c90
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00409c90
jmp 0x402495

Function at 0x409c90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x409c9f
pop dword [ebp - 0x20]
mov eax, 0x3d3a1724
sub eax, 0x3cf97a85
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x36282
push 0
mov eax, 0xca5f0adc
sub eax, 0xca1e2a04
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x50a2a30e
sub ecx, 0x50a26739
xor edi, edi
add edi, eax
mov ebx, 0x413bc4
add ebx, dword [ebp - 0x20]
mov edx, 0xc073c9a0
add edx, 0xdbc643f0
mov dword [ebp - 8], 0x86e03ef5
mov esi, dword [ebx]
sub dword [ebp - 0xc], ecx
add esi, edx
xor dword [ebp - 4], esi
mov dword [edi], esi
sub dword [ebp - 0x10], ecx
add edi, 0xebb5812c
sub edi, 0xebb58128
add ebx, 0x8c096626
add ebx, 0x73f699de
loop 0x409cfa
add eax, 0xe227
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x401cb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4072a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x40bfec]
test eax, eax
jne 0x401d5b
push esi
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_1
push 0x514
push 0x514
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 8]
call fcn.00406cf2
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401d42
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x401d42
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x40bfec], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00406b30
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401d70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x51c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x401dd2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x514
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x52c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x51c
ret

Function at 0x401fe0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xa28
push ebx
mov ebx, dword [esp + 0xa34]
push ebp
mov ebp, dword [esp + 0xa34]
push esi
push edi
push ebx
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4020cb
lea eax, [esp + 0x10]
push eax
push str..htm
push 0x80000000
call fcn.00401d70
add esp, 0xc
test eax, eax
jne 0x4020cb
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push 0x80000000
call fcn.00401d70
add esp, 0xc
test eax, eax
jne 0x4020cb
lea ecx, [esp + 0x10]
push 0x40b36c
push ecx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4020a5
lea edx, [esp + 0x10]
push 0x40b368
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4020a5
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4020a8
mov byte [esi], 0
push 0x40b364
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa28
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa28
ret
Function at 0x402f60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1968
call fcn.00406e80
mov edx, dword [esp + 0x196c]
push ebx
test edx, edx
push edi
je 0x403037
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jb 0x403037
mov ecx, 0x145
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x514
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jne 0x402ffc
cmp byte [esp + 9], 0x3a
jne 0x403037
mov edi, 0x40b034
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40300c
lea eax, [esp + ecx + 7]
mov cl, byte [esp + ecx + 7]
cmp cl, 0x5c
jne 0x40300c
mov byte [eax], 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x403037
test bl, 0x10
je 0x403037
pop edi
mov eax, 1
pop ebx
add esp, 0x1968
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x1968
ret

Function at 0x4033f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x403418
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add esp, 0xc
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.HcNetState
push ecx
mov dword [esp + 0x1c], 0x514
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403456
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret
Function at 0x405270
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
lea eax, [esp + 0x10]
push eax
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40529a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
add esp, 8
ret 0xc
mov eax, dword [esp + 0xc]
lea edx, [esp]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x18], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4052da
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 8
ret 0xc
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 8
ret 0xc

Function at 0x405350
Capabilities:
Check os version

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor ecx, ecx
mov cl, ah
test cl, cl
jne 0x405367
cmp al, 5
mov eax, 1
je 0x40536c
mov eax, 2
ret

Function at 0x405810
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x405834
xor eax, eax
add esp, 0xc
ret 4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.ProgramFilesDir
push ecx
mov dword [esp + 0x1c], 0x514
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405874
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xc
ret 4
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret 4
Function at 0x405900
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x407688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x68]
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Left
mov edi, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x34], 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b034
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, 0xa
call fcn.00406f00
mov esi, eax
lea ecx, [ebx + 0x64]
push esi
push 0x40bdb0
push ecx
call sub.MFC42.DLL_CString::Format
lea eax, [esi - 0xb40]
add esp, 0xc
cdq
mov dword [ebx + 0x70], eax
mov eax, edx
test eax, eax
mov dword [ebx + 0x74], edx
jg 0x4059fb
jl 0x4059ed
mov eax, dword [ebx + 0x70]
test eax, eax
jae 0x4059fb
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov edx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x70]
push edx
push eax
lea ecx, [ebx + 0x60]
push 0x40bdb0
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebx + 0x70]
mov eax, dword [ebx + 0x74]
add esp, 0x10
or edx, eax
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 0xc]
pop edi
pop esi
pop ebx
jne 0x405a43
call fcn.00406b30
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
call fcn.00406b30
mov ecx, dword [esp + 0x20]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x2c
ret