joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12f26740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1306c010
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
mov ebx, 1
push esi
push ebx
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.hookapi_ieat_proc_external
mov dword [0x131c7c48], 0
call fcn.12f46a80
lea ecx, [esp + 0x3c]
mov dword [esp + 0x68], 0xffffffff
call fcn.12e9bfa0
mov esi, dword [0x13196ccc]
mov dword [esp + 0x5c], ebx
test esi, esi
je 0x12f267cf
lea ecx, [esp + 0x30]
call fcn.12e9c170
test eax, eax
je 0x12f267cf
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push esi
call fcn.12f46a80
lea ecx, [esp + 0x34]
mov byte [esp + 0x60], bl
call fcn.12e9c5e0
test eax, eax
je 0x12f267cf
mov dword [0x131c7c48], ebx
jmp 0x12f267d8
mov eax, dword [0x131c7c48]
test eax, eax
je 0x12f267fa
push ebx
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.hookapi_ieat_wapi_external
call fcn.12f46a80
mov ecx, 0x131c7c20
mov byte [esp + 0x68], bl
call fcn.12e9c100
lea ecx, [esp + 0xc]
call fcn.12e9bef0
push ebx
push 0
push ecx
mov byte [esp + 0x68], 4
mov ecx, esp
mov dword [esp + 0x14], esp
push str.hookapi_dis_cloudbox_com_ieta
call fcn.12f46a80
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 4
call fcn.12e9c100
lea ecx, [esp + 0xc]
call fcn.12e9c170
test eax, eax
je 0x12f2685b
lea ecx, [esp + 0xc]
call fcn.12e9c660
cmp eax, ebx
jne 0x12f2684c
mov dword [0x131c7c4c], ebx
jmp 0x12f2685b
cmp eax, 2
jne 0x12f2685b
mov dword [0x131c7c4c], 0
call fcn.12f26c10
mov eax, dword [0x13198f68]
test eax, eax
je 0x12f26883
mov eax, dword [0x131c7c4c]
push eax
push 0x13172da4
push 0x130c6b6c
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0x5c], bl
call fcn.12e9c060
lea ecx, [esp + 0x30]
mov dword [esp + 0x5c], 0xffffffff
call fcn.12e9c060
mov ecx, dword [esp + 0x54]
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret
Function at 0x12f27b80
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x131c7c9c]
push esi
test eax, eax
jne 0x12f27c77
mov ecx, dword [0x131c7c98]
cmp ecx, 3
ja 0x12f27c77
mov edx, ecx
inc edx
mov dword [0x131c7c98], edx
call fcn.12f9c4e0
test eax, eax
je 0x12f27bbc
push 0x131731e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x12f27bc7
push 0x130d3a3c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x12f27bcf
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x131731cc
push esi
call edi
push 0x131731b4
push esi
mov dword [0x131c7c68], eax
call edi
push 0x1317319c
push esi
mov dword [0x131c7c6c], eax
call edi
push 0x13173188
push esi
mov dword [0x131c7c70], eax
call edi
push 0x13173178
push esi
mov dword [0x131c7c74], eax
call edi
push 2
push esi
mov dword [0x131c7c78], eax
call edi
push 4
push esi
mov dword [0x131c7c7c], eax
call edi
push 0x13173160
push esi
mov dword [0x131c7c80], eax
call edi
push 0x1317314c
push esi
mov dword [0x131c7c84], eax
call edi
push 0x13173138
push esi
mov dword [0x131c7c88], eax
call edi
push str.SHFileOperationW
push esi
mov dword [0x131c7c8c], eax
call edi
push 0x1317312c
push esi
mov dword [0x131c7c90], eax
call edi
mov dword [0x131c7c94], eax
mov eax, 1
mov dword [0x131c7c9c], eax
pop edi
pop esi
ret

Function at 0x12f30306
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, 0x131c7ef0
jmp 0x12f302f0
push 0xffffffffffffffff
push 0x1306ccf1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
call fcn.12f55b70
xor edi, edi
lea ecx, [esi + 0x34]
mov dword [esp + 0x14], edi
call fcn.12f55b70
mov ecx, dword [0x1307d25c]
mov eax, 1
mov byte [esp + 0x14], al
mov dword [esi + 0x6c], ecx
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x14], 2
mov dword [esi], 0x1307ce70
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x12f36b80
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1306d490
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov esi, ecx
call fcn.12f36b50
test eax, eax
jne 0x12f36bb9
mov dword [esi + 0x7c], eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x34
ret
lea ecx, [esp + 0xc]
xor edi, edi
call fcn.12e9bef0
push 1
push edi
push ecx
mov dword [esp + 0x44], edi
mov ecx, esp
mov dword [esp + 0x14], esp
push str.hookapi_landing_enable
call fcn.12f46a80
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 0
call fcn.12e9c100
lea ecx, [esp + 0xc]
call fcn.12e9c170
test eax, eax
je 0x12f36c15
lea ecx, [esp + 0xc]
call fcn.12e9c660
mov edi, eax
cmp edi, 1
je 0x12f36c15
cmp edi, 2
jne 0x12f36c15
mov dword [esi + 0x7c], 0
jmp 0x12f36c1c
mov dword [esi + 0x7c], 1
mov eax, dword [0x13198f68]
test eax, eax
je 0x12f36c3e
mov eax, dword [esi + 0x7c]
push eax
push edi
push 0x13179460
push 0x13170a8c
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.12e9c060
mov ecx, dword [esp + 0x30]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x34
ret
Function at 0x12f39b60
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1306d750
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 0x12f39d56
mov edi, dword [esp + 0x24]
cmp eax, dword [edi + 4]
jne 0x12f39d56
cmp dword [0x13198f68], ebp
je 0x12f39bba
mov eax, dword [esp + 0x2c]
push eax
push 0x1317b880
push 0x1311eac8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
mov ecx, dword [0x1307d25c]
mov dword [esp + 0x28], ecx
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], ebp
cmp eax, ebp
jle 0x12f39d2e
push esi
mov eax, dword [0x13198f68]
test eax, eax
je 0x12f39bfe
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 0x1317b814
push 0x1311eac8
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 0x12f39d2d
and eax, 0x10
cmp al, 0x10
jne 0x12f39c51
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 0x12f3aa70
push eax
call fcn.12e320b0
add esp, 0xc
jmp 0x12f39d21
mov eax, dword [esp + 0x34]
test eax, eax
je 0x12f39d21
mov edx, dword [esp + 0x30]
mov ecx, dword [ebx]
push edx
add ecx, esi
call fcn.12f4be40
test eax, eax
jne 0x12f39c87
mov eax, dword [ebx]
push 0
mov eax, dword [eax + esi]
push eax
call fcn.12f7ff60
add esp, 8
test eax, eax
jne 0x12f39d21
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.12f4a1a0
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.12f7fb60
add esp, 0x18
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 1
call fcn.12f473b0
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 0
call fcn.12f47220
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 0x12f39cfe
mov ecx, dword [ebx]
lea edx, [esp + 0x2c]
push edx
add ecx, esi
call fcn.12f473b0
mov eax, dword [0x13198f68]
test eax, eax
je 0x12f39d21
mov eax, dword [ebx]
mov ecx, dword [eax + esi]
push ecx
push 0x1317b7a8
push 0x1311eac8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
mov eax, dword [ebx + 4]
inc ebp
cmp ebp, eax
jl 0x12f39bd4
pop esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.12f47220
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 0x12f3bce0
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 0x12f3be07
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 0x12f3be07
mov edx, dword [esp + 0x14]
and edx, 0x10
cmp dl, 0x10
je 0x12f3bdec
cmp dword [esp + 0xc], 0x1000
ja 0x12f3be07
mov al, byte [0x131c8039]
test al, 1
jne 0x12f3bd67
or al, 1
mov byte [0x131c8039], al
mov eax, dword [0x1317a254]
push eax
push 0x131c8090
push 0x1317c428
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [0x131c8000], eax
cmp dword [0x131c8000], edi
jbe 0x12f3bda6
push 0x1317c410
call fcn.12f5c44d
mov edx, dword [0x131c8000]
mov ecx, dword [0x1317a254]
add eax, edx
add esp, 4
cmp eax, ecx
jae 0x12f3bda6
push 0x1317c410
push 0x131c8090
call fcn.12f5c865
add esp, 8
mov dword [0x131c8000], edi
push 0x131c8090
call fcn.12f5c44d
push eax
push 0x131c8090
push esi
call fcn.12f5e2b3
add esp, 0x10
test eax, eax
jne 0x12f3be07
push esi
call fcn.12e310c0
add esp, 4
cmp eax, edi
je 0x12f3be07
push str..url
push eax
call fcn.12f5e1d4
add esp, 8
test eax, eax
jne 0x12f3be07
mov dword [esp + 8], 1
jmp 0x12f3be07
lea ecx, [esp + 8]
mov dword [esp + 8], 1
push ecx
push 0x12f3bc40
push esi
call fcn.12e320b0
add esp, 0xc
mov eax, dword [0x13198f68]
cmp eax, edi
pop edi
pop esi
je 0x12f3be2b
mov edx, dword [esp]
push edx
push 0x1317c3cc
push 0x1311eac8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
mov eax, dword [esp]
add esp, 8
ret

Function at 0x12f3d030
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x12f3d03d
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x2c]
push eax
call fcn.12f3cf70
add esp, 4
test eax, eax
je 0x12f3d06f
cmp word [0x131c8524], 0
jne 0x12f3d068
push 0
push 0x10
push 0x131c8524
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [esi + 0x2c], 0x131c8524
mov eax, dword [0x13198f68]
test eax, eax
je 0x12f3d094
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x34]
push ecx
push edx
push 0x1317cbf8
push 0x1317adec
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
mov eax, 1
pop esi
ret
Function at 0x12f458e0
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 0x12f4592e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x12f4592e
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x12f45933
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x12f45919
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x12f45943
test esi, esi
jne 0x12f45961
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 0x12f4595f
mov byte [eax + esi - 1], 0
jne 0x12f45968
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x12f4b0c0
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 0x12f4b110
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x12f4b110
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x12f4b115
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x12f4b0fb
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x12f4b122
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 0x12f56ef0
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 0x12f56f31
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 0x12f56f33
mov esi, edi
test esi, esi
je 0x12f56fa8
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 0x12f56f9d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x12f56f9d
cmp dword [esp + 0x1c], eax
jbe 0x12f56f6e
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 0x12f56f9d
cmp esi, edi
je 0x12f56f8f
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 0x12f56fa8
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 0x12f56fc0
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 0x12f57025
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 0x12f57025
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x12f57025
cmp dword [esp + 0x18], eax
jbe 0x12f5700b
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 0x12f57029
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x12f57100
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x12f5715f
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 0x12f5715f
cmp dword [esp + 0xc], 3
jne 0x12f5715f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x12f5715f
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 0x12f5715f
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 0x12f57240
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 0x12f572b4
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 0x12f572b4
cmp dword [esp + 0x10], 3
jne 0x12f572b4
mov edx, dword [esp + 0x18]
push edx
call fcn.12f5bf8b
mov edi, eax
add esp, 4
test edi, edi
je 0x12f572b4
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x12f572ab
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.12f5bf80
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8

Function at 0x12f572c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1306e58f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x1307d258]
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 0x12f5732b
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 0x12f5732d
mov esi, edi
test esi, esi
je 0x12f573f7
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 0x12f573ec
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x12f5736f
cmp eax, 2
je 0x12f5736f
cmp eax, 6
je 0x12f5736f
cmp eax, 7
jne 0x12f573ec
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.12f5bf8b
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 0x12f573d2
lea ecx, [esp + 0x14]
call fcn.12f42100
cmp esi, dword [esp + 0x14]
je 0x12f573c7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.12f5bf80
add esp, 4
jmp 0x12f57409
call fcn.12f5bf80
add esp, 4
lea ecx, [esp + 0x10]
push 0x13198cc0
call fcn.12f42100
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x12f573f7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x12f57409
push eax
lea ecx, [esp + 0x14]
call fcn.12f42100
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.12f41470
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.12f41ea0
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 0x12f579a0
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.12f4bf30
test esi, esi
je 0x12f57a8c
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 0x12f57a8c
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x12f579fc
cmp eax, 2
je 0x12f579fc
cmp eax, 6
je 0x12f579fc
cmp eax, 7
jne 0x12f57a8c
mov eax, dword [esp + 0x1c]
add eax, 2
push eax
call fcn.12f5bf8b
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 0x12f57a83
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x12f57a6d
mov edx, dword [ebp + 4]
push esi
push edx
mov ecx, ebp
call fcn.12f4c3d0
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 0x12f57a49
push ebx
call fcn.12f5bf80
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call fcn.12f5bf80
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x12f58020
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x12f5804c
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 0x12f5804c
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc

Function at 0x12f58100
Capabilities:
Set registry value

Disassembly:
mov edx, dword [ecx]
test edx, edx
je 0x12f58136
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 0x12f58136
mov eax, 1
ret 8
xor eax, eax
ret 8

Function at 0x12f58170
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1306e658
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x12f581c6
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 0x12f581c9
mov esi, dword [ebp + 8]
test esi, esi
je 0x12f582b3
call fcn.12f9c4e0
test eax, eax
je 0x12f5824e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x12f58217
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.12f5d840
mov edi, esp
test edi, edi
je 0x12f58217
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 0x12f58219
xor edi, edi
mov ebx, dword [ebp + 0x18]
push ebx
call fcn.12f5c44d
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 0x12f582a7
cmp esi, dword [ebp + 8]
je 0x12f58247
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x12f582b5
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.12f41740
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 0x12f58298
cmp esi, dword [ebp + 8]
je 0x12f58282
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.12f41ea0
mov eax, 1
jmp 0x12f582b5
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.12f41ea0
cmp esi, dword [ebp + 8]
je 0x12f582b3
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