joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414490
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
push esi
push eax
push 0xf003f
push 0
push str.SoftwareSmart_SoftSmartUndeleteSettings
mov esi, ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414590
lea ecx, [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov byte [esp + 0x14], al
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.Restore_Path
push ecx
mov dword [esp + 0x24], 0x104
call edi
mov al, byte [esp + 0x14]
test al, al
je 0x414505
lea edx, [esp + 0x14]
lea ecx, [esi + 0x1f8]
push edx
call fcn.0043277a
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push str.Recover_Folder
push eax
mov byte [esp + 0x2c], 0
mov dword [esp + 0x24], 0x104
call edi
mov al, byte [esp + 0x14]
pop edi
test al, al
je 0x414548
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x184]
call fcn.0043277a
mov eax, dword [esp + 4]
lea edx, [esi + 0x204]
push edx
push str.Show_Wizard_on_Startup
push eax
mov ecx, esi
call fcn.004146f0
mov edx, dword [esp + 4]
lea ecx, [esi + 0x200]
push ecx
push str.Scan_Temp_Inet_Files
push edx
mov ecx, esi
call fcn.004146f0
mov ecx, dword [esp + 4]
lea eax, [esi + 0x1fc]
push eax
push str.Scan_Zero_Length_Files
push ecx
mov ecx, esi
call fcn.004146f0
pop esi
add esp, 0x110
ret
Function at 0x4145a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareSmart_SoftSmartUndeleteSettings
mov esi, ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4146dc
mov eax, dword [esi + 0x1f8]
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [eax - 8]
push ebp
inc ecx
push edi
push ecx
push eax
push 1
push 0
push str.Restore_Path
push edx
call ebx
mov eax, dword [esi + 0x184]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push str.Recover_Folder
push edx
call ebx
mov eax, dword [esi + 0x204]
test eax, eax
mov eax, 0x46e81c
jne 0x41462a
mov eax, 0x46e818
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea eax, [esp + 0x18]
push eax
call ebp
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push eax
push str.Show_Wizard_on_Startup
push edx
call ebx
mov eax, dword [esi + 0x200]
test eax, eax
mov eax, 0x46e81c
jne 0x41466f
mov eax, 0x46e818
push eax
lea eax, [esp + 0x18]
push eax
call ebp
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push eax
push str.Scan_Temp_Inet_Files
push edx
call ebx
mov eax, dword [esi + 0x1fc]
test eax, eax
mov eax, 0x46e81c
jne 0x4146ae
mov eax, 0x46e818
push eax
lea eax, [esp + 0x18]
push eax
call ebp
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push eax
push str.Scan_Zero_Length_Files
push edx
call ebx
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x104
ret

Function at 0x4146f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x18]
lea eax, [esp]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x18], 0xa
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41476f
push ebx
push esi
mov esi, 0x46e81c
lea eax, [esp + 0xc]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x414750
test cl, cl
je 0x41474c
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x414750
add eax, 2
add esi, 2
test cl, cl
jne 0x414728
xor eax, eax
jmp 0x414755
sbb eax, eax
sbb eax, 0xffffffff
mov edx, dword [esp + 0x24]
xor ecx, ecx
test eax, eax
sete cl
pop esi
mov dword [edx], ecx
mov eax, 1
pop ebx
add esp, 0x10
ret 0xc
xor eax, eax
add esp, 0x10
ret 0xc
Function at 0x4151c0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x19c
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov ebx, ecx
push edi
push 0
push 0
mov eax, dword [ebx + 0x1c]
push 0x1004
push eax
call ebp
mov ecx, dword [esp + 0x1b0]
push 0x2e
push ecx
mov dword [esp + 0x1c], eax
call fcn.0041e700
add esp, 8
mov byte [esp + 0x18], 0x2a
test eax, eax
mov byte [esp + 0x19], 0x2e
mov byte [esp + 0x1a], 0
je 0x41522d
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x19]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebx + 0x3c]
call fcn.00413c80
lea edx, [esp + 0x10]
lea edi, [ebx + 0x48]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, edi
mov dword [esp + 0x18], 0xffffffff
call fcn.0042e64a
test eax, eax
jne 0x4152d3
push 0x111
lea ecx, [esp + 0x50]
push 0x160
push ecx
lea edx, [esp + 0x24]
push 0x80
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebx + 0x1c]
push 0
push 1
push 0x1002
push eax
call ebp
push eax
call fcn.0042d8a4
mov ecx, dword [esp + 0x4c]
mov edx, dword [eax + 4]
push ecx
push 0xffffffffffffffff
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov eax, dword [ebx + 0x1c]
push 0
push 1
push 0x1002
push eax
call ebp
push eax
call fcn.0042d8a4
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
lea edx, [esp + 0x18]
dec eax
push edx
mov ecx, edi
mov dword [esp + 0x14], eax
mov esi, eax
call fcn.0042e192
mov dword [eax], esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1b0]
mov esi, dword [esp + 0x14]
push 0
push eax
push 0
push 0
push ecx
push esi
push 3
mov ecx, ebx
call fcn.0042d483
mov edx, dword [esp + 0x1b4]
mov ecx, ebx
push edx
push esi
call fcn.0042da48
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19c
ret 8
Function at 0x4245b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4707a0
cmp edx, dword [eax]
je 0x4245db
add eax, 8
inc ecx
cmp eax, 0x470830
jl 0x4245cc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4707a0]
jne 0x424709
mov eax, dword [0x472ff4]
cmp eax, 1
je 0x4246e3
test eax, eax
jne 0x42460c
cmp dword [0x46fd04], 1
je 0x4246e3
cmp edx, 0xfc
je 0x424709
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x424643
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00425cd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004253d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x424686
lea eax, [ebp - 0x1a4]
push eax
call fcn.004253d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45cb7c
push edi
call fcn.0041f170
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00425cd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00425ce0
lea eax, [ebp - 0xa0]
push 0x45cb5c
push eax
call fcn.00425ce0
push dword [esi + 0x4707a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00425ce0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00426e18
add esp, 0x2c
pop edi
jmp 0x424709
lea eax, [ebp + 8]
lea esi, [esi + 0x4707a4]
push 0
push eax
push dword [esi]
call fcn.004253d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x42b5d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00420360
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42b69b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42b69b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42b64e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42b659
or bh, 8
and edi, 0x8000000
je 0x42b674
mov eax, dword [0x47477c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42b69b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ba70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42ba9b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42babf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42bada
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x42f56b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42f5a3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00432a24
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004329fc
jmp 0x42f5af
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4311c7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x431209
call fcn.00447ae9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x431209
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x431200
xor eax, eax
jmp 0x431211
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00431217
pop edi
pop esi
pop ebx
ret 4

Function at 0x432e07
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x432e29
cmp dword [edi + 0x3c], 0
jne 0x432e29
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00447ae9
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00432e56
pop edi
pop esi
pop ebx
ret 8

Function at 0x432ea4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00447ae9
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x432ed5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00432ee8
pop edi
pop esi
pop ebx
ret 8

Function at 0x44817c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.00447ae9
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4481b9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4481b9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4481bd
xor eax, eax
jmp 0x44823b
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00432332
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4481f5
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4481df
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0044832c
push ebx
mov edi, eax
call fcn.0043235b
test edi, edi
pop ecx
je 0x448237
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004480f5
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00448240
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x449ce3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x449d11
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x449d2f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00449c49
jmp 0x449d2f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x449d2f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00449c49
test edi, edi
mov eax, edi
jne 0x449d19
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x5c0f5a09
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x4dfe206b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x406022
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x40d010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x120]
xor esi, esi
xor edi, edi
push eax
inc edi
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x12c], 4
mov dword [ebp - 0x120], 0x11c
call dword [0x401080]
test eax, eax
je 0x40608e
cmp dword [ebp - 0x11c], 5
jne 0x40608e
cmp dword [ebp - 0x118], edi
jne 0x40608e
cmp word [ebp - 0xc], 2
jae 0x40608e
push edi
call dword [0x401084]
lea eax, [ebp - 0x124]
push eax
push edi
push esi
push 0x404210
push 0x80000002
call dword [entry0]
test eax, eax
jne 0x4060e6
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x128]
push eax
push esi
push esi
push 0x404734
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4060da
cmp dword [ebp - 0x128], edi
jne 0x4060da
xor edi, edi
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040a14f
leave
ret
Function at 0x406278
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b0
mov eax, dword [0x40d010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x254]
push eax
xor esi, esi
push 0x200eb
mov ebx, ecx
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], esi
call dword [0x401088]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406403
push dword [ebp - 0x254]
lea edi, [ebp - 0x48]
call fcn.004066f1
mov edi, eax
cmp edi, esi
jne 0x4063f5
lea eax, [ebp - 0x258]
push eax
push esi
push esi
push dword [ebp - 0x25c]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push esi
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
test eax, eax
je 0x4063ed
push 0x40
lea eax, [ebp - 0x2ac]
push esi
push eax
mov dword [ebp - 0x2b0], 0x44
call fcn.0040b8b0
add esp, 0xc
lea eax, [ebp - 0x2b0]
push eax
call dword [0x401090]
xor eax, eax
lea edi, [ebp - 0x26c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [0x401094]
mov ebx, eax
push 0x104
lea eax, [ebp - 0x250]
push eax
push esi
call dword [0x401098]
test eax, eax
je 0x4063d7
lea eax, [ebp - 0x48]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x258]
call fcn.0040674f
mov edi, eax
cmp edi, esi
jne 0x4063df
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x2b0]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4063d7
push 0x1388
push dword [ebp - 0x26c]
call dword [0x401268]
push dword [ebp - 0x26c]
mov esi, dword [fcn.00401108]
call esi
push dword [ebp - 0x268]
call esi
jmp 0x4063df
call dword [0x401114]
mov edi, eax
push dword [ebp - 0x258]
call dword [fcn.00401108]
jmp 0x4063f5
call dword [0x401114]
mov edi, eax
push dword [ebp - 0x254]
call dword [fcn.00401108]
jmp 0x40640b
call dword [0x401114]
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a14f
leave
ret 0xc

