joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4794e2
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 0x479510
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47952e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00479448
jmp 0x47952e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47952e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00479448
test edi, edi
mov eax, edi
jne 0x479518
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x401474
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x124]
sub esp, 0x144
mov dword [ebp - 0x124], 0xa
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x116]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], eax
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
movsx ebx, byte [ebp - 0x116]
lea eax, [ebp - 0x120]
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
sub ebx, 0x41
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4014ec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.00401474
mov dword [esp], 0x4015c8
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x40202a
sub eax, 0x4015c8
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401591
lea esi, [ebp - 0x88]
mov dword [esp], ebx
call fcn.0040137a
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004013df
lea eax, [ebx + 0x1b800]
mov ecx, 0x40300c
or eax, ebx
or ecx, 1
xor edx, edx
mov dword [esp + 4], eax
mov eax, ebx
div ecx
mov dword [esp + 8], esi
add eax, 0x40300c
mov dword [esp], eax
call fcn.00401d2d
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x401d00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x409048
call sym._EnterCriticalSection_4
mov ebx, dword [0x409040]
sub esp, 4
test ebx, ebx
je 0x401d4b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401d44
test esi, esi
je 0x401d44
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401d20
mov dword [esp], 0x409048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401f30
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402058
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401fbe
cmp eax, 4
jne 0x401fe0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401fce
cmp edx, 4
je 0x401fce
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401f30
Function at 0x4011f0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
add ebx, 0xd7
sbb esi, 0x78
sbb edx, 0xe8
not ebx
rol edx, 0xd
inc esi
neg ebx
sub edx, 0xda
ror edx, 0x10
and ebx, 0x98
rol ebx, 0x4e
not esi
neg esi
bswap esi
dec esi
sbb edx, 0x94
ror ebx, 0x2d
or edi, 6
and edx, 0xc7
rcr esi, 0x66
bswap ebx
bswap eax
sbb ebx, 0xad
not eax
imul edi
imul ebx
sub esi, 0xb1
bswap esi
sub eax, 0x53
rcr esi, 0xbc
mov edi, 0x19
dec edx
rcl edx, 0xa2
not esi
rcr edx, 1
or eax, 3
rcr eax, 0xcd
sub ebx, 0x93
inc esi
inc edx
bswap eax
or ebx, 0x64
inc edx
and eax, 0xc
and edx, 0x45
rol edx, 0x74
mov esi, 0x43
inc esi
or esi, 0x2d
dec edx
xor ecx, ecx
xor edi, edi
neg esi
not ebx
inc edx
rcl edx, 0x4b
rcr edi, 0xb3
imul eax
rcl ebx, 0x27
mov ebx, 0x7c
imul edx
neg ebx
rcl ebx, 0x40
not eax
sbb ebx, 0xf2
imul edx
bswap ebx
imul edi
inc edi
rol edx, 9
add edi, 0x59
or esi, 0xc5
rcr edx, 0x52
neg edi
or ebx, 0x9a
and edx, 0x6a
ror edx, 0xda
not esi
imul edi
rcr ebx, 0x8b
or ebx, 0xaa
bswap esi
imul eax
rcr ebx, 0xe0
dec eax
imul eax
rcl eax, 0x60
bswap eax
bswap eax
neg esi
sbb eax, 0x79
or eax, 0x71
dec eax
dec esi
rol eax, 0x7c
add edi, 0xf5
mov edi, 0xd0
mov esi, 0x59
ror ebx, 0xad
ror esi, 0x8a
not edi
inc eax
mov ecx, dword [ebp + 0xc]
bswap edx
rol edi, 0x8e
inc esi
neg eax
inc eax
sbb esi, 0x92
rol ebx, 0x5e
sbb edx, 0x5c
neg eax
neg eax
imul eax
sub ebx, 0x50
ror edx, 0x84
sbb edx, 0x71
neg esi
inc edx
neg edi
rcr edi, 0xa8
sub edx, 0x2e
dec esi
and eax, 0x65
bswap edx
rcr eax, 4
or ebx, 0x4f
sbb esi, 0x9a
dec eax
rol edx, 0xaa
dec ebx
add ebx, 0x5f
imul esi
rcl edi, 0xb4
dec edx
mov edi, 0x61
bswap ebx
rcr ebx, 0xe5
or edx, 0x31
rcr esi, 0x38
rol edi, 0xcf
dec eax
bswap esi
imul edi
add edx, 0x6e
or eax, 0xe8
and eax, 0x81
add edi, 0x27
add eax, 0xb6
not esi
not edx
add eax, 0x81
rcl ebx, 0xec
mov edi, dword [ebp + 8]
mov ebx, eax
xor eax, ebx
mov eax, ebx
not byte [edi]
mov ebx, esi
mov ebx, esi
mov eax, esi
mov eax, esi
xor esi, esi
mov ebx, esi
xor eax, esi
mov ebx, esi
mov eax, ebx
add byte [edi], 0x79
mov eax, ebx
mov eax, ebx
mov eax, eax
mov esi, eax
xor esi, esi
xor ebx, eax
xor esi, ebx
mov eax, ebx
xor ebx, esi
sub byte [edi], 0x30
xor ebx, esi
xor esi, eax
xor eax, ebx
xor ebx, eax
xor eax, esi
xor eax, ebx
mov eax, ebx
mov eax, esi
xor esi, ebx
imul byte [edi]
inc edi
loop 0x4013b1
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4042b5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f5d0]
jne 0x4042bf
repz ret
jmp fcn.00406035
Function at 0x404946
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004036e1
and dword [ebp - 4], 0
cmp dword [0x430468], 0
mov ebx, eax
jne 0x4049f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404aa8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x404aa8
push eax
call fcn.0040366f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x430468], eax
call esi
push eax
call fcn.0040366f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43046c], eax
call esi
push eax
call fcn.0040366f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x430470], eax
call esi
push eax
call fcn.0040366f
pop ecx
mov dword [0x430478], eax
test eax, eax
je 0x4049f7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040366f
pop ecx
mov dword [0x430474], eax
mov eax, dword [0x430474]
cmp eax, ebx
je 0x404a4f
cmp dword [0x430478], ebx
je 0x404a4f
push eax
call fcn.004036ea
push dword [0x430478]
mov esi, eax
call fcn.004036ea
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404a4f
test edi, edi
je 0x404a4f
call esi
test eax, eax
je 0x404a46
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404a46
test byte [ebp - 0xc], 1
jne 0x404a4f
or dword [ebp + 0x10], 0x200000
jmp 0x404a88
mov eax, dword [0x43046c]
cmp eax, ebx
je 0x404a88
push eax
call fcn.004036ea
pop ecx
test eax, eax
je 0x404a88
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404a88
mov eax, dword [0x430470]
cmp eax, ebx
je 0x404a88
push eax
call fcn.004036ea
pop ecx
test eax, eax
je 0x404a88
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x430468]
call fcn.004036ea
pop ecx
test eax, eax
je 0x404aa8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404aaa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404bd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
xor edi, edi
mov eax, dword [esi + 0x144]
push ecx
push 0xf003f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], SysReAllocStringLen
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x404c86
mov ecx, dword [esi + 0x140]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ecx, edi
je 0x404c22
push ecx
call ebx
mov dword [esi + 0x140], edi
mov edx, dword [esp + 0x10]
cmp eax, edi
mov dword [esi + 0x140], edx
jne 0x404c86
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esi + 0x140]
lea edx, [esp + 0x18]
push ecx
push edx
push edi
push str.DebugLevel
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404c71
mov byte [esi + 0x150], 1
mov dword [esp + 0xc], SysReAllocStringLen
mov eax, dword [esi + 0x140]
cmp eax, edi
je 0x404c8d
push eax
call ebx
mov dword [esi + 0x140], edi
jmp 0x404c8d
mov byte [esi + 0x150], 1
cmp dword [0x4398e0], edi
je 0x404ce3
mov eax, dword [esp + 0xc]
cmp eax, 3
ja case.default.0x404c9e
jmp dword [eax*4 + 0x404cec]
push 0x3fa
jmp 0x404cbf
push 0x3f8
jmp 0x404cbf
push 0x3f9
jmp 0x404cbf
push 0x3f6
push 0x3fa
push 0x3f6
mov ecx, esi
call fcn.00420f82
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push edi
push edi
push str.Select_Debug_Level
call fcn.00424a00
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x404bd4
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
xor edi, edi
mov eax, dword [esi + 0x144]
push ecx
push 0xf003f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], SysReAllocStringLen
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x404c86
mov ecx, dword [esi + 0x140]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ecx, edi
je 0x404c22
push ecx
call ebx
mov dword [esi + 0x140], edi
mov edx, dword [esp + 0x10]
cmp eax, edi
mov dword [esi + 0x140], edx
jne 0x404c86
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esi + 0x140]
lea edx, [esp + 0x18]
push ecx
push edx
push edi
push str.DebugLevel
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404c71
mov byte [esi + 0x150], 1
mov dword [esp + 0xc], SysReAllocStringLen
mov eax, dword [esi + 0x140]
cmp eax, edi
je 0x404c8d
push eax
call ebx
mov dword [esi + 0x140], edi
jmp 0x404c8d
mov byte [esi + 0x150], 1
cmp dword [0x4398e0], edi
je 0x404ce3
mov eax, dword [esp + 0xc]
cmp eax, 3
ja case.default.0x404c9e
jmp dword [eax*4 + 0x404cec]
push 0x3fa
jmp 0x404cbf
push 0x3f8
jmp 0x404cbf
push 0x3f9
jmp 0x404cbf
push 0x3f6
push 0x3fa
push 0x3f6
mov ecx, esi
call fcn.00420f82
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push edi
push edi
push str.Select_Debug_Level
call fcn.00424a00
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x405160
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
lea ecx, [esp + 8]
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40520a
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
je 0x4051ac
push ecx
call ebx
mov dword [esi + 0x320], 0
mov edx, dword [esp + 8]
test eax, eax
mov dword [esi + 0x320], edx
jne 0x40520a
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.RegMaxTxPacketSize
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4051ed
mov eax, dword [esi + 0x32c]
push 0
push 0
push eax
call fcn.00424a00
mov eax, dword [esi + 0x320]
test eax, eax
je 0x40521a
push eax
call ebx
mov dword [esi + 0x320], 0
pop esi
pop ebx
pop ecx
ret 0x2c
mov ecx, dword [esi + 0x32c]
push 0
push 0
push ecx
call fcn.00424a00
pop esi
pop ebx
pop ecx
ret 0x2c

