joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402696
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x571268]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0xb0
mov eax, 0x50f0c0
call fcn.004ec6fd
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
call fcn.00407257
xor ebx, ebx
mov dword [ebp - 4], edi
inc ebx
push 0x525140
lea esi, [ebp - 0x84]
mov dword [ebp - 0x14], ebx
call fcn.004076aa
push str.PARTNER_NAME
lea esi, [ebp - 0x4c]
mov dword [ebp - 4], ebx
call fcn.004076aa
push str.General
lea esi, [ebp - 0xbc]
mov byte [ebp - 4], 2
call fcn.004076aa
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x1c]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00423241
add esp, 0xc
push edi
push ebx
call fcn.0040754f
push edi
push ebx
lea esi, [ebp - 0x4c]
call fcn.0040754f
push edi
push ebx
lea esi, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.0040754f
push 0x525140
lea esi, [ebp - 0xa0]
call fcn.004076aa
push str.VERSION
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 8
call fcn.004076aa
push str.General
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 9
call fcn.004076aa
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.00423241
add esp, 0xc
push edi
push ebx
call fcn.0040754f
push edi
push ebx
lea esi, [ebp - 0x68]
call fcn.0040754f
push edi
push ebx
lea esi, [ebp - 0xa0]
mov byte [ebp - 4], 0xe
call fcn.0040754f
xor eax, eax
mov word [ebp + 0x38], ax
lea eax, [ebp + 0x38]
push eax
push edi
push edi
push 0x23
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, edi
jne 0x4027de
lea eax, [ebp + 0x38]
push eax
push dword [ebp - 0x10]
call fcn.00407685
mov esi, 0x524c94
push esi
push dword [ebp - 0x10]
call fcn.0040512d
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x1c]
call fcn.00404feb
push esi
push dword [ebp - 0x10]
call fcn.0040512d
push 0x524c98
push dword [ebp - 0x10]
call fcn.0040512d
push esi
push dword [ebp - 0x10]
call fcn.0040512d
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push edi
lea eax, [ebp]
call fcn.00404feb
push esi
push dword [ebp - 0x10]
call fcn.0040512d
push str.avg.crx
push dword [ebp - 0x10]
call fcn.0040512d
push edi
push ebx
lea esi, [ebp]
call fcn.0040754f
push edi
push ebx
lea esi, [ebp + 0x1c]
call fcn.0040754f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.004e6e1c
add ebp, 0x244
leave
ret
Function at 0x4119d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4119ef
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x411a24
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x411a20
cmp edi, eax
jae 0x411a24
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x411a12
cmp edi, eax
jb 0x411a28
xor eax, eax
jmp 0x411a31
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x411cdd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x411cec
xor al, al
jmp 0x411d45
push dword [ebp + 8]
lea ecx, [esi + 0x28]
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, 0x20019
call fcn.00411b36
test eax, eax
jne 0x411ce8
push ebx
lea ebx, [esi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x24], eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x411d4a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
mov dword [esi + 0x20], eax
mov byte [esi + 0xa0], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop ebx
pop edi
pop ebp
ret 4
Function at 0x4121d7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50ed7f
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x571268]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x571268]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor edi, edi
inc edi
mov ecx, edi
call fcn.0040d9b3
xor esi, esi
cmp eax, esi
je 0x412226
lea ecx, [esp + 0x20]
mov dword [eax], ecx
jmp 0x412228
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x80], esi
call fcn.00412538
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x84], edi
call fcn.00420984
xor edi, edi
pop ecx
cmp dword [esp + 0x38], esi
je 0x41225e
mov edi, dword [esp + 0x38]
cmp edi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
jle 0x41232f
cmp dword [esp + 0x38], 0
je 0x41232f
mov eax, dword [esp + 0x34]
and dword [esp + 0x1c], 0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x3c]
mov dword [esp + 0x3c], eax
call fcn.00412550
mov esi, eax
mov eax, dword [esi]
test eax, eax
jne 0x4122aa
call fcn.004e734e
mov eax, dword [esi]
test eax, eax
je 0x4122ae
mov eax, dword [eax]
jmp 0x4122b0
xor eax, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [eax + 0x14]
jne 0x4122bd
call fcn.004e734e
mov eax, dword [esi + 4]
add eax, 8
push eax
lea esi, [esp + 0x58]
call fcn.00405639
mov eax, dword [esp + 0x34]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x44]
mov dword [esp + 0x44], eax
call fcn.00412550
push dword [eax + 4]
lea ebx, [esp + 0x24]
push dword [eax]
lea eax, [esp + 0x54]
push eax
call fcn.004124c0
lea esi, [esp + 0x1c]
lea eax, [esp + 0x54]
call fcn.00412418
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x14]
jbe 0x412314
mov dword [esp + 0x14], eax
push 0
push 1
lea esi, [esp + 0x5c]
call fcn.0040754f
inc dword [esp + 0x18]
cmp dword [esp + 0x18], edi
jl 0x41226e
mov eax, dword [esp + 0x34]
mov ebx, dword [eax]
mov dword [eax], eax
mov eax, dword [esp + 0x34]
mov dword [eax + 4], eax
and dword [esp + 0x38], 0
cmp ebx, dword [esp + 0x34]
je 0x412366
mov edi, dword [ebx]
push 0
push 1
lea esi, [ebx + 8]
call fcn.0040754f
push ebx
call fcn.004e6e11
pop ecx
mov ebx, edi
cmp edi, dword [esp + 0x34]
jne 0x412349
push dword [esp + 0x34]
call fcn.004e6e11
and dword [esp + 0x38], 0
pop ecx
push dword [esp + 0x20]
call fcn.004e6e11
mov eax, dword [esp + 0x18]
pop ecx
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004e6e1c
mov esp, ebp
pop ebp
ret
Function at 0x412418
Capabilities:
Get file size

