joyce8/EMBER2024-capa huggingface dataset:
Function at 0x540710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe3000]
push edi
jmp 0x54072a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x540731
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x540720
mov eax, 1
add ebx, ebx
jne 0x540743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x540754
jne 0x540773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x540773
dec eax
add ebx, ebx
jne 0x540760
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x540738
add ebx, ebx
jne 0x54076f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5407c5
xor ecx, ecx
sub eax, 3
jb 0x54078b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5407fa
sar eax, 1
mov ebp, eax
jmp 0x540796
add ebx, ebx
jne 0x540796
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x540764
inc ecx
add ebx, ebx
jne 0x5407a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x540764
add ebx, ebx
jne 0x5407b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5407a6
jne 0x5407c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5407a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5407e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5407d6
jmp 0x540726
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5407e4
add edi, ecx
jmp 0x540726
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x540802
cmp byte [edi], 0x11
jne 0x540802
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x540807
lea edi, [esi + 0x139000]
mov eax, dword [edi]
or eax, eax
je 0x54087f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19bc70]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19bdec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x540834
mov ecx, edi
jns 0x540863
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19bdf0]
or eax, eax
je 0x540879
mov dword [ebx], eax
add ebx, 4
jmp 0x540851
call dword [esi + 0x19be00]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5408b0
cmp al, 0xef
ja 0x5408a3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x540885
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x540892
mov ebp, dword [esi + 0x19bdf4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5408e4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x4065c9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42d2c4], 0
jne 0x406604
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065dd
mov dword [ecx*4 + 0x42d2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x4065d8
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406631
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42d2c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406612
not eax
pop ebp
ret 0xc

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x4026ab
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
jmp 0x4026c8
push 0x18f4
mov eax, dword [esp]
add esp, 4
jmp 0x4026cb
jmp 0x4026b9
jmp 0x4026d7
push 0x74
pop ecx
jmp 0x4026da
jmp 0x4026d0
jmp 0x4026ec
push 0x1b
mov edx, dword [esp]
add esp, 4
jmp 0x4026ef
jmp 0x4026e0
call fcn.00401f55
nop
inc esi
adc esi, dword [ebx - 0x6d]
or byte [ebx], bl
sbb esp, esp
dec eax
pop es
xchg esi, eax
pop esi
out 0x4b, eax
in al, 0x6e
or esp, esp
outsb dx, byte [esi]
pop ss
dec eax
fsub st(1)
in al, 0xe4
sahf
fld xword [edi + 0x16]
in al, 0x6e
pmulhuw mm5, qword [esi - 0x19]
dec ebx
dec eax
mov al, 0xe0
in al, 0xe4
jno 0x40273d
jno 0x402708
in al, 8
invalid
mov edx, ebp
fiadd dword [0x1b6fa26b]
sbb ebx, dword [ebx]
invalid
Function at 0x40e037
Capabilities:
Packed with generic packer

Disassembly:
pushal
call 0x40e03d
pop eax
sub eax, 0x3d
push eax
lea edi, [eax - 0xd000]
push edi
add word [edi + 0xc59c], 0
lea esi, [eax + 0x1ec]
or ebp, 0xffffffff
xor ebx, ebx
jmp 0x40e066
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40e071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40e060
mov eax, 1
add ebx, ebx
jne 0x40e083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x40e078
jne 0x40e094
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e078
xor ecx, ecx
sub eax, 3
jb 0x40e102
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40e11e
mov ebp, eax
add ebx, ebx
jne 0x40e0b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40e0c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40e0e4
inc ecx
add ebx, ebx
jne 0x40e0d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x40e0c5
jne 0x40e0e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e0c5
add ecx, 2
cmp eax, 0xfffff300
adc ecx, 1
lea edx, [edi + eax]
cmp eax, 0xfffffffc
jle 0x40e108
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40e0f4
jmp 0x40e066
mov eax, ebp
jmp 0x40e0a8
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40e108
add edi, ecx
jmp 0x40e066
pop esi
pop ebp
sub edi, dword [edi - 4]
push edi
lea edi, [esi]
mov ecx, 0xe1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40e12f
cmp byte [edi], 1
jne 0x40e12f
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40e134
pop edi
mov eax, dword [edi]
or eax, eax
je 0x40e199
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc000]
add ebx, esi
push eax
add edi, 8
call dword [ebp]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40e15c
push edx
mov ecx, edi
jns 0x40e189
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [ebp + 4]
pop edx
mov dword [ebx], eax
add ebx, 4
jmp 0x40e176
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x40e1ca
cmp al, 0xef
ja 0x40e1bd
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x40e19f
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x40e1ac
popal
jmp 0x40491f
Function at 0x4061b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov edx, dword [esp + 0x218]
lea eax, [esp + 0xc]
push edi
push eax
push edx
mov dword [esp + 0x10], 4
xor edi, edi
call fcn.00405f70
lea eax, [esp + 4]
lea ecx, [esp + 0x10]
push eax
push 0x20019
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406225
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push esi
lea eax, [esp + 0x10]
push edx
push eax
push edi
push edi
push str.Speaker_Configuration
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
test esi, esi
pop esi
je 0x406227
mov eax, edi
pop edi
add esp, 0x214
ret 4

