joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466410
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5245c8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x580ca0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 1
push 0
push 0x80
push 3
lea eax, [ebp - 0x20]
push eax
push 1
push connect
lea ecx, [ebp + 8]
call fcn.00402b70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x466536
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 0x28]
mov dword [edx], eax
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
add ecx, 1
push ecx
call fcn.004828fb
add esp, 4
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp - 0x28]
mov dword [edx], eax
mov dword [ebp - 0x24], 0
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0x28]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x466503
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402c20
mov eax, dword [ebp - 0x2c]
jmp 0x46654f
mov edx, dword [ebp + 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ecx]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402c20
mov eax, dword [ebp - 0x30]
jmp 0x46654f
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402c20
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x466560
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524630
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], 0
lea eax, [ebp - 0x4c]
push eax
call fcn.00466380
add esp, 4
mov dword [ebp - 4], 1
push str.SndaUpdateid.dat
lea ecx, [ebp - 0x4c]
call fcn.00402610
push 0x53069f
lea ecx, [ebp - 0x2c]
call fcn.00403470
mov byte [ebp - 4], 2
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x4c]
call fcn.00402b70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x466713
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00402b70
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x8c], esp
push eax
call fcn.00403470
mov dword [ebp - 0xb4], eax
call fcn.00466410
add esp, 0x24
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x466713
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00403470
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xc0]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401000
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa8]
call fcn.00402c20
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.004b9d83
add esp, 4
push 0x20
push 0
lea edx, [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401260
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004034e0
sub eax, 0x20
push eax
push 0x20
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401260
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x88]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402be0
mov edx, dword [ebp - 0xb0]
or edx, 1
mov dword [ebp - 0xb0], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
call fcn.00402c20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call fcn.00402c20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00402c20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00402c20
mov eax, dword [ebp + 8]
jmp 0x46674a
push 0x5306a0
mov ecx, dword [ebp + 8]
call fcn.00403470
mov eax, dword [ebp - 0xb0]
or eax, 1
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00402c20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00402c20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret

Function at 0x466cd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push str.2.7.92.0
mov eax, dword [ebp + 8]
push eax
call fcn.00466a70
add esp, 8
test eax, eax
jg 0x466cf5
push 0
push str.taskkill__f__im_explorer.exe__start_explorer.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebp
ret
Function at 0x468060
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x668], ecx
mov ecx, 0x585bd8
call fcn.00401340
push eax
push 0x104
lea eax, [ebp - 0x660]
push eax
call fcn.004c0fee
add esp, 0xc
push 0x530c8c
lea ecx, [ebp - 0x660]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x660]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4680c2
xor eax, eax
jmp 0x4682cd
push 0
push str.Show0_
mov ecx, 0x5861bc
call fcn.00401210
cmp eax, 0xffffffff
jne 0x468106
push 1
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x664], esp
push str.X86kuaizipUpdateChecker.dll
push 0x585bd8
push eax
call fcn.0043bd20
add esp, 0xc
mov dword [ebp - 0x66c], eax
call fcn.0045a4f0
add esp, 0x20
mov dword [ebp - 0x24c], 0
push 0x38
push 0
lea ecx, [ebp - 0x248]
push ecx
call fcn.004ba280
add esp, 0xc
mov dword [ebp - 0x24c], 0x3c
lea edx, [ebp - 0x660]
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x238], str._AssociateAll
mov dword [ebp - 0x230], 1
mov dword [ebp - 0x248], 0x40
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x46816f
xor eax, eax
jmp 0x4682cd
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.004ba280
add esp, 0xc
xor eax, eax
mov word [ebp - 0x458], ax
push 0x206
push 0
lea ecx, [ebp - 0x456]
push ecx
call fcn.004ba280
add esp, 0xc
mov ecx, 0x585bd8
call fcn.00401340
push eax
lea edx, [ebp - 0x458]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.00520960
movzx eax, al
test eax, eax
je 0x4681e5
push str.X64KZipShell.dll
lea ecx, [ebp - 0x458]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x4681f7
push str.X86KZipShell.dll
lea edx, [ebp - 0x458]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x52fc3c
lea eax, [ebp - 0x458]
push eax
call fcn.0043ae30
add esp, 8
test eax, eax
je 0x46822d
lea ecx, [ebp - 0x458]
push ecx
push str.__s___s
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x468249
lea eax, [ebp - 0x458]
push eax
push 0x530bc8
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push str.regsvr32.exe
lea edx, [ebp - 0x660]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x3c
push 0
lea eax, [ebp - 0x24c]
push eax
call fcn.004ba280
add esp, 0xc
mov dword [ebp - 0x24c], 0x3c
lea ecx, [ebp - 0x660]
mov dword [ebp - 0x23c], ecx
lea edx, [ebp - 0x210]
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x230], 1
mov dword [ebp - 0x248], 0x40
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4682b9
xor eax, eax
jmp 0x4682cd
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret 4
Function at 0x4706c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00470490
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00470660
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x47072b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.004704c0
mov eax, dword [ebp - 0x224]
jmp 0x4707bc
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x470791
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004706c0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x470788
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.004704c0
mov eax, dword [ebp - 0x228]
jmp 0x4707bc
mov dword [ebp - 4], 0x100
jmp 0x470732
lea ecx, [ebp - 0x14]
call fcn.004705a0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.00470540
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.004704c0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret 4
Function at 0x470db0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x470db9
xor ecx, ecx
jne 0x470db9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x470dda
mov eax, 0xd
jmp 0x470e35
xor eax, eax
jne 0x470dc1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x470deb
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x472340
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x10
mov ecx, 0x585ca8
call fcn.004756c0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4724d8
cmp dword [ebp + 8], 0
je 0x47247c
cmp dword [ebp + 0xc], 0
je 0x47247c
xor ecx, ecx
mov word [ebp - 0x220], cx
push 0x206
push 0
lea edx, [ebp - 0x21e]
push edx
call fcn.004ba280
add esp, 0xc
mov dword [ebp - 0x10], 0x208
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x220]
push ecx
push 0
push 0
push 0x531554
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x472405
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4724dd
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004c0fee
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x472448
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax], dx
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4724dd
push str.X86KuaiZip.exe
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47247c
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4724dd
cmp dword [ebp + 0x10], 0
je 0x4724c9
cmp dword [ebp + 0x14], 0
je 0x4724c9
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x224], edx
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
push 0x531580
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4724c9
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4724dd
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x4724dd
mov eax, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4724f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525218
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x10
mov ecx, 0x585ca8
call fcn.004756c0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x472556
mov eax, 1
jmp 0x4725d1
push 0x531590
lea ecx, [ebp - 0x2c]
call fcn.004012e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.0040b180
shl eax, 1
push eax
mov ecx, dword [ebp + 8]
call fcn.00401340
push eax
push 1
push 0
push 0x5315a4
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x2c]
call fcn.0040b180
shl eax, 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401340
push eax
push 1
push 0
push 0x5315b0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401320
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret 4
Function at 0x475080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0x531734
mov eax, dword [ebp + 8]
push eax
call fcn.004bb673
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jne 0x4750b1
xor eax, eax
jmp 0x4751f1
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
test edx, edx
je 0x4750c3
mov ecx, dword [ebp - 0xc]
call fcn.00475750
mov eax, dword [ebp - 8]
push eax
push 1
push 0x68
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
call fcn.004c04bb
add esp, 0x10
push 0x53173c
call fcn.004ba1f0
add esp, 4
push eax
push 0x53174c
mov edx, dword [ebp - 0xc]
add edx, 4
push edx
call fcn.004c1ebc
add esp, 0xc
test eax, eax
je 0x475107
xor eax, eax
jmp 0x4751f1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x68]
mov dword [eax + 0x74], edx
mov ecx, dword [ebp - 0xc]
call fcn.00475b60
mov dword [ebp - 4], 0
jmp 0x47512d
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x68]
jae 0x4751e0
mov eax, dword [ebp - 8]
push eax
push 1
push 8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x6c]
mov eax, dword [ebp - 4]
lea ecx, [edx + eax*8]
push ecx
call fcn.004c04bb
add esp, 0x10
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*8]
add edx, 1
push edx
call fcn.004bffb7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x6c]
mov ecx, dword [ebp - 4]
mov dword [edx + ecx*8 + 4], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*8]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x6c]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + edx*8 + 4]
push eax
call fcn.004ba280
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x6c]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + edx*8 + 4]
push eax
call fcn.004c04bb
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00475af0
jmp 0x475124
mov edx, dword [ebp - 8]
push edx
call fcn.004bb34d
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x477b60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525828
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x55], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x4c]
call fcn.004012b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004012b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x54]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea eax, [ebp + 8]
push eax
call fcn.0040e030
mov dword [ebp - 0x64], eax
call fcn.00477d20
add esp, 0x28
mov byte [ebp - 0x65], al
movzx ecx, byte [ebp - 0x65]
test ecx, ecx
jne 0x477c1f
mov byte [ebp - 0x5d], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401320
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00401320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov al, byte [ebp - 0x5d]
jmp 0x477d02
cmp dword [ebp - 0x54], reloc.WS2_32.dll_accept
jne 0x477c42
lea edx, [ebp - 0x54]
push edx
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x477c42
mov dword [ebp - 0x54], reloc.WS2_32.dll_accept
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x4c]
call fcn.00401340
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x477cb7
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401340
push eax
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x477cad
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401340
push eax
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x477cad
mov byte [ebp - 0x55], 1
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x54]
and edx, 0x80000000
cmp edx, 0x80000000
je 0x477cd2
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x55]
mov byte [ebp - 0x5e], cl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401320
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00401320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov al, byte [ebp - 0x5e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret
Function at 0x478490
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525828
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x55], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x4c]
call fcn.004012b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004012b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x54]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea eax, [ebp + 8]
push eax
call fcn.0040e030
mov dword [ebp - 0x64], eax
call fcn.00477d20
add esp, 0x28
mov byte [ebp - 0x65], al
movzx ecx, byte [ebp - 0x65]
test ecx, ecx
jne 0x47854f
mov byte [ebp - 0x5d], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401320
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00401320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov al, byte [ebp - 0x5d]
jmp 0x478625
cmp dword [ebp - 0x54], reloc.WS2_32.dll_accept
jne 0x478572
lea edx, [ebp - 0x54]
push edx
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x478572
mov dword [ebp - 0x54], reloc.WS2_32.dll_accept
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x50]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea ecx, [ebp - 0x4c]
call fcn.00401340
push eax
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4785da
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp + 0x24]
push edx
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401340
push eax
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x55], al
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x54]
and edx, 0x80000000
cmp edx, 0x80000000
je 0x4785f5
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x55]
mov byte [ebp - 0x5e], cl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401320
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00401320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov al, byte [ebp - 0x5e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret
Function at 0x479e30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x11
mov ecx, 0x585ca8
call fcn.004756c0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x479e6f
jmp 0x479ef5
lea ecx, [ebp - 0xc]
call fcn.0047ae70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x58626c
call fcn.0043b6f0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
jmp 0x479ea7
push 0
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00462380
lea edx, [ebp - 0x2c]
push edx
mov ecx, 0x58626c
call fcn.00462960
push eax
lea ecx, [ebp - 0xc]
call fcn.00473010
movzx eax, al
test eax, eax
je 0x479eeb
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0
lea ecx, [ebp - 0xc]
call fcn.0047ae90
mov ecx, eax
call fcn.00401340
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x479e99
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret