joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e35b
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x10016a58
call fcn.1000470c
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x10021ca0], edi
jne 0x1000e39f
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1000e38a
mov dword [0x10021ca0], ebx
jmp 0x1000e39f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1000e39f
mov dword [0x10021ca0], 2
mov eax, dword [0x10021ca0]
cmp eax, ebx
jne 0x1000e3bf
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1000e482
cmp eax, 2
je 0x1000e3c8
cmp eax, edi
jne 0x1000e3f0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x1000e3db
mov eax, dword [0x10021ba8]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x1000e3f7
xor eax, eax
jmp 0x1000e482
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.10004060
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x1000e42a
cmp esi, edi
jne 0x1000e440
push dword [ebp - 0x20]
call fcn.100047ff
pop ecx
mov esi, eax
cmp esi, edi
je 0x1000e3f0
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1000e473
cmp dword [ebp + 0x14], edi
jne 0x1000e45d
push edi
push edi
jmp 0x1000e463
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x1000e47f
push esi
call fcn.100059d7
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.10004747
ret
Function at 0x1000e48b
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x10016a68
call fcn.1000470c
xor esi, esi
cmp dword [0x10021ca4], esi
jne 0x1000e4cf
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1000e4ba
mov dword [0x10021ca4], edi
jmp 0x1000e4cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1000e4cf
mov dword [0x10021ca4], 2
mov eax, dword [0x10021ca4]
cmp eax, 2
je 0x1000e5b0
cmp eax, esi
je 0x1000e5b0
cmp eax, 1
jne 0x1000e514
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x1000e4fd
mov eax, dword [0x10021ba8]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x1000e51b
xor eax, eax
jmp 0x1000e5c2
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.10004060
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x1000e551
cmp edi, esi
jne 0x1000e56c
lea eax, [ebx + ebx]
push eax
call fcn.100047ff
pop ecx
mov edi, eax
cmp edi, esi
je 0x1000e514
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1000e59f
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x1000e589
push esi
push esi
jmp 0x1000e58f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x1000e5ab
push edi
call fcn.100059d7
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x1000e5c2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.10004747
ret
Function at 0x1000ed2d
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x1000ed46
or eax, 0xffffffff
jmp 0x1000eda7
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1000eda3
push 0x3d
push esi
call fcn.1000ef2d
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1000eda3
cmp esi, eax
je 0x1000eda3
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x10021890]
sete cl
cmp eax, dword [0x10021894]
mov dword [ebp - 8], ecx
jne 0x1000ed89
mov edi, eax
call fcn.1000eccc
mov dword [0x10021890], eax
cmp eax, ebx
jne 0x1000ede2
cmp dword [ebp + 0xc], ebx
je 0x1000edab
cmp dword [0x10021898], ebx
je 0x1000edab
call fcn.1000e84f
test eax, eax
je 0x1000ede2
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x1000edb4
xor eax, eax
jmp 0x1000eda6
push 4
call fcn.100047ff
cmp eax, ebx
pop ecx
mov dword [0x10021890], eax
je 0x1000eda3
mov dword [eax], ebx
cmp dword [0x10021898], ebx
jne 0x1000ede2
push 4
call fcn.100047ff
cmp eax, ebx
pop ecx
mov dword [0x10021898], eax
je 0x1000eda3
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x10021890]
call fcn.1000ec7f
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x1000ee43
cmp dword [esi], ebx
je 0x1000ee43
lea esi, [esi + edi*4]
push dword [esi]
call fcn.100059d7
cmp dword [ebp - 8], ebx
pop ecx
jne 0x1000ee26
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x1000ee84
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x1000ee1d
mov eax, edi
shl eax, 2
push eax
push dword [0x10021890]
call fcn.1000a25c
cmp eax, ebx
pop ecx
pop ecx
je 0x1000ee84
jmp 0x1000ee7f
cmp dword [ebp - 8], ebx
jne 0x1000eeef
cmp edi, ebx
jge 0x1000ee52
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x10021890]
call fcn.1000a25c
cmp eax, ebx
pop ecx
pop ecx
je 0x1000eda3
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x10021890], eax
cmp dword [ebp + 0xc], ebx
je 0x1000eed9
push dword [ebp - 4]
call fcn.10006840
inc eax
inc eax
push eax
call fcn.100047ff
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x1000eed9
push dword [ebp - 4]
push esi
call fcn.10006740
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x1000eed2
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.100059d7
pop ecx
cmp dword [ebp - 8], ebx
je 0x1000eee7
push dword [ebp - 4]
call fcn.100059d7
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x1000eda6
push dword [ebp - 4]
call fcn.100059d7
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x1000edb0
Function at 0x401110
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40114f
or eax, 0xffffffff
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00409b58
add esp, 0x19c
ret
call sub.SSLEAY32.dll_Ordinal_74
call sub.SSLEAY32.dll_Ordinal_183
mov ecx, dword [esp + 0x194]
xor ecx, esp
xor eax, eax
call fcn.00409b58
add esp, 0x19c
ret

Function at 0x401510
Capabilities:
Connect socket

Disassembly:
test esi, esi
je 0x401540
test eax, eax
je 0x401540
push 0x10
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jl 0x401543
test byte [esi + 8], 1
je 0x401543
mov ecx, dword [esi]
push ecx
call sub.SSLEAY32.dll_Ordinal_43
dec eax
add esp, 4
neg eax
sbb eax, eax
ret
or eax, 0xffffffff
ret

Function at 0x401610
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
test edi, edi
je 0x401664
test ebx, ebx
je 0x401664
test ebp, ebp
jle 0x401664
mov eax, ebp
sub eax, esi
test byte [edi + 8], 1
lea ecx, [esi + ebx]
je 0x401640
mov edx, dword [edi]
push eax
push ecx
push edx
call sub.SSLEAY32.dll_Ordinal_78
add esp, 0xc
jmp 0x40164e
mov edx, dword [edi + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x401667
add esi, eax
test byte [esp + 0x10], 1
je 0x40165f
cmp esi, ebp
jne 0x401624
mov eax, esi
pop esi
pop ebp
ret
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x401670
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
test ebp, ebp
je 0x4016be
test ebx, ebx
je 0x4016be
test edi, edi
jle 0x4016be
mov eax, edi
sub eax, esi
test byte [ebp + 8], 1
lea ecx, [esi + ebx]
je 0x4016a1
mov edx, dword [ebp]
push eax
push ecx
push edx
call sub.SSLEAY32.dll_Ordinal_108
add esp, 0xc
jmp 0x4016af
mov edx, dword [ebp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4016c1
add esi, eax
cmp esi, edi
jne 0x401684
mov eax, esi
pop esi
pop ebp
ret
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x401c40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
xor ebp, ebp
test ebx, ebx
jne 0x401c4c
or eax, 0xffffffff
pop ebp
ret
push esi
push edi
lea edi, [ebx + 4]
mov esi, edi
mov ecx, dword [ebx]
mov eax, 0x1000
sub eax, ebp
test ecx, ecx
je 0x401cba
test esi, esi
je 0x401cba
test eax, eax
jle 0x401cba
test byte [ecx + 8], 1
je 0x401c7d
push eax
mov eax, dword [ecx]
push esi
push eax
call sub.SSLEAY32.dll_Ordinal_78
add esp, 0xc
jmp 0x401c8b
mov ecx, dword [ecx + 4]
push 0
push eax
push esi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x401cba
add ebp, eax
push str._r_n_r_n
lea esi, [edi + ebp]
push edi
mov byte [esi], 0
call fcn.00409e50
add esp, 8
test eax, eax
jne 0x401cc3
cmp ebp, 0x1000
jne 0x401c53
pop edi
pop esi
mov eax, 0xfffffffd
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebp
ret
sub eax, ebx
add eax, 0xfffffffc
push edi
mov dword [ebx + 0x1008], eax
push str.Recv_request:_n_s_n
mov byte [eax + ebx + 4], 0
call fcn.0040a0d4
add esp, 8
mov edi, ebx
call fcn.00401b20
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0xfffffffc
pop ebp
ret

Function at 0x401fb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x401fbc
or eax, 0xffffffff
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [eax]
xor esi, esi
lea ebx, [eax + 4]
test edi, edi
je 0x402048
test ebx, ebx
je 0x402048
mov ebp, dword [sym.imp.WS2_32.dll_recv]
mov eax, 4
sub eax, esi
test byte [edi + 8], 1
lea ecx, [esi + ebx]
je 0x401ff4
mov edx, dword [edi]
push eax
push ecx
push edx
call sub.SSLEAY32.dll_Ordinal_78
add esp, 0xc
jmp 0x401ffe
mov edx, dword [edi + 4]
push 0
push eax
push ecx
push edx
call ebp
test eax, eax
jle 0x402043
add esi, eax
cmp esi, 4
jne 0x401fd5
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x1004]
mov esi, dword [ecx]
cmp esi, 8
jb 0x402052
cmp esi, 0x1000
jg 0x402052
mov edi, dword [eax]
sub esi, 4
push 1
push esi
lea ebx, [eax + 8]
call fcn.00401610
add esp, 8
sub eax, esi
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
and eax, 0xfffffffc
pop ebx
ret
cmp eax, 4
je 0x402009
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
ret
Function at 0x402060
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
push ebx
test eax, eax
je 0x402117
mov ebx, dword [eax + 0x1008]
test ebx, ebx
je 0x402117
push ebp
push esi
push edi
mov edi, dword [eax]
xor esi, esi
test edi, edi
je 0x402103
mov ebp, dword [sym.imp.WS2_32.dll_recv]
lea esp, [esp]
mov eax, 4
sub eax, esi
test byte [edi + 8], 1
lea ecx, [esi + ebx]
je 0x4020af
mov edx, dword [edi]
push eax
push ecx
push edx
call sub.SSLEAY32.dll_Ordinal_78
add esp, 0xc
jmp 0x4020b9
mov edx, dword [edi + 4]
push 0
push eax
push ecx
push edx
call ebp
test eax, eax
jle 0x4020fe
add esi, eax
cmp esi, 4
jne 0x402090
mov eax, dword [ebx + 0x1000]
mov esi, dword [eax]
cmp esi, 8
jb 0x40210d
cmp esi, 0x1000
jg 0x40210d
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx]
sub esi, 4
push 1
push esi
add ebx, 4
call fcn.00401610
add esp, 8
sub eax, esi
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
and eax, 0xfffffffc
pop ebx
ret
cmp eax, 4
je 0x4020c4
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
ret
or eax, 0xffffffff
pop ebx
ret

Function at 0x402730
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1004
call fcn.00412160
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x1000], eax
cmp dword [0x5a3934], 0
jne 0x40275c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x5a3934], eax
mov ecx, dword [esp + 0x1008]
lea eax, [esp + 0x100c]
push eax
push ecx
lea edx, [esp + 8]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov ecx, dword [0x5a3934]
lea eax, [esp]
push eax
push ecx
lea edx, [esp + 0x808]
push str._lu:__s_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00409b58
add esp, 0x1004
ret
Function at 0x403210
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x230], eax
cmp dword [ebp + 8], 2
push ebx
push esi
push edi
jne 0x4032a0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov ecx, str._import_ca
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403260
test dl, dl
je 0x40325c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403260
add eax, 2
add ecx, 2
test dl, dl
jne 0x403240
xor eax, eax
jmp 0x403265
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4032a0
call fcn.004027d0
mov esi, eax
test esi, esi
je 0x40327a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.SvpnAgent_import_ca_return__d__error__d
call fcn.00402730
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00409b58
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.004077d0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x5a7518], eax
call fcn.00401110
mov ebx, eax
test ebx, ebx
je 0x4032dc
push ebx
push str.Init_comm_failed:_d_n
call fcn.0040a0d4
add esp, 8
jmp 0x40339a
lea edi, [esp + 0x10]
call fcn.00402e90
mov edi, eax
test edi, edi
jne 0x4032fd
push str.Init_InitAgentCtx_failed_n
call fcn.0040a0d4
add esp, 4
jmp 0x403394
call fcn.004022e0
mov ebx, eax
test ebx, ebx
jne 0x40338f
movzx ecx, word [edi + 0xc]
push ecx
push str.SvpnAgent_listen_on:_d
call fcn.00402730
add esp, 8
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5a3938], eax
test eax, eax
je 0x40334f
push ebx
push ebx
push ebx
push 0x402d90
push ebx
push ebx
call esi
test eax, eax
je 0x40334f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0x403130
push 0
push 0
call esi
test eax, eax
je 0x40336b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.00402580
mov eax, dword [0x5a3938]
test eax, eax
je 0x40338f
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x5a3938]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004022a0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [0x5a7518]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00409b58
mov esp, ebp
pop ebp
ret
Function at 0x403ce0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x39c
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x398], eax
mov eax, dword [esp + 0x3a8]
push ebx
push ebp
mov ebp, dword [esp + 0x3ac]
push esi
push edi
mov ebx, ecx
mov ecx, 8
mov esi, str.SOFTWARESSL_VPN_CLIENTSHORTCUT_
lea edi, [esp + 0x1a8]
rep movsd dword es:[edi], dword [esi]
push 0x1de
lea ecx, [esp + 0x1ce]
push 0
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
movsw word es:[edi], word [esi]
call fcn.00412eb0
add esp, 0xc
lea edi, [esp + 0xa0]
lea esi, [esp + 0x20]
mov ecx, ebx
mov byte [esp + 0x20], 0
mov byte [esp + 0xa0], 0
call fcn.00403b10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x403ea0
mov ebx, dword [esp + 0x1c]
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x64], al
call fcn.00408160
push 0x3f
mov eax, esi
push 0x596570
push eax
call fcn.0040a4e0
push 0x3f
lea ecx, [esp + 0x74]
push ecx
mov edx, esi
push edx
call fcn.0040a4e0
add esp, 0x1c
lea esi, [esp + 0x1a8]
mov ecx, ebp
lea edi, [esp + 0x20]
call fcn.004039b0
mov esi, str.HKEY_CURRENT_USER
call fcn.00407920
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0xf013f
push 0
push 0
push 0
lea ecx, [esp + 0x1c4]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403e86
push 0x105
lea edx, [esp + 0xa4]
push edx
push 1
push eax
mov eax, dword [esp + 0x24]
push str.path
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x403e2f
push eax
push str.Modify_reg_key_failed._Return:__d.
call fcn.00402730
mov ecx, dword [esp + 0x1c]
add esp, 8
push ecx
mov dword [esp + 0x14], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403e9c
mov eax, dword [esp + 0x3b0]
mov ecx, str.ModifyAndOpen
jmp 0x403e40
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403e60
test dl, dl
je 0x403e5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403e60
add eax, 2
add ecx, 2
test dl, dl
jne 0x403e40
xor eax, eax
jmp 0x403e65
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403e79
lea ecx, [esp + 0xa0]
call fcn.00403630
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403e9c
push eax
push str.Create_key_failed._Return:__d.
call fcn.00402730
add esp, 8
mov dword [esp + 0x10], 0xffffffef
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409b58
add esp, 0x39c
ret
Function at 0x4047d0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
sub esp, 0x274
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x26c], eax
push esi
push edi
push 0x44
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
mov esi, ecx
call fcn.00412eb0
add esp, 0xc
push 0x104
xor eax, eax
lea ecx, [esp + 0x16c]
push ecx
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x2c], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4048fd
cmp eax, 0x104
ja 0x4048fd
push 0x104
lea edx, [esp + 0x16c]
push edx
lea eax, [esp + 0x68]
push eax
call fcn.00409fb0
lea ecx, [esp + 0x6c]
push 0x5c
push ecx
call fcn.0040aec0
add esp, 0x14
test eax, eax
je 0x404875
mov byte [eax + 1], 0
lea eax, [esp + 0x60]
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0
push 0x30
push 0
push 0
push 0
lea edx, [esp + 0x188]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4048cb
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.00409b58
add esp, 0x274
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_return__d_n
call fcn.00402730
mov edi, 0xfffffffe
add esp, 8
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.00409b58
add esp, 0x274
ret
mov ecx, dword [esp + 0x274]
pop edi
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.00409b58
add esp, 0x274
ret

Function at 0x405520
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
mov dword [esp + 4], 0
test ebx, ebx
je 0x405615
test ebp, ebp
je 0x405615
push edi
mov edi, str.VPNManage.exe
call fcn.00406ec0
pop edi
test eax, eax
je 0x405556
mov eax, 0xfffffffe
pop ebp
pop ecx
ret
push 0x200
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x40559f
push str.HeapAlloc_failed.
call fcn.00402730
mov eax, dword [str.failed]
mov dword [ebp], eax
mov cx, word [0x5961e8]
mov word [ebp + 4], cx
mov dl, byte [0x5961ea]
add esp, 4
mov byte [ebp + 6], dl
mov eax, 0xfffffffd
pop ebp
pop ecx
ret
push esi
mov esi, eax
mov ecx, ebx
sub esi, ebx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x4055a6
cmp dword [0x5a393c], 0
pop esi
jne 0x4055ea
push 0
push 0
push eax
push 0x4050f0
push 0
push 0
mov dword [0x5a393c], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40560e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
pop ebp
pop ecx
ret
mov eax, dword [str.failed]
mov dword [ebp], eax
mov cx, word [0x5961e8]
mov word [ebp + 4], cx
mov dl, byte [0x5961ea]
mov byte [ebp + 6], dl
mov dword [esp + 4], 0xfffffffc
mov eax, dword [esp + 4]
pop ebp
pop ecx
ret
or eax, 0xffffffff
pop ebp
pop ecx
ret