joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415260
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push esi
push 0
push 0x2000000
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4152d2
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [esp + 4]
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
lea eax, [esp + 4]
mov dword [esp + 0xc], ecx
push eax
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x20
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x20
ret
Function at 0x416c30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad36e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1090
call fcn.0057ed50
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x18], bx
call fcn.004028e0
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
cmp eax, ebx
mov ecx, eax
jne 0x416c85
lea ecx, [ebp - 0x18]
mov eax, dword [0x67a008]
cmp eax, ebx
jne 0x416c93
mov eax, 0x67a00c
push ecx
push eax
lea eax, [ebp - 0xe94]
push 0x64fde0
push eax
call fcn.0057f81e
add esp, 0x10
lea ecx, [ebp - 0xe94]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x416e80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x416e80
push ebx
lea ecx, [ebp - 0xc8c]
call fcn.004333b0
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xc10]
push edx
mov byte [ebp - 4], 2
call fcn.0059aec6
push esi
lea ecx, [ebp - 0xc14]
call fcn.0059aec6
lea eax, [ebp - 0xe94]
lea ecx, [ebp - 0xc28]
push eax
call fcn.00401fc0
lea ecx, [ebp - 0xc8c]
mov byte [ebp - 0xc1c], bl
mov dword [ebp - 0xc30], 0x679c20
call fcn.00596cd3
cmp eax, 1
jne 0x416dd6
lea ecx, [ebp - 0xbcc]
mov byte [ebp - 4], 0xa
call fcn.0054a0f0
lea ecx, [ebp - 0xc08]
mov byte [ebp - 4], 9
call fcn.005a2849
lea ecx, [ebp - 0xc0c]
mov byte [ebp - 4], 8
call fcn.0059ad3d
lea ecx, [ebp - 0xc10]
mov byte [ebp - 4], 7
call fcn.0059ad3d
lea ecx, [ebp - 0xc14]
mov byte [ebp - 4], 6
call fcn.0059ad3d
lea ecx, [ebp - 0xc18]
mov byte [ebp - 4], 5
call fcn.0059ad3d
lea ecx, [ebp - 0xc28]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0xc2c]
mov byte [ebp - 4], 3
call fcn.0059ad3d
lea ecx, [ebp - 0xc8c]
mov byte [ebp - 4], 1
call fcn.00596914
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00401070
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0xbcc]
mov byte [ebp - 4], 0x12
call fcn.0054a0f0
lea ecx, [ebp - 0xc08]
mov byte [ebp - 4], 0x11
call fcn.005a2849
lea ecx, [ebp - 0xc0c]
mov byte [ebp - 4], 0x10
call fcn.0059ad3d
lea ecx, [ebp - 0xc10]
mov byte [ebp - 4], 0xf
call fcn.0059ad3d
lea ecx, [ebp - 0xc14]
mov byte [ebp - 4], 0xe
call fcn.0059ad3d
lea ecx, [ebp - 0xc18]
mov byte [ebp - 4], 0xd
call fcn.0059ad3d
lea ecx, [ebp - 0xc28]
mov byte [ebp - 4], 0xc
call fcn.00401070
lea ecx, [ebp - 0xc2c]
mov byte [ebp - 4], 0xb
call fcn.0059ad3d
lea ecx, [ebp - 0xc8c]
mov byte [ebp - 4], 1
call fcn.00596914
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00401070
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00401070
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x418550
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5ad5f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
push edi
mov ebp, ecx
push ebx
mov dword [esp + 0x14], ebp
call fcn.0059aab2
lea esi, [ebp + 4]
xor eax, eax
mov dword [esp + 0x28], eax
lea ecx, [esi + 4]
mov dword [esi], eax
mov dword [esi + 8], eax
mov word [ecx], ax
mov edi, dword [ebx + 4]
cmp edi, eax
je 0x418602
cmp dword [esi], eax
je 0x418602
push edi
call fcn.0057e90a
add esp, 4
test eax, eax
je 0x418602
mov eax, dword [esi]
cmp eax, edi
ja 0x418602
push eax
call fcn.0057e90a
mov edx, dword [esi]
add esp, 4
lea eax, [edx + eax*2]
cmp eax, edi
jb 0x418602
xor eax, eax
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x1c], ax
call fcn.00401fc0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 1
test eax, eax
jne 0x4185ea
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00401fc0
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.00401070
jmp 0x418648
mov ecx, esi
call fcn.00401070
test edi, edi
je 0x418648
push edi
call fcn.0057e90a
add esp, 4
test eax, eax
je 0x418648
push edi
call fcn.0057e90a
lea ecx, [eax + eax + 2]
push ecx
call fcn.005970d9
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x418648
push edi
call fcn.0057e90a
mov edx, dword [esi]
push edi
push edx
mov dword [esi + 8], eax
call fcn.0057eaaa
add esp, 0xc
lea eax, [ebx + 0x10]
lea ecx, [ebp + 0x10]
push eax
mov byte [esp + 0x2c], 2
call fcn.0059aab2
lea ecx, [ebx + 0x14]
mov byte [esp + 0x28], 3
push ecx
lea ecx, [ebp + 0x14]
call fcn.0059aab2
lea edx, [ebx + 0x18]
lea ecx, [ebp + 0x18]
push edx
mov byte [esp + 0x2c], 4
call fcn.0059aab2
mov eax, dword [ebx + 0x20]
pop edi
mov dword [ebp + 0x20], eax
mov ecx, dword [ebx + 0x24]
mov dword [ebp + 0x24], ecx
mov edx, dword [ebx + 0x28]
mov dword [ebp + 0x28], edx
mov eax, dword [ebx + 0x2c]
mov dword [ebp + 0x2c], eax
mov cl, byte [ebx + 0x30]
mov byte [ebp + 0x30], cl
mov dl, byte [ebx + 0x31]
mov ecx, dword [esp + 0x1c]
mov byte [ebp + 0x31], dl
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x4189b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5ad6a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x6754d4]
push esi
push edi
mov esi, ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 8]
push eax
push 0x64efb0
push ecx
mov dword [esp + 0x34], 0
call fcn.00593b08
mov eax, dword [esp + 0x44]
add esp, 0xc
test eax, eax
je 0x418a13
push eax
lea edx, [esp + 0x10]
push 0x64efb0
push edx
call fcn.00593b08
add esp, 0xc
mov ecx, dword [esp + 0x30]
mov edi, dword [esi + 0x90]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
add esi, 0x88
mov dword [esp + 0x14], ecx
lea ecx, [edi + 1]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
push 0xffffffffffffffff
push ecx
mov ecx, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
call fcn.00418f80
mov eax, dword [esi + 4]
lea edx, [edi + edi*2]
lea ecx, [esp + 8]
lea esi, [eax + edx*8]
push ecx
mov ecx, esi
call fcn.0059ae76
lea edx, [esp + 0xc]
lea ecx, [esi + 4]
push edx
call fcn.0059ae76
mov eax, dword [esp + 0x10]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x18]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x14], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 1
call fcn.0059ad3d
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.0059ad3d
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0x18

