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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5bd254]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0x400
mov eax, dword [ebp + 8]
push eax
call fcn.00405090
add esp, 4
mov dword [ebp + 8], eax
cmp dword [ebp + 0xc], 0
jne 0x40512b
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
call sym.convertifd.exe_JfGetValueList
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
jmp 0x405271
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [0x5a7644]
push eax
call sym.convertifd.exe_JfGetRegistryTopLevelKey
add esp, 4
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.00513670
add esp, 8
cmp dword [ebp + 0x1c], 0
je 0x405186
mov edx, dword [ebp + 0x1c]
movsx eax, byte [edx]
test eax, eax
je 0x405186
push 0x5a768c
lea ecx, [ebp - 0x418]
push ecx
call fcn.00513680
add esp, 8
mov edx, dword [ebp + 0x1c]
push edx
lea eax, [ebp - 0x418]
push eax
call fcn.00513680
add esp, 8
cmp dword [ebp + 8], 0
je 0x4051bd
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
je 0x4051bd
push 0x5a7690
lea eax, [ebp - 0x418]
push eax
call fcn.00513680
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x418]
push edx
call fcn.00513680
add esp, 8
lea eax, [ebp - 8]
push eax
push 1
push 0
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [0x5a7644]
push edx
call sym.convertifd.exe_JfGetRegistryRootKey
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405245
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x41c]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
jne 0x405243
mov eax, dword [ebp + 0x18]
mov byte [ebp + eax - 0x419], 0
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.00513670
add esp, 8
mov eax, dword [ebp - 0x10]
jmp 0x405271
jmp 0x405255
cmp dword [ebp - 8], 0
je 0x405255
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.00513670
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
call fcn.005138b0
add esp, 4
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00511a80
mov esp, ebp
pop ebp
ret 0x18
Function at 0x405290
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x5bd254]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00405090
add esp, 4
mov dword [ebp + 0xc], eax
mov edx, dword [0x5a7644]
push edx
call sym.convertifd.exe_JfGetRegistryTopLevelKey
add esp, 4
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00513670
add esp, 8
cmp dword [ebp + 8], 0
je 0x40531f
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
je 0x40531f
push 0x5a7694
lea eax, [ebp - 0x98]
push eax
call fcn.00513680
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x98]
push edx
call fcn.00513680
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x405356
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x405356
push 0x5a7698
lea edx, [ebp - 0x98]
push edx
call fcn.00513680
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.00513680
add esp, 8
lea edx, [ebp - 0xc]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [0x5a7644]
push ecx
call sym.convertifd.exe_JfGetRegistryRootKey
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40538e
xor eax, eax
jmp 0x405447
mov edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, dword [ebp - 4]
mov byte [eax + 1], 0
mov ecx, 1
test ecx, ecx
je 0x40543a
push 0x80
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4053d0
jmp 0x40543a
lea edx, [ebp - 0x98]
push edx
call fcn.005138b0
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 2]
cmp edx, dword [ebp + 0x14]
jle 0x4053f3
jmp 0x40543a
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00513670
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
lea ecx, [eax + edx + 1]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 1]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, dword [ebp - 0x9c]
add eax, 1
mov dword [ebp - 0x9c], eax
jmp 0x40539b
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00511a80
mov esp, ebp
pop ebp
ret
Function at 0x405460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x5bd254]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00405090
add esp, 4
mov dword [ebp + 0xc], eax
mov edx, dword [0x5a7644]
push edx
call sym.convertifd.exe_JfGetRegistryTopLevelKey
add esp, 4
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00513670
add esp, 8
cmp dword [ebp + 8], 0
je 0x4054ef
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
je 0x4054ef
push 0x5a769c
lea eax, [ebp - 0xa0]
push eax
call fcn.00513680
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xa0]
push edx
call fcn.00513680
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x405526
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x405526
push 0x5a76a0
lea edx, [ebp - 0xa0]
push edx
call fcn.00513680
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xa0]
push ecx
call fcn.00513680
add esp, 8
lea edx, [ebp - 0x10]
push edx
push 1
push 0
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [0x5a7644]
push ecx
call sym.convertifd.exe_JfGetRegistryRootKey
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40555b
xor eax, eax
jmp 0x405629
mov edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, dword [ebp - 4]
mov byte [eax + 1], 0
mov dword [ebp - 0xa4], 0
jmp 0x405583
mov ecx, dword [ebp - 0xa4]
add ecx, 1
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 8], 0x80
push 0
push 0
push 0
push 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4055b9
jmp 0x40561c
lea eax, [ebp - 0xa0]
push eax
call fcn.005138b0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4055d3
jmp 0x405574
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
lea eax, [edx + ecx + 2]
cmp eax, dword [ebp + 0x14]
jle 0x4055e4
jmp 0x40561c
lea ecx, [ebp - 0xa0]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00513670
add esp, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 1]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov byte [eax], 0
jmp 0x405574
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00511a80
mov esp, ebp
pop ebp
ret
Function at 0x405730
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5bd254]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x124], 1
cmp dword [ebp + 0x10], 0
jne 0x40575a
mov dword [ebp + 0x10], 0x6011a4
mov eax, dword [ebp + 0x10]
push eax
call fcn.005138b0
add esp, 4
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405090
add esp, 4
mov dword [ebp + 8], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x5a7644]
push eax
call sym.convertifd.exe_JfGetRegistryBaseKey
add esp, 4
push eax
push 0x5a76ac
lea ecx, [ebp - 0x120]
push ecx
call fcn.005135ca
add esp, 0x10
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0x5a76b4
push 0
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [0x5a7644]
push edx
call sym.convertifd.exe_JfGetRegistryRootKey
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405819
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x124]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
jne 0x405819
mov eax, 1
jmp 0x40581b
xor eax, eax
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00511a80
mov esp, ebp
pop ebp
ret 0xc

Function at 0x405830
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5bd254]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00405090
add esp, 4
mov dword [ebp + 8], eax
mov ecx, dword [0x5a7644]
push ecx
call sym.convertifd.exe_JfGetRegistryBaseKey
add esp, 4
push eax
lea edx, [ebp - 0x118]
push edx
call fcn.00513670
add esp, 8
cmp dword [ebp + 8], 0
je 0x4058a8
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4058a8
push 0x5a76c0
lea edx, [ebp - 0x118]
push edx
call fcn.00513680
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.00513680
add esp, 8
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [0x5a7644]
push ecx
call sym.convertifd.exe_JfGetRegistryRootKey
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405901
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x405901
mov eax, 1
jmp 0x405903
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00511a80
mov esp, ebp
pop ebp
ret 8
Function at 0x405920
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5bd254]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00405090
add esp, 4
mov dword [ebp + 8], eax
mov ecx, dword [0x5a7644]
push ecx
call sym.convertifd.exe_JfGetRegistryBaseKey
add esp, 4
push eax
lea edx, [ebp - 0x118]
push edx
call fcn.00513670
add esp, 8
cmp dword [ebp + 8], 0
je 0x405998
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x405998
push 0x5a76c4
lea edx, [ebp - 0x118]
push edx
call fcn.00513680
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.00513680
add esp, 8
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [0x5a7644]
push ecx
call sym.convertifd.exe_JfGetRegistryRootKey
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4059f1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x4059f1
mov eax, 1
jmp 0x4059f3
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00511a80
mov esp, ebp
pop ebp
ret 4
Function at 0x405c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
push 2
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sym.convertifd.exe_JfFindResource
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x405d85
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sym.convertifd.exe_CreateDIBPalette
add esp, 8
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x405d25
push 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax]
mov edx, dword [ebp - 4]
lea eax, [ecx + edx*4]
push eax
push 4
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x405d6f
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ecx, dword [ebp - 0x20]
push ecx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x406630
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call fcn.00406730
test eax, eax
je 0x406650
mov eax, dword [ebp + 8]
push eax
call sym.convertifd.exe_Previous_IME_InputLangChange
add esp, 4
jmp 0x406727
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call fcn.004074b0
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call sym.convertifd.exe_ImmGetContext
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406722
push 0x20
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.00511e90
add esp, 0xc
mov eax, dword [sym.convertifd.exe_fdwProperty]
and eax, 0x10000
je 0x4066c8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0x40
mov ecx, dword [sym.convertifd.exe_Pt]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x6a2f2c]
add edx, dword [sym.convertifd.exe_iTextH]
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sym.convertifd.exe_ImmSetCandidateWindow
jmp 0x406715
mov dword [ebp - 0x28], 0
jmp 0x4066da
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 4
jae 0x406715
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 4]
push edx
call sym.convertifd.exe_ImmGetCandidateWindow
test eax, eax
jne 0x4066f7
jmp 0x4066d1
cmp dword [ebp - 0x20], 0
jne 0x4066ff
jmp 0x4066d1
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sym.convertifd.exe_ImmSetCandidateWindow
jmp 0x4066d1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call sym.convertifd.exe_ImmReleaseContext
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x409540
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5bd254]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0xa
lea ecx, [ebp - 0x14]
push ecx
call fcn.00515cb6
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jne 0x40959e
push 4
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.005154f0
add esp, 0xc
push 4
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 4
push edx
call fcn.005154f0
add esp, 0xc
movsx eax, word [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00511a80
mov esp, ebp
pop ebp
ret
Function at 0x411e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0
push 1
push 0x7d
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x104]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x110
push edx
call sym.convertifd.exe_UtObjRead
add esp, 0x20
cmp eax, 1
je 0x411edf
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x104]
push ecx
call fcn.005158c7
add esp, 4
mov eax, 0xfffffffb
jmp 0x4120d2
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0x110]
cmp eax, 0x49
jne 0x411f1b
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + 0x111]
cmp edx, 0x66
jne 0x411f1b
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 0x112]
cmp ecx, 0x44
jne 0x411f1b
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0x113]
cmp eax, 0x20
je 0x411f37
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x104]
push edx
call fcn.005158c7
add esp, 4
mov eax, 0xfffffffe
jmp 0x4120d2
mov eax, dword [ebp + 8]
mov byte [eax + 0x117], 0
lea ecx, [ebp - 4]
push ecx
push 0x5a7928
mov edx, dword [ebp + 8]
add edx, 0x114
push edx
call fcn.00511af7
add esp, 0xc
cmp dword [ebp - 4], 4
jl 0x411f9b
push 3
push 0x5a792c
mov eax, dword [ebp + 8]
add eax, 0x114
push eax
call fcn.00513bae
add esp, 0xc
test eax, eax
jle 0x411fb7
push 3
push 0x5a7934
mov ecx, dword [ebp + 8]
add ecx, 0x114
push ecx
call fcn.00513bae
add esp, 0xc
test eax, eax
je 0x411fb7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x104]
push eax
call fcn.005158c7
add esp, 4
mov eax, 0xfffffffd
jmp 0x4120d2
mov ecx, dword [str.JFM]
movsx edx, byte [ecx + 5]
and edx, 0xff
mov dword [ebp - 0xc], edx
mov eax, dword [str.JFM]
movsx ecx, byte [eax + 6]
and ecx, 0xff
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x118]
and eax, 0xff
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
jne 0x412017
cmp dword [ebp - 0x10], 0x7f
jle 0x412015
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x104]
push edx
call fcn.005158c7
add esp, 4
mov eax, 0xfffffffd
jmp 0x4120d2
jmp 0x412043
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x412043
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x10]
je 0x412043
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x104]
push eax
call fcn.005158c7
add esp, 4
mov eax, 0xfffffffd
jmp 0x4120d2
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10c], 2
jne 0x4120c3
mov edx, dword [ebp + 8]
add edx, 0x1cc
push edx
push 0
push 0x5a7944
push 0
call sym.convertifd.exe_CfGetTempFileName
add esp, 0x10
push 0x5a7948
mov eax, dword [ebp + 8]
add eax, 0x1cc
push eax
call fcn.00515a07
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x108], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x108], 0
jne 0x41209c
mov eax, 0xfffffff8
jmp 0x4120d2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x108]
push ecx
push 1
push 0xa
push 0x5a794c
call fcn.0051646d
add esp, 0x10
cmp eax, 1
je 0x4120c3
mov eax, 0xfffffff8
jmp 0x4120d2
mov edx, dword [ebp + 8]
mov dword [edx + 0x1b8], 0xffffffff
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4165b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
call sym.convertifd.exe_JfGetResourceHandles
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x4165fb
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
push 5
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x416624
cmp dword [ebp - 8], 0
je 0x416624
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
push 5
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x416647
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ecx], edx
push 5
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x416651
xor eax, eax
jmp 0x41668a
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
call fcn.00416770
test eax, eax
je 0x416687
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
or edx, 2
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x416d10
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x5bd254]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6019e4], 0
je 0x416d36
mov eax, dword [0x6019e4]
jmp 0x416f32
mov eax, dword [ebp + 8]
push eax
call sym.convertifd.exe_JfGetRegistryTopLevelKey
add esp, 4
push eax
lea ecx, [ebp - 0x180]
push ecx
call fcn.00513670
add esp, 8
mov byte [ebp - 0x1f0], 0
mov byte [ebp - 0x70], 0
lea edx, [ebp - 0x74]
push edx
push 1
push 0
lea eax, [ebp - 0x180]
push eax
push reloc.JFTIFF32.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
jne 0x416dc6
mov dword [ebp - 0x1f4], 0x64
lea ecx, [ebp - 0x1f4]
push ecx
lea edx, [ebp - 0x1f0]
push edx
lea eax, [ebp - 0x1f8]
push eax
push 0
push 0x5a79c0
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x184], eax
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x74]
push eax
push 1
push 0
lea ecx, [ebp - 0x180]
push ecx
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
jne 0x416ee4
mov dword [ebp - 0x1fc], 0x64
lea edx, [ebp - 0x1fc]
push edx
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x26c]
push ecx
push 0
push str.AdminInstalled
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
je 0x416e41
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x416eda
movsx ecx, byte [ebp - 0x1f0]
test ecx, ecx
je 0x416ed0
mov dword [ebp - 0x270], 0x64
lea edx, [ebp - 0x270]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x274]
push ecx
push 0
push str.InstallTime
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x1f0]
push edx
call fcn.00515ce0
add esp, 8
test eax, eax
je 0x416ece
lea eax, [ebp - 0x180]
push eax
push Ordinal_3
call fcn.00417500
add esp, 8
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
je 0x416ece
push 1
call fcn.00516a29
jmp 0x416eda
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x6019e4], 0x80000001
lea edx, [ebp - 0x74]
push edx
push 1
push 0
lea eax, [ebp - 0x180]
push eax
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
je 0x416f2d
lea ecx, [ebp - 0x180]
push ecx
lea edx, [ebp - 0x180]
push edx
call fcn.004171b0
add esp, 8
mov dword [0x6019e4], 0x80000001
mov eax, dword [0x6019e4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511a80
mov esp, ebp
pop ebp
ret