joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486b60
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5099d8
push 0x4466f0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5181f4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov ebx, dword [ebp + 0xc]
cmp ebx, edi
je 0x486bd8
lea eax, [ebp - 0x20]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push ebx
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
jne 0x486c73
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0x23
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00444285
add esp, 4
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
jne 0x486c0c
lea esi, [eax + 0xe]
jmp 0x486c6e
push edi
push str.SystemCurrentControlSetServices
push str._s_s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test ebx, ebx
mov eax, dword [ebp - 0x20]
jne 0x486c2d
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x24]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x486c71
mov esi, dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push esi
push 2
push 0
push str.Description
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x486c71
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00486c89
mov dword [ebp - 4], 0xfffffffe
jmp 0x486cd3
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp esi, edi
sete al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x486ea0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push esi
push 0xf0000000
push 1
xor esi, esi
push esi
push esi
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x486ee2
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 4]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x486ee2
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x486ef3
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x486f30
Capabilities:
Create thread

Disassembly:
push esi
mov dword [0x5213f0], 0
mov dword [0x5213e4], 1
mov esi, 0x14
lea ebx, [ebx]
push 0
push 0x400
push 0x486f00
call fcn.004cd89a
add esp, 0xc
sub esi, 1
jne 0x486f50
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push eax
call esi
mov dword [0x5213e4], 0
push 1
call esi
mov ecx, dword [0x5213f0]
mov eax, dword [0x5213f0]
shr ecx, 3
xor eax, ecx
mov ecx, dword [0x5213ec]
shr eax, 3
xor ecx, eax
xor dword [0x5213f0], ecx
and dword [0x5213f0], 7
mov ecx, dword [0x5213f0]
mov dword [0x5213ec], ecx
mov eax, dword [0x5213e8]
mov edx, dword [0x5213f0]
add eax, eax
add eax, eax
add eax, eax
xor edx, eax
mov dword [0x5213e8], edx
mov eax, dword [0x5213e8]
pop esi
ret
Function at 0x486fe0
Capabilities:
Encode data using xor
Generate random numbers via winapi

Disassembly:
sub esp, 0x54
mov eax, dword [0x5181f4]
xor eax, esp
mov dword [esp + 0x50], eax
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x487018
push 8
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00443f20
add esp, 0xc
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.00486ea0
add esp, 8
test eax, eax
je 0x48705c
xor eax, eax
lea ecx, [ecx]
movzx ecx, byte [esp + eax + 0x28]
movzx edx, byte [esp + eax + 0x29]
xor byte [esp + eax + 0x18], cl
xor byte [esp + eax + 0x19], dl
movzx ecx, byte [esp + eax + 0x2a]
movzx edx, byte [esp + eax + 0x2b]
xor byte [esp + eax + 0x1a], cl
xor byte [esp + eax + 0x1b], dl
add eax, 4
cmp eax, 0x10
jl 0x487030
xor esi, esi
push esi
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push esi
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x487099
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x28]
push ecx
push 0x10
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x487099
mov esi, 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4870aa
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test esi, esi
je 0x4870dc
xor eax, eax
movzx ecx, byte [esp + eax + 0x28]
movzx edx, byte [esp + eax + 0x29]
xor byte [esp + eax + 0x18], cl
xor byte [esp + eax + 0x19], dl
movzx ecx, byte [esp + eax + 0x2a]
movzx edx, byte [esp + eax + 0x2b]
xor byte [esp + eax + 0x1a], cl
xor byte [esp + eax + 0x1b], dl
add eax, 4
cmp eax, 0x10
jl 0x4870b0
cmp dword [esp + 0x6c], 0
jne 0x487136
xor esi, esi
push 4
call fcn.00486f30
push 4
call fcn.00486f30
push 4
call fcn.00486f30
push 4
call fcn.00486f30
push 4
call fcn.00486f30
push 4
call fcn.00486f30
push 4
call fcn.00486f30
xor byte [esp + esi*4 + 0x34], al
xor byte [esp + esi*4 + 0x36], ah
mov ecx, eax
shr ecx, 0x10
xor byte [esp + esi*4 + 0x35], cl
xor byte [esp + esi*4 + 0x37], ch
add esi, 1
add esp, 0x1c
cmp esi, 4
jb 0x4870e5
xor edi, edi
xor esi, esi
lea ebx, [ebx]
movzx eax, byte [esp + edi + 0x18]
push eax
mov ecx, 0x21
push str._.2x
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x44]
push edx
call fcn.00442a35
add esi, 2
add esp, 0x10
add edi, 1
cmp esi, 0x20
jl 0x487140
push 0x10
lea eax, [esp + 0x3c]
push eax
push ebp
mov byte [esp + 0x64], 0
call fcn.004d2880
mov ecx, dword [esp + 0x68]
add esp, 0xc
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00441cbb
add esp, 0x54
ret
Function at 0x487820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x509a00
push 0x4466f0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5181f4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov byte [ebp - 0x19], 0
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x487a76
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x487a76
mov dword [ebp - 4], ebx
push 0x5028d0
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004438da
add esp, 0xc
test eax, eax
jne 0x487a26
mov ecx, dword [ebp - 0x20]
push ecx
push 1
push 4
lea edx, [ebp - 0x24]
push edx
call fcn.004cd46f
add esp, 0x10
cmp eax, 1
jne 0x487a26
mov eax, 4
mov edx, str.DPRV
lea esi, [ebp - 0x24]
cmp eax, 4
jb 0x4878cc
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x4878d0
sub eax, 4
add edx, 4
add esi, 4
jmp 0x4878b6
cmp eax, ebx
je 0x48792d
movzx ebx, byte [edx]
movzx ecx, byte [esi]
sub ecx, ebx
jne 0x48791f
sub eax, 1
add edx, 1
add esi, 1
test eax, eax
je 0x48792d
movzx ebx, byte [edx]
movzx ecx, byte [esi]
sub ecx, ebx
jne 0x48791f
sub eax, 1
add edx, 1
add esi, 1
test eax, eax
je 0x48792d
movzx ebx, byte [edx]
movzx ecx, byte [esi]
sub ecx, ebx
jne 0x48791f
sub eax, 1
add edx, 1
add esi, 1
test eax, eax
je 0x48792d
movzx edx, byte [edx]
movzx ecx, byte [esi]
sub ecx, edx
je 0x48792d
mov eax, 1
test ecx, ecx
jg 0x48792f
or eax, 0xffffffff
jmp 0x48792f
xor eax, eax
test eax, eax
jne 0x487a26
mov eax, dword [ebp - 0x20]
push eax
push 1
push 4
lea ecx, [ebp + 8]
push ecx
call fcn.004cd46f
add esp, 0x10
cmp eax, 1
jne 0x487a26
mov edx, dword [ebp + 8]
add edx, 2
push edx
call fcn.00444484
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x487a26
mov ecx, dword [ebp - 0x20]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
push eax
call fcn.004cd46f
add esp, 0x10
cmp eax, 1
jne 0x487a26
mov eax, dword [ebp + 8]
shr eax, 1
mov ecx, dword [edi]
mov word [ecx + eax*2], 0
mov edx, dword [ebp - 0x20]
push edx
mov esi, dword [ebp + 0xc]
lea eax, [esi + 0x48]
push eax
call fcn.004d39d0
add esp, 8
test eax, eax
je 0x487a26
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [esi + 0x24]
push edx
call fcn.004d39d0
add esp, 8
test eax, eax
je 0x487a26
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [esi + 0x30]
push ecx
call fcn.004d39d0
add esp, 8
test eax, eax
je 0x487a26
mov edx, dword [ebp - 0x20]
push edx
lea eax, [esi + 0x3c]
push eax
call fcn.004d39d0
add esp, 8
test eax, eax
je 0x487a26
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [esi + 0xc]
push edx
call fcn.004d39d0
add esp, 8
test eax, eax
je 0x487a26
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [esi + 0x18]
push ecx
call fcn.004d39d0
add esp, 8
test eax, eax
je 0x487a26
mov edx, dword [ebp - 0x20]
push edx
push esi
call fcn.004d39d0
add esp, 8
test eax, eax
je 0x487a26
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.00487a49
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48af80
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4d9bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5181f4]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
push edi
mov eax, dword [0x5181f4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edx, ecx
xor esi, esi
mov eax, edx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x48afd0
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00404373
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], esi
call fcn.00482160
mov ecx, eax
call fcn.004820a0
cmp word [eax], 0x5c
jne 0x48b01c
mov ecx, dword [esp + 0x2c]
add ecx, 0xffffffff
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x20]
call fcn.00404404
mov ecx, dword [esp + 0x1c]
mov edi, 8
cmp dword [esp + 0x30], edi
jae 0x48b02f
lea ecx, [esp + 0x1c]
call fcn.00496250
cmp dword [esp + 0x30], edi
mov esi, eax
jb 0x48b049
mov edx, dword [esp + 0x1c]
push edx
call fcn.00441cca
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00441cbb
add esp, 0x38
ret

Function at 0x48bce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d9cf8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x5181f4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov dword [esp + 0xc], eax
mov eax, esp
lea ecx, [esp + 0xc]
mov dword [eax], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], esp
call fcn.0048b1e0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x2c], 0
call fcn.0048b900
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0048ad10
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret 0x10
Function at 0x48d2a0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
mov dword [edi], 0
push ecx
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
mov esi, eax
je 0x48d368
test esi, esi
je 0x48d2f2
mov esi, 2
jmp 0x48d361
xor esi, esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0x10], eax
je 0x48d361
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [edi], eax
jne 0x48d322
lea esi, [eax + 0xe]
jmp 0x48d360
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x18]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48d356
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x48d360
push eax
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x48d360
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [eax], edx
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebx
ret

Function at 0x48d3f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push esi
push edi
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push ecx
push edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [esp + 0x14]
mov esi, eax
test esi, esi
jne 0x48d44f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push edi
push 0
push 0
push ecx
push edx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x48d45e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x48d468
mov eax, dword [esp + 0x24]
mov dword [edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
add esp, 8
ret
Function at 0x48d480
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
push 0
lea eax, [esp + 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x48d4e7
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x48d4e7
cmp dword [esp + 0x1c], eax
je 0x48d4e7
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov esi, eax
mov eax, dword [esp + 4]
test eax, eax
je 0x48d4f6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x48d590
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x48d5a2
mov dword [esp + 0x14], 0x4f9e20
mov eax, dword [esp + 0x14]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48d5b0
sub eax, edx
push ebx
sar eax, 1
lea ebx, [eax + 9]
push edi
mov dword [esp + 0x10], eax
lea eax, [ebx + ebx + 2]
push eax
push 8
mov byte [esp + 0x13], cl
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x48d5ef
lea eax, [edi + 0xe]
pop edi
pop ebx
add esp, 0xc
ret
push ebp
push esi
xor ebp, ebp
mov edx, dword [esp + 0x20]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push edi
push ebp
lea eax, [ebx + 1]
push edx
mov dword [esp + 0x34], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
add ebp, 1
sub eax, 0
je 0x48d654
sub eax, 0xea
je 0x48d5f3
sub eax, 0x19
jne 0x48d62c
xor esi, esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jne 0x48d64a
cmp byte [esp + 0x13], 0
lea eax, [esi + 2]
je 0x48d64c
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
push 0
push ebx
push edi
call fcn.0048d510
add esp, 0xc
test eax, eax
je 0x48d5f3
mov eax, dword [esp + 0x20]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
jne 0x48d62c
mov byte [esp + 0x13], 1
jmp 0x48d5f1
Function at 0x48d690
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebp
mov ebp, dword [esp + 0x18]
lea ecx, [ecx]
test edi, edi
je 0x48d6b6
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
cmp eax, esi
jbe 0x48d6b6
sub eax, esi
mov dword [esp + 8], eax
jmp 0x48d6be
mov dword [esp + 8], 0
test edi, edi
je 0x48d713
mov eax, dword [edi]
add eax, esi
test eax, eax
jne 0x48d6cf
mov eax, 1
mov edx, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push eax
mov eax, dword [esp + 0x18]
push ebp
push 0
push edx
push eax
call ebx
cmp eax, 0xea
jne 0x48d721
test edi, edi
je 0x48d717
mov ecx, dword [esp + 8]
add ecx, esi
push ecx
push 8
push edi
call fcn.0049ad50
add esp, 0xc
test eax, eax
je 0x48d71b
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x20]
add edx, esi
mov dword [eax], edx
jmp 0x48d6a0
xor eax, eax
jmp 0x48d6cf
xor eax, eax
jmp 0x48d725
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48d733
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x48d733
mov edx, dword [esp + 8]
mov dword [ecx], edx
pop ebp
pop ebx
pop ecx
ret
Function at 0x48d740
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20
push ebx
push ebp
xor ebx, ebx
cmp dword [esp + 0x30], ebx
push esi
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
jne 0x48d75f
mov dword [esp + 0x38], 0x4f9e20
mov eax, dword [esp + 0x38]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x48d766
sub eax, edx
sar eax, 1
mov edi, eax
lea esi, [edi + 9]
lea eax, [esi + esi + 2]
push eax
push 8
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
cmp ebp, ebx
jne 0x48d7a5
pop edi
pop esi
pop ebp
mov eax, 0xe
pop ebx
add esp, 0x20
ret
add esi, 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x34]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
push ebp
push eax
push esi
mov dword [esp + 0x3c], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add dword [esp + 0x10], 1
mov ebx, eax
sub eax, 0
je 0x48d828
sub eax, 0xea
je 0x48d7b0
sub eax, 0x19
jne 0x48d7fc
mov ebx, dword [esp + 0x14]
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 2
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x48d81e
mov eax, dword [esp + 0x40]
test eax, eax
je 0x48d81e
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x20
ret
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x3c]
lea eax, [edi + 9]
push eax
mov eax, dword [esp + 0x24]
push ebp
mov edx, edi
call fcn.0048d510
add esp, 0xc
test eax, eax
je 0x48d7b0
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x44]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
push ebp
push esi
mov esi, dword [esp + 0x3c]
call fcn.0048d690
add esp, 0x14
mov ebx, eax
sub eax, 0
je 0x48d882
sub eax, 2
jne 0x48d7fc
mov edi, dword [esp + 0x20]
jmp 0x48d7b0
cmp dword [esp + 0x18], esi
ja 0x48d892
mov edx, dword [esp + 0x2c]
add edx, esi
mov dword [esp + 0x18], edx
add dword [esp + 0x14], 1
mov edi, dword [esp + 0x20]
jmp 0x48d7b0
Function at 0x48d8a0
Capabilities:
Delete registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
push esi
mov dword [esp + 0xc], 0
je 0x48d8e6
mov ecx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x10]
push eax
push 0
or ecx, 0x20007
push ecx
push 0
push 0
push 0
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x48d935
mov eax, dword [esp + 0xc]
jmp 0x48d8e8
mov eax, ebx
push edi
mov edi, dword [esp + 0x20]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x48d91a
cmp esi, 2
jne 0x48d934
test ebp, ebp
mov eax, dword [esp + 0x10]
jne 0x48d90a
mov eax, ebx
push edi
push eax
call fcn.0048d590
mov esi, eax
add esp, 8
test esi, esi
jne 0x48d934
cmp dword [esp + 0x24], 0
je 0x48d934
test ebp, ebp
mov eax, dword [esp + 0x10]
jne 0x48d92b
mov eax, ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov esi, eax
pop edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x48d944
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
pop esi
pop ebp
sete al
pop ebx
pop ecx
ret

Function at 0x48dd80
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [esp + 0x18], ebx
push edi
jne 0x48dd95
mov dword [esp + 0x1c], 0x4f9e20
mov eax, dword [esp + 0x1c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48dda0
sub eax, edx
sar eax, 1
mov dword [esp + 0xc], eax
lea eax, [eax + eax + 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x48ddd6
lea eax, [edi + 0xe]
pop edi
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x28]
push ebp
lea ebp, [eax + 1]
push esi
shr ebp, 1
xor esi, esi
test eax, eax
mov dword [esp + 0x10], ebp
jbe 0x48de77
mov ecx, dword [esp + 0x14]
add ecx, 0xa
mov dword [esp + 0x14], ecx
lea ebx, [ebx]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push esi
push 8
push 0x24
push edx
push str._s_c_0X
push eax
push edi
call fcn.00442d5a
mov eax, dword [esp + 0x4c]
sub eax, esi
add esp, 0x1c
mov dword [esp + 0x18], eax
cmp eax, ebp
lea eax, [esp + 0x18]
jb 0x48de33
lea eax, [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edx]
mov edx, dword [esp + 0x24]
push eax
push ecx
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
je 0x48de6f
cmp ebx, 0x5aa
jne 0x48de77
cmp ebp, 3
jb 0x48de77
add ebp, 1
shr ebp, 1
mov dword [esp + 0x10], ebp
jmp 0x48de71
add esi, ebp
cmp esi, dword [esp + 0x30]
jb 0x48de00
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
add esp, 0xc
ret