Function at 0x406240
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x20c
lea eax, [esp + 4]
push esi
push eax
push edx
xor esi, esi
call fcn.00405f70
lea eax, [esp + 4]
push esi
push eax
push esi
push 0xf003f
push esi
push 0x42ac1c
lea ecx, [esp + 0x20]
push esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4062ba
lea edx, [esp + 0x218]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x14]
push str.Speaker_Configuration
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 0x20c
ret 8
mov eax, esi
pop esi
add esp, 0x20c
ret 8

Function at 0x4068e0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x42ac20]
sub esp, 0x400
test eax, eax
je 0x406941
cmp dword [esp + 0x404], eax
jb 0x406941
push edi
lea eax, [esp + 4]
push str.STacSV:
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x418]
lea edi, [esp + 0xc]
push ecx
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x418]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea eax, [esp + ecx + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0x14
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret
Function at 0x406950
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x768
push ebx
push ebp
push esi
mov esi, dword [esp + 0x77c]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x77c]
push ebp
lea eax, [esp + 0xa8]
push 0x1ec
push eax
push ebp
push ebp
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push 0x20019
push 1
push ebp
push 1
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x10], ebx
je 0x406a9c
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x38]
push ebp
lea edx, [esp + 0x2b4]
push ecx
push edx
push ebx
mov dword [esp + 0x4c], 0x80
mov dword [esp + 0x48], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4069db
mov eax, dword [esp + 0x18]
mov byte [esp + eax + 0x290], 0
mov edi, dword [esp + 0x788]
mov edx, dword [esp + 0x784]
lea ecx, [esp + 0x14]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x28]
push 0
lea edx, [esp + 0x34]
push ecx
push edx
push ebp
push ebx
mov dword [esp + 0x34], 0x400
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, eax
test esi, esi
jne 0x406a3f
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push str.EDID
push ecx
mov dword [edi], eax
xor bl, bl
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x406a5c
mov ebx, dword [esp + 0x10]
inc ebp
cmp esi, 0x103
jne 0x4069e2
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x768
ret
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jbe 0x406a79
mov edx, dword [esp + 0x784]
add bl, byte [eax + edx]
inc eax
cmp eax, ecx
jb 0x406a66
test bl, bl
jne 0x406a91
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x768
ret
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x768
ret
Function at 0x407400
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov eax, 0x12a4
call fcn.0041c9f0
mov edx, dword [esp + 0x12a8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x12b4]
xor ebx, ebx
cmp ecx, ebx
push edi
mov dword [esi + 4], edx
jne 0x407428
mov ecx, edx
mov eax, dword [esp + 0x12bc]
mov dword [esi + 8], ecx
cmp eax, ebx
jne 0x407438
mov eax, edx
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x12c0]
lea ecx, [esp + 0x1c]
mov edi, 1
push ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], 0xf01ff
mov dword [esi + 0x54], 0x10
mov dword [esi + 0x58], 2
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi], vtable.CNTService.0
mov dword [esp + 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x2c]
xor edx, edx
cmp ecx, 2
sete dl
mov dword [esi + 0x48], edx
mov dword [0x42ac24], edi
mov dword [0x42ac28], esi
mov eax, dword [esi + 0x48]
cmp eax, ebx
mov dword [esi + 0x1c], 0x10
mov dword [esi + 0x2c], ebx
je 0x407590
mov eax, 0xff
mov ecx, 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
xor eax, eax
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x1b0]
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x2b0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0xb0]
push eax
push ecx
mov dword [esp + 0x1c], 0x1000
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x1b4]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x2bc]
push edx
lea ecx, [esp + 0xc0]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x407590
lea edx, [esp + 0x2b0]
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x407590
lea eax, [esp + 0x2b0]
push eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x2b0]
mov dword [esi + 0x44], eax
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CopySid]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x12a4
ret 0x10
Function at 0x408060
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x70
push edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x88]
test eax, eax
mov edx, 1
mov dword [esp + 4], 0x20
mov dword [esp + 8], 5
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
pop edi
jne 0x4080b9
mov edx, 5
mov eax, dword [esp + 0x74]
push edx
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationA]
mov ecx, dword [esp + 0x88]
test eax, eax
mov dword [ecx], eax
jne 0x408102
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x24]
push str.RegisterDeviceNotification_failed:__d_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 0x70
ret
mov eax, 1
add esp, 0x70
ret
Function at 0x408c50
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x11c
push esi
push edi
mov edi, str.SoftwareIDT
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], vtable.CRegistry.0
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x20], 0
shr ecx, 2
mov dword [esp + 0x1c], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, str.STSysTray1.0
test ecx, ecx
je 0x408d00
mov edi, 0x423a40
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.STSysTray1.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 8]
push eax
push 0x20019
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x408d53
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push str.RetryInstall
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 8]
push 0
push edx
push 0
push 0xf003f
push 0
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x30]
push 0x42abfc
lea eax, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x408da7
lea edx, [esp + 0xc]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x18]
push str.RetryInstall
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop esi
je 0x408dbc
push 3
lea edx, [esp + 0x10]
push 0
push edx
jmp 0x408dc5
push 1
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Locate_DevNodeA]
test eax, eax
je 0x408dd8
xor al, al
add esp, 0x11c
ret
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.SETUPAPI.dll_CM_Reenumerate_DevNode]
test eax, eax
sete al
add esp, 0x11c
ret

