joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b107
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push 0x1c
mov eax, 0x530157
call fcn.004e49d2
mov eax, dword fs:[0x2c]
or edi, 0xffffffff
mov esi, dword [eax]
mov eax, dword [0x5ec554]
cmp eax, dword [esi + 0x139c]
jle 0x44b16f
mov ebx, 0x5ec554
push ebx
call fcn.004e3f82
pop ecx
cmp dword [0x5ec554], edi
jne 0x44b16f
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x550335
call fcn.004147d9
mov byte [ebp - 4], 1
call fcn.004d425d
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00416ab1
push ebx
mov dword [ebp - 4], edi
call fcn.004e3f43
pop ecx
mov eax, dword [0x5ec550]
mov ebx, 0x5eb1c8
cmp eax, dword [esi + 0x139c]
jle 0x44b1be
mov esi, 0x5ec550
push esi
call fcn.004e3f82
pop ecx
cmp dword [0x5ec550], edi
jne 0x44b1be
mov dword [ebp - 4], 2
call fcn.004d425d
push 0x6c078965
push eax
mov ecx, ebx
mov dword [0x5ec54c], edi
call fcn.0044b2d5
push esi
mov dword [ebp - 4], edi
call fcn.004e3f43
pop ecx
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x14], edi
call fcn.0044b409
pop ecx
call fcn.004e497c
ret

Function at 0x44b2d5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [ebp + 0xc]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x44b2ec
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8

Function at 0x44b5f4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x44b5fd
pop esi
ret
Function at 0x44b635
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x44b645
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x44b685
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], ebx
pop esi
pop ebx
ret
Function at 0x44e4e8
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x44e68b
mov edx, 0x10000000
cmp eax, 0x7c
je 0x44e68b
cmp eax, 0x29
jne 0x44e521
cmp dword [esi + 0x10], 0
jne 0x44e68b
test dword [esi + 0x50], edx
je 0x44e691
cmp eax, 0x2e
jne 0x44e53c
push 5
lea ecx, [esi + 0x24]
call fcn.0044e76f
mov ecx, esi
call fcn.0044e4c5
jmp 0x44e675
cmp eax, 0x5c
jne 0x44e597
mov ecx, esi
call fcn.0044e4c5
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x44e56e
cmp byte [esi + 0x48], 0x62
jne 0x44e56e
push 4
lea ecx, [esi + 0x24]
call fcn.0044e76f
mov ecx, esi
call fcn.0044e4c5
jmp 0x44e67c
test eax, eax
je 0x44e58b
cmp byte [esi + 0x48], 0x42
jne 0x44e58b
push 4
lea ecx, [esi + 0x24]
call fcn.0044e76f
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x44e562
mov ecx, esi
call fcn.0044e7a7
jmp 0x44e675
cmp eax, 0x5b
jne 0x44e5f7
mov ecx, esi
call fcn.0044e4c5
lea ecx, [esi + 0x24]
call fcn.0044eda3
cmp dword [esi + 0x4c], 0x5e
jne 0x44e5bf
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.0044e4c5
test dword [esi + 0x50], 0x20000000
je 0x44e5df
cmp dword [esi + 0x4c], 0x5d
jne 0x44e5df
push 0x5d
lea ecx, [esi + 0x24]
call fcn.0044edef
mov ecx, esi
call fcn.0044e4c5
mov ecx, esi
call fcn.0044eb96
cmp dword [esi + 0x4c], 0x5d
je 0x44e530
push 4
jmp 0x44e693
cmp eax, 0x28
jne 0x44e61b
mov ecx, esi
call fcn.0044e4c5
mov ecx, esi
call fcn.0044e88a
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x44e691
mov ecx, esi
call fcn.0044e4c5
jmp 0x44e671
cmp eax, 0x5e
jne 0x44e627
push 2
jmp 0x44e55a
cmp eax, 0x24
jne 0x44e633
push 3
jmp 0x44e55a
cmp eax, 0x2a
je 0x44e687
cmp eax, 0x2b
je 0x44e687
cmp eax, 0x3f
je 0x44e687
cmp eax, 0x7b
je 0x44e687
cmp eax, 0x7d
jne 0x44e651
test dword [esi + 0x50], edx
je 0x44e683
cmp eax, 0x5d
jne 0x44e65b
test dword [esi + 0x50], edx
je 0x44e5f0
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.0044ea41
mov ecx, esi
call fcn.0044e4c5
mov bl, 1
test bl, bl
je 0x44e67c
mov ecx, esi
call fcn.0044e97d
mov cl, 1
jmp 0x44e4ef
push 6
jmp 0x44e693
push 0xa
jmp 0x44e693
pop edi
pop esi
mov al, cl
pop ebx
ret
push 5
call fcn.004d2a25
int3
Function at 0x452e5c
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x453001
mov edx, 0x10000000
cmp eax, 0x7c
je 0x453001
cmp eax, 0x29
jne 0x452e95
cmp dword [esi + 0x10], 0
jne 0x453001
test dword [esi + 0x50], edx
je 0x453007
cmp eax, 0x2e
jne 0x452eb0
push 5
lea ecx, [esi + 0x24]
call fcn.0044e76f
mov ecx, esi
call fcn.00452e37
jmp 0x452feb
cmp eax, 0x5c
jne 0x452f0d
mov ecx, esi
call fcn.00452e37
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x452ee3
cmp word [esi + 0x48], 0x62
jne 0x452ee3
push 4
lea ecx, [esi + 0x24]
call fcn.0044e76f
mov ecx, esi
call fcn.00452e37
jmp 0x452ff2
test eax, eax
je 0x452f01
cmp word [esi + 0x48], 0x42
jne 0x452f01
push 4
lea ecx, [esi + 0x24]
call fcn.0044e76f
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x452ed7
mov ecx, esi
call fcn.00453846
jmp 0x452feb
cmp eax, 0x5b
jne 0x452f6d
mov ecx, esi
call fcn.00452e37
lea ecx, [esi + 0x24]
call fcn.00454975
cmp dword [esi + 0x4c], 0x5e
jne 0x452f35
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00452e37
test dword [esi + 0x50], 0x20000000
je 0x452f55
cmp dword [esi + 0x4c], 0x5d
jne 0x452f55
push 0x5d
lea ecx, [esi + 0x24]
call fcn.004549c1
mov ecx, esi
call fcn.00452e37
mov ecx, esi
call fcn.00454793
cmp dword [esi + 0x4c], 0x5d
je 0x452ea4
push 4
jmp 0x453009
cmp eax, 0x28
jne 0x452f91
mov ecx, esi
call fcn.00452e37
mov ecx, esi
call fcn.00453929
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x453007
mov ecx, esi
call fcn.00452e37
jmp 0x452fe7
cmp eax, 0x5e
jne 0x452f9d
push 2
jmp 0x452ecf
cmp eax, 0x24
jne 0x452fa9
push 3
jmp 0x452ecf
cmp eax, 0x2a
je 0x452ffd
cmp eax, 0x2b
je 0x452ffd
cmp eax, 0x3f
je 0x452ffd
cmp eax, 0x7b
je 0x452ffd
cmp eax, 0x7d
jne 0x452fc7
test dword [esi + 0x50], edx
je 0x452ff9
cmp eax, 0x5d
jne 0x452fd1
test dword [esi + 0x50], edx
je 0x452f66
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00453ae0
mov ecx, esi
call fcn.00452e37
mov bl, 1
test bl, bl
je 0x452ff2
mov ecx, esi
call fcn.00453a1c
mov cl, 1
jmp 0x452e63
push 6
jmp 0x453009
push 0xa
jmp 0x453009
pop edi
pop esi
mov al, cl
pop ebx
ret
push 5
call fcn.004d2a25
int3
Function at 0x459398
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5e1390]
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 0x459462
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0050e45b
pop ecx
pop ecx
test eax, eax
jne 0x459454
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 0x459422
push 0x1388
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x459447
push dword [ebp - 0x234]
push str.TerminateProcess_failed_for_process_with_name__s
push 0
push 0
call fcn.0043a0a0
push str.Please_terminate_this_process_manually
push 0
push 0
call fcn.0043a0a0
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 0x4593de
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004e3e0d
mov esp, ebp
pop ebp
ret
Function at 0x459481
Capabilities:
Write file on windows

Disassembly:
push 0x44
mov eax, 0x531cdb
call fcn.004e49d2
mov esi, edx
lea eax, [ebp - 0x4c]
movzx ecx, cx
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0045c877
pop ecx
pop ecx
test al, al
jne 0x4594b8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.ExtractExecutable___GetResourceBytes_failed___d_
xor ebx, ebx
jmp 0x4595a7
xor ebx, ebx
mov byte [ebp - 0x41], bl
cmp dword [esi + 0x14], 8
jb 0x4594c7
mov eax, dword [esi]
jmp 0x4594c9
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 0x459556
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp byte [ebp - 0x41], 0
jne 0x45954e
cmp eax, 0x20
jne 0x45954e
cmp byte [ebp + 8], 0
jne 0x459587
push esi
lea ecx, [ebp - 0x40]
call fcn.00446cdd
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
push ecx
mov ecx, eax
call fcn.0045df9f
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x459524
mov eax, dword [eax]
mov ecx, eax
call fcn.00459398
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00427ba9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.00427ba9
mov byte [ebp - 0x41], 1
jmp 0x4594bd
push eax
push str.ExtractExecutable___CreateFile_failed___d_
jmp 0x4595a7
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 0x45958b
cmp dword [ebp - 0x48], esi
jne 0x45958b
push edi
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
test eax, eax
je 0x45958b
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x4595b3
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.0043a0a0
add esp, 0x10
xor al, al
call fcn.004e497c
ret
Function at 0x4598a5
Capabilities:
Create directory

Disassembly:
push 0x40
mov eax, 0x531d91
call fcn.004e49d2
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 [0x5ec5e8]
cmp eax, dword [esi + 0x139c]
jle 0x459905
mov esi, 0x5ec5e8
push esi
call fcn.004e3f82
cmp dword [0x5ec5e8], 0xffffffff
pop ecx
jne 0x459905
and dword [ebp - 4], 0
call fcn.004595b9
push 0x53b7f3
call fcn.004e45f2
or dword [ebp - 4], 0xffffffff
pop ecx
push esi
call fcn.004e3f43
pop ecx
cmp dword [0x5ec5fc], 0
jne 0x459915
xor al, al
jmp 0x4599c0
push 0x5ec5ec
lea ecx, [ebp - 0x2c]
call fcn.0042669f
mov dword [ebp - 4], 1
mov esi, dword [edi]
mov edi, dword [edi + 4]
cmp esi, edi
je 0x45998f
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
lea ecx, [ebp - 0x44]
call fcn.0042669f
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042ac92
cmp byte [ebp - 0x45], 0
je 0x459978
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 0x459978
call ebx
cmp eax, 0xb7
jne 0x4599c6
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00427ba9
add esi, 0x18
cmp esi, edi
jne 0x459938
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00420367
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.00427b2c
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.00427ba9
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00427ba9
mov al, bl
call fcn.004e497c
ret
call ebx
push eax
push str.GetPsiphonDataPath
push str._s___create_directory_failed___d_
xor ebx, ebx
push ebx
push ebx
call fcn.0043a0a0
add esp, 0x14
lea ecx, [ebp - 0x44]
push ebx
push 1
call fcn.00427ba9
jmp 0x4599b2

Function at 0x4599ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5e1390]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
and dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x459a10
mov eax, dword [esi]
jmp 0x459a12
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 0x459a46
test eax, eax
je 0x459a46
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.0045cf97
mov al, 1
jmp 0x459a6a
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.0043a0a0
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004e3e0d
mov esp, ebp
pop ebp
ret
Function at 0x459b3a
Capabilities:
Create directory

Disassembly:
push 0x3c
mov eax, 0x531dc6
call fcn.004e49d2
mov esi, edx
mov edi, ecx
cmp esi, 0xa
jle 0x459b72
push esi
push 0x137
push str.GetUniqueTempDir
push str._s:_d___depth_too_large:__d
push 1
push 0
call fcn.0043a0a0
add esp, 0x18
xor al, al
jmp 0x459c73
xor edx, edx
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], edx
jb 0x459b81
mov eax, dword [edi]
jmp 0x459b83
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.004599ec
test al, al
jne 0x459bc1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x140
push str.GetUniqueTempDir
push str._s:_d___GetSysTempPath_failed:__d
jmp 0x459c8f
test esi, esi
jle 0x459c43
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 0x459c43
push ebx
lea ecx, [ebp - 0x40]
call fcn.00459aff
pop ecx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0042ac92
xor ebx, ebx
lea ecx, [ebp - 0x40]
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.00427ba9
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00446be8
cmp dword [eax + 0x14], 8
jb 0x459c16
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.00427ba9
add bl, 1
jne 0x459c79
mov ebx, dword [ebp - 0x44]
inc ebx
mov dword [ebp - 0x44], ebx
cmp ebx, esi
mov ebx, dword [ebp - 0x48]
jl 0x459bdb
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00446be8
push eax
mov ecx, edi
call fcn.00427b2c
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00427ba9
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00427ba9
mov al, bl
call fcn.004e497c
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.0043a0a0
add esp, 0x18
xor bl, bl
jmp 0x459c65

Function at 0x459f2d
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 0x459f3e
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 0x459f8f
cmp dword [edi + 0x14], 0x10
lea ebx, [edi + 0x10]
jb 0x459f69
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 0x459f8f
mov eax, dword [ebp - 4]
cmp eax, dword [ebx]
jne 0x459f8f
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x459fc3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x459faa
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push edi
push 0x5b8bbc
push str._s___write_file_failed___d_
push 0
push 0
call fcn.0043a0a0
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459fca
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 [0x5e1390]
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 0x45a15d
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 0x45a13d
add ecx, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
xor esi, esi
cmp eax, ecx
jae 0x45a13d
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 0x45a0f2
push 0x10
push dword [esp + 0x14]
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x45a0f2
push 0x10
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x45a0f2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x45a0f2
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 0x45a0f2
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x14]
push edi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x45a0f2
test byte [esp + 0x34], 0x10
je 0x45a0f2
cmp dword [esp + 0x48], esi
je 0x45a142
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45a106
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x45a12f
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx]
test ecx, ecx
je 0x45a11c
mov eax, dword [ecx]
push esi
push dword [edx + 4]
call dword [eax]
test eax, eax
jne 0x45a136
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, ebx
jb 0x45a13d
mov ecx, dword [esp + 0x20]
jmp 0x45a068
mov esi, 0x24f
jmp 0x45a142
mov esi, 0x3e3
jmp 0x45a142
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 0x45a162
mov eax, 0x704
mov ecx, dword [esp + 0x1f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e3e0d
mov esp, ebp
pop ebp
ret
Function at 0x45a1c6
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 0x45a1f3
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 0x45a222
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x45a210
push 0x1388
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x45a222
push esi
push str.TerminateProcess_failed_for_process_with_PID__d
push 0
push 0
call fcn.0043a0a0
add esp, 0x10
pop edi
pop esi
ret
Function at 0x45a601
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 0x45a650
cmp dword [esi + 0x14], 0x10
jb 0x45a635
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.0043a0a0
add esp, 0x18
xor al, al
jmp 0x45a68a
cmp dword [esi + 0x14], 0x10
jb 0x45a658
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 0x45a690
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x531e43
call fcn.004e499e
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 0x45a6f1
cmp dword [esi + 0x14], 0x10
jb 0x45a6d6
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.0043a0a0
add esp, 0x18
xor al, al
jmp 0x45a762
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 0x45a70c
mov eax, dword [esi]
jmp 0x45a70e
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 0x45a746
cmp dword [esi + 0x14], 0x10
jb 0x45a72d
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.0043a0a0
add esp, 0x18
jmp 0x45a748
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.004e4967
ret