Function at 0x418b10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
lea ebx, [ecx + 8]
push esi
push ebp
mov ecx, ebx
call fcn.0056e150
test eax, eax
je 0x418ba2
mov al, byte [esp + 0x1c]
test al, al
je 0x418b3a
mov al, byte [esi + 0x30]
test al, al
jne 0x418ba2
mov edx, dword [esp + 0x14]
test edx, edx
je 0x418b6b
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi]
pop edi
not ecx
dec ecx
mov ecx, dword [eax - 8]
je 0x418b67
test ecx, ecx
je 0x418ba2
push edx
push eax
call fcn.0057ffb4
add esp, 8
jmp 0x418b70
test ecx, ecx
jmp 0x418b72
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
test eax, eax
sete al
test al, al
je 0x418ba2
mov eax, dword [esi + 4]
test eax, eax
jne 0x418b83
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418b9a
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x10
push ebp
mov ecx, ebx
call fcn.004202d0
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
Function at 0x41f740
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5ae040
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x64]
mov dword [esp + 0x14], 0x18
call fcn.0059ad3d
lea ecx, [esi + 0x60]
mov byte [esp + 0x14], 0x17
call fcn.0059ad3d
lea ecx, [esi + 0x5c]
mov byte [esp + 0x14], 0x16
call fcn.0059ad3d
lea ecx, [esi + 0x58]
mov byte [esp + 0x14], 0x15
call fcn.0059ad3d
lea ecx, [esi + 0x54]
mov byte [esp + 0x14], 0x14
call fcn.0059ad3d
lea ecx, [esi + 0x50]
mov byte [esp + 0x14], 0x13
call fcn.0059ad3d
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 0x12
call fcn.0059ad3d
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 0x11
call fcn.0059ad3d
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 0x10
call fcn.0059ad3d
lea ecx, [esi + 0x40]
mov byte [esp + 0x14], 0xf
call fcn.0059ad3d
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 0xe
call fcn.0059ad3d
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 0xd
call fcn.0059ad3d
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 0xc
call fcn.0059ad3d
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0xb
call fcn.0059ad3d
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 0xa
call fcn.0059ad3d
mov eax, dword [esi + 0x28]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call edi
mov ecx, dword [esi + 0x24]
push ecx
call edi
mov edx, dword [esi + 0x20]
push edx
call edi
mov eax, dword [esi + 0x1c]
push eax
call edi
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 5
call fcn.0059ad3d
lea ecx, [esi + 0x14]
mov byte [esp + 0x14], 4
call fcn.0059ad3d
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 3
call fcn.0059ad3d
lea ecx, [esi + 0xc]
mov byte [esp + 0x14], 2
call fcn.0059ad3d
lea ecx, [esi + 8]
mov byte [esp + 0x14], 1
call fcn.0059ad3d
lea ecx, [esi + 4]
mov byte [esp + 0x14], 0
call fcn.0059ad3d
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.0059ad3d
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x427600
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aeac6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [esi + 4], 0x5cd54c
mov dword [esi + 8], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x6754d4]
lea edi, [esi + 0x1c]
mov dword [ebp - 4], ebx
mov dword [edi], eax
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x120]
push ecx
push edx
mov dword [esi], 0x5cd548
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], ebx
mov eax, dword [0x67a050]
push ebx
push ebx
push 0x651f60
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4276d4
lea edi, [ebp - 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4276b3
lea ecx, [ebp - 0x120]
lea eax, [esi + 0x1c]
push ecx
push 0x64efb0
push eax
call fcn.00593b08
add esp, 0xc
lea edx, [ebp - 0x120]
push 0x651f54
push edx
call fcn.00587e70
add esp, 8
test eax, eax
jne 0x4276e2
mov dword [esi + 0x28], 1
jmp 0x4276e2
push 0x651f48
push edi
call fcn.00593b08
add esp, 8
mov edx, dword [0x67a050]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
push ecx
push ebx
push ebx
push 0x651f38
push edx
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42770f
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x24], eax
mov ecx, esi
mov dword [esi + 0x18], ebx
call fcn.004279a0
cmp dword [esi + 0x28], ebx
jne 0x427768
cmp dword [esi + 0x20], ebx
jne 0x427768
xor edi, edi
cmp edi, dword [esi + 0xc]
jge 0x427768
mov edx, dword [esi + 8]
lea ecx, [edi + edi*4]
push 0x651f48
mov eax, dword [edx + ecx*4]
push eax
call fcn.0057ffb4
add esp, 8
test eax, eax
jne 0x42775c
inc edi
mov eax, esi
mov dword [esi + 0x20], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc edi
jmp 0x427725
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427860
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aeb00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov edx, dword [0x67a050]
push esi
push edi
mov esi, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x18]
mov eax, dword [esi + 0x24]
push 4
push ecx
push 4
push 0
push 0x651f38
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
call ebx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x42791b
mov ecx, dword [esi + 8]
lea eax, [eax + eax*4]
lea edi, [esi + 0x1c]
mov edx, dword [ecx + eax*4 - 0x14]
push edx
push 0x64efb0
push edi
call fcn.00593b08
mov edx, dword [edi]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42790d
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [0x67a050]
push 0x651f60
push eax
call ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x67a050]
push 0x651f60
push ecx
jmp 0x42797a
mov eax, dword [esi + 0x28]
test eax, eax
je 0x42796f
push 0x651f54
lea ecx, [ebp - 0x14]
call fcn.0059adab
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [0x67a050]
push 1
push eax
push 0x651f60
push edx
call ebx
lea ecx, [ebp - 0x14]
call fcn.0059ad3d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x67a050]
push 0x651f60
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429850
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x429836
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x429854
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
invalid
mov edi, dword [eax + 0x24]
add byte [ebx + 0x448d2478], cl
or bh, bh
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4298b2
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x429899
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4298a2
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4298ac
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x42988e
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x429818
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4298ff
dec eax
je 0x4298f6
sub eax, 3
je 0x4298ed
mov dword [ebp - 4], 0x40
jmp 0x42991c
mov dword [ebp - 4], 4
jmp 0x429902
mov dword [ebp - 4], 0x20
jmp 0x429902
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x42994e
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4298ce
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0042915f
xor ebp, esi
wait
jb 0x429942
push dword [ebp + 0x14]
jne 0x429959
push 1
push esi
call edi
mov eax, esi
jmp 0x42995a
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42be40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x6754d4]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push edi
push ecx
lea edx, [ebp - 0x14]
push 0x652248
push edx
mov byte [ebp - 4], 1
call fcn.00593b08
mov edx, dword [ebp - 0x14]
add esp, 0x10
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
mov eax, dword [0x67a050]
push ecx
push 0
push 0
push edx
push eax
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42bed7
cmp dword [ebp - 0x18], 1
jne 0x42bed7
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0059ad3d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x6754d4]
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [0x67a530]
push esi
push esi
lea edx, [ebp + 8]
mov bl, 3
push ecx
push edx
mov byte [ebp - 4], bl
call fcn.00593b08
add esp, 0x10
cmp edi, 1
jne 0x42bf1b
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0x10]
push eax
push 0x64efb0
push ecx
call fcn.00593b08
add esp, 0xc
jmp 0x42bf5f
mov edx, dword [0x6754d4]
mov dword [ebp + 0xc], edx
mov eax, dword [0x67a52c]
push esi
lea ecx, [ebp + 0xc]
push eax
push ecx
mov byte [ebp - 4], 4
call fcn.00593b08
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp + 0x10]
push edx
push eax
push 0x65013c
push ecx
call fcn.00593b08
add esp, 0x10
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.0059ad3d
mov edx, dword [ebp + 0x10]
push 0x44
push 0x64f0d0
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x42bfad
push 0x652200
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00474aa0
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x67a050]
add esp, 8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0059ad3d
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.0059ad3d
jmp 0x42beba
Function at 0x433b40
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5afbdc
push eax
mov eax, dword [0x67a050]
mov dword fs:[0], esp
sub esp, 0x464
test eax, eax
push esi
jne 0x433bb8
push 0x67a050
push 0xf003f
push 0
push 0x652748
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x433bd0
push 0
push 0x67a050
push 0
push 0xf003f
push 0
push 0
push 0
push 0x652748
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x433c75
call fcn.00434b60
mov al, 1
pop esi
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
add esp, 0x470
ret
mov edx, dword [0x67a050]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push 0x652740
push edx
mov dword [esp + 0x24], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x433bb8
cmp esi, 2
je 0x433bb3
mov eax, dword [0x6754d4]
mov dword [esp + 4], eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x470], 0
call fcn.00480870
push esi
lea ecx, [esp + 8]
push 0x652714
push ecx
mov byte [esp + 0x47c], 1
call fcn.00593b08
mov edx, dword [esp + 0x10]
add esp, 0xc
lea ecx, [esp + 0x50]
push 1
push edx
call fcn.00480980
lea ecx, [esp + 0x50]
mov byte [esp + 0x470], 0
call fcn.00480970
lea ecx, [esp + 4]
mov dword [esp + 0x470], 0xffffffff
call fcn.0059ad3d
jmp 0x433bb8
mov eax, dword [0x6754d4]
mov dword [esp + 8], eax
lea ecx, [esp + 0x25c]
mov dword [esp + 0x470], 2
call fcn.00480870
push esi
lea ecx, [esp + 0xc]
push 0x6526cc
push ecx
mov byte [esp + 0x47c], 3
call fcn.00593b08
mov edx, dword [esp + 0x14]
add esp, 0xc
lea ecx, [esp + 0x25c]
push 1
push edx
call fcn.00480980
lea ecx, [esp + 0x25c]
mov byte [esp + 0x470], 2
call fcn.00480970
lea ecx, [esp + 8]
mov dword [esp + 0x470], 0xffffffff
call fcn.0059ad3d
mov ecx, dword [esp + 0x468]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x470
ret
Function at 0x435400
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afd20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
lea eax, [ebp - 0x14]
push ebx
lea ecx, [ebp - 0x18]
mov edx, dword [ebp + 8]
push eax
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4354fe
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
inc eax
inc esi
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
call fcn.005970d9
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.005970d9
add esp, 4
cmp esi, ebx
mov edi, eax
je 0x4354fe
cmp edi, ebx
je 0x4354fe
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x1c], edx
push edi
push ecx
lea edx, [ebp - 0x20]
push 0
push edx
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x4354d8
push esi
call fcn.00597102
add esp, 4
push edi
call fcn.00597102
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4354fe
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
push ecx
push edi
push edx
push eax
mov eax, dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4354fe
inc ebx
jmp 0x435482
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x435520
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afd30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
mov ebx, 0x104
lea eax, [ebp - 0x114]
push ebx
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
jne 0x43557e
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4355d0
lea ecx, [ebp + 8]
push eax
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x114]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4355d0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x114]
push edx
push eax
push edi
call fcn.004355f0
add esp, 0xc
test eax, eax
je 0x4355d0
inc esi
jmp 0x435551
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret