joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001b50
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
jmp 0x10001b8f
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x10], ecx
jge 0x10001cab
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x10001c1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jle 0x10001c17
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x34]
push eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001bf0
xor eax, eax
jmp 0x10001cb0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.10001930
add esp, 0xc
jmp 0x10001b7d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10001b30
add esp, 8
test eax, eax
jne 0x10001c3d
xor eax, eax
jmp 0x10001cb0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x34]
push edx
push 4
push 0x1000
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001c74
xor eax, eax
jmp 0x10001cb0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10001980
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
jmp 0x10001b7d
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100027b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xc200
mov ecx, dword [ebp - 4]
push ecx
push 0x10004070
call fcn.10001000
add esp, 8
mov dword [ebp - 0xc], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4019f0
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 0x401a09
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401a44
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401a40
lea ebx, [ebx]
cmp esi, eax
jae 0x401a44
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401a30
cmp esi, eax
jb 0x401a4a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401ad0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x12b64
call fcn.0042fd20
mov eax, dword [0x45a2fc]
xor eax, esp
mov dword [esp + 0x12b60], eax
mov eax, dword [esp + 0x12b70]
mov dword [esp + 4], eax
xor eax, eax
cmp dword [esp + 0x12b74], eax
push ebp
mov ebp, dword [esp + 0x12b6c]
jbe 0x401be3
lea ebx, [ebx]
mov byte [esp + eax + 0xc], al
add eax, 1
cmp eax, 0x12b57
jb 0x401b10
push ebx
push esi
push edi
mov edi, dword [esp + 0x12b7c]
xor esi, esi
xor ecx, ecx
lea esp, [esp]
xor edx, edx
mov eax, ecx
div edi
mov bl, byte [esp + ecx + 0x18]
movzx eax, bl
add ecx, 1
movzx edx, byte [edx + ebp]
add edx, esi
add eax, edx
xor edx, edx
mov esi, 0x12b57
div esi
cmp ecx, 0x12b57
mov esi, edx
mov al, byte [esp + esi + 0x18]
mov byte [esp + ecx + 0x17], al
mov byte [esp + esi + 0x18], bl
jb 0x401b30
mov ebp, dword [esp + 0x14]
xor edi, edi
xor esi, esi
nop
xor edx, edx
mov ecx, 0x12b57
lea eax, [esi + 1]
div ecx
sub dword [esp + 0x12b84], 1
push 0
push 0
mov esi, edx
mov bl, byte [esp + esi + 0x20]
movzx eax, bl
add eax, edi
xor edx, edx
div ecx
mov al, byte [ebp]
mov byte [esp + 0x1b], al
mov edi, edx
movzx edx, byte [esp + edi + 0x20]
mov byte [esp + esi + 0x20], dl
mov byte [esp + edi + 0x20], bl
call dword [sym.imp.USER32.dll_GetSystemMenu]
movzx eax, byte [esp + esi + 0x18]
movzx ecx, bl
add eax, ecx
cdq
mov ecx, 0x12b57
idiv ecx
add ebp, 1
movzx edx, byte [esp + edx + 0x18]
xor dl, byte [esp + 0x13]
cmp dword [esp + 0x12b84], 0
mov byte [ebp - 1], dl
jne 0x401b70
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x12b64]
pop ebp
xor ecx, esp
call fcn.0042fbb2
add esp, 0x12b64
ret

Function at 0x401c00
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
call esi
test eax, eax
jne 0x401c26
pop esi
pop ecx
ret
push 8
push 1
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call esi
neg eax
sbb eax, eax
neg eax
pop esi
pop ecx
ret
Function at 0x407890
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4438fc
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x45a2fc]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
mov eax, dword [0x45a2fc]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x74], 0
je 0x40792d
lea ecx, [esp + 0xc]
call fcn.0040e9c8
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x14c], 0
call fcn.00420a67
or edi, 0xffffffff
cmp dword [esi + 0x58], 0
mov byte [esp + 0x148], 1
mov word [esp + 0x14], 0xb
mov word [esp + 0x1c], di
jne 0x407937
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0xc]
mov dword [esp + 0x148], edi
call fcn.0040ea21
mov eax, 1
jmp 0x407a63
lea edx, [esp + 0x24]
push edx
lea ecx, [esi + 4]
call fcn.004014f0
mov ecx, dword [esi + 0x58]
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, eax
mov byte [esp + 0x150], 2
call fcn.00401260
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 3
call fcn.0040e9e7
lea ecx, [esp + 0x2c]
mov byte [esp + 0x148], 2
call fcn.0040ea21
lea ecx, [esp + 0x24]
mov byte [esp + 0x148], 1
call fcn.0040ea21
cmp dword [ebp + 8], 0
jne 0x407a10
push 0x100
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jle 0x4079e5
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Microsoft_Agent
lea ecx, [esp + 0x38]
push ecx
call esi
test eax, eax
jne 0x4079d1
lea edx, [esp + 0x14]
push edx
jmp 0x407917
push str.Advanced_Character_Options
lea eax, [esp + 0x38]
push eax
call esi
test eax, eax
je 0x407912
lea ecx, [esp + 0xc]
call fcn.00401110
test eax, eax
jne 0x407a46
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.004013b0
lea ecx, [esp + 0x24]
call fcn.0040ea21
jmp 0x407a46
mov ecx, dword [esi + 0x24]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0040b660
mov esi, eax
test esi, esi
je 0x407a46
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x407a46
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x407912
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0xc]
mov dword [esp + 0x148], edi
call fcn.0040ea21
xor eax, eax
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0042fbb2
mov esp, ebp
pop ebp
ret 4

Function at 0x40cad7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40cb10
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040ca72
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040b559
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x40e963
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40e9a6
call fcn.004222c9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40e9a6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40e9c1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040e51a
test ebx, ebx
mov esi, eax
je 0x40e9bf
test edi, edi
je 0x40e9bf
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41024f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x444267
call fcn.00430ffd
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x410274
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4102c0
call fcn.00410b6d
push eax
lea ecx, [ebp - 0x10]
call fcn.00401450
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ff08
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401170
mov eax, esi
call fcn.0043109c
ret 8

Function at 0x416f9b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.004222c9
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x416fc6
xor eax, eax
jmp 0x41706a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x416fbf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x416fbf
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408a4f
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x41701b
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x41700a
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00415dd5
push edi
mov ebx, eax
call fcn.00408a7a
test ebx, ebx
pop ecx
je 0x41705d
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00416484
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00416536
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4
Function at 0x41a459
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004222c9
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41a490
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0041a07b
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x41a4e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x41a508
cmp dword [edi + 0x54], 0
jne 0x41a508
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004222c9
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
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041a4af
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x4218b9
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 0x4218e7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x421905
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00421823
jmp 0x421905
mov eax, dword [esi + 0x14]
test eax, eax
je 0x421905
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00421823
test edi, edi
mov eax, edi
jne 0x4218ef
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x45d1d4]
test ecx, ecx
je 0x4219c8
jmp 0x4218b8
ret 8

Function at 0x42fbb2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a2fc]
jne 0x42fbbc
repz ret
jmp fcn.004357dc
Function at 0x43d47d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043521f
xor ebx, ebx
cmp dword [0x45e0b4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x43d552
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x43d4bd
xor eax, eax
jmp 0x43d616
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44f084
push edi
call esi
cmp eax, ebx
je 0x43d4b6
push eax
call fcn.004351bc
mov dword [esp], 0x44f074
push edi
mov dword [0x45e0b4], eax
call esi
push eax
call fcn.004351bc
mov dword [esp], 0x44f060
push edi
mov dword [0x45e0b8], eax
call esi
push eax
call fcn.004351bc
mov dword [0x45e0bc], eax
lea eax, [ebp - 8]
push eax
call fcn.004330e1
test eax, eax
pop ecx
pop ecx
je 0x43d520
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00434412
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x43d552
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004351bc
cmp eax, ebx
pop ecx
mov dword [0x45e0c4], eax
je 0x43d552
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004351bc
pop ecx
mov dword [0x45e0c0], eax
mov eax, dword [0x45e0c0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x43d5cb
cmp dword [0x45e0c4], esi
je 0x43d5cb
push eax
call fcn.00435228
pop ecx
call eax
cmp eax, ebx
je 0x43d598
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x45e0c4]
call fcn.00435228
pop ecx
call eax
test eax, eax
je 0x43d598
test byte [ebp - 0x18], 1
jne 0x43d5cb
lea eax, [ebp - 0xc]
push eax
call fcn.00433118
test eax, eax
pop ecx
je 0x43d5b3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00434412
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x43d5c2
or dword [ebp + 0x10], 0x200000
jmp 0x43d5fc
or dword [ebp + 0x10], 0x40000
jmp 0x43d5fc
mov eax, dword [0x45e0b8]
cmp eax, esi
je 0x43d5fc
push eax
call fcn.00435228
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43d5fc
mov eax, dword [0x45e0bc]
cmp eax, esi
je 0x43d5fc
push dword [ebp - 4]
push eax
call fcn.00435228
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x45e0b4]
call fcn.00435228
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x442c40
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45a2fc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00442bd5
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00430ed0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x442c8f
cmp dword [ebp - 0x1c], 5
jb 0x442ca7
jmp 0x442ca3
cmp dword [ebp - 0x10], 1
jne 0x442ca7
cmp dword [ebp - 0x1c], 4
ja 0x442ca3
jne 0x442ca7
cmp dword [ebp - 0x18], 0
jbe 0x442ca7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44f750
call fcn.00442aa9
test eax, eax
jge 0x442cc8
mov byte [0x45b7e4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042fbb2
add ebp, 0x78
leave
ret
Function at 0x100016b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0xe000020b
mov eax, dword [ebp + 8]
push eax
call fcn.10005e90
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100016ea
xor eax, eax
jmp 0x100018c5
cmp dword [ebp + 0xc], 0
jne 0x100016ff
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100018c5
cmp dword [ebp + 0x10], 0
je 0x10001712
push str.hwnd_parent_unsupported_n
call 0x10000000
add esp, 4
cmp dword [ebp + 0x14], 0
je 0x10001729
mov ecx, dword [ebp + 0x14]
push ecx
push str.flags_unsupported:_0x_08x_n
call 0x10000000
add esp, 8
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SystemCurrentControlSetEnum
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000176e
jmp 0x1000188e
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push str.Phantom
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10001799
jmp 0x1000188e
mov dword [ebp - 0x10], 0x50
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x88]
push ecx
push 0
push 0
push 0x10009314
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100017c7
jmp 0x1000188e
mov eax, 2
imul ecx, eax, 0x25
xor edx, edx
mov word [ebp + ecx - 0x88], dx
lea eax, [ebp - 0x38]
push eax
mov ecx, 2
shl ecx, 0
lea edx, [ebp + ecx - 0x88]
push edx
call dword [0x10000000]
push 0x10
push 0x100098a0
mov eax, dword [ebp - 8]
add eax, 4
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x10001839
push 0x10
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
lea edx, [ebp - 0x38]
push edx
call sub.MSVCRT.dll_memcmp
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10001839
mov dword [ebp - 4], 0xe0000201
jmp 0x1000188e
push 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10006ee0
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1000185a
jmp 0x1000188e
cmp dword [ebp + 0x18], 0
je 0x10001868
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0x1c
jne 0x10001887
cmp dword [ebp + 0x18], 0
je 0x1000187e
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call fcn.10005fa0
add esp, 8
mov dword [ebp - 4], 0
jmp 0x1000188e
mov dword [ebp - 4], 0x6f8
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 4], 0
jne 0x100018bb
mov dword [ebp - 0x1c], 1
jmp 0x100018c2
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10002280
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10005ed0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100022a1
xor eax, eax
jmp 0x100022cb
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x100022c6
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
push str.Phantom
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x18
Function at 0x100037b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 1
push 0xf003f
mov edx, dword [ebp + 8]
push edx
call sym.vtvbtoyx.dll__SetupDiOpenClassRegKeyExA_20
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x100037ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupDiOpenClassRegKeyExA___failed__Error__u__n
call 0x10000000
add esp, 8
xor eax, eax
jmp 0x10003842
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000381a
mov dword [ebp - 8], 1
jmp 0x10003821
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x14], 0
je 0x10003835
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x18

Function at 0x10003850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 1
push 0xf003f
mov edx, dword [ebp + 8]
push edx
call sym.vtvbtoyx.dll__SetupDiOpenClassRegKeyExW_20
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1000388f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupDiOpenClassRegKeyExW___failed__Error__u__n
call 0x10000000
add esp, 8
xor eax, eax
jmp 0x100038e6
mov eax, dword [ebp + 0x10]
shl eax, 1
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100038bc
mov dword [ebp - 8], 1
jmp 0x100038c3
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x14], 0
je 0x100038d9
mov edx, dword [ebp - 0xc]
shr edx, 1
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x18