joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410c50
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43eaa9
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, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
push 0x23
mov dword [esp + 0x14], 0
call fcn.00405920
add esp, 4
mov dword [esp + 0x1c], 0
push 0xd
push 0x448b60
push edi
mov dword [esp + 0x1c], 1
call fcn.0041ba70
mov eax, dword [edi]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x410cd2
mov eax, dword [edi]
push 0
push eax
call esi
mov ecx, dword [edi]
call fcn.0041bbb0
push 3
push 0x449b2c
push edi
call fcn.0041ba70
mov eax, dword [edi]
push eax
call ebp
test eax, eax
jne 0x410cf6
mov eax, dword [edi]
push 0
push eax
call esi
mov ecx, dword [edi]
call fcn.0041bbb0
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret

Function at 0x410ef0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43bc78
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor ebx, ebx
mov byte [esp + 0xf], bl
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x410f38
push eax
call edi
mov dword [esp + 0x10], ebx
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x44a178
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x410f9b
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x410f60
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push esi
push 1
push 0x44a338
push ebx
push edx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp eax, ebx
jne 0x410f9b
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov byte [esp + 0xf], 1
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x410fae
push eax
call edi
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x410ff0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43c928
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 0x411036
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00415df0
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 0x411079
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.0040c520
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x411930
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43e558
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.00422f00
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0xc]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x411983
mov ecx, esi
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00415df0
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 0x4119bf
mov edx, edi
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00415df0
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.0040c520
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x411df0
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x43c458
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 0x411f35
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 0x411f35
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 0x411f22
mov eax, dword [esp + 0x24]
cmp eax, 1
je 0x411f35
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, 3
jne 0x411ece
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 0x411f1e
cmp dword [esp + 0x24], 1
je 0x411f1e
call ebp
sub eax, dword [esp + 0x18]
cmp eax, 0x2bf20
ja 0x411f1e
cmp dword [esp + 0x24], 3
je 0x411e97
lea eax, [esp + 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x411f1e
cmp dword [esp + 0x24], 1
je 0x411f1e
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 0x411f1e
cmp dword [esp + 0x24], 1
je 0x411f1e
call ebp
sub eax, dword [esp + 0x18]
cmp eax, 0x2bf20
ja 0x411f1e
cmp dword [esp + 0x24], 1
jne 0x411ee7
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.0040c520
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 0x412870
Capabilities:
Create process on windows
Terminate process

Disassembly:
cmp byte [0x45a376], 0
mov byte [0x45a374], 1
push 1
je 0x412891
mov eax, dword [0x45a3b0]
push 0
push 0x4485d8
push eax
jmp 0x4128a1
mov ecx, dword [0x45a4b0]
mov edx, dword [0x45a3b0]
push ecx
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
cmp byte [0x45a376], 0
je 0x4128cc
push 0xbb8
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x412dc0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43caa1
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.004158b0
mov dword [esp + 0x34], 1
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x412e20
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x14]
call fcn.0041b720
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.004158b0
mov dword [esp + 0xc], 1
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
jb 0x412e75
mov edx, dword [esp + 0x14]
push edx
call fcn.0041cf38
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 0x412f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x412f19
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x412f54
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x412f50
lea ebx, [ebx]
cmp esi, eax
jae 0x412f54
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x412f40
cmp esi, eax
jb 0x412f5a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x413aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43e522
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
mov dword [esp + 0x10], 0
push ecx
mov dword [esp + 0x1c], esi
mov word [esp + 0x20], ax
call fcn.0042ac10
add esp, 0xc
lea edx, [esp + 4]
push edx
xor edx, edx
cmp byte [esp + 0x234], dl
lea eax, [esp + 0x18]
push eax
setne dl
lea ecx, [esp + 0x14]
push ecx
push str.InstallDir
push str.SoftwareAdvancedSystemRepairPro
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0x104
add edx, 0x80000001
push edx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [esp + 4]
xor ecx, ecx
shr eax, 1
mov word [esp + eax*2 + 0x14], cx
push esi
lea ecx, [esp + 0x18]
call fcn.00422f00
mov dword [esp + 0x228], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00421490
add esp, 0x228
ret

Function at 0x413f70
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43e9e9
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
push 0x23
mov dword [esp + 0xc], 0
call fcn.00405920
add esp, 4
mov dword [esp + 0x14], 0
push 0xd
push 0x448b60
push edi
mov dword [esp + 0x14], 1
call fcn.0041ba70
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x413fe3
mov ecx, dword [edi]
call fcn.0041bbb0
push 7
push str._s3.txt
push edi
call fcn.0041ba70
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret
Function at 0x415bc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43d4c8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040a08b
mov ebx, dword [eax + 0xc]
mov ebp, dword [sym.imp.USER32.dll_LoadImageW]
push 0
push 0
push 0
push 0
push 0xbb8
push ebx
call ebp
push 0
push 0
push 0
push 0
push 0x81
push ebx
mov edi, eax
call ebp
xor ebp, ebp
mov ebx, eax
mov dword [esp + 0x18], vtable.CGdiObject.0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x18], vtable.CBitmap.0
mov dword [esp + 0x50], 1
push edi
lea ecx, [esp + 0x1c]
call fcn.0041d46f
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x20]
push 0x202
push ecx
push edx
push ebp
push ebp
push ebp
mov ecx, esi
call fcn.0041d807
lea ecx, [esp + 0x18]
call fcn.0040951b
push ebx
call fcn.00415ef0
mov esi, eax
or eax, 0xffffffff
mov dword [esp + 0x50], eax
mov dword [esp + 0x18], vtable.CBitmap.0
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x18]
call fcn.004089b0
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret

Function at 0x4165d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x43c958
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.0042ac10
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 0x416658
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.00415df0
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 0x41668f
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.0040c520
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x70
ret
Function at 0x417210
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43bf99
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x34]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], 0
call fcn.00406cb0
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push ebx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov eax, esi
je 0x4172b8
call fcn.00404010
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], edi
mov eax, dword [eax]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4172ad
cmp dword [esp + 0x38], edi
je 0x4172b6
xor edi, edi
mov eax, esi
call fcn.00404010
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret

Function at 0x417930
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43d8ac
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.00420730
mov dword [esp + 0x44], 1
mov eax, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x4179ac
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 0x4179c7
lea esi, [esp + 0x20]
lea eax, [esp + 0x10]
push eax
call fcn.0040d520
mov byte [esp + 0x44], 2
push eax
push edi
mov ebx, ebp
call fcn.0041a990
add esp, 8
mov eax, 1
mov dword [esp + 0x14], eax
mov byte [esp + 0x44], al
lea ecx, [esp + 0x10]
push ecx
call fcn.0041bd90
xor ebx, ebx
mov byte [esp + 0x44], bl
cmp dword [esp + 0x34], 8
jb 0x417a13
mov edx, dword [esp + 0x20]
push edx
call fcn.0041cf38
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.00421490
add esp, 0x38
ret
Function at 0x418270
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x43be69
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.00406cb0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], 1
mov eax, esi
cmp dword [ebx + 4], ebp
je 0x41836e
call fcn.00404010
test al, al
je 0x41836c
mov eax, dword [esi]
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
push edi
push ecx
push edx
call fcn.0042ae20
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 0x41830f
mov edi, dword [esp + 0x28]
mov eax, esi
call fcn.00404010
jmp 0x41836c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x41834e
mov edi, dword [esp + 0x28]
mov eax, esi
call fcn.00404010
test al, al
je 0x41834e
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 0x41836c
mov eax, esi
call fcn.00415db0
jmp 0x41836c
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x41836c
mov eax, dword [edi]
push 0
push eax
call fcn.00429d0d
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 0x419450
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43e349
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x58]
mov edi, ecx
push eax
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
call fcn.00422f00
mov dword [esp + 0x50], esi
mov dword [esp + 0x3c], esi
xor eax, eax
push esi
mov ebx, 0x400
lea esi, [esp + 0x2c]
mov dword [esp + 0x28], 1
mov dword [esp + 0x44], 7
mov word [esp + 0x30], ax
call fcn.00420730
mov dword [esp + 0x50], 1
mov ecx, dword [esp + 0x3c]
xor ebx, ebx
lea edx, [ecx + ecx - 2]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x50], 2
cmp edi, ebx
je 0x419528
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x419506
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
push 1
push ebx
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x419607
mov ecx, dword [esp + 0x14]
jmp 0x41952d
mov ecx, SysReAllocString
mov eax, dword [esp + 0x2c]
mov esi, 8
cmp dword [esp + 0x40], esi
jae 0x419540
lea eax, [esp + 0x2c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push 0x44a338
push ecx
call ebp
cmp eax, 0xea
jne 0x4195c2
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
shr ebx, 1
inc ebx
cmp ebx, ecx
ja 0x419583
or eax, 0xffffffff
lea esi, [esp + 0x28]
call fcn.00405a70
mov esi, 8
jmp 0x419590
mov eax, ebx
sub eax, ecx
lea ebx, [esp + 0x28]
call fcn.004199e0
mov ecx, dword [esp + 0x14]
test edi, edi
jne 0x41959d
mov ecx, SysReAllocString
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x4195ab
lea eax, [esp + 0x2c]
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x44a338
push ecx
call ebp
xor ebx, ebx
cmp eax, ebx
jne 0x4195f9
cmp dword [esp + 0x1c], 1
jne 0x4195f9
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x4195f9
shr eax, 1
lea ecx, [esp + 0x28]
call fcn.00408390
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x4195ee
lea edx, [esp + 0x2c]
mov edi, dword [esp + 0x20]
call fcn.00406110
jmp 0x41960c
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
call fcn.004053e0
jmp 0x41960c
mov esi, 8
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x419620
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x50], bl
cmp dword [esp + 0x40], esi
jb 0x419637
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0041cf38
add esp, 4
xor edx, edx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00421490
add esp, 0x40
ret
Function at 0x419810
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 0x41984a
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 0x4198a0
mov eax, dword [esp + 4]
test edi, edi
je 0x419875
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 0x419893
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 0x41aaf0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43cac8
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 0x41ab45
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x14]
call fcn.0040d360
mov dword [esp + 0x38], 0
push 1
mov eax, 0x448b5c
mov ecx, esi
call fcn.0041b720
mov ecx, eax
mov eax, ebx
lea esi, [eax + 2]
jmp 0x41ab80
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x41ab80
sub eax, esi
sar eax, 1
push eax
mov eax, ebx
call fcn.0041b720
cmp dword [esp + 0x28], 8
mov ecx, dword [esp + 0x14]
jae 0x41aba6
lea ecx, [esp + 0x14]
test edi, edi
je 0x41abc5
mov eax, edi
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x41abb0
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
jmp 0x41abc7
xor eax, eax
push 1
push eax
xor eax, eax
call fcn.00419810
add esp, 8
test eax, eax
sete bl
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x41abf5
mov edx, dword [esp + 0x14]
push edx
call fcn.0041cf38
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.00421490
add esp, 0x2c
ret