joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9463e0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
je 0x9464bb
mov eax, dword [esi + 0x3c]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x946414
cmp dword [esi + 0x40], edi
jae 0x946414
push eax
call fcn.00a7a976
add esp, 4
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jne 0x94642b
lea eax, [edi + edi]
push eax
call fcn.00a77370
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.00a828e0
add esp, 0xc
cmp edi, ebp
jbe 0x9464b7
lea ecx, [ecx]
mov edx, dword [esi + 0x3c]
mov bl, byte [edx + ebp]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0xaa6af0]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0xaa6af0]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x18]
jb 0x946440
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
pop ebp
mov edx, dword [esi + 0x20]
test edx, edx
je 0x9464f4
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x9464dc
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.00a828e0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x946515
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x946850
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esi + 0x78]
push edi
test ecx, ecx
je 0x946898
mov eax, dword [esi + 0x80]
mov edi, dword [esi + 0x7c]
cmp eax, edi
jae 0x9468d5
sub edi, eax
cmp edi, edx
jbe 0x94686e
mov edi, edx
push edi
add eax, ecx
push eax
push ebx
call fcn.00a828e0
mov eax, dword [esi + 0x6c]
add dword [esi + 0x80], edi
add dword [esi + 0x68], edi
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.00945fe0
mov dword [esi + 0x6c], eax
mov eax, edi
pop edi
pop ecx
ret
mov eax, dword [esi + 0x70]
test eax, eax
je 0x9468ce
push 0
lea ecx, [esp + 8]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x9468d5
mov edi, dword [esp + 4]
mov eax, dword [esi + 0x6c]
add dword [esi + 0x68], edi
mov edx, edi
mov ecx, ebx
call fcn.00945fe0
mov dword [esi + 0x6c], eax
mov eax, edi
pop edi
pop ecx
ret
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop ecx
ret
Function at 0x949060
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0xaa6af0]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0xaa6af0]
mov dword [edx + 8], ecx
ret

Function at 0x9490b0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0xaa6af0]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0xaa6af0]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x949890
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x9498c2
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x9498b8
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x9498d5
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.00a828e0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x949aa0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x949ae5
cmp byte [esi + 1], 0
je 0x949aed
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x949b02
cmp byte [esi + 1], 0
je 0x949af4
mov eax, dword [esi + 4]
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi + 0xc]
mov ebp, eax
mov dword [esp + 4], ebp
jmp 0x949b0b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x949abe
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x949b0b
mov edx, dword [esi + 0x1c]
mov dword [esp + 4], edx
mov ebp, edx
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x949b1f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.00a7a155
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x949b3d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x949c63
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x949b63
mov dword [esp + 0x14], eax
mov ecx, ebp
sub ecx, dword [esp + 0x14]
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x20], ecx
mov ebp, 0x404
cmp eax, 0x404
ja 0x949b7f
mov ebp, eax
cmp byte [esi], 0
je 0x949ba4
cmp byte [esi + 1], 0
je 0x949c63
mov eax, dword [esi + 0xc]
push 0
push 0
add eax, ecx
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x949ba7
mov dword [esi + 0x1c], ecx
cmp byte [esi], 0
je 0x949bc2
cmp byte [esi + 1], 0
je 0x949bc2
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
mov edi, ebp
je 0x949bea
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x949be4
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x949c10
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x949bfb
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00a828e0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x949c63
lea eax, [ebp - 3]
test eax, eax
jl 0x949c40
dec eax
cmp byte [eax + ebx], 0x50
jne 0x949c3c
cmp byte [eax + ebx + 1], 0x4b
jne 0x949c3c
cmp byte [eax + ebx + 2], 5
jne 0x949c3c
cmp byte [eax + ebx + 3], 6
je 0x949c59
test eax, eax
jge 0x949c20
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x14], edx
jae 0x949c63
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
mov edi, edx
jmp 0x949b52
mov ecx, dword [esp + 0x20]
add eax, ecx
mov dword [esp + 0x18], eax
push ebx
call fcn.00a78fec
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x94a3c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x94a3d8
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x94a3cd
cmp dword [edi + 0x7c], ebx
je 0x94a3e7
call fcn.0094a7b0
push ebx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0094a1d0
add esp, 0x10
test eax, eax
je 0x94a40e
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.00a7a155
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x94a450
push 0x4000
call fcn.00a7a155
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
cmp eax, ebx
jne 0x94a45c
push ebp
call fcn.00a78fec
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x18], ebx
cmp eax, ebx
jne 0x94a4a5
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.00949320
test eax, eax
jne 0x94a4a5
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x94a4cf
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x94a4d8
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
movzx eax, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [ebp + 0x70]
mov dword [ebp + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
cmp esi, ebx
je 0x94a515
mov cl, byte [esi]
cmp cl, bl
je 0x94a515
call fcn.00949060
add esi, 1
jne 0x94a505
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x94a830
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push ebp
mov ebp, dword [esp + 0xc]
push edi
jne 0x94a8e5
cmp dword [esi + 4], 0xffffffff
jne 0x94a8e5
lea edi, [esi + 0x140]
push edi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x94a860
sub eax, edx
mov cl, byte [eax + esi + 0x13f]
cmp cl, 0x5c
je 0x94a88a
cmp cl, 0x2f
je 0x94a88a
mov byte [eax + esi + 0x140], 0x2f
mov byte [eax + esi + 0x141], 0
cmp ebp, 1
jne 0x94a8aa
push ebp
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x94a8aa
mov eax, 0x2000000
pop edi
pop ebp
ret 8
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ebp
push ecx
push ebx
call fcn.00949770
add esp, 0x10
test eax, eax
jne 0x94a8cb
mov eax, dword [esp + 0x10]
pop edi
pop ebp
ret 8
call fcn.00949c80
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ebp
ret 8
pop edi
mov eax, 0x1000000
pop ebp
ret 8

Function at 0x94aed0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
mov ebp, dword [esp + 0x218]
xor ebx, ebx
push edi
mov edi, dword [esp + 0x220]
cmp ebp, ebx
je 0x94af60
push 0x104
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.00a7b9de
lea eax, [esp + 0x11c]
add esp, 0xc
lea edx, [eax + 1]
jmp 0x94af20
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x94af20
sub eax, edx
je 0x94af3e
lea ecx, [esp + eax + 0x10f]
mov al, byte [ecx]
cmp al, 0x2f
je 0x94af3c
cmp al, 0x5c
jne 0x94af3e
mov byte [ecx], bl
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x94af60
push ebx
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [edi]
cmp al, bl
je 0x94b022
push esi
mov esi, edi
mov ecx, edi
nop
cmp al, 0x2f
je 0x94af78
cmp al, 0x5c
jne 0x94af7a
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
cmp al, bl
jne 0x94af70
cmp esi, edi
je 0x94afaf
sub esi, edi
push esi
lea eax, [esp + 0x118]
push edi
push eax
call fcn.00a828e0
lea ecx, [esp + 0x120]
push ecx
push ebp
mov byte [esp + esi + 0x128], bl
call fcn.0094aed0
add esp, 0x14
mov byte [esp + 0x10], bl
pop esi
cmp ebp, ebx
je 0x94afcb
push 0x104
lea edx, [esp + 0x10]
push ebp
push edx
call fcn.00a7b9de
add esp, 0xc
lea eax, [esp + 0xc]
mov byte [esp + 0x10f], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x94afe0
sub eax, edx
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x10]
push edi
push edx
call fcn.00a7b9de
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov byte [esp + 0x113], bl
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x94b022
push ebx
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x214]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x20c
ret
Function at 0x94baa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, eax
mov dword [esp + 4], 0
test esi, esi
je 0x94babe
cmp dword [esi], 0
jbe 0x94babe
test edi, edi
je 0x94babe
mov byte [edi], 0
lea eax, [esp + 4]
push eax
push 0x101
push ecx
push edx
call fcn.0097eda0
test eax, eax
je 0x94bae3
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
add esp, 8
ret 4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 4]
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
test esi, esi
je 0x94bb29
test eax, eax
je 0x94bb19
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
add esp, 8
ret 4
test eax, eax
je 0x94bb3c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 4], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, 1
pop esi
add esp, 8
ret 4
Function at 0x94bb50
Capabilities:
Persist via winlogon helper dll registry key
Set registry value

Disassembly:
sub esp, 0x420
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea eax, [esp + 0x220]
push eax
mov esi, ecx
mov dword [esp + 0x10], 0
call edi
push str.Random...
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0x208
call edi
push 0xaedd70
lea eax, [esp + 0x10]
lea edi, [esp + 0x18]
lea ecx, [esp + 0x220]
mov edx, 0x80000002
call fcn.0094baa0
cmp al, 1
jne 0x94bbcf
mov edx, edi
push esi
push edx
call fcn.00a88f66
add esp, 8
test eax, eax
je 0x94bcd3
test esi, esi
je 0x94bc04
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0x20106
push str.REG_SZ
lea edx, [esp + 0x22c]
push edx
push 0x80000002
call fcn.0097ee40
test eax, eax
je 0x94bc1d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00a78f21
add esp, 0x420
ret
cmp byte [esi], 0x25
mov edi, 1
jne 0x94bc39
lea eax, [esi + 1]
push 0x25
push eax
call fcn.00a7a2c0
add esp, 8
test eax, eax
jne 0x94bc56
cmp byte [esi], 0x22
jne 0x94bc5b
cmp byte [esi + 1], 0x25
jne 0x94bc5b
lea ecx, [esi + 2]
push 0x25
push ecx
call fcn.00a7a2c0
add esp, 8
test eax, eax
je 0x94bc5b
mov edi, 2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x94bc60
sub eax, edx
mov edx, dword [esp + 8]
inc eax
push eax
push esi
push edi
push 0
push 0xaedd70
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 8]
test esi, esi
je 0x94bcc0
test eax, eax
je 0x94bca0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00a78f21
add esp, 0x420
ret
test eax, eax
je 0x94bcd3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x424]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.00a78f21
add esp, 0x420
ret
Function at 0x94bd00
Capabilities:
Set registry value

Disassembly:
sub esp, 0x424
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x420], eax
mov eax, dword [esp + 0x428]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x438]
push edi
mov edi, edx
mov ebx, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], 0
mov ebp, eax
test eax, eax
je 0x94bd52
push eax
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ebp, [esp + 0x228]
push str.Random...
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [esp + 0x18]
lea edi, [esp + 0x24]
mov ecx, ebp
mov edx, ebx
call fcn.0094c020
cmp al, 1
jne 0x94bd96
mov edx, edi
push esi
push edx
call fcn.00a88f66
add esp, 8
test eax, eax
jne 0x94bd96
push eax
jmp 0x94be66
xor edi, edi
cmp esi, edi
je 0x94bdc6
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
push 0x20006
push edi
push str.REG_SZ
push edi
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
je 0x94bdcd
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x94be6e
cmp byte [esi], 0x25
mov ebx, 1
jne 0x94bde9
lea edx, [esi + 1]
push 0x25
push edx
call fcn.00a7a2c0
add esp, 8
test eax, eax
jne 0x94be06
cmp byte [esi], 0x22
jne 0x94be0b
cmp byte [esi + 1], 0x25
jne 0x94be0b
lea eax, [esi + 2]
push 0x25
push eax
call fcn.00a7a2c0
add esp, 8
test eax, eax
je 0x94be0b
mov ebx, 2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x94be10
mov ecx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x10]
inc eax
push eax
push esi
push ebx
push edi
push ecx
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp esi, edi
je 0x94be56
cmp eax, edi
je 0x94be4b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x94be6e
cmp eax, edi
je 0x94be65
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], edi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, 1
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x424
ret 8
Function at 0x94be90
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
push ebp
xor ebp, ebp
cmp dword [0xb4c2fc], 0xffffffff
push edi
mov edi, ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
jne 0x94becd
push 0xb4c2fc
push str.RegDebug
mov ecx, str.SoftwareMicroWorld
mov edx, 0x80000002
call fcn.0094c0d0
test al, al
jne 0x94becd
mov dword [0xb4c2fc], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x10]
push ecx
push esi
mov ecx, ebx
mov edx, edi
mov dword [esp + 0x18], eax
call fcn.0094c0d0
cmp al, 1
jne 0x94bf1d
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0xc]
jne 0x94bf1d
cmp dword [0xb4c2fc], ebp
je 0x94c00f
push str._REGDEBUG__Same_Value...
push ebp
call fcn.0096a780
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, 1
pop edi
pop ebp
add esp, 0x10
ret
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
push ecx
push ebp
push 0x20006
push ebp
push str.REG_DWORD
push ebp
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
cmp edi, ebp
je 0x94bf68
cmp dword [0xb4c2fc], ebp
je 0x94bf59
push edi
push str._REGDEBUG__Error_in_RegCreateKeyExx._LastErr:_u
push ebp
call fcn.0096a780
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop ebp
add esp, 0x10
ret
mov eax, dword [esp + 8]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push ebp
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov eax, dword [esp + 8]
cmp edi, ebp
je 0x94bfa7
cmp eax, ebp
je 0x94bf97
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], ebp
cmp dword [0xb4c2fc], ebp
je 0x94bf59
push edi
push str._REGDEBUG__Error_in_RegSetValueEx._LastErr:_u
jmp 0x94bf50
cmp eax, ebp
je 0x94bfb6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], ebp
cmp dword [0xb4c2fc], ebp
je 0x94c00f
cmp ebx, ebp
je 0x94bff7
cmp esi, ebp
je 0x94bfea
mov ecx, dword [esp + 0xc]
push ecx
push esi
push ebx
push str._REGDEBUG__Success_in_writing_to__s__s____d
push ebp
call fcn.0096a780
add esp, 0x14
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, 1
pop edi
pop ebp
add esp, 0x10
ret
mov edx, dword [esp + 0xc]
push edx
push ebx
push str._REGDEBUG__Success_in_writing_to__s_NULL____d
jmp 0x94c006
cmp esi, ebp
je 0x94c00f
mov eax, dword [esp + 0xc]
push eax
push esi
push str._REGDEBUG__Success_in_writing_to_NULL__s____d
push ebp
call fcn.0096a780
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov al, 1
pop ebp
add esp, 0x10
ret