joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407760
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43cb98
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x40]
xor ecx, ecx
mov word [esp + 0x14], cx
mov ecx, eax
mov ebx, edx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4077b5
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x14]
call fcn.00401400
mov dword [esp + 0x38], 0
push 1
mov eax, 0x448b5c
mov ecx, esi
call fcn.004047a0
mov ecx, eax
mov eax, ebx
lea esi, [eax + 2]
jmp 0x4077f0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4077f0
sub eax, esi
sar eax, 1
push eax
mov eax, ebx
call fcn.004047a0
cmp dword [esp + 0x28], 8
mov ecx, dword [esp + 0x14]
jae 0x407816
lea ecx, [esp + 0x14]
test edi, edi
je 0x407835
mov eax, edi
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x407820
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
jmp 0x407837
xor eax, eax
push 1
push eax
xor eax, eax
call fcn.0040ded0
add esp, 8
test eax, eax
sete bl
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x407865
mov edx, dword [esp + 0x14]
push edx
call fcn.004042ed
add esp, 4
xor eax, eax
mov word [esp + 0x14], ax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004042c0
add esp, 0x2c
ret

Function at 0x407fc0
Capabilities:
Access peb ldr_data
Get token privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43cffa
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
push 0x28
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4080a2
lea ecx, [esp + 0x14]
push ecx
call fcn.004134e0
mov dword [esp + 0x38], 0
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
sub edx, esi
jne 0x408035
call fcn.0042a2d1
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
sub eax, esi
push eax
push esi
push 3
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x408085
xor eax, eax
cmp dword [esi], eax
jbe 0x40806e
lea ecx, [esi + 0xc]
mov dword [ecx], 2
inc eax
add ecx, 0xc
cmp eax, dword [esi]
jb 0x408060
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0
push 0
push eax
push esi
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.00409930
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4083b0
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, eax
push 0
lea ecx, [esi + 0x90]
call fcn.004146e1
add esi, 0x9fc
push 5
mov ecx, esi
call fcn.004146e1
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x19
push 0x77
push eax
call edi
mov eax, dword [esi + 0x20]
push 0
push 0
push eax
push 0x4099f0
push 0
push 0
call fcn.00429bb1
mov ecx, dword [esi + 0x20]
add esp, 0x18
push 0
push 0x1388
push 0x75
push ecx
mov dword [esi + 0x74], eax
call edi
pop edi
pop esi
ret

Function at 0x408580
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor esi, esi
xor ebp, ebp
push edi
test ebx, ebx
jb 0x4085f6
ja 0x408599
cmp esi, dword [esp + 0x20]
jae 0x4085fa
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, ebx
sbb eax, ebp
test eax, eax
ja 0x4085b5
jb 0x4085b1
cmp ecx, 0x10000
jae 0x4085b5
mov edi, ecx
jmp 0x4085ba
mov edi, 0x10000
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push edi
lea edx, [esi + ecx]
push edx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4085f6
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x4085f6
add esi, eax
adc ebp, 0
cmp ebp, ebx
jb 0x408599
ja 0x4085f6
cmp esi, dword [esp + 0x20]
jb 0x408599
cmp esi, dword [esp + 0x20]
jne 0x408617
cmp ebp, ebx
jne 0x408617
or esi, ebp
je 0x40860f
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
Function at 0x40cf20
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43cb71
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0xc], ebx
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x44]
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
call fcn.00412340
mov dword [esp + 0x34], 1
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40cf80
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x14]
call fcn.004047a0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0xffffffffffffffff
mov word [esi + 4], cx
push ebx
mov ecx, esi
call fcn.00412340
mov dword [esp + 0xc], 1
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
jb 0x40cfd5
mov edx, dword [esp + 0x14]
push edx
call fcn.004042ed
add esp, 4
xor eax, eax
mov word [esp + 0x14], ax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x40d1a0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push 0x44a178
push SysReAllocString
xor bl, bl
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d1fc
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0x44a174
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x40d1fc
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov bl, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x40d20b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret
Function at 0x40dbe0
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x43c528
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov dword [esp + 0x4c], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 0xf003f
push 0
push 0
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x40dd25
mov eax, dword [esp + 0x54]
push 0x2c
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x40dd25
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea ecx, [esp + 0x14]
push ecx
push 0x24
lea edx, [esp + 0x28]
push edx
push 0
push esi
call edi
test eax, eax
je 0x40dd12
mov eax, dword [esp + 0x24]
cmp eax, 1
je 0x40dd25
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, 3
jne 0x40dcbe
mov eax, dword [esp + 0x38]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push 0x24
lea edx, [esp + 0x28]
push edx
push 0
push esi
call edi
test eax, eax
je 0x40dd0e
cmp dword [esp + 0x24], 1
je 0x40dd0e
call ebp
sub eax, dword [esp + 0x18]
cmp eax, 0x2bf20
ja 0x40dd0e
cmp dword [esp + 0x24], 3
je 0x40dc87
lea eax, [esp + 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40dd0e
cmp dword [esp + 0x24], 1
je 0x40dd0e
push 0x3e8
call ebx
lea ecx, [esp + 0x14]
push ecx
push 0x24
lea edx, [esp + 0x28]
push edx
push 0
push esi
call edi
test eax, eax
je 0x40dd0e
cmp dword [esp + 0x24], 1
je 0x40dd0e
call ebp
sub eax, dword [esp + 0x18]
cmp eax, 0x2bf20
ja 0x40dd0e
cmp dword [esp + 0x24], 1
jne 0x40dcd7
mov ebx, dword [esp + 0x1c]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0x54]
call fcn.0040c820
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x40ded0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, SysReAllocString
mov dword [esp + 4], 0
test ecx, ecx
je 0x40df0a
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40df60
mov eax, dword [esp + 4]
test edi, edi
je 0x40df35
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ecx
push edi
push edx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x40df53
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
ret
Function at 0x4125b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43d97c
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
xor eax, eax
mov dword [esp + 0x14], eax
xor ecx, ecx
push eax
mov ebx, 0x400
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], eax
mov word [esp + 0x24], cx
call fcn.00413360
mov dword [esp + 0x44], 1
mov eax, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x41262c
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x30]
push eax
dec edx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [esp + 0x34], esi
mov esi, dword [esp + 0x20]
jae 0x412647
lea esi, [esp + 0x20]
lea eax, [esp + 0x10]
push eax
call fcn.00409d60
mov byte [esp + 0x44], 2
push eax
push edi
mov ebx, ebp
call fcn.0041a420
add esp, 8
mov eax, 1
mov dword [esp + 0x14], eax
mov byte [esp + 0x44], al
lea ecx, [esp + 0x10]
push ecx
call fcn.004086c0
xor ebx, ebx
mov byte [esp + 0x44], bl
cmp dword [esp + 0x34], 8
jb 0x412693
mov edx, dword [esp + 0x20]
push edx
call fcn.004042ed
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
mov eax, edi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004042c0
add esp, 0x38
ret
Function at 0x412a50
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebx
xor ebx, ebx
push ebp
push edi
cmp dword [esi + 0x34], ebx
ja 0x412a64
cmp dword [esi + 0x30], 0x40
jbe 0x412b68
mov edi, dword [esi + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call ebp
test eax, eax
jne 0x412b6d
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x412b6d
mov byte [esi + 0x38], 1
mov eax, dword [edi + 0x3c]
mov edi, dword [esi + 0x34]
xor ecx, ecx
lea edx, [eax + 0xf8]
cmp edi, ecx
jb 0x412b68
ja 0x412aaf
mov ecx, dword [esi + 0x30]
cmp ecx, edx
jbe 0x412b68
mov edx, dword [esi + 0x28]
add eax, edx
push 0xf8
push eax
mov dword [esi + 0x24], eax
call ebp
test eax, eax
jne 0x412b6d
mov eax, dword [esi + 0x24]
cmp dword [eax], 0x4550
jne 0x412b6d
mov ecx, 0x2000
test word [eax + 0x16], cx
jne 0x412ae5
mov byte [esi + 0x44], 1
mov edx, eax
movzx eax, word [edx + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x412b01
mov dword [esi + 0x40], 1
add edx, 0x78
jmp 0x412b18
mov ecx, 0x20b
cmp ax, cx
jne 0x412b1b
mov dword [esi + 0x40], 2
add edx, 0x88
mov dword [esi + 0x20], edx
cmp dword [esi + 0x20], ebx
je 0x412b6d
mov eax, dword [esi + 0x24]
movzx ecx, word [eax + 6]
mov dword [esi + 0x3c], ecx
test ecx, ecx
je 0x412b6d
movzx edx, word [eax + 0x14]
mov ebx, dword [esi + 0x34]
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
sub ecx, dword [esi + 0x28]
add ecx, edx
lea edi, [ecx + eax + 0x18]
xor ecx, ecx
cmp ebx, ecx
jb 0x412b68
ja 0x412b56
mov ecx, dword [esi + 0x30]
cmp ecx, edi
jbe 0x412b68
pop edi
mov ebx, 1
lea edx, [edx + eax + 0x18]
pop ebp
mov eax, ebx
mov dword [esi + 0x1c], edx
pop ebx
ret
mov ebx, 2
pop edi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x412c40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x43ca28
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov dword [esp + 0x74], 0
push 0x44
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0042ace0
xor eax, eax
mov ecx, 1
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x88]
add esp, 0xc
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x48], ecx
mov word [esp + 0x4c], dx
cmp dword [eax - 4], ecx
jle 0x412cc8
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.0041b300
mov eax, dword [esp + 0x7c]
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x412cff
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0x7c]
call fcn.0040c820
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x70
ret
Function at 0x414ac0
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ee69
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
test esi, esi
jne 0x414b13
lea eax, [esp + 0x18]
push eax
call fcn.00413ff0
add esp, 4
mov dword [esp + 0x30], ebx
mov ebx, 1
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
call fcn.00403880
mov dword [esp + 0x30], 2
test bl, 1
je 0x414b3a
and ebx, 0xfffffffe
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.0040c820
mov eax, dword [ebp + 8]
test al, al
je 0x414be6
mov ecx, dword [esp + 0x10]
push ecx
push eax
call fcn.00406ae0
add esp, 8
test al, al
jne 0x414bf1
lea edx, [esp + 0x20]
push edx
mov ecx, 0x44944c
call fcn.00403880
mov byte [esp + 0x30], 3
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
mov ebx, eax
call fcn.004206b0
mov byte [esp + 0x38], 4
push eax
lea eax, [esp + 0x24]
push eax
mov ebx, str.___minimize
call fcn.00412b80
add esp, 0x10
mov byte [esp + 0x30], 6
lea ecx, [esp + 0x1c]
call fcn.0040c820
mov byte [esp + 0x30], 7
lea ecx, [esp + 0x20]
call fcn.0040c820
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push 0x448bc4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x18]
call fcn.0040c820
jmp 0x414c19
push esi
push 0
call fcn.00406ae0
add esp, 8
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push 0x448bc4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call esi
push 0x448bc4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040c820
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415185
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4151cc
call fcn.0041b479
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4151cc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4151e8
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040c6ec
mov esi, eax
test edi, edi
je 0x4151e6
test ebx, ebx
je 0x4151e6
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x415e80
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x43bf39
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], ebp
call fcn.004205a0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], 1
mov eax, esi
cmp dword [ebx + 4], ebp
je 0x415f7e
call fcn.00414530
test al, al
je 0x415f7c
mov eax, dword [esi]
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
push edi
push ecx
push edx
call fcn.0042aef0
mov eax, dword [esi]
mov edx, dword [ebx + 4]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], edi
mov eax, dword [eax]
push eax
push ebp
push 1
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
push edx
call ebp
test eax, eax
je 0x415f1f
mov edi, dword [esp + 0x28]
mov eax, esi
call fcn.00414530
jmp 0x415f7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x415f5e
mov edi, dword [esp + 0x28]
mov eax, esi
call fcn.00414530
test al, al
je 0x415f5e
mov eax, dword [esi]
mov eax, dword [eax]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x28]
push ecx
push eax
push 0
push 1
push 0
push edx
call ebp
test eax, eax
jne 0x415f7c
mov eax, esi
call fcn.004073f0
jmp 0x415f7c
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x415f7c
mov eax, dword [edi]
push 0
push eax
call fcn.00429ddd
add esp, 8
mov dword [edi], eax
mov dword [edi + 4], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 8