Function at 0x409b70
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x404
or ecx, 0xffffffff
xor eax, eax
push edi
mov edi, edx
repne scasb al, byte es:[edi]
push eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
not ecx
push 0x400
push eax
push ecx
mov ecx, dword [esp + 0x424]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
pop edi
add esp, 0x404
ret
Function at 0x414880
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x41e1d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
mov dword [esp + 8], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, eax
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x426a08
push 7
push ebx
push 0x4269f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x414998
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push ebx
push ebx
push 0xffffffffffffffff
push str.Config_LangMode
push ebx
push ebx
call ebp
mov esi, eax
dec esi
push esi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
cmp edi, ebx
je 0x414922
push esi
push edi
push 0xffffffffffffffff
push str.Config_LangMode
push ebx
push ebx
call ebp
mov dword [esp + 0x24], edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push 4
push 8
push edx
mov byte [esp + 0x48], 1
call fcn.00409850
push edi
mov esi, eax
mov byte [esp + 0x34], bl
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop edi
cmp esi, ebx
pop ebp
jl 0x414983
mov eax, dword [esp + 0xc]
push eax
push str.defaultlanguagemode___d_n
push 1
call fcn.004068e0
mov eax, dword [esp + 0x18]
add esp, 0xc
dec eax
je 0x41497d
dec eax
je 0x414977
mov esi, dword [esp + 0x10]
jmp 0x4149a7
mov esi, dword [esp + 0x14]
jmp 0x4149a7
mov esi, dword [esp + 0x18]
jmp 0x4149a7
push str.error_in_get_defaultlanguagemode_n
push 1
call fcn.004068e0
mov esi, dword [esp + 0x18]
add esp, 8
jmp 0x4149a7
push str.error_when_m_spRegCtrl.CoCreateInstance_n
push 1
call fcn.004068e0
add esp, 8
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x4149b9
mov dword [esp + 8], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 8]
mov dword [esp + 0x28], 0xffffffff
cmp eax, ebx
je 0x4149d5
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x20]
mov ax, si
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret