joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409a30
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x4c7738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [esp + 0x10]
call fcn.004ae142
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x18], ebx
mov esi, 0x4eafa0
mov eax, dword [esi]
cmp eax, ebx
je 0x409a7b
push eax
lea ecx, [esp + 0x10]
call fcn.004ab137
cmp eax, 0xffffffff
jne 0x409a89
add esi, 8
inc edi
cmp esi, str._DesktopSCDTBrowser
jb 0x409a66
jmp 0x409a90
mov ebx, dword [edi*8 + 0x4eafa4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.004ae0d4
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40b7a0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c79eb
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 4]
lea esi, [ebx + 4]
test eax, eax
jne 0x40b8bb
mov eax, dword [ebx + 8]
push ebp
push edi
mov edi, str.SDHelperMainDlg
test eax, eax
mov ebp, str.SDHELPERMAINDLG
je 0x40b7ea
mov edi, str.TATMainDlg
mov ebp, str.TATMAINDLG
lea ecx, [esp + 0x10]
call fcn.0043e130
push 0x20019
push str.softwareTECOcular.3ShareDataTSDS
push SysFreeString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x130], 0
call fcn.0043e250
test eax, eax
je 0x40b831
push 0
push edi
lea ecx, [esp + 0x18]
call fcn.0043e3f0
lea ecx, [esp + 0x10]
mov dword [esi], eax
call fcn.0043e2a0
mov eax, dword [esi]
test eax, eax
je 0x40b889
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b889
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
push 0x103
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push edx
call fcn.00418193
add esp, 0xc
test eax, eax
je 0x40b8a5
mov eax, dword [ebx + 8]
push esi
test eax, eax
je 0x40b898
push 0x40b970
jmp 0x40b89d
push 0x40ba70
push 0
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], 0xffffffff
call fcn.0043e1d0
pop edi
pop ebp
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x114]
pop esi
setne al
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x42dab0
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x42db09
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x42db09
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x42db10
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x42daed
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x42db0b
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x4335e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x433630
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x433630
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x433635
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x43361b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x433642
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x43e320
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x43e361
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x43e363
mov esi, edi
test esi, esi
je 0x43e3d8
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x43e3cd
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x43e3cd
cmp dword [esp + 0x1c], eax
jbe 0x43e39e
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x43e3cd
cmp esi, edi
je 0x43e3bf
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x43e3d8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x43e3f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x43e455
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x43e455
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x43e455
cmp dword [esp + 0x18], eax
jbe 0x43e43b
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x43e459
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x43e6f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4c9a4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x4eb18c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x43e75b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x43e75d
mov esi, edi
test esi, esi
je 0x43e827
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43e81c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x43e79f
cmp eax, 2
je 0x43e79f
cmp eax, 6
je 0x43e79f
cmp eax, 7
jne 0x43e81c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.004ade0f
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x43e802
lea ecx, [esp + 0x14]
call fcn.004ae25d
cmp esi, dword [esp + 0x14]
je 0x43e7f7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.004ade38
add esp, 4
jmp 0x43e839
call fcn.004ade38
add esp, 4
lea ecx, [esp + 0x10]
push 0x4fc7b4
call fcn.004ae25d
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x43e827
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x43e839
push eax
lea ecx, [esp + 0x14]
call fcn.004ae25d
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004ade49
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.004ae0d4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x43e980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x43e9b7
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x43e9ba
mov esi, dword [ebp + 8]
test esi, esi
je 0x43eb6b
call fcn.0045fab0
test eax, eax
je 0x43eaa4
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x43e9db
mov dword [ebp + 0x10], eax
jmp 0x43ea0e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.00419ad0
mov ecx, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp + 0x10], ebx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43eb5f
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x43ea48
cmp eax, 2
je 0x43ea48
cmp eax, 6
je 0x43ea48
cmp eax, 7
jne 0x43eb5f
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.004ade0f
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x43eb4a
mov ecx, dword [ebp + 0x18]
call fcn.0042f8a0
cmp esi, dword [ebp + 8]
je 0x43eb34
jmp 0x43eb2d
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43eb5f
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x43eade
cmp eax, 2
je 0x43eade
cmp eax, 6
je 0x43eade
cmp eax, 7
jne 0x43eb5f
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.004ade0f
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x43eb4a
mov ecx, dword [ebp + 0x18]
call fcn.0042f970
cmp esi, dword [ebp + 8]
je 0x43eb34
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004ade38
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.004ade38
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x4fc7b4
call fcn.0042f970
cmp esi, dword [ebp + 8]
je 0x43eb6b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x43f5b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c9b18
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x43f606
lea ecx, [ebp + 0x14]
lea edx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x43f609
mov esi, dword [ebp + 8]
test esi, esi
je 0x43f6ef
call fcn.0045fab0
test eax, eax
je 0x43f68a
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x43f625
xor ebx, ebx
jmp 0x43f655
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.00419ad0
mov eax, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [ebp + 0x18]
push edi
call fcn.00417ba8
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x43f6e3
cmp esi, dword [ebp + 8]
je 0x43f683
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x43f6f1
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.00429440
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [ebp + 0x10]
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x43f6d4
cmp esi, dword [ebp + 8]
je 0x43f6be
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00429c50
mov eax, 1
jmp 0x43f6f1
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00429c50
cmp esi, dword [ebp + 8]
je 0x43f6ef
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x440400
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x440578
mov eax, dword [esp + 0x10]
test eax, eax
je 0x440557
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x440456
mov eax, 0x104
mov dword [esp + 0x1c], eax
inc eax
push eax
call fcn.004ade0f
mov esi, eax
add esp, 4
test esi, esi
je 0x440578
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x44056f
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44056f
mov edi, dword [esp + 0x20]
test edi, edi
je 0x44056f
push ebp
push edi
call fcn.00440400
add esp, 8
test eax, eax
je 0x440564
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4fee54]
test eax, eax
je 0x440501
test ebp, ebp
je 0x440501
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x44056f
jmp 0x44050d
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x44056f
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x44054e
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x44056f
mov eax, dword [esp + 0x14]
jmp 0x4404aa
push esi
call fcn.004ade38
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x44056f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004ade38
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x440860
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x4fefd0]
sub esp, 0x114
test eax, eax
jne 0x4409ad
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
push 0x4fee68
mov dword [0x4fefd0], 1
mov dword [0x4fee68], 0x94
call esi
mov edx, dword [0x4fee78]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x4efbb0], eax
je 0x440988
push ebx
push 0x4fef00
mov dword [0x4fef00], 0x9c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x4fefc4], eax
call edi
mov dword [0x4fefc8], eax
mov eax, dword [0x4fefc4]
test eax, eax
push 0x4fefa0
je 0x440904
call eax
jmp 0x44090a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x4fef04]
cmp eax, 6
jae 0x440922
cmp eax, 5
jne 0x440936
cmp dword [0x4fef08], 2
jb 0x440936
cmp word [0x4fefa0], 9
jne 0x440936
mov dword [0x4fee5c], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x440954
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x4fefcc], edx
jmp 0x44095a
mov edx, dword [0x4fefcc]
test edx, edx
je 0x440988
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x440988
mov ecx, dword [esp + 0x14]
mov dword [0x4fee74], ecx
push 0x4fee70
push 0x4fee6c
call fcn.00440d50
add esp, 8
call fcn.004409c0
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x441c00
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2568
push 0x41f6f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x4fefd4]
xor ebx, ebx
cmp eax, ebx
jne 0x441d60
mov byte [ebp - 0x11c], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x441d5b
mov byte [ebp - 0x224], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x223]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.user32.dll
lea ecx, [ebp - 0x11c]
push ecx
push str._s_s
lea edx, [ebp - 0x224]
push edx
call fcn.0041841f
add esp, 0x10
mov dword [ebp - 0x22c], ebx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x120], eax
push eax
call fcn.004ade0f
add esp, 4
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, ebx
je 0x441d5b
push esi
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x441d52
mov dword [ebp - 0x230], ebx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x230]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x441d52
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov ecx, dword [eax]
mov dword [0x4fefd4], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x441d52
push esi
call fcn.004ade38
add esp, 4
mov eax, dword [0x4fefd4]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x449240
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0x4f09bc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x44938f
cmp eax, 0x104
jae 0x44938f
push ebp
lea ecx, [esp + 8]
push esi
push ecx
call fcn.004436c0
add esp, 4
test eax, eax
je 0x449302
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x110]
push 0x104
lea eax, [esp + 0x10]
push edx
push eax
call fcn.004432b0
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 0x104
jge 0x449302
lea ecx, [esp + 0x110]
push esi
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00417db0
add esp, 0xc
mov byte [esp + esi + 0xc], 0
mov ebp, dword [esp + 0x218]
test ebp, ebp
je 0x449380
mov edx, dword [esp + 0x21c]
test edx, edx
je 0x449380
lea eax, [esp + 0xc]
test eax, eax
je 0x449380
mov eax, dword [esp + 0x220]
test eax, eax
je 0x44934f
lea ecx, [esp + 0xc]
push eax
push ecx
push str._s_s
push edx
push ebp
call fcn.00418571
add esp, 0x14
mov eax, 1
pop esi
pop ebp
pop edi
add esp, 0x208
ret
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jbe 0x449380
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop ebp
mov eax, 1
pop edi
add esp, 0x208
ret
xor eax, eax
pop edi
add esp, 0x208
ret

Function at 0x44aa50
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x44aa71
push 0x57
mov dword [0x4ff048], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call edi
test eax, eax
jne 0x44aaa2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44aaa2
test al, 0x10
jne 0x44aaa2
test al, 1
je 0x44aa6c
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret