joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459210
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5dc390]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov edi, ecx
mov dword [ebp - 0x230], 0x22c
push 2
mov dword [ebp - 0x234], edi
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
jmp 0x4592da
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0050e24c
pop ecx
pop ecx
test eax, eax
jne 0x4592cc
push dword [ebp - 0x228]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
push 1
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x45929a
push 0x1388
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x4592bf
push dword [ebp - 0x234]
push str.TerminateProcess_failed_for_process_with_name__s
push 0
push 0
call fcn.0043a05d
push str.Please_terminate_this_process_manually
push 0
push 0
call fcn.0043a05d
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x459256
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004e3bc0
mov esp, ebp
pop ebp
ret
Function at 0x4592f9
Capabilities:
Write file on windows

Disassembly:
push 0x44
mov eax, 0x531a58
call fcn.004e4785
mov esi, edx
lea eax, [ebp - 0x4c]
movzx ecx, cx
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0045c650
pop ecx
pop ecx
test al, al
jne 0x459330
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.ExtractExecutable___GetResourceBytes_failed___d_
xor ebx, ebx
jmp 0x45941f
xor ebx, ebx
mov byte [ebp - 0x41], bl
cmp dword [esi + 0x14], 8
jb 0x45933f
mov eax, dword [esi]
jmp 0x459341
mov eax, esi
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4593ce
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp byte [ebp - 0x41], 0
jne 0x4593c6
cmp eax, 0x20
jne 0x4593c6
cmp byte [ebp + 8], 0
jne 0x4593ff
push esi
lea ecx, [ebp - 0x40]
call fcn.00446b9e
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
push ecx
mov ecx, eax
call fcn.0045dd78
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x45939c
mov eax, dword [eax]
mov ecx, eax
call fcn.00459210
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00427b8c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.00427b8c
mov byte [ebp - 0x41], 1
jmp 0x459335
push eax
push str.ExtractExecutable___CreateFile_failed___d_
jmp 0x45941f
mov esi, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
push ebx
push eax
push esi
push dword [ebp - 0x50]
mov dword [ebp - 0x48], ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x459403
cmp dword [ebp - 0x48], esi
jne 0x459403
push edi
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
test eax, eax
je 0x459403
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x45942b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push esi
push str.ExtractExecutable___WriteFile_FlushFileBuffers_failed___d_
push ebx
push ebx
call fcn.0043a05d
add esp, 0x10
xor al, al
call fcn.004e472f
ret
Function at 0x45971d
Capabilities:
Create directory

Disassembly:
push 0x40
mov eax, 0x531b0e
call fcn.004e4785
mov byte [ebp - 0x45], dl
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x5e75e8]
cmp eax, dword [esi + 0x139c]
jle 0x45977d
mov esi, 0x5e75e8
push esi
call fcn.004e3d18
cmp dword [0x5e75e8], 0xffffffff
pop ecx
jne 0x45977d
and dword [ebp - 4], 0
call fcn.00459431
push 0x53b563
call fcn.004e43a5
or dword [ebp - 4], 0xffffffff
pop ecx
push esi
call fcn.004e3cd9
pop ecx
cmp dword [0x5e75fc], 0
jne 0x45978d
xor al, al
jmp 0x459838
push 0x5e75ec
lea ecx, [ebp - 0x2c]
call fcn.00426682
mov dword [ebp - 4], 1
mov esi, dword [edi]
mov edi, dword [edi + 4]
cmp esi, edi
je 0x459807
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
lea ecx, [ebp - 0x44]
call fcn.00426682
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042ac75
cmp byte [ebp - 0x45], 0
je 0x4597f0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x4597f0
call ebx
cmp eax, 0xb7
jne 0x45983e
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00427b8c
add esi, 0x18
cmp esi, edi
jne 0x4597b0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00420367
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.00427b0f
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.00427b8c
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00427b8c
mov al, bl
call fcn.004e472f
ret
call ebx
push eax
push str.GetPsiphonDataPath
push str._s___create_directory_failed___d_
xor ebx, ebx
push ebx
push ebx
call fcn.0043a05d
add esp, 0x14
lea ecx, [ebp - 0x44]
push ebx
push 1
call fcn.00427b8c
jmp 0x45982a

Function at 0x459864
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5dc390]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
and dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x459888
mov eax, dword [esi]
jmp 0x45988a
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
cmp eax, 0xf6
ja 0x4598be
test eax, eax
je 0x4598be
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.0045cd70
mov al, 1
jmp 0x4598e2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x100
push str.GetSysTempPath
push str._s:_d___GetTempPath_failed:__d
push 1
push 0
call fcn.0043a05d
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004e3bc0
mov esp, ebp
pop ebp
ret
Function at 0x4599b2
Capabilities:
Create directory

Disassembly:
push 0x3c
mov eax, 0x531b43
call fcn.004e4785
mov esi, edx
mov edi, ecx
cmp esi, 0xa
jle 0x4599ea
push esi
push 0x137
push str.GetUniqueTempDir
push str._s:_d___depth_too_large:__d
push 1
push 0
call fcn.0043a05d
add esp, 0x18
xor al, al
jmp 0x459aeb
xor edx, edx
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], edx
jb 0x4599f9
mov eax, dword [edi]
jmp 0x4599fb
mov eax, edi
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 7
pop ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edx
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edx
call fcn.00459864
test al, al
jne 0x459a39
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x140
push str.GetUniqueTempDir
push str._s:_d___GetSysTempPath_failed:__d
jmp 0x459b07
test esi, esi
jle 0x459abb
push 0x50
pop eax
cdq
idiv esi
cmp eax, ebx
cmovg ebx, eax
and dword [ebp - 0x44], 0
mov dword [ebp - 0x48], ebx
test esi, esi
jle 0x459abb
push ebx
lea ecx, [ebp - 0x40]
call fcn.00459977
pop ecx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0042ac75
xor ebx, ebx
lea ecx, [ebp - 0x40]
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.00427b8c
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00446aa9
cmp dword [eax + 0x14], 8
jb 0x459a8e
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov ebx, eax
lea ecx, [ebp - 0x40]
push 0
neg ebx
push 1
sbb bl, bl
call fcn.00427b8c
add bl, 1
jne 0x459af1
mov ebx, dword [ebp - 0x44]
inc ebx
mov dword [ebp - 0x44], ebx
cmp ebx, esi
mov ebx, dword [ebp - 0x48]
jl 0x459a53
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00446aa9
push eax
mov ecx, edi
call fcn.00427b0f
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00427b8c
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00427b8c
mov al, bl
call fcn.004e472f
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x153
push str.GetUniqueTempDir
push str._s:_d___CreateDirectory_failed:__d
push 1
push 0
call fcn.0043a05d
add esp, 0x18
xor bl, bl
jmp 0x459add

Function at 0x459da5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ecx + 0x14], 8
push ebx
push esi
push edi
mov edi, edx
jb 0x459db6
mov ecx, dword [ecx]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x459e07
cmp dword [edi + 0x14], 0x10
lea ebx, [edi + 0x10]
jb 0x459de1
mov edi, dword [edi]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebx]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x459e07
mov eax, dword [ebp - 4]
cmp eax, dword [ebx]
jne 0x459e07
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x459e3b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x459e22
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push edi
push 0x5b3be4
push str._s___write_file_failed___d_
push 0
push 0
call fcn.0043a05d
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459e42
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ec
mov eax, dword [0x5dc390]
xor eax, esp
mov dword [esp + 0x1e8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov ebx, edx
mov dword [esp + 0x18], eax
push edi
test si, si
je 0x459fd5
lea eax, [esp + 0x60]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 2
pop eax
push str.127.0.0.1
mov word [esp + 0x28], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x26], ax
or edi, 0xffffffff
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esp + 0x10], eax
call esi
mov dword [esp + 0x14], eax
call esi
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jb 0x459fb5
add ecx, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
xor esi, esi
cmp eax, ecx
jae 0x459fb5
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x459f6a
push 0x10
push dword [esp + 0x14]
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x459f6a
push 0x10
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x459f6a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x459f6a
push esi
push 0x64
push 1
lea eax, [esp + 0x1c]
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test eax, eax
jne 0x459f6a
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x14]
push edi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x459f6a
test byte [esp + 0x34], 0x10
je 0x459f6a
cmp dword [esp + 0x48], esi
je 0x459fba
mov eax, dword [esp + 0x18]
test eax, eax
je 0x459f7e
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x459fa7
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx]
test ecx, ecx
je 0x459f94
mov eax, dword [ecx]
push esi
push dword [edx + 4]
call dword [eax]
test eax, eax
jne 0x459fae
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, ebx
jb 0x459fb5
mov ecx, dword [esp + 0x20]
jmp 0x459ee0
mov esi, 0x24f
jmp 0x459fba
mov esi, 0x3e3
jmp 0x459fba
mov esi, 0x102
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, esi
jmp 0x459fda
mov eax, 0x704
mov ecx, dword [esp + 0x1f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e3bc0
mov esp, ebp
pop ebp
ret
Function at 0x45a03e
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
call dword [sym.imp.KERNEL32.DLL_AttachConsole]
test eax, eax
je 0x45a06b
push esi
push 1
call dword [sym.imp.KERNEL32.DLL_GenerateConsoleCtrlEvent]
call dword [sym.imp.KERNEL32.DLL_FreeConsole]
push 0x64
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x45a09a
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x45a088
push 0x1388
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x45a09a
push esi
push str.TerminateProcess_failed_for_process_with_PID__d
push 0
push 0
call fcn.0043a05d
add esp, 0x10
pop edi
pop esi
ret
Function at 0x45a479
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20019
push edi
push str.SoftwarePsiphon3
push SysReAllocString
mov esi, ecx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x45a4c8
cmp dword [esi + 0x14], 0x10
jb 0x45a4ad
mov esi, dword [esi]
push eax
push esi
push str.DoesRegistryValueExist
push str._s:_RegOpenKeyEx_failed_for__hs_with_code__ld
push 1
push edi
call fcn.0043a05d
add esp, 0x18
xor al, al
jmp 0x45a502
cmp dword [esi + 0x14], 0x10
jb 0x45a4d0
mov esi, dword [esi]
push edi
push edi
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
test edi, edi
sete al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45a508
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x531bc0
call fcn.004e4751
mov dword [ebp - 0x18], edx
mov esi, ecx
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwarePsiphon3
push SysReAllocString
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x45a569
cmp dword [esi + 0x14], 0x10
jb 0x45a54e
mov esi, dword [esi]
push eax
push esi
push str.WriteRegistryDwordValue
push str._s:_RegCreateKeyEx_failed_for__hs_with_code__ld
push 1
push ebx
call fcn.0043a05d
add esp, 0x18
xor al, al
jmp 0x45a5da
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.0041ffcf
add esp, 4
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 0x10
jb 0x45a584
mov eax, dword [esi]
jmp 0x45a586
mov eax, esi
push 4
lea ecx, [ebp - 0x18]
push ecx
push 4
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x45a5be
cmp dword [esi + 0x14], 0x10
jb 0x45a5a5
mov esi, dword [esi]
push eax
push esi
push str.WriteRegistryDwordValue
push str._s:_RegSetValueExA_failed_for__hs_with_code__ld
push 1
push ebx
call fcn.0043a05d
add esp, 0x18
jmp 0x45a5c0
mov bl, 1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x1c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov al, bl
call fcn.004e471a
ret
Function at 0x45a5e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x531bc0
call fcn.004e4751
mov edi, edx
mov esi, ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 4
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwarePsiphon3
push SysReAllocString
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x45a640
cmp dword [esi + 0x14], 0x10
jb 0x45a622
mov esi, dword [esi]
push eax
push esi
push str.ReadRegistryDwordValue
push str._s:_RegOpenKeyEx_failed_for__hs_with_code__ld
push 1
push ebx
call fcn.0043a05d
add esp, 0x18
xor al, al
jmp 0x45a6d0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.0041ffcf
add esp, 4
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 0x10
jb 0x45a65b
mov eax, dword [esi]
jmp 0x45a65d
mov eax, esi
lea ecx, [ebp - 0x18]
push ecx
push edi
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45a68b
cmp dword [esi + 0x14], 0x10
jb 0x45a67d
mov esi, dword [esi]
push eax
push esi
push str.ReadRegistryDwordValue
push str._s:_RegQueryValueExA_failed_for__hs_with_code__ld
jmp 0x45a6a7
cmp dword [ebp - 0x14], 4
je 0x45a6b4
cmp dword [esi + 0x14], 0x10
jb 0x45a699
mov esi, dword [esi]
push dword [ebp - 0x14]
push esi
push str.ReadRegistryDwordValue
push str._s:_RegQueryValueExA_says_type_of__hs_is__ld__not_REG_DWORD
push 1
push ebx
call fcn.0043a05d
add esp, 0x18
jmp 0x45a6b6
mov bl, 1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x1c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov al, bl
call fcn.004e471a
ret
Function at 0x45a6d6
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x531be3
call fcn.004e4751
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], ebx
mov dword [eax], ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwarePsiphon3
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x45a738
cmp dword [esi + 0x14], 0x10
jb 0x45a71a
mov esi, dword [esi]
push eax
push esi
push str.WriteRegistryStringValue
push str._s:_RegCreateKeyEx_failed_for__hs_with_code__ld
push 1
push ebx
call fcn.0043a05d
add esp, 0x18
xor al, al
jmp 0x45a7c2
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.0041ffcf
add esp, 4
mov dword [ebp - 4], ebx
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x45a754
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x45a75e
mov ecx, dword [esi]
jmp 0x45a760
mov ecx, esi
inc eax
push eax
push edi
push 1
push ebx
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x45a7a6
cmp dword [esi + 0x14], 0x10
jb 0x45a77e
mov esi, dword [esi]
push edi
push esi
push str.WriteRegistryStringValue
xor esi, esi
push str._s:_RegSetValueExA_failed_for__hs_with_code__ld
inc esi
push esi
push ebx
call fcn.0043a05d
add esp, 0x18
cmp edi, 0x5aa
jne 0x45a7a8
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x45a7a8
mov bl, 1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov al, bl
call fcn.004e471a
ret
Function at 0x45a7c8
Capabilities:
Set registry value

Disassembly:
push 0x30
mov eax, 0x531c0e
call fcn.004e4785
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x38], eax
mov edx, esi
mov dword [ebp - 0x34], ebx
mov dword [eax], ebx
call fcn.00425a80
push ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 4], ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwarePsiphon3
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x45a83f
cmp dword [esi + 0x14], 0x10
jb 0x45a81c
mov esi, dword [esi]
push eax
push esi
push str.WriteRegistryStringValue
xor ebx, ebx
push str._s:_RegCreateKeyEx_failed_for__hs_with_code__ld
inc ebx
push ebx
push 0
call fcn.0043a05d
add esp, 0x18
mov byte [ebp - 0x2d], 0
jmp 0x45a8d2
push dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
call fcn.0041ffcf
add esp, 4
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x45a85e
mov edi, dword [edi]
cmp dword [ebp - 0x18], 8
lea eax, [eax*2 + 2]
push eax
push edi
push ebx
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push 0
push ecx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x45a8b7
cmp dword [esi + 0x14], 0x10
jb 0x45a88d
mov esi, dword [esi]
push edi
push esi
push str.WriteRegistryStringValue
push str._s:_RegSetValueExW_failed_for__hs_with_code__ld
push ebx
push 0
call fcn.0043a05d
add esp, 0x18
cmp edi, 0x5aa
jne 0x45a8b1
mov eax, dword [ebp - 0x38]
mov dword [eax], ebx
mov byte [ebp - 0x2d], 0
jmp 0x45a8ba
mov byte [ebp - 0x2d], bl
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x3c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00427b8c
mov al, byte [ebp - 0x2d]
call fcn.004e472f
ret
Function at 0x45a8e6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x531bc0
call fcn.004e4751
mov esi, edx
mov edi, ecx
xor ebx, ebx
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x45a905
mov eax, dword [esi]
jmp 0x45a907
mov eax, esi
mov byte [eax], bl
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push str.SoftwarePsiphon3
push SysReAllocString
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x45a948
push eax
push edi
push str.ReadRegistryStringValue
push str._s:_RegOpenKeyEx_failed_for__hs_with_code__ld
push 1
push ebx
call fcn.0043a05d
add esp, 0x18
xor al, al
jmp 0x45a9fb
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.0041ffcf
add esp, 4
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
push ebx
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45a97f
push eax
push edi
push str.ReadRegistryStringValue
push str._s:_RegQueryValueExA_1__failed_for__hs_with_code__ld
jmp 0x45a9d2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45a990
push ebx
dec eax
mov ecx, esi
push eax
call fcn.00416b9d
cmp dword [esi + 0x14], 0x10
jb 0x45a998
mov esi, dword [esi]
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45a9be
push eax
push edi
push str.ReadRegistryStringValue
push str._s:_RegQueryValueExA_2__failed_for__hs_with_code__ld
jmp 0x45a9d2
cmp dword [ebp - 0x18], 1
je 0x45a9df
push dword [ebp - 0x18]
push edi
push str.ReadRegistryStringValue
push str._s:_RegQueryValueExA_says_type_of__hs_is__ld__not_REG_SZ
push 1
push ebx
call fcn.0043a05d
add esp, 0x18
jmp 0x45a9e1
mov bl, 1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x1c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov al, bl
call fcn.004e471a
ret