joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10033280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add ecx, 0xdeadbeef
push ebx
mov ebx, dword [ebp + 8]
add ecx, edx
push esi
mov esi, ecx
mov dword [ebp + 0x10], esi
push edi
mov edi, ecx
cmp edx, 0xc
jbe switch.0x1003338c
add edx, 0xfffffff3
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
shr eax, 3
inc eax
mov dword [ebp - 4], eax
nop dword [eax + eax]
movzx esi, byte [ebx + 7]
movzx eax, byte [ebx + 6]
movzx edx, byte [ebx + 0xb]
shl esi, 8
add esi, eax
shl edx, 8
movzx eax, byte [ebx + 5]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 4]
add edi, eax
shl esi, 8
movzx eax, byte [ebx + 0xa]
add edi, esi
movzx esi, byte [ebx + 8]
add edx, eax
movzx eax, byte [ebx + 9]
add esi, ecx
shl edx, 8
add edx, eax
shl edx, 8
add esi, edx
mov edx, dword [ebp + 8]
mov ebx, esi
rol ebx, 4
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx]
shl ecx, 8
add ecx, eax
sub ecx, esi
add esi, edi
add ecx, dword [ebp + 0x10]
xor ebx, ecx
sub edi, ebx
mov eax, ebx
add ebx, esi
rol eax, 6
xor eax, edi
sub esi, eax
mov edx, eax
rol edx, 8
add eax, ebx
xor edx, esi
sub ebx, edx
mov esi, edx
rol esi, 0x10
add edx, eax
xor esi, ebx
mov ebx, dword [ebp + 8]
mov edi, esi
sub eax, esi
ror edi, 0xd
add esi, edx
xor edi, eax
mov dword [ebp + 0x10], esi
sub edx, edi
mov ecx, edi
rol ecx, 4
add ebx, 0xc
xor ecx, edx
mov dword [ebp + 8], ebx
mov edx, dword [ebp + 0xc]
add edi, esi
sub edx, 0xc
sub dword [ebp - 4], 1
mov dword [ebp + 0xc], edx
jne 0x100332c0
cmp edx, 0xc
ja 0x100333f8
jmp dword [edx*4 + 0x10033448]
movzx eax, byte [ebx + 0xb]
shl eax, 0x18
add ecx, eax
movzx eax, byte [ebx + 0xa]
shl eax, 0x10
add ecx, eax
movzx eax, byte [ebx + 9]
shl eax, 8
add ecx, eax
movzx eax, byte [ebx + 8]
add ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ebx + 4]
add edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebx + 1]
shl eax, 8
add esi, eax
movzx eax, byte [ebx]
add esi, eax
mov dword [ebp + 0x10], esi
xor ecx, edi
mov eax, edi
rol eax, 0xe
sub ecx, eax
mov eax, ecx
mov esi, ecx
xor esi, dword [ebp + 0x10]
rol eax, 0xb
sub esi, eax
xor edi, esi
mov eax, esi
ror eax, 7
sub edi, eax
mov eax, edi
xor ecx, edi
rol eax, 0x10
sub ecx, eax
mov eax, ecx
mov edx, ecx
rol eax, 4
xor edx, esi
sub edx, eax
mov eax, edx
xor edi, edx
rol eax, 0xe
sub edi, eax
mov eax, edi
xor ecx, edi
ror eax, 8
sub ecx, eax
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100413c0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x10041400
push 0xce
push str.....openssl_1.1.0ecrypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.10040590
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x1006c540
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.1008fd80
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.100fc1c0
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x1006c5f7
push 0x4a
push str.....openssl_1.1.0ecrypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.10040590
push 0x10170e78
push esi
push 0x10150d98
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.1003fa20
add esp, 0x2c
call fcn.101174ff
cmp dword [eax], 2
je 0x1006c5d9
call fcn.101174ff
cmp dword [eax], 6
je 0x1006c5d9
push 0x53
push str.....openssl_1.1.0ecrypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.10040590
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x51
push str.....openssl_1.1.0ecrypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.10040590
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x10170e14
call fcn.10038b20
mov esi, eax
add esp, 4
test esi, esi
jne 0x1006c619
push edi
call fcn.10119531
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.10038580
push edi
push ebx
push 0x6a
push esi
call fcn.100385b0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x100a9590
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x100a967c
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
inc edi
nop word [eax + eax]
cmp esi, 3
jl 0x100a960d
movzx ecx, byte [edi - 1]
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], al
mov eax, ecx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 2], al
add edx, 3
and ecx, 0x3f
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
jmp 0x100a9661
movzx eax, byte [edi - 1]
shl eax, 0x10
cmp esi, 2
jne 0x100a9621
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x100a964b
lea eax, [esi + 0x3c]
jmp 0x100a9658
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 2], al
add edx, 3
mov byte [edx], 0x3d
sub esi, 3
add ebx, 4
add edi, 3
inc edx
test esi, esi
jg 0x100a95b0
pop edi
pop esi
mov eax, ebx
mov byte [edx], 0
pop ebx
ret
mov eax, dword [esp + 0xc]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
ret
Function at 0x100c8930
Capabilities:
Generate random numbers via winapi
Get memory capacity

Disassembly:
mov eax, 0x6c
call fcn.1002dd90
mov eax, dword [0x101ad4cc]
xor eax, esp
mov dword [esp + 0x68], eax
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100c89a6
lea eax, [esp + 0x28]
push eax
push 0x40
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x100c899a
mov eax, 8
call fcn.1002dd90
movsd xmm0, qword [0x10190a08]
lea eax, [esp + 0x30]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.10072f80
add esp, 0x10
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100c8a0a
lea eax, [esp + 0x28]
push eax
push 0x40
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x100c89fe
mov eax, 8
call fcn.1002dd90
movsd xmm0, qword [0x10190a08]
lea eax, [esp + 0x30]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.10072f80
add esp, 0x10
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call fcn.100c8aa0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, 8
call fcn.1002dd90
movsd xmm0, qword [0x101561e8]
lea eax, [esp + 0x10]
movsd qword [esp], xmm0
push 0x20
push eax
call fcn.10072f80
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 4], eax
mov eax, 8
call fcn.1002dd90
movsd xmm0, qword [0x101561e8]
lea eax, [esp + 0xc]
movsd qword [esp], xmm0
push 4
push eax
call fcn.10072f80
mov ecx, dword [esp + 0x78]
add esp, 0x10
xor ecx, esp
mov eax, 1
call fcn.1002d7fc
add esp, 0x6c
ret

Function at 0x10136dd2
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10136a8b

Function at 0x10136ddd
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10136b64

Function at 0x101383ca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10137fcf

Function at 0x101383d5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10138150

Function at 0x1013e630
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1013de4a