Disassembly:
push ebx
xor ebx, ebx
mov dword [esi], ebx
cmp dword [eax + 0x18], 8
jb 0x412428
mov eax, dword [eax + 4]
jmp 0x41242b
add eax, 4
push edi
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41244d
xor al, al
jmp 0x412460
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esi]
pop edi
cmp ecx, ebx
jbe 0x412470
cmp al, bl
je 0x412470
shr ecx, 0xa
mov dword [esi], ecx
pop ebx
ret

Function at 0x412630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412694
cmp dword [ebp + 0xc], 1
je 0x41266c
cmp dword [ebp + 0xc], 2
je 0x41266c
push 0xd
pop eax
jmp 0x412694
mov eax, dword [ebp - 4]
test edi, edi
je 0x41268e
test eax, eax
je 0x412689
test al, 1
jne 0x412667
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x41268e
jmp 0x412667
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x412698
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test edi, edi
je 0x4126aa
cmp dword [esi], 2
jae 0x4126aa
push 0x7a
pop eax
jmp 0x41270b
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41270b
cmp dword [ebp + 0xc], 7
je 0x4126db
push 0xd
jmp 0x4126a7
mov ecx, dword [ebp - 4]
test edi, edi
je 0x412705
test cl, 1
jne 0x4126d7
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x4126d7
cmp word [edi + eax*2 - 2], 0
jne 0x4126d7
cmp eax, 1
jbe 0x412705
cmp word [edi + eax*2 - 4], 0
jne 0x4126d7
shr ecx, 1
mov dword [esi], ecx
xor eax, eax
leave
ret 8
Function at 0x4154be
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x14], 0
jne 0x4154cd
push 0xd
pop eax
leave
ret
and dword [ebp - 4], 0
cmp dword [eax + 0x1c], 8
jb 0x4154dc
mov ecx, dword [eax + 8]
jmp 0x4154df
lea ecx, [eax + 8]
push edi
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
push ecx
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x415523
cmp dword [ebp - 4], eax
je 0x415523
cmp dword [esi + 0x18], 8
jb 0x41550b
mov eax, dword [esi + 4]
jmp 0x41550e
lea eax, [esi + 4]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret
Function at 0x415ab2
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x505b5d
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x571268]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov eax, dword [0x571268]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
push ecx
push eax
mov eax, 0x20019
lea ecx, [esp + 0x18]
mov dword [esp + 0x260], ebx
call fcn.00411b36
cmp eax, ebx
je 0x415b52
mov ebx, 0x3e80
lea esi, [esp + 0x10]
call fcn.00411b1f
mov eax, ebx
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.004e6e1c
mov esp, ebp
pop ebp
ret
xor edi, edi
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x58]
push eax
push edi
push dword [esp + 0x2c]
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x415bb8
cmp eax, ebx
jne 0x415bb5
lea eax, [esp + 0x44]
push eax
lea esi, [esp + 0x2c]
call fcn.004076aa
mov eax, esi
push eax
mov eax, dword [esp + 0x20]
mov byte [esp + 0x25c], 1
call fcn.0041812b
push ebx
push 1
mov byte [esp + 0x260], bl
call fcn.0040754f
inc edi
jmp 0x415b54
lea esi, [esp + 0x10]
call fcn.00411b1f
jmp 0x415b23

Function at 0x415bc6
Capabilities:
Encrypt data using dpapi
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SoftwareMicrosoftInternet_ExplorerUser_Preferences
push SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x415c69
mov eax, edi
mov dword [ebp - 0x14], edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x415bff
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x415c3c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x415c69
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 3
push esi
push str.88D7D0879DAB32E14DE5B3A805A34F98AFF34F5977
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x41614d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x505b19
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x571268]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x571268]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList_
lea esi, [esp + 0x44]
mov dword [esp + 0x24], eax
call fcn.004076aa
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x270], ebx
push 0x1fc
mov word [esp + 0x60], ax
lea eax, [esp + 0x62]
push ebx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
call fcn.004ef370
mov eax, dword [esp + 0x50]
add esp, 0xc
cmp dword [esp + 0x58], 8
mov dword [esp + 0x1c], 0xff
mov dword [esp + 0x14], ebx
jae 0x4161e8
lea eax, [esp + 0x44]
lea ecx, [esp + 0x10]
push ecx
push 8
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x416236
xor edi, edi
push ebx
push 1
lea esi, [esp + 0x48]
call fcn.0040754f
mov eax, edi
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.004e6e1c
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x70]
push eax
push ebx
jmp 0x4162bb
lea eax, [esp + 0x5c]
push eax
call fcn.004162dc
test al, al
je 0x41628e
lea eax, [esp + 0x5c]
push eax
lea esi, [esp + 0x28]
call fcn.004076aa
push eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x274], 1
call fcn.0041812b
push ebx
push 1
mov byte [esp + 0x278], bl
call fcn.0040754f
inc dword [esp + 0x14]
inc dword [esp + 0x18]
mov ecx, 0x1fe
lea eax, [esp + 0x5c]
mov byte [eax], bl
inc eax
dec ecx
jne 0x41629b
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x30]
mov dword [esp + 0x38], 0xff
push dword [esp + 0x2c]
call edi
test eax, eax
je 0x41624d
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
jmp 0x416202
Function at 0x4164c3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x25c
mov eax, 0x50a805
call fcn.004ec766
mov edi, ecx
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList_
lea esi, [ebp - 0x238]
mov dword [ebp - 0x264], edi
call fcn.004076aa
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x416512
mov byte [ebp - 0x255], bl
push ebx
push 1
lea esi, [ebp - 0x238]
call fcn.0040754f
mov al, byte [ebp - 0x255]
jmp 0x41669d
push edi
call fcn.0041648e
cmp al, bl
je 0x416525
mov byte [ebp - 0x255], 1
jmp 0x4164f9
push 0x527b90
call fcn.004166a3
test al, al
je 0x41668d
push str.SeBackupPrivilege
call fcn.004166a3
test al, al
je 0x41668d
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
mov dword [ebp - 0x25c], ebx
call fcn.004ef370
add esp, 0xc
push edi
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x268], 0x104
call fcn.0040512d
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x416599
lea eax, [ebp - 0x234]
lea ecx, [ebp - 0x25c]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4164f3
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x260]
push eax
push ebx
push str.ProfileImagePath
push dword [ebp - 0x25c]
xor edi, edi
inc edi
mov dword [ebp - 0x260], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x25c]
cmp eax, ebx
je 0x416605
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x25c], ebx
jmp 0x4164f3
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x21c]
push eax
lea esi, [ebp - 0x254]
mov dword [ebp - 0x25c], ebx
call fcn.004076aa
push str.NTUSER.DAT
mov eax, esi
push eax
mov byte [ebp - 4], 1
call fcn.0040512d
mov ecx, esi
call fcn.004173e9
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x416650
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x264]
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
push ebx
test eax, eax
push edi
lea esi, [ebp - 0x254]
setne byte [ebp - 0x255]
call fcn.0040754f
push ebx
push edi
lea esi, [ebp - 0x238]
call fcn.0040754f
mov al, byte [ebp - 0x255]
jmp 0x41669d
push ebx
push 1
lea esi, [ebp - 0x238]
call fcn.0040754f
xor al, al
call fcn.004ec7e9
ret
Function at 0x41a135
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x144
mov eax, dword [0x571268]
xor eax, ebp
mov dword [ebp + 0x74], eax
push edi
push 9
pop ecx
xor eax, eax
push 0x11c
lea edi, [ebp - 0xcc]
push eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004ef370
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop edi
test eax, eax
je 0x41a26d
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41a1b3
lea ecx, [ebp - 0xcc]
push ecx
call eax
jmp 0x41a1c0
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 2
pop ecx
cmp dword [ebp - 0x98], ecx
jne 0x41a26d
cmp dword [ebp - 0xa4], 4
jbe 0x41a26d
cmp dword [ebp - 0xa4], 6
jne 0x41a227
xor eax, eax
cmp dword [ebp - 0xa0], eax
jne 0x41a1fa
cmp byte [ebp + 0x72], 1
setne al
add eax, ecx
jmp 0x41a26f
inc eax
cmp dword [ebp - 0xa0], eax
jne 0x41a212
xor ecx, ecx
cmp byte [ebp + 0x72], al
sete cl
add ecx, 4
mov eax, ecx
jmp 0x41a26f
cmp dword [ebp - 0xa0], ecx
jne 0x41a26d
xor ecx, ecx
cmp byte [ebp + 0x72], al
sete cl
add ecx, 6
jmp 0x41a20e
cmp dword [ebp - 0xa4], 5
jne 0x41a26d
cmp dword [ebp - 0xa0], ecx
jne 0x41a26d
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x41a249
xor eax, eax
inc eax
jmp 0x41a26f
test dword [ebp + 0x70], 0x2000
jne 0x41a244
xor eax, eax
inc eax
test dword [ebp + 0x70], 0x8000
jne 0x41a26f
cmp byte [ebp + 0x72], al
jne 0x41a26f
cmp word [ebp - 0xcc], 9
jne 0x41a26f
xor eax, eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.004e6e1c
add ebp, 0x78
leave
ret
Function at 0x41ce10
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x571268]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
mov eax, dword [ebp + 0x1bc]
push ebx
xor ebx, ebx
mov dword [ebp - 0x80], eax
cmp eax, ebx
je 0x41cea0
xor ecx, ecx
cmp cx, word [eax]
je 0x41cea0
push edi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x22c
mov edi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.004ef370
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push edi
mov dword [ebp - 0x7c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
push dword [ebp - 0x80]
lea eax, [ebp - 0x58]
push eax
call fcn.004e856c
pop ecx
pop ecx
test eax, eax
je 0x41ce92
lea eax, [ebp - 0x7c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41ce70
jmp 0x41ce94
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
jmp 0x41cea2
xor al, al
mov ecx, dword [ebp + 0x1b0]
xor ecx, ebp
pop ebx
call fcn.004e6e1c
add ebp, 0x1b4
leave
ret
Function at 0x4223e2
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x505b93
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x571268]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0xc], esi
call fcn.0041a135
test eax, eax
jne 0x42244b
lea eax, [esp + 0x10]
push str.USERPROFILE
push eax
call fcn.0041f51b
push str.Local_SettingsApplication_Data
push eax
push edi
mov dword [esp + 0x4c], esi
call fcn.00404a80
add esp, 0x14
push esi
push 1
lea esi, [esp + 0x18]
call fcn.0040754f
jmp 0x422458
push str.LOCALAPPDATA
push edi
call fcn.0041f51b
pop ecx
pop ecx
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42246b
Capabilities:
Check if file exists

Disassembly:
push 0x44
mov eax, 0x513b0a
call fcn.004ec766
lea eax, [ebp - 0x2c]
push eax
mov edi, ecx
call fcn.00415c6c
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
jne 0x4224a0
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.0040754f
xor al, al
call fcn.004ec7e9
ret
lea eax, [ebp - 0x4c]
push str.ProgramFiles
push eax
call fcn.0041f51b
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00407341
push ebx
push 1
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.0040754f
cmp dword [edi + 0x14], ebx
je 0x42248d
push 0x524c94
push edi
call fcn.0040512d
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
mov ecx, edi
call fcn.00404feb
push 0x528ab0
push edi
call fcn.0040512d
cmp dword [edi + 0x18], 8
jb 0x4224ff
mov edi, dword [edi + 4]
jmp 0x422502
add edi, 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x422523
mov byte [ebp - 0x2d], bl
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.0040754f
mov al, byte [ebp - 0x2d]
jmp 0x42249a
mov byte [ebp - 0x2d], 1
jmp 0x422510