Function at 0x406423
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], 1
jbe 0x40646e
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x406466
mov eax, dword [ebp + 8]
push dword [eax + esi*8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40645a
test byte [edi + 4], 0x10
je 0x406462
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x406442
jmp 0x406466
and dword [ebp - 4], 0
add edi, 8
dec ebx
jne 0x40643b
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 8
Function at 0x40647b
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_EqualSid]
mov dword [ebp - 4], 1
jbe 0x4064ac
mov eax, dword [ebp + 0x10]
push dword [eax + esi*8]
push dword [ebp + 0x18]
call edi
test eax, eax
jne 0x4064d7
inc esi
cmp esi, dword [ebp + 0x14]
jb 0x406497
mov eax, dword [ebp + 0xc]
test eax, eax
jbe 0x4064ea
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp + 0x18], eax
xor esi, esi
cmp dword [ebp + 0x14], esi
jbe 0x4064e1
mov eax, dword [ebp + 0x10]
push dword [eax + esi*8]
push dword [ebx]
call edi
test eax, eax
jne 0x4064dd
inc esi
cmp esi, dword [ebp + 0x14]
jb 0x4064c1
jmp 0x4064e1
and dword [ebp - 4], 0
jmp 0x4064ea
and dword [ebp - 4], 0
add ebx, 8
dec dword [ebp + 0x18]
jne 0x4064ba
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0x14