joyce8/EMBER2024-capa huggingface dataset:
Function at 0x519ba0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6208f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
lea eax, [ebp + 0x10]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
xor esi, esi
mov ecx, dword [ebp + 0xc]
push eax
push 0x20019
push esi
push ecx
push edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0x20019
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x519c0c
push 0x6d6f1c
mov ecx, dword [ebp + 8]
call fcn.005fab5b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x1c]
push esi
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x34]
push edx
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push esi
lea edx, [ebp - 0x20]
push ecx
push edx
push esi
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x519c3e
push 0x6d6f7c
jmp 0x519bf1
mov eax, dword [ebp + 0xc]
inc eax
push eax
mov dword [ebp + 0xc], eax
call fcn.005f6c5c
mov ebx, eax
mov eax, dword [ebp - 0x14]
add esp, 4
inc eax
mov dword [ebp - 0x14], eax
push eax
call fcn.005f6c5c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
add esp, 4
inc eax
mov dword [ebp - 0x18], eax
push eax
call fcn.005f6c5c
mov edi, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x30], eax
cmp esi, dword [ebp - 0x20]
jae 0x519cd2
push 0x6bcdb0
mov ecx, edi
call fcn.005fab5b
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x3c]
push edx
push 0
push 0
lea eax, [ebp - 0x24]
push 0
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x10]
push eax
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x519cbd
push 0x6d6f5c
mov ecx, edi
call fcn.005fab5b
inc esi
jmp 0x519c79
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
push edx
push eax
push ebx
push edi
call fcn.00519d20
inc esi
jmp 0x519c79
push ebx
call fcn.005f6c85
mov ecx, dword [ebp - 0x2c]
add esp, 4
push ecx
call fcn.005f6c85
mov edx, dword [ebp - 0x30]
add esp, 4
push edx
call fcn.005f6c85
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x51aaa0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
push 0x6d713c
mov byte [eax], bl
call edi
mov ebp, eax
cmp ebp, ebx
je 0x51acde
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6d712c
push ebp
call esi
push 0x6d710c
push ebp
mov dword [0x6ecc18], eax
call esi
push 0x6d70ec
push ebp
mov dword [0x6ecc08], eax
call esi
push 0x6d70cc
push ebp
mov dword [0x6ecc0c], eax
call esi
push 0x6d70c0
mov dword [0x6ecc10], eax
call edi
mov edi, eax
mov eax, dword [0x6ecc18]
cmp eax, ebx
mov dword [esp + 0x30], edi
je 0x51acd7
cmp dword [0x6ecc08], ebx
je 0x51acd7
cmp dword [0x6ecc0c], ebx
je 0x51acd7
cmp dword [0x6ecc10], ebx
je 0x51acd7
cmp edi, ebx
je 0x51acd7
push 0x6d70ac
push edi
call esi
cmp eax, ebx
mov dword [0x6ecc14], eax
jne 0x51ab75
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x88
ret 8
xor ecx, ecx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x20], ecx
xor eax, eax
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x34]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ecx
mov ecx, 0xd
rep stosd dword es:[edi], eax
mov eax, 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x20]
lea edx, [esp + 0x10]
mov dword [esp + 0x4c], eax
push ecx
mov esi, 2
mov al, 0xc2
push edx
push ebx
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], 0x34
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x68], 0x210
mov dword [esp + 0x1c], 0xaac56b
mov word [esp + 0x20], 0xcd44
mov word [esp + 0x22], 0x11d0
mov byte [esp + 0x24], 0x8c
mov byte [esp + 0x25], al
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], 0xc0
mov byte [esp + 0x28], 0x4f
mov byte [esp + 0x29], al
mov byte [esp + 0x2a], 0x95
mov byte [esp + 0x2b], 0xee
call dword [0x6ecc18]
test eax, eax
jne 0x51acb8
mov eax, dword [esp + 0x54]
push eax
call dword [0x6ecc08]
cmp eax, ebx
je 0x51aca3
cmp dword [eax + 0x40], ebx
je 0x51aca3
push ebx
push ebx
push ebx
push eax
call dword [0x6ecc0c]
cmp eax, ebx
je 0x51aca3
cmp dword [eax + 0xc], ebx
je 0x51aca3
push ebx
push eax
call dword [0x6ecc10]
cmp eax, ebx
je 0x51aca3
mov edx, dword [eax + 4]
lea ecx, [esp + 0x68]
push 0x17
push ecx
push ebx
push ebx
push 4
push edx
call dword [0x6ecc14]
test eax, eax
je 0x51aca3
lea eax, [esp + 0x68]
push 0x6d7094
push eax
call fcn.005de644
add esp, 8
test eax, eax
jne 0x51aca3
mov ecx, dword [esp + 0xa0]
mov byte [ecx], 1
lea edx, [esp + 0x34]
lea eax, [esp + 0x10]
push edx
push eax
push ebx
mov dword [esp + 0x5c], esi
call dword [0x6ecc18]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebp
call esi
mov ecx, dword [esp + 0x30]
push ecx
call esi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x88
ret 8
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x88
ret 8
Function at 0x51b7b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
mov dword [ebp], 0x64eec8
mov dword [ebp + 0x930], esi
mov dword [ebp + 0x92c], esi
call fcn.00444af0
mov edx, dword [0x6ec7a0]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea eax, [ebp + 4]
push ecx
push eax
push esi
push esi
push 0x6d71fc
push edx
mov dword [esp + 0x28], 0x24a
call ebx
test eax, eax
je 0x51b80f
mov ecx, 0x82
xor eax, eax
lea edi, [ebp + 0x44]
mov byte [ebp + 0x24c], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x6ed77c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebp + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x24e]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x6ec7a0]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push 0
push 0x6d71e8
push edx
mov dword [esp + 0x28], 0x24a
call ebx
test eax, eax
je 0x51b873
mov ecx, 0x82
xor eax, eax
lea edi, [ebp + 0x28e]
mov byte [ebp + 0x496], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x6ed778]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebp + 0x24e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x498]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x6ec7a0]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push 0
push 0x6d71d8
push edx
mov dword [esp + 0x28], 0x24a
call ebx
test eax, eax
je 0x51b8da
mov ecx, 0x82
xor eax, eax
lea edi, [ebp + 0x4d8]
mov byte [ebp + 0x6e0], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x6ed770]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebp + 0x498]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x6e2]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x6ec7a0]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push 0
push 0x6d71c8
push edx
mov dword [esp + 0x28], 0x24a
call ebx
test eax, eax
je 0x51b941
mov ecx, 0x82
xor eax, eax
lea edi, [ebp + 0x722]
mov byte [ebp + 0x92a], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x6ed774]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebp + 0x6e2]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x51b9b0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x6ec7a0]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 4]
push 0x24a
push eax
push 0
push 0
push 0x6d71fc
push ecx
call edi
mov eax, dword [0x6ec7a0]
lea edx, [esi + 0x24e]
push 0x24a
push edx
push 0
push 0
push 0x6d71e8
push eax
call edi
mov edx, dword [0x6ec7a0]
lea ecx, [esi + 0x498]
push 0x24a
push ecx
push 0
push 0
push 0x6d71d8
push edx
call edi
mov eax, dword [0x6ec7a0]
add esi, 0x6e2
push 0x24a
push esi
push 0
push 0
push 0x6d71c8
push eax
call edi
pop edi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x620a53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x92c]
mov dword [ebp - 0x10], esp
cmp eax, ebx
jne 0x51bb0e
call fcn.0051ba30
test al, al
jne 0x51bb0e
lea ecx, [ebp - 0x220]
call fcn.004ab420
mov eax, dword [0x6e7b6c]
mov dword [ebp - 4], ebx
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
push 0x6d7228
push ecx
call fcn.005f368b
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x220]
push 1
push edx
call fcn.004ab540
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.005fa859
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
call fcn.004ab530
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x51bafb
push 0x20001
push ebx
push edi
mov dword [ebp - 4], 2
call dword [esi + 0x92c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x51be30
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push 0
push eax
push 0
push 0xf003f
mov esi, ecx
push 0
mov ecx, dword [0x6ec7a0]
push 0x6ec0c8
push 0
push 0x6c09f4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x51bf69
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esi + 8]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x18]
push 0x6d72cc
push eax
call edi
mov edx, dword [esp + 8]
lea ecx, [esi + 4]
push 4
push ecx
push 4
push 0
push 0x6d72bc
push edx
call edi
mov ecx, dword [esp + 8]
lea eax, [esi + 0xc]
push 4
push eax
push 4
push 0
push 0x6d72b4
push ecx
call edi
mov eax, dword [esp + 8]
lea edx, [esi + 0x10]
push 4
push edx
push 4
push 0
push 0x6d72ac
push eax
call edi
mov edx, dword [esp + 8]
lea ecx, [esi + 0x14]
push 4
push ecx
push 4
push 0
push 0x6d72a4
push edx
call edi
mov ecx, dword [esp + 8]
lea eax, [esi + 0x18]
push 4
push eax
push 4
push 0
push 0x6d729c
push ecx
call edi
mov eax, dword [esp + 8]
lea edx, [esi + 0x1c]
push 4
push edx
push 4
push 0
push 0x6d7294
push eax
call edi
mov edx, dword [esp + 8]
lea ecx, [esi + 0x20]
push 4
push ecx
push 4
push 0
push 0x6d728c
push edx
call edi
mov ecx, dword [esp + 8]
lea eax, [esi + 0x24]
push 4
push eax
push 4
push 0
push 0x6d7284
push ecx
call edi
mov eax, dword [esp + 8]
lea edx, [esi + 0x28]
push 4
push edx
push 4
push 0
push 0x6d7278
push eax
call edi
mov ecx, dword [esp + 8]
add esi, 0x2c
push 4
push esi
push 4
push 0
push 0x6d726c
push ecx
call edi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ecx
ret
Function at 0x51c8b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
mov edx, dword [0x6ec7a0]
push esi
mov esi, ecx
lea eax, [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
mov ebx, 4
push 0x6d7304
push edx
mov dword [esp + 0x24], ebx
call edi
test eax, eax
jne 0x51c8fe
push eax
push 0x400
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.005e09d0
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov eax, dword [esi + 0xc]
test eax, eax
jg 0x51c91c
jl 0x51c90e
mov eax, dword [esi + 8]
test eax, eax
ja 0x51c91c
mov dword [esi + 8], 0x2800
mov dword [esi + 0xc], 0
mov eax, dword [0x6ec7a0]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push 0x6d72f8
push eax
mov dword [esp + 0x24], ebx
call edi
test eax, eax
jne 0x51c94b
mov eax, dword [esp + 0x10]
test eax, eax
setne cl
mov byte [esi + 0x11], cl
mov al, byte [esi + 0x11]
test al, al
je 0x51c956
mov byte [esi + 0x10], 1
mov ecx, dword [0x6ec7a0]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0x6d72ec
push ecx
mov dword [esp + 0x24], ebx
call edi
test eax, eax
jne 0x51c986
mov eax, dword [esp + 0x10]
test eax, eax
setne dl
mov byte [esi + 0x12], dl
mov edx, dword [0x6ec7a0]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push 0x6d72dc
push edx
mov dword [esp + 0x24], ebx
call edi
test eax, eax
jne 0x51c9b6
mov eax, dword [esp + 0x10]
test eax, eax
setne al
mov byte [esi + 0x13], al
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x51c9c0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push 0x400
push eax
push ecx
call fcn.005dffe0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 8]
push 4
push edx
mov dword [esp + 0x10], eax
mov eax, dword [0x6ec7a0]
push 4
push 0
push 0x6d7304
push eax
call edi
mov dl, byte [esi + 0x11]
mov eax, dword [0x6ec7a0]
xor ecx, ecx
push 4
test dl, dl
lea edx, [esp + 0xc]
push edx
push 4
push 0
push 0x6d72f8
setne cl
push eax
mov dword [esp + 0x20], ecx
call edi
mov dl, byte [esi + 0x12]
mov eax, dword [0x6ec7a0]
xor ecx, ecx
push 4
test dl, dl
lea edx, [esp + 0xc]
push edx
push 4
push 0
push 0x6d72ec
setne cl
push eax
mov dword [esp + 0x20], ecx
call edi
mov al, byte [esi + 0x13]
lea edx, [esp + 8]
push 4
xor ecx, ecx
push edx
push 4
test al, al
mov eax, dword [0x6ec7a0]
push 0
setne cl
push 0x6d72dc
push eax
mov dword [esp + 0x20], ecx
call edi
pop edi
pop esi
pop ecx
ret
Function at 0x522090
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6212a0
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
push eax
xor ebp, ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push ebp
push 0xf003f
push ebp
push 0x6ec0c8
push ebp
push 0x6c4340
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
jne 0x52228d
mov edi, dword [esp + 0x30]
mov eax, 0x6d754c
cmp edi, ebp
jne 0x5220f3
mov eax, 0x6d753c
mov edx, dword [esp + 0x18]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp edi, ebp
mov eax, 0x6d754c
jne 0x52210d
mov eax, 0x6d753c
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
push ebp
push 0xf003f
push ebp
push 0x6ec0c8
push ebp
push eax
mov eax, dword [esp + 0x38]
push eax
call ebx
test eax, eax
jne 0x52228d
cmp edi, ebp
je 0x5221dd
mov eax, dword [esi + 0x12c]
mov dword [esp + 0x10], ebp
cmp eax, ebp
jle 0x522279
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
or ebx, 0xffffffff
mov ecx, dword [esi + 0x128]
lea eax, [ecx + edi]
mov cl, byte [ecx + edi + 0xc]
test cl, cl
je 0x5221c2
mov edx, dword [0x6e7b6c]
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
push ecx
push edx
lea eax, [esp + 0x38]
push 0x6d7534
push eax
mov dword [esp + 0x38], 0
call fcn.005f368b
mov ecx, dword [esi + 0x128]
mov edx, dword [esp + 0x40]
add esp, 0x10
mov eax, dword [ecx + edi]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [esp + 0x1c]
push 1
push 0
push edx
push eax
call ebp
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], ebx
call fcn.005fa859
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x12c]
inc eax
add edi, 0x10
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x522159
jmp 0x522279
mov eax, dword [esi + 0x140]
mov dword [esp + 0x30], ebp
cmp eax, ebp
jle 0x522279
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
or ebx, 0xffffffff
mov ecx, dword [esi + 0x13c]
lea eax, [edi + ecx]
mov cl, byte [edi + ecx + 0xc]
test cl, cl
je 0x522263
mov edx, dword [0x6e7b6c]
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x6d7534
push eax
mov dword [esp + 0x38], 1
call fcn.005f368b
mov ecx, dword [esi + 0x13c]
mov edx, dword [esp + 0x20]
add esp, 0x10
mov eax, dword [edi + ecx]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [esp + 0x1c]
push 1
push 0
push edx
push eax
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], ebx
call fcn.005fa859
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x140]
inc eax
add edi, 0x10
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x5221fa
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x5222b0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push 0x6c4340
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x52230f
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 4]
push 4
push eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 8]
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
ret 8
Function at 0x52c190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x621a80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov al, byte [esi + 0x650]
mov dword [ebp - 0x10], esp
cmp al, bl
je 0x52c288
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x624]
push eax
push ecx
mov byte [esi + 0x650], bl
mov edx, dword [0x6ec7a0]
push ebx
push ebx
push 0x6d7b14
push edx
mov dword [ebp - 0x14], 0x2c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x52c288
cmp dword [esi + 0x62c], 3
jne 0x52c20e
push 3
mov ecx, esi
call fcn.005f9f56
jmp 0x52c238
mov eax, dword [esi + 0x644]
mov edx, dword [esi + 0x64c]
mov ecx, dword [esi + 0x640]
sub edx, eax
push 4
push edx
mov edx, dword [esi + 0x648]
sub edx, ecx
push edx
push eax
push ecx
push ebx
mov ecx, esi
call fcn.005f9f07
mov ecx, dword [esi + 0x84]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x24]
push eax
push ecx
call edi
mov eax, dword [esi + 0x1c]
lea edx, [ebp - 0x34]
push edx
push eax
call edi
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov edx, ecx
mov edi, dword [ebp - 0x24]
sub edx, eax
sub eax, ecx
mov ecx, dword [ebp - 0x28]
push ebx
push edx
mov edx, dword [ebp - 0x1c]
lea eax, [eax + ecx - 0x55]
mov ecx, dword [ebp - 0x2c]
mov ebx, edx
sub ecx, edx
sub ebx, edi
push ebx
lea edx, [ecx + edi - 0x23]
push eax
push edx
lea ecx, [esi + 0x68]
call fcn.005f9ec6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52c2c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x621a9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
cmp dword [esi + 0x5f4], 4
je 0x52c4c9
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push 0x6d7b68
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x52c383
lea ecx, [ebp - 0x23c]
call fcn.004ab420
push 1
push 0x6c41f4
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.004ab540
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call fcn.004ab530
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x24], 0x60
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
je 0x52c3b8
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push edi
call ebx
push 0x5a
push edi
mov dword [ebp - 0x24], eax
call ebx
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0x24], 0x60
je 0x52c3c2
mov byte [ebp - 0x11], 1
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esi + 0x654]
xor edi, edi
mov dword [ebp - 0x1c], eax
cmp edi, 7
jge 0x52c41b
mov al, byte [ebp - 0x11]
mov edx, dword [esi + 0x520]
push 0
push edi
test al, al
push 0x101d
push edx
je 0x52c40b
call ebx
mov ecx, dword [ebp - 0x24]
push ecx
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [ebp - 0x1c]
inc edi
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x1c], ecx
jmp 0x52c3d3
call ebx
mov ecx, dword [ebp - 0x1c]
inc edi
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x1c], ecx
jmp 0x52c3d3
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 0x654]
push 4
push eax
mov eax, dword [ebp - 0x18]
push 4
push 0
push 0x6c41e8
push eax
call edi
mov edx, dword [ebp - 0x18]
lea ecx, [esi + 0x658]
push 4
push ecx
push 4
push 0
push 0x6c41dc
push edx
call edi
mov ecx, dword [ebp - 0x18]
lea eax, [esi + 0x65c]
push 4
push eax
push 4
push 0
push 0x6c41d4
push ecx
call edi
mov eax, dword [ebp - 0x18]
lea edx, [esi + 0x660]
push 4
push edx
push 4
push 0
push 0x6c48f0
push eax
call edi
mov edx, dword [ebp - 0x18]
lea ecx, [esi + 0x664]
push 4
push ecx
push 4
push 0
push 0x6c41c0
push edx
call edi
mov ecx, dword [ebp - 0x18]
lea eax, [esi + 0x668]
push 4
push eax
push 4
push 0
push 0x6bfac4
push ecx
call edi
mov edx, dword [ebp - 0x18]
add esi, 0x66c
push 4
push esi
push 4
push 0
push 0x6c41cc
push edx
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x530b40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov edx, dword [0x6ec7a0]
push edi
mov edi, ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0
push 0x6d7c38
push edx
mov dword [esp + 0x20], 4
call esi
test eax, eax
jne 0x530b81
mov eax, dword [esp + 0xc]
test eax, eax
setne al
mov byte [edi + 4], al
mov eax, dword [0x6ec7a0]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push 0x6d7c2c
push eax
mov dword [esp + 0x20], 4
call esi
test eax, eax
jne 0x530bac
mov byte [edi + 5], 1
pop edi
pop esi
add esp, 8
ret