Function at 0x1013e63b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1013e085
Function at 0x105e5ea0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x105e608d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x361000]
push edi
or ebp, 0xffffffff
jmp 0x105e5eca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x105e5ed1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105e5ec0
mov eax, 1
add ebx, ebx
jne 0x105e5ee3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x105e5ef4
jne 0x105e5f13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105e5f13
dec eax
add ebx, ebx
jne 0x105e5f00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x105e5ed8
add ebx, ebx
jne 0x105e5f0f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x105e5f65
xor ecx, ecx
sub eax, 3
jb 0x105e5f2b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x105e5f9a
sar eax, 1
mov ebp, eax
jmp 0x105e5f36
add ebx, ebx
jne 0x105e5f36
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105e5f04
inc ecx
add ebx, ebx
jne 0x105e5f44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105e5f04
add ebx, ebx
jne 0x105e5f51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x105e5f46
jne 0x105e5f62
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x105e5f46
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x105e5f84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x105e5f76
jmp 0x105e5ec6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x105e5f84
add edi, ecx
jmp 0x105e5ec6
pop esi
mov edi, esi
mov ecx, 0x6932
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x105e5fa2
cmp byte [edi], 0x22
jne 0x105e5fa2
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 0x105e5fa7
lea edi, [esi + 0x5da000]
mov eax, dword [edi]
or eax, eax
je 0x105e601f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5fb098]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5fb1c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x105e5fd4
mov ecx, edi
jns 0x105e6003
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 + 0x5fb1cc]
or eax, eax
je 0x105e6019
mov dword [ebx], eax
add ebx, 4
jmp 0x105e5ff1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x105e6050
cmp al, 0xef
ja 0x105e6043
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x105e6025
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x105e6032
mov ebp, dword [esi + 0x5fb1d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x105e6084
sub esp, 0xffffff80
jmp 0x101021aa
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x4e405edc
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x40f52e99
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4010bb
Capabilities:
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x42754b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push esi
mov esi, ecx
push 0
call fcn.00406583
add esp, 4
mov ecx, esi
call fcn.004240fa
push 0
push 0
push str.SystemBase_MultiPort_Setup
lea ecx, [esp + 0x10]
call fcn.00405430
mov eax, dword [esp + 0x44]
lea ecx, [esp + 4]
and ah, 0xfd
or al, 0x82
mov dword [esp + 0xdc], 0
mov dword [esp + 0x44], eax
call fcn.0042325b
cmp eax, 1
jne 0x40113a
push 0
push 0x24
push str.Setup_will_save_this_configuration._nContinue_
call fcn.0042212f
cmp eax, 6
jne 0x401133
mov ecx, esi
call fcn.004011b0
test eax, eax
push 0
jne 0x401166
push 0x10
push str.Setting_Registry_Failed_
call fcn.0042212f
mov ecx, esi
call fcn.004010a0
lea ecx, [esp + 4]
mov dword [esp + 0xdc], 0xffffffff
call fcn.004056c0
mov ecx, dword [esp + 0xd4]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0xdc
ret
push 4
push str.The_Changes_can_have_effect_on_your_system_after_reboot._nDo_you_wish_to_Restart_System_
call fcn.0042212f
cmp eax, 6
push 0
jne 0x401194
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x40113a
push eax
push 0x10
push str.Process_Failed_:_ExitWindowsEx
call fcn.0042212f
jmp 0x40113a
push 0x30
push str.Please_remember_you_must_reboot_your_system_nfor_the_ports_work.
call fcn.0042212f
jmp 0x40113a
Function at 0x402140
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1e4
lea eax, [esp]
push ebx
xor ebx, ebx
push eax
push 1
push ebx
push str.Config_ManagerEnum
mov dword [esp + 0x1c], ecx
push reloc.OLEAUT32.dll_SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402291
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
mov edx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea ecx, [esp + 0x3c]
push ebp
push ecx
push ebp
push ebp
push ebp
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
inc eax
lea ecx, [esp + 0x34]
push eax
push ecx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x402285
lea eax, [esp + 0x34]
lea ecx, [esp + 0xf4]
push eax
push str.Config_ManagerEnum_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0xf4]
push edx
push 1
push esi
push eax
push reloc.OLEAUT32.dll_SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40227a
lea ecx, [esp + 0x24]
lea edx, [esp + 0x174]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push edx
push eax
push esi
push str.HardWareKey
push ecx
mov dword [esp + 0x3c], 0x80
call edi
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x174]
push edx
push eax
call fcn.00402af0
test eax, eax
je 0x40227a
lea ecx, [esp + 0x20]
lea edx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
push esi
push str.Allocation
push ecx
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], 0x80
call edi
xor edx, edx
mov ebx, 1
mov dl, byte [esp + 0xbc]
mov dh, byte [esp + 0xbd]
mov word [0x43690c], dx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
test esi, esi
je 0x402192
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4022a9
mov ecx, dword [esp + 0xc]
call fcn.00402320
mov eax, ebx
pop ebx
add esp, 0x1e4
ret
Function at 0x403690
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x260
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
xor esi, esi
push eax
push 1
push esi
push str.Config_ManagerEnum
mov ebp, ecx
push reloc.OLEAUT32.dll_SysStringLen
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403829
xor ebx, ebx
mov edx, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x38]
push ebx
push ecx
push ebx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
inc eax
lea ecx, [esp + 0x30]
push eax
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x403800
lea eax, [esp + 0x30]
lea ecx, [esp + 0x170]
push eax
push str.Config_ManagerEnum_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x170]
push edx
push 1
push esi
push eax
push reloc.OLEAUT32.dll_SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4037f5
lea ecx, [esp + 0x20]
lea edx, [esp + 0x1f0]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push edx
push eax
push esi
push str.HardWareKey
push ecx
mov dword [esp + 0x38], 0x80
call edi
lea edx, [esp + 0x28]
lea eax, [esp + 0x1f0]
push edx
push eax
mov ecx, ebp
call fcn.00403cc0
test eax, eax
je 0x4037f5
lea ecx, [esp + 0x10]
lea edx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push eax
push esi
push str.Allocation
push ecx
mov dword [esp + 0x34], 3
mov dword [esp + 0x28], 0x100
call edi
test eax, eax
jne 0x40380a
mov ecx, dword [ebp + 0x8c]
mov eax, 1
cmp ecx, eax
jne 0x4037da
xor edx, edx
mov dl, byte [esp + 0xb8]
mov dh, byte [esp + 0xb9]
mov word [0x436910], dx
jmp 0x4037f1
xor ecx, ecx
mov cl, byte [esp + 0xdc]
mov ch, byte [esp + 0xdd]
mov word [0x436910], cx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
test esi, esi
jne 0x403825
jmp 0x4036e4
push 0
push 0
push str.Configuration_Manager_Registry_Key_Value_Querying_Failed_
call fcn.0042212f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x260
ret
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40383f
mov ecx, ebp
call fcn.00403850
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x260
ret
Function at 0x4046a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x120
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp + 0x18], 0x80
mov ecx, dword [esi + 0x8c]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*4]
shl eax, 3
lea ecx, [eax + 0x435eb8]
lea edx, [eax + 0x435e78]
push ecx
push edx
lea eax, [esp + 0x34]
push str.EnumMFCHILD0000PCI_s_s
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0xc]
lea edx, [esp + 0x2c]
push ecx
push 1
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40475b
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push edx
push 0
push str.PORTNAME
push eax
mov dword [esp + 0x30], 0x80
call ebp
lea ecx, [esp + 0x13]
push ecx
call fcn.0040e5b9
mov edx, dword [esi + 0x8c]
add esp, 4
lea ecx, [edx*8]
sub ecx, edx
lea edx, [ecx + ecx*4]
mov dword [edx*8 + 0x435dc0], eax
jmp 0x4047b8
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x404771
mov dword [0x435dc0], 5
jmp 0x4047b8
mov edx, dword [eax*4 + 0x4368d8]
lea ecx, [eax*8]
cmp edx, 0x20
jne 0x4047a3
sub ecx, eax
lea eax, [ecx + ecx*4]
shl eax, 3
mov ecx, dword [eax + 0x435cd8]
mov edx, dword [eax + 0x435ca8]
lea ecx, [edx + ecx*8]
mov dword [eax + 0x435dc0], ecx
jmp 0x4047b8
sub ecx, eax
lea eax, [ecx + ecx*4]
mov ecx, dword [eax*8 + 0x435ca8]
add ecx, edx
mov dword [eax*8 + 0x435dc0], ecx
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi + 0x8c]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*4]
shl eax, 3
lea ecx, [eax + 0x435eb8]
lea edx, [eax + 0x435e78]
push ecx
push edx
lea eax, [esp + 0x34]
push str.EnumMFCHILD0000PCI_s_s
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0xc]
lea edx, [esp + 0x2c]
push ecx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x404889
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push str.SBMPID
push eax
mov dword [esp + 0x28], 3
mov dword [esp + 0x34], 4
call ebp
test eax, eax
jne 0x40486c
mov esi, dword [esi + 0x8c]
mov ecx, dword [esp + 0x22]
and ecx, 0xff
pop edi
lea eax, [esi*8]
sub eax, esi
pop esi
pop ebp
lea edx, [eax + eax*4]
mov dword [edx*8 + 0x435dc4], ecx
add esp, 0x120
ret
mov esi, dword [esi + 0x8c]
lea eax, [esi*8]
sub eax, esi
lea eax, [eax + eax*4]
mov dword [eax*8 + 0x435dc4], 0
pop edi
pop esi
pop ebp
add esp, 0x120
ret
Function at 0x405050
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa4
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], 0x80
xor esi, esi
lea edi, [esi + 1]
lea eax, [esp + 0x24]
push edi
push str.COM__d
push eax
call ebp
mov edx, dword [ebx + 0x124]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push esi
push 0x14a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, edi
cmp esi, 0x100
jl 0x40506c
mov ecx, dword [ebx + 0x8c]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*4]
shl eax, 3
lea ecx, [eax + 0x435eb8]
lea edx, [eax + 0x435e78]
push ecx
push edx
lea eax, [esp + 0x3c]
push str.EnumMFCHILD0000PCI_s_s
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
push 1
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40515f
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push str.SBMPID
push eax
mov dword [esp + 0x2c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebx + 0x8c]
mov edx, dword [esp + 0x1b]
and edx, 0xff
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esp + 0x1a]
and ecx, 0xff
lea eax, [eax + eax*4]
mov dword [eax*8 + 0x435ddc], edx
mov ebx, dword [ebx + 0x8c]
lea eax, [ebx*8]
sub eax, ebx
lea edx, [eax + eax*4]
mov dword [edx*8 + 0x435dc4], ecx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret