joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ce7a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4ce808
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404ef0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.00409934
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce80f
lea eax, [ebp - 0xc]
call fcn.00404c70
ret

Function at 0x4d5fdc
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d60f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call fcn.00405770
je 0x4d60dd
mov eax, ebx
call fcn.004ceb2c
mov eax, ebx
call fcn.0040564c
mov esi, eax
call fcn.0044b774
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4d60d6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi + 2]
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4d60be
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edi, eax
xor eax, eax
push ebp
push 0x4d60b7
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x4d60a0
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x335]
mov byte [edi], al
inc edi
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404f08
mov eax, dword [ebp - 0xc]
call fcn.00405110
lea ecx, [esi + 1]
mov edx, edi
call fcn.004030e8
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x54f66c]
push eax
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d60be
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d60dd
call fcn.0044b774
mov edx, dword [eax]
call dword [edx + 0x14]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d60fa
lea eax, [ebp - 0xc]
call fcn.00404c70
ret
Function at 0x4e8cac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4e8db4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x4e8dc4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x4e8d99
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4e8de8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 8]
call fcn.00402ef8
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4e8de8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4e8d2f
cmp dword [ebp - 0xc], 7
je 0x4e8d39
mov eax, 0x4e8e10
call fcn.0044a82c
mov ebx, edi
mov eax, esi
call fcn.00404c70
push dword [esi]
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404e78
push dword [ebp - 0x10]
push 0x4e8e34
mov eax, esi
mov edx, 3
call fcn.00405014
mov eax, ebx
call fcn.0040a0a4
inc eax
add ebx, eax
mov eax, ebx
sub eax, edi
cmp eax, dword [ebp - 8]
jb 0x4e8d42
mov eax, edi
call fcn.00402f14
lea edx, [ebp - 0x14]
mov eax, dword [esi]
call fcn.0040961c
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.00404cc4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8dbb
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404c94
ret
Function at 0x4e8e38
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405100
xor eax, eax
push ebp
push 0x4e8f63
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0x4e8f70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x4e8f40
mov dl, 1
mov eax, dword [0x418148]
call fcn.00403d00
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0040961c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov dl, 1
mov eax, dword [0x41844c]
call fcn.00403d00
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4e8f06
inc esi
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4e8eeb
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 8]
call fcn.00405110
mov edx, eax
lea ecx, [ebx + 1]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x10]
inc dword [ebp - 0x18]
dec esi
jne 0x4e8ed1
mov eax, dword [ebp - 0x10]
call fcn.00403d30
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
push eax
push 7
push 0
push 0x4e8f94
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0x14]
call fcn.00403d30
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8f6a
lea eax, [ebp - 0x1c]
call fcn.00404c70
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c94
ret
Function at 0x1002072e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi]
or eax, dword [edi + 4]
je 0x10020781
mov ecx, 8
mov esi, 0x13cee4d1
sub ebx, ebx
sub eax, eax
mov al, byte [edi]
inc edi
mul esi
rol ebx, 5
xor ebx, eax
dec ecx
jne 0x1002074a
test ebx, ebx
jne 0x1002075f
mov ebx, esi
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
shr ecx, 2
je 0x10020772
xor dword [edi], ebx
add edi, 4
dec ecx
jne 0x1002076a
mov ecx, dword [ebp + 0x10]
and cl, 3
je 0x10020781
xor byte [edi], bl
inc edi
dec cl
jne 0x1002077a
pop ebx
pop edi
pop esi
leave
ret

Function at 0x100265e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov ebx, 0x5e9212fc
mov edx, 0xa761f0f7
sub eax, eax
mov esi, dword [ebp + 0xc]
lea edi, [esi - 1]
inc edi
cmp byte [edi], 0
jne 0x100265f8
cmp esi, edi
je 0x10026621
mov al, byte [esi]
inc esi
imul ecx, eax, 0x71b2c107
ror edx, 6
xor ecx, edx
imul edx, eax, 0xebae624d
ror ebx, 7
xor edx, ebx
mov ebx, ecx
cmp esi, edi
jb 0x10026602
and ebx, 0x7fffffff
cmp ebx, 0x7fffffab
jb 0x10026635
sub ebx, 0x7fffffab
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov dword [eax + 4], edx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x100267ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push ebp
mov ebp, dword [ebp + 8]
mov ebx, dword [ebp + 0x8c]
mov ecx, dword [ebp + 0x94]
test ecx, ecx
je 0x10026800
lea edx, [esi + ecx]
cmp edx, edi
jbe 0x100267e3
mov edx, edi
mov al, byte [esi]
xor bl, al
mov byte [esi], bl
ror ebx, 8
dec ecx
inc esi
cmp esi, edx
jb 0x100267e3
test ecx, ecx
jne 0x100268a9
xor ebx, dword [ebp + 0x90]
mov edx, dword [ebp]
sub edi, 4
jmp 0x10026849
mov eax, 0x9c4e
mul edx
mov ecx, 0x7fffffab
div ecx
mov ecx, dword [ebp + 4]
imul ecx, ecx, 0x19660d
add ecx, 0x3c6ef35f
mov dword [ebp + 4], ecx
mov eax, dword [ebp + 8]
shr eax, 0x1b
mov ecx, dword [ebp + eax*4 + 0xc]
sub ecx, dword [ebp + 4]
mov dword [ebp + 8], ecx
mov dword [ebp + eax*4 + 0xc], edx
xor ebx, ecx
mov ecx, dword [esi]
xor ebx, ecx
mov dword [esi], ebx
mov ebx, ecx
add esi, 4
cmp esi, edi
jbe 0x10026808
add edi, 4
mov ecx, edi
sub ecx, esi
je 0x100268a6
mov eax, 0x9c4e
mul edx
mov ecx, 0x7fffffab
div ecx
mov ecx, dword [ebp + 4]
imul ecx, ecx, 0x19660d
add ecx, 0x3c6ef35f
mov dword [ebp + 4], ecx
mov eax, dword [ebp + 8]
shr eax, 0x1b
mov ecx, dword [ebp + eax*4 + 0xc]
sub ecx, dword [ebp + 4]
mov dword [ebp + 8], ecx
mov dword [ebp + eax*4 + 0xc], edx
xor ebx, ecx
mov dword [ebp + 0x90], ebx
mov ecx, 4
mov al, byte [esi]
xor bl, al
mov byte [esi], bl
ror ebx, 8
dec ecx
inc esi
cmp esi, edi
jb 0x10026897
mov dword [ebp], edx
mov dword [ebp + 0x8c], ebx
mov dword [ebp + 0x94], ecx
pop ebp
pop ebx
pop edi
pop esi
leave
ret
Function at 0x401c7c
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, dword [esp + 0x11c]
push eax
mov ecx, dword [esi + 0x310]
neg ecx
sbb ecx, ecx
xor ebx, ebx
and ecx, 0x100
add ecx, 0xf003f
push ecx
push ebx
push ebp
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401d8b
push edi
push ebx
push ebx
mov eax, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
push ebx
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x401d7f
cmp eax, ebx
jne 0x401d7f
xor edi, edi
cmp ecx, ebx
jbe 0x401d7f
mov eax, dword [esp + 0x10]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x24]
push ebx
lea edx, [esp + 0x2c]
push ecx
push edx
push edi
push eax
mov dword [esp + 0x38], 0x100
mov byte [esp + 0x3c], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x401d7f
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x124]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
push ebp
mov ecx, esi
call fcn.00401da0
test eax, eax
je 0x401d4e
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov ecx, esi
call fcn.004022f0
cmp dword [esi + 0x304], ebx
jne 0x401d59
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jae 0x401d7f
jmp 0x401cee
push ebx
push ebx
mov eax, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
push ebx
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
jne 0x401cdc
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0xc
Function at 0x401da0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov edx, ecx
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x120]
lea ebx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, dword [edx + 0x310]
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x124]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
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
and ecx, 3
neg edx
sbb edx, edx
rep movsb byte es:[edi], byte [esi]
and edx, 0x100
lea ecx, [esp + 0x10]
add edx, 0xf003f
push ecx
push edx
push eax
lea eax, [esp + 0x28]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401eae
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c], al
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x12c]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401eae
mov edx, dword [esp + 0x12c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x20]
push edx
push ecx
call fcn.0040ae50
add esp, 0xc
test eax, eax
jne 0x401eae
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 0x10
Function at 0x401fc0
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x114
xor eax, eax
lea edx, [esp + 0x14]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov edi, dword [esp + 0x128]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x402028
or ecx, 0xffffffff
xor eax, eax
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x310]
mov edi, 0x100
neg ecx
sbb ecx, ecx
lea eax, [esp + 0x10]
and ecx, edi
push eax
add ecx, 0xf003f
lea edx, [esp + 0x28]
push ecx
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40218d
push eax
push eax
push eax
push eax
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x402182
jmp 0x40208e
mov edi, 0x100
mov eax, dword [esp + 0x14]
xor ebp, ebp
test eax, eax
jbe 0x402182
lea esi, [ebx + 0x104]
lea edx, [esp + 0x18]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push 0
push edx
push esi
push ebp
push eax
mov dword [esp + 0x3c], edi
mov byte [esi], 0
mov byte [esp + 0x44], 0
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x402182
mov edx, dword [esp + 0x130]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call fcn.0040ae50
add esp, 0xc
test eax, eax
jne 0x402143
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x128]
push esi
push ecx
push edx
push str.DELETING__s_s__s__n
call fcn.00404dbb
mov eax, dword [ebx + 0x304]
add esp, 0x10
test eax, eax
je 0x402143
mov eax, dword [esp + 0x10]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x402156
push esi
push str.cant_delete_value__s_n
call fcn.00404dbb
add esp, 8
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jae 0x402182
mov edi, 0x100
jmp 0x4020a2
push 0
push 0
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x402089
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0xc
Function at 0x4021a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov edx, dword [esp + 0x118]
lea eax, [esp]
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 0x310]
mov edi, 0x100
neg ecx
sbb ecx, ecx
push eax
and ecx, edi
add ecx, 0xf003f
push ecx
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4022df
push eax
push eax
push eax
push eax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, eax
test esi, esi
je 0x402224
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x114
ret 0xc
mov eax, dword [esp + 0x10]
push ebp
xor ebp, ebp
mov esi, pe_nt_image_headers32
test eax, eax
jbe 0x4022d1
add ebx, 0x104
jmp 0x402245
mov edi, 0x100
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push 0
push eax
push ebx
push ebp
push ecx
mov dword [esp + 0x3c], edi
mov byte [ebx], 0
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, eax
test esi, esi
jne 0x4022d1
mov edx, dword [esp + 0x12c]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push ebx
call fcn.0040ae50
add esp, 0xc
test eax, eax
je 0x4022a9
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
mov esi, pe_nt_image_headers32
jb 0x402240
jmp 0x4022d1
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x130]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x114
ret 0xc
Function at 0x4022f0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x100
xor eax, eax
lea edx, [esp]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov edi, dword [esp + 0x114]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x118]
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
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.DELETING__s_n
call fcn.00404dbb
mov eax, dword [ebx + 0x304]
add esp, 8
test eax, eax
je 0x4023c5
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
lea ecx, [esp + 0x10]
push ecx
push 0x80000002
call esi
test eax, eax
je 0x4023c5
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
call fcn.00402720
lea eax, [esp + 0x10]
push eax
push 0x80000002
call esi
mov esi, eax
test esi, esi
je 0x4023c5
lea ecx, [esp + 0x10]
push ecx
push str.cant_delete_key__s_n
call fcn.00404dbb
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x100
ret 8

Function at 0x4023e0
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
mov edi, ecx
push str.DELETING_FILE__s_n
call fcn.00404dbb
mov eax, dword [edi + 0x304]
add esp, 8
test eax, eax
je 0x402422
push esi
call fcn.00404ebc
add esp, 4
test eax, eax
je 0x402422
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call fcn.00404ebc
add esp, 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x402720
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
push ebx
push edi
mov edi, dword [esp + 0x218]
mov ebx, ecx
push edi
push str.STS:__s_n
call fcn.00404dbb
mov ecx, dword [ebx + 0x310]
add esp, 8
neg ecx
sbb ecx, ecx
lea eax, [esp + 8]
and ecx, 0x100
push eax
add ecx, 0x20019
push ecx
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4028b0
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [esp + 0x24]
push eax
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4028b0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4027b0
push edi
mov ecx, ebx
call fcn.004026c0
pop edi
xor eax, eax
pop ebx
add esp, 0x20c
ret 4
push ebp
xor ebp, ebp
test eax, eax
push esi
jbe 0x4028a1
jmp 0x4027c5
mov edi, dword [esp + 0x220]
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push 0
lea edx, [esp + 0x12c]
push ecx
push edx
push ebp
push eax
mov dword [esp + 0x38], 0x100
mov byte [esp + 0x13c], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4028a1
or ecx, 0xffffffff
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d270
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00402720
mov ecx, dword [esp + 0x220]
push ecx
mov ecx, ebx
call fcn.004026c0
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jb 0x4027be
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebp
pop edi
pop ebx
add esp, 0x20c
ret 4
Function at 0x4028cc
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov ebx, dword [esp + 0x224]
mov ecx, dword [esi + 0x310]
push eax
neg ecx
sbb ecx, ecx
and ecx, 0x100
add ecx, 0x20019
push ecx
push ebp
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402921
push eax
push ebx
push str.cant_open_key__s_result0x_x_n
call fcn.00404dbb
add esp, 0xc
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 8
xor eax, eax
push edi
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [esp + 0x30]
push eax
push edx
lea edi, [esi + 0x204]
mov ecx, 0x40
push eax
push eax
push eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [esp + 0x18]
test ecx, ecx
mov dword [esp + 0x20], ecx
je 0x402a29
test eax, eax
jne 0x402a29
test ecx, ecx
mov dword [esp + 0x14], eax
jbe 0x402a29
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push 0
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
mov dword [esp + 0x3c], 0x100
mov byte [esp + 0x44], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402a29
mov edx, dword [esp + 0x22c]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea edx, [esp + 0x2c]
push edx
call fcn.0040ae50
add esp, 0xc
test eax, eax
jne 0x402a14
lea eax, [esp + 0x24]
lea ecx, [esp + 0x124]
push eax
push ebx
push str._s_s0000Device_Parameters
push ecx
call fcn.004050aa
add esp, 0x10
lea edx, [esp + 0x24]
lea eax, [esp + 0x124]
mov ecx, esi
push edx
push str.PortName
push eax
call fcn.004021a0
lea ecx, [esp + 0x27]
push ecx
call fcn.004049c6
add esp, 4
mov byte [eax + esi + 0x203], 1
inc ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x40296f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
xor eax, eax
pop edi
cmp ebp, ecx
pop esi
pop ebp
sete al
pop ebx
add esp, 0x214
ret 8