joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12f39c30
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1306d840
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [esp + 0x20]
push ebp
xor ebp, ebp
mov eax, dword [ebx + 4]
push edi
cmp eax, ebp
je 0x12f39e26
mov edi, dword [esp + 0x24]
cmp eax, dword [edi + 4]
jne 0x12f39e26
cmp dword [0x13199068], ebp
je 0x12f39c8a
mov eax, dword [esp + 0x2c]
push eax
push str.CUpDlCommon::CopyDifferentFilesToPath_1___s_
push str.UpLoadFile
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
mov ecx, dword [0x1307d24c]
mov dword [esp + 0x28], ecx
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], ebp
cmp eax, ebp
jle 0x12f39dfe
push esi
mov eax, dword [0x13199068]
test eax, eax
je 0x12f39cce
mov edx, dword [ebx]
mov ecx, dword [edi]
mov eax, dword [edx + ebp*4]
mov edx, dword [ecx + ebp*4]
push eax
push edx
push ebp
push str.CUpDlCommon::CopyDifferentFilesToPath_2___d___s___s_
push str.UpLoadFile
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x18
mov eax, dword [edi]
lea esi, [ebp*4]
mov eax, dword [eax + esi]
push eax
call fcn.12e30b60
add esp, 4
cmp eax, 0xffffffff
je 0x12f39dfd
and eax, 0x10
cmp al, 0x10
jne 0x12f39d21
mov ecx, dword [edi]
mov edx, dword [esp + 0x30]
lea eax, [ecx + esi]
mov ecx, dword [ecx + esi]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push 0x12f3ab40
push eax
call fcn.12e320b0
add esp, 0xc
jmp 0x12f39df1
mov eax, dword [esp + 0x34]
test eax, eax
je 0x12f39df1
mov edx, dword [esp + 0x30]
mov ecx, dword [ebx]
push edx
add ecx, esi
call fcn.12f4bf10
test eax, eax
jne 0x12f39d57
mov eax, dword [ebx]
push 0
mov eax, dword [eax + esi]
push eax
call fcn.12f80030
add esp, 8
test eax, eax
jne 0x12f39df1
mov ecx, dword [edi]
mov eax, dword [ecx + esi]
push eax
call fcn.12e31030
mov edx, dword [esp + 0x34]
add esp, 4
push eax
push edx
lea eax, [esp + 0x34]
push 0x130c4e18
push eax
call fcn.12f4a270
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.12f7fc30
add esp, 0x18
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 1
call fcn.12f47480
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 0
call fcn.12f472f0
mov eax, dword [edi]
mov ecx, dword [esp + 0x2c]
push 0
push ecx
mov eax, dword [eax + esi]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x12f39dce
mov ecx, dword [ebx]
lea edx, [esp + 0x2c]
push edx
add ecx, esi
call fcn.12f47480
mov eax, dword [0x13199068]
test eax, eax
je 0x12f39df1
mov eax, dword [ebx]
mov ecx, dword [eax + esi]
push ecx
push str.CUpDlCommon::CopyDifferentFilesToPath_3_CopyFileW__s_
push str.UpLoadFile
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
mov eax, dword [ebx + 4]
inc ebp
cmp ebp, eax
jl 0x12f39ca4
pop esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.12f472f0
pop edi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esp + 0x14]
pop edi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x12f3bdb0
Capabilities:
Query environment variable

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
cmp esi, edi
mov dword [esp + 8], edi
je 0x12f3bed7
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push edi
push edi
push edi
push edi
push ecx
push esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], edi
call fcn.12e30390
add esp, 0x1c
test eax, eax
je 0x12f3bed7
mov edx, dword [esp + 0x14]
and edx, 0x10
cmp dl, 0x10
je 0x12f3bebc
cmp dword [esp + 0xc], 0x1000
ja 0x12f3bed7
mov al, byte [0x131c8139]
test al, 1
jne 0x12f3be37
or al, 1
mov byte [0x131c8139], al
mov eax, dword [0x1317a35c]
push eax
push 0x131c8190
push 0x1317c528
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [0x131c8100], eax
cmp dword [0x131c8100], edi
jbe 0x12f3be76
push str._favorites
call fcn.12f5c51d
mov edx, dword [0x131c8100]
mov ecx, dword [0x1317a35c]
add eax, edx
add esp, 4
cmp eax, ecx
jae 0x12f3be76
push str._favorites
push 0x131c8190
call fcn.12f5c935
add esp, 8
mov dword [0x131c8100], edi
push 0x131c8190
call fcn.12f5c51d
push eax
push 0x131c8190
push esi
call fcn.12f5e383
add esp, 0x10
test eax, eax
jne 0x12f3bed7
push esi
call fcn.12e310c0
add esp, 4
cmp eax, edi
je 0x12f3bed7
push str..url
push eax
call fcn.12f5e2a4
add esp, 8
test eax, eax
jne 0x12f3bed7
mov dword [esp + 8], 1
jmp 0x12f3bed7
lea ecx, [esp + 8]
mov dword [esp + 8], 1
push ecx
push 0x12f3bd10
push esi
call fcn.12e320b0
add esp, 0xc
mov eax, dword [0x13199068]
cmp eax, edi
pop edi
pop esi
je 0x12f3befb
mov edx, dword [esp]
push edx
push str.CUpDlCommon::IsFavoritersUrl___d_
push str.UpLoadFile
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
mov eax, dword [esp]
add esp, 8
ret

Function at 0x12f3d100
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x12f3d10d
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x2c]
push eax
call fcn.12f3d040
add esp, 4
test eax, eax
je 0x12f3d13f
cmp word [0x131c8624], 0
jne 0x12f3d138
push 0
push 0x10
push 0x131c8624
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [esi + 0x2c], 0x131c8624
mov eax, dword [0x13199068]
test eax, eax
je 0x12f3d164
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x34]
push ecx
push edx
push str.ReplaceInitFolder______08x____s_
push str.updlfile
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
mov eax, 1
pop esi
ret
Function at 0x12f459b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x12f459fe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x12f459fe
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x12f45a03
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x12f459e9
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x12f45a13
test esi, esi
jne 0x12f45a31
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x12f45a2f
mov byte [eax + esi - 1], 0
jne 0x12f45a38
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x12f4b190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x12f4b1e0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x12f4b1e0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x12f4b1e5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x12f4b1cb
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x12f4b1f2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x12f56fc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x12f57001
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x12f57003
mov esi, edi
test esi, esi
je 0x12f57078
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x12f5706d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x12f5706d
cmp dword [esp + 0x1c], eax
jbe 0x12f5703e
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x12f5706d
cmp esi, edi
je 0x12f5705f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x12f57078
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x12f57090
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x12f570f5
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x12f570f5
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x12f570f5
cmp dword [esp + 0x18], eax
jbe 0x12f570db
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x12f570f9
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x12f571d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x12f5722f
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x12f5722f
cmp dword [esp + 0xc], 3
jne 0x12f5722f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x12f5722f
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x12f5722f
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x12f57310
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [ecx]
test esi, esi
push edi
je 0x12f57384
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x12f57384
cmp dword [esp + 0x10], 3
jne 0x12f57384
mov edx, dword [esp + 0x18]
push edx
call fcn.12f5c05b
mov edi, eax
add esp, 4
test edi, edi
je 0x12f57384
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x12f5737b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
pop ecx
ret 8
push edi
call fcn.12f5c050
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8

Function at 0x12f57390
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1306e67f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x1307d248]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x12f573fb
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x12f573fd
mov esi, edi
test esi, esi
je 0x12f574c7
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x12f574bc
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x12f5743f
cmp eax, 2
je 0x12f5743f
cmp eax, 6
je 0x12f5743f
cmp eax, 7
jne 0x12f574bc
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.12f5c05b
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x12f574a2
lea ecx, [esp + 0x14]
call fcn.12f421d0
cmp esi, dword [esp + 0x14]
je 0x12f57497
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.12f5c050
add esp, 4
jmp 0x12f574d9
call fcn.12f5c050
add esp, 4
lea ecx, [esp + 0x10]
push 0x13198dc0
call fcn.12f421d0
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x12f574c7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x12f574d9
push eax
lea ecx, [esp + 0x14]
call fcn.12f421d0
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.12f41540
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.12f41f70
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x12f57a70
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [ecx]
push edi
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.12f4c000
test esi, esi
je 0x12f57b5c
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x12f57b5c
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x12f57acc
cmp eax, 2
je 0x12f57acc
cmp eax, 6
je 0x12f57acc
cmp eax, 7
jne 0x12f57b5c
mov eax, dword [esp + 0x1c]
add eax, 2
push eax
call fcn.12f5c05b
mov ecx, dword [esp + 0x20]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x12f57b53
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x12f57b3d
mov edx, dword [ebp + 4]
push esi
push edx
mov ecx, ebp
call fcn.12f4c4a0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x12f57b19
push ebx
call fcn.12f5c050
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call fcn.12f5c050
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x12f580f0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x12f5811c
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x12f5811c
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc

Function at 0x12f581d0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [ecx]
test edx, edx
je 0x12f58206
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
test eax, eax
jne 0x12f58206
mov eax, 1
ret 8
xor eax, eax
ret 8

Function at 0x12f58240
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1306e748
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x12f58296
lea ecx, [ebp + 0x14]
lea edx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x12f58299
mov esi, dword [ebp + 8]
test esi, esi
je 0x12f58383
call fcn.12f9c5b0
test eax, eax
je 0x12f5831e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x12f582e7
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
lea eax, [ebx + ebx]
add eax, 3
and al, 0xfc
call fcn.12f5d910
mov edi, esp
test edi, edi
je 0x12f582e7
mov eax, dword [ebp + 0x10]
push ebx
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x12f582e9
xor edi, edi
mov ebx, dword [ebp + 0x18]
push ebx
call fcn.12f5c51d
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x12f58377
cmp esi, dword [ebp + 8]
je 0x12f58317
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x12f58385
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.12f41810
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [ebp + 0x10]
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x12f58368
cmp esi, dword [ebp + 8]
je 0x12f58352
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.12f41f70
mov eax, 1
jmp 0x12f58385
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.12f41f70
cmp esi, dword [ebp + 8]
je 0x12f58383
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x12f58490
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x12f584dc
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [esp + 0x20]
neg esi
sbb esi, esi
not esi
and esi, eax
mov dword [esp + 0x10], esi
jmp 0x12f584e6
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov esi, eax
test esi, esi
je 0x12f58628
mov ebp, dword [esp + 0x2c]
xor edi, edi
mov dword [esp + 0x20], 1
mov eax, dword [ebp + 4]
test eax, eax
jle 0x12f58532
lea ecx, [esp + 0x28]
push edi
push ecx
mov ecx, ebp
call fcn.12f58640
mov edx, dword [eax]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx - 8]
lea edx, [ecx + eax + 1]
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edx
call fcn.12f41f70
mov eax, dword [ebp + 4]
inc edi
cmp edi, eax
jl 0x12f58503
mov eax, dword [esp + 0x20]
push eax
call fcn.12f5c05b
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x12f58628
mov ecx, dword [esp + 0x20]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x28], 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 4]
test eax, eax
jle 0x12f585d3
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, ebp
call fcn.12f58640
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call fcn.12f41f70
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x28]
not ecx
dec ecx
inc eax
mov dword [esp + 0x28], eax
lea ebx, [ebx + ecx + 1]
mov ecx, dword [ebp + 4]
cmp eax, ecx
jl 0x12f58572
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push eax
push ebx
push 7
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x12f58610
cmp esi, dword [esp + 0x1c]
je 0x12f585fa
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.12f5c050
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push ebx
call fcn.12f5c050
mov eax, dword [esp + 0x20]
add esp, 4
cmp esi, eax
je 0x12f58628
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x12f58c50
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x14]
push esi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
call fcn.12f4c000
cmp ebp, ebx
je 0x12f58d28
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push ebx
lea ecx, [esp + 0x28]
push eax
push ecx
push ebx
push ebx
push ebx
push ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x12f58d28
cmp dword [esp + 0x10], ebx
jbe 0x12f58d28
mov eax, dword [esp + 0xc]
cmp eax, 0x104
jae 0x12f58cb6
mov eax, 0x104
mov dword [esp + 0xc], eax
inc eax
push eax
call fcn.12f5c05b
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x12f58d28
cmp dword [esp + 0x10], ebx
jbe 0x12f58d11
push edi
mov edx, dword [esp + 0x10]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
inc eax
push eax
push esi
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x12f58d07
mov ecx, dword [esp + 0x1c]
push esi
mov edx, dword [ecx + 4]
push edx
call fcn.12f4c4a0
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x12f58ccd
pop edi
push esi
call fcn.12f5c050
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x12f58e90
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x18]
push esi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
call fcn.12f4c000
cmp ebp, ebx
je 0x12f58f7b
push ebx
push ebx
lea eax, [esp + 0x14]
push ebx
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x12f58f7b
cmp dword [esp + 0x10], ebx
jbe 0x12f58f7b
mov edx, dword [esp + 0xc]
lea eax, [edx + edx]
cmp eax, 0x104
ja 0x12f58ef5
mov eax, 0x104
mov dword [esp + 0xc], eax
inc eax
push eax
call fcn.12f5c05b
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x12f58f7b
cmp dword [esp + 0x10], ebx
jbe 0x12f58f64
push edi
mov eax, dword [esp + 0x10]
mov edi, esi
push 0
push 0
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push esi
inc eax
push ebx
push ebp
mov dword [esp + 0x38], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x12f58f5a
mov ecx, dword [esp + 0x20]
push esi
mov edx, dword [ecx + 4]
push edx
call fcn.12f4c4a0
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x12f58f10
pop edi
push esi
call fcn.12f5c050
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4