Function at 0x416530
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43e628
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.00403880
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0xc]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x416583
mov ecx, esi
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.0041b300
mov eax, dword [esp + 0xc]
lea ecx, [esi + esi]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push ecx
push eax
push 1
push str.InstallDir
push str.SoftwareAdvancedSystemRepairPro
push SysReAllocString
call esi
mov eax, dword [esp + 0xc]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x4165bf
mov edx, edi
push edx
lea eax, [esp + 0x10]
push eax
call fcn.0041b300
mov eax, dword [esp + 0xc]
lea ecx, [edi + edi]
push ecx
push eax
push 1
push str.InstallDir
push str.SoftwareAdvancedSystemRepairPro
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0040c820
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x417e50
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43c9f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], 1
jle 0x417e96
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0041b300
mov eax, dword [esp + 0x20]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x417ed9
mov eax, dword [esp + 0x1c]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.0040c820
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x418c50
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x43eaf8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x20]
push edi
call fcn.0041b1f0
mov dword [esp + 0x18], 0
lea eax, [esp + 0xc]
push eax
call fcn.00424290
add esp, 4
mov byte [esp + 0x18], 1
call fcn.0040e4c0
mov byte [esp + 0x18], 0
lea ecx, [esp + 0xc]
call fcn.0040c820
mov eax, dword [edi]
push eax
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418cbb
mov bl, 1
mov eax, dword [edi]
push 0
push 0
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x418cdf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x418d17
mov ecx, dword [edi]
call fcn.00401120
push 0
call fcn.00429c73
add esp, 4
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push ecx
mov ecx, 0x44a148
call fcn.00403880
mov byte [esp + 0x20], 2
push edi
mov byte [esp + 0x24], 0
call fcn.00411bd0
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x10
ret 4
Function at 0x418de0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push edi
call esi
test eax, eax
je 0x418e04
cmp dword [edi], 0
jne 0x418e1a
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push 0
push edi
call esi
cmp dword [edi], 0
je 0x418e47
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
lea esi, [esp + 0xc]
call fcn.0041a0c0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
lea ecx, [edi + 4]
push ecx
mov ecx, dword [edi]
push 0
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov eax, dword [edi + 4]
test eax, eax
je 0x418e7c
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push 0
lea edx, [esp + 0x1c]
push edx
mov ecx, 1
push 3
push eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call esi
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push 4
push ecx
call esi
pop esi
add esp, 0x10
ret 8