Function at 0x405162
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
lea ecx, [esp + 8]
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40520a
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
je 0x4051ac
push ecx
call ebx
mov dword [esi + 0x320], 0
mov edx, dword [esp + 8]
test eax, eax
mov dword [esi + 0x320], edx
jne 0x40520a
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.RegMaxTxPacketSize
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4051ed
mov eax, dword [esi + 0x32c]
push 0
push 0
push eax
call fcn.00424a00
mov eax, dword [esi + 0x320]
test eax, eax
je 0x40521a
push eax
call ebx
mov dword [esi + 0x320], 0
pop esi
pop ebx
pop ecx
ret 0x2c
mov ecx, dword [esi + 0x32c]
push 0
push 0
push ecx
call fcn.00424a00
pop esi
pop ebx
pop ecx
ret 0x2c
Function at 0x405220
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
lea ecx, [esp + 8]
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4052ca
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
je 0x40526c
push ecx
call ebx
mov dword [esi + 0x320], 0
mov edx, dword [esp + 8]
test eax, eax
mov dword [esi + 0x320], edx
jne 0x4052ca
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.RegMaxRxPacketSize
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4052ad
mov eax, dword [esi + 0x32c]
push 0
push 0
push eax
call fcn.00424a00
mov eax, dword [esi + 0x320]
test eax, eax
je 0x4052da
push eax
call ebx
mov dword [esi + 0x320], 0
pop esi
pop ebx
pop ecx
ret 0x2c
mov ecx, dword [esi + 0x32c]
push 0
push 0
push ecx
call fcn.00424a00
pop esi
pop ebx
pop ecx
ret 0x2c

Function at 0x405222
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
lea ecx, [esp + 8]
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4052ca
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
je 0x40526c
push ecx
call ebx
mov dword [esi + 0x320], 0
mov edx, dword [esp + 8]
test eax, eax
mov dword [esi + 0x320], edx
jne 0x4052ca
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.RegMaxRxPacketSize
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4052ad
mov eax, dword [esi + 0x32c]
push 0
push 0
push eax
call fcn.00424a00
mov eax, dword [esi + 0x320]
test eax, eax
je 0x4052da
push eax
call ebx
mov dword [esi + 0x320], 0
pop esi
pop ebx
pop ecx
ret 0x2c
mov ecx, dword [esi + 0x32c]
push 0
push 0
push ecx
call fcn.00424a00
pop esi
pop ebx
pop ecx
ret 0x2c
Function at 0x4052e0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
lea ecx, [esp + 8]
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40538a
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
je 0x40532c
push ecx
call ebx
mov dword [esi + 0x320], 0
mov edx, dword [esp + 8]
test eax, eax
mov dword [esi + 0x320], edx
jne 0x40538a
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.RegUsbStatusMaxPolls
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40536d
mov eax, dword [esi + 0x32c]
push 0
push 0
push eax
call fcn.00424a00
mov eax, dword [esi + 0x320]
test eax, eax
je 0x40539a
push eax
call ebx
mov dword [esi + 0x320], 0
pop esi
pop ebx
pop ecx
ret 0x2c
mov ecx, dword [esi + 0x32c]
push 0
push 0
push ecx
call fcn.00424a00
pop esi
pop ebx
pop ecx
ret 0x2c

Function at 0x4052e2
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
lea ecx, [esp + 8]
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40538a
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
je 0x40532c
push ecx
call ebx
mov dword [esi + 0x320], 0
mov edx, dword [esp + 8]
test eax, eax
mov dword [esi + 0x320], edx
jne 0x40538a
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.RegUsbStatusMaxPolls
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40536d
mov eax, dword [esi + 0x32c]
push 0
push 0
push eax
call fcn.00424a00
mov eax, dword [esi + 0x320]
test eax, eax
je 0x40539a
push eax
call ebx
mov dword [esi + 0x320], 0
pop esi
pop ebx
pop ecx
ret 0x2c
mov ecx, dword [esi + 0x32c]
push 0
push 0
push ecx
call fcn.00424a00
pop esi
pop ebx
pop ecx
ret 0x2c
Function at 0x4053a0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
lea ecx, [esp + 8]
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40544a
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
je 0x4053ec
push ecx
call ebx
mov dword [esi + 0x320], 0
mov edx, dword [esp + 8]
test eax, eax
mov dword [esi + 0x320], edx
jne 0x40544a
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.RegUsbReadMaxPolls
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40542d
mov eax, dword [esi + 0x32c]
push 0
push 0
push eax
call fcn.00424a00
mov eax, dword [esi + 0x320]
test eax, eax
je 0x40545a
push eax
call ebx
mov dword [esi + 0x320], 0
pop esi
pop ebx
pop ecx
ret 0x2c
mov ecx, dword [esi + 0x32c]
push 0
push 0
push ecx
call fcn.00424a00
pop esi
pop ebx
pop ecx
ret 0x2c

Function at 0x4053a2
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
lea ecx, [esp + 8]
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40544a
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
je 0x4053ec
push ecx
call ebx
mov dword [esi + 0x320], 0
mov edx, dword [esp + 8]
test eax, eax
mov dword [esi + 0x320], edx
jne 0x40544a
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.RegUsbReadMaxPolls
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40542d
mov eax, dword [esi + 0x32c]
push 0
push 0
push eax
call fcn.00424a00
mov eax, dword [esi + 0x320]
test eax, eax
je 0x40545a
push eax
call ebx
mov dword [esi + 0x320], 0
pop esi
pop ebx
pop ecx
ret 0x2c
mov ecx, dword [esi + 0x32c]
push 0
push 0
push ecx
call fcn.00424a00
pop esi
pop ebx
pop ecx
ret 0x2c
Function at 0x405460
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
lea ecx, [esp + 8]
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40550a
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
je 0x4054ac
push ecx
call ebx
mov dword [esi + 0x320], 0
mov edx, dword [esp + 8]
test eax, eax
mov dword [esi + 0x320], edx
jne 0x40550a
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.RegEnableHwFlowControl
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4054ed
mov eax, dword [esi + 0x32c]
push 0
push 0
push eax
call fcn.00424a00
mov eax, dword [esi + 0x320]
test eax, eax
je 0x40551a
push eax
call ebx
mov dword [esi + 0x320], 0
pop esi
pop ebx
pop ecx
ret 0x2c
mov ecx, dword [esi + 0x32c]
push 0
push 0
push ecx
call fcn.00424a00
pop esi
pop ebx
pop ecx
ret 0x2c

Function at 0x405462
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
lea ecx, [esp + 8]
mov eax, dword [esi + 0x324]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40550a
mov ecx, dword [esi + 0x320]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
je 0x4054ac
push ecx
call ebx
mov dword [esi + 0x320], 0
mov edx, dword [esp + 8]
test eax, eax
mov dword [esi + 0x320], edx
jne 0x40550a
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.RegEnableHwFlowControl
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4054ed
mov eax, dword [esi + 0x32c]
push 0
push 0
push eax
call fcn.00424a00
mov eax, dword [esi + 0x320]
test eax, eax
je 0x40551a
push eax
call ebx
mov dword [esi + 0x320], 0
pop esi
pop ebx
pop ecx
ret 0x2c
mov ecx, dword [esi + 0x32c]
push 0
push 0
push ecx
call fcn.00424a00
pop esi
pop ebx
pop ecx
ret 0x2c