joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x42f8d8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x98]
push eax
mov esi, ecx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x401bc3
mov eax, dword [ebp - 0x94]
cmp eax, 5
ja 0x401bbc
jne 0x401bc3
cmp dword [ebp - 0x90], 0
jbe 0x401bc3
mov eax, 1
jmp 0x401bc5
xor eax, eax
mov edx, dword [0x430e20]
push 0x79
xor ecx, ecx
push 0
test eax, eax
setne cl
push 0x10
push 0x10
push 1
add ecx, 0x69
push ecx
push edx
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
mov eax, dword [esi + 4]
push str.ProxyCap
push 0x401
push eax
mov ecx, 0x430e28
call fcn.0040f640
test eax, eax
jne 0x401c13
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414407
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
push 0
push 0x1388
push 1
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00414407
mov esp, ebp
pop ebp
ret

Function at 0x401ee0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x401ef6
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
call fcn.00401db0
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
pop esi
ret

Function at 0x4028c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040acc0
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x42d130
lea ecx, [ebp - 8]
push ecx
push 0
push str.pcolwidth
push esi
mov dword [ebp - 4], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402902
mov dword [0x42d130], 0xffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x42d130], 0
jge 0x402941
push 0x10
lea edx, [ebp - 0x18]
push edx
push 0x42d130
mov dword [ebp - 0x18], 0x3c
mov dword [ebp - 0x14], 0xbe
mov dword [ebp - 0x10], 0x37
mov dword [ebp - 0xc], 0x4a
call fcn.00414490
add esp, 0xc
mov eax, dword [edi + 4]
push 0x460
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov dword [ebp - 0x38], 0xf
xor esi, esi
mov ecx, dword [esi*4 + 0x42d140]
mov edx, dword [esi*4 + 0x42d130]
lea eax, [ebp - 0x38]
push eax
push esi
push 0x101b
push edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], 0
call ebx
add esi, 1
cmp esi, 4
jl 0x402961
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402d10
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 4]
push ebx
push esi
push edi
push 0x460
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
xor esi, esi
lea esp, [esp]
push 0
push esi
push 0x101d
push edi
call ebx
mov dword [esi*4 + 0x42d130], eax
add esi, 1
cmp esi, 4
jl 0x4029c0
call fcn.0040acc0
push 0x10
push 0x42d130
push 3
push 0
mov esi, eax
push str.pcolwidth
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
ret
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, esi
pop esi
jmp 0x4029a0

Function at 0x403870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040acc0
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x42d16c
lea ecx, [ebp - 8]
push ecx
push 0
push str.rcolwidth
mov ebx, 0x18
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4038ae
cmp dword [ebp - 4], ebx
je 0x4038b8
mov dword [0x42d16c], 0xffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x42d16c], 0
jge 0x403904
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x42d16c
mov dword [ebp - 0x20], 0x28
mov dword [ebp - 0x1c], 0x6e
mov dword [ebp - 0x18], 0x4b
mov dword [ebp - 0x14], 0x32
mov dword [ebp - 0x10], 0x41
mov dword [ebp - 0xc], 0x46
call fcn.00414490
add esp, 0xc
mov eax, dword [edi + 4]
push 0x46a
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov dword [ebp - 0x40], 0xf
xor esi, esi
jmp 0x403930
mov ecx, dword [esi*4 + 0x42d184]
mov edx, dword [esi*4 + 0x42d16c]
lea eax, [ebp - 0x40]
push eax
push esi
push 0x101b
push edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], 0
call ebx
add esi, 1
cmp esi, 6
jl 0x403930
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404130
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 4]
push ebx
push esi
push edi
push 0x46a
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
xor esi, esi
lea esp, [esp]
push 0
push esi
push 0x101d
push edi
call ebx
mov dword [esi*4 + 0x42d16c], eax
add esi, 1
cmp esi, 6
jl 0x403990
call fcn.0040acc0
push 0x18
push 0x42d16c
push 3
push 0
mov esi, eax
push str.rcolwidth
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
ret
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, esi
pop esi
jmp 0x403970
Function at 0x405ef0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040acc0
mov edi, eax
lea eax, [ebp - 4]
push eax
lea ebx, [esi + 0x44]
push ebx
push 0
push 0
push str.AutoStart
push edi
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405f29
mov dword [ebx], 1
lea ecx, [ebp - 4]
push ecx
add esi, 0x48
push esi
push 0
push 0
push str.ReportCrash
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405f4b
mov dword [esi], 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405f60
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040acc0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
mov esi, eax
lea eax, [edi + 0x44]
push eax
push 4
push 0
push str.AutoStart
push esi
call ebx
push 4
add edi, 0x48
push edi
push 4
push 0
push str.ReportCrash
push esi
call ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
ret

Function at 0x406070
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42f8d8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea esi, [ebp - 0x108]
push 0x104
mov eax, esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x406157
push 2
lea ecx, [ebp - 0x107]
push 0x425b50
push ecx
call fcn.00414c0a
add esp, 0xc
test eax, eax
jne 0x406157
push 0x104
lea edx, [ebp - 0x20c]
push edx
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x4060df
lea esi, [ebp - 0x20c]
lea ecx, [ebp - 0x210]
push ecx
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406157
cmp dword [ebp + 8], eax
je 0x406138
mov eax, esi
lea edx, [eax + 1]
jmp 0x406110
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406110
sub eax, edx
mov edx, dword [ebp - 0x210]
add eax, 1
push eax
push esi
push 1
push 0
push str.ProxyCap
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40614a
mov eax, dword [ebp - 0x210]
push str.ProxyCap
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00414407
mov esp, ebp
pop ebp
ret 4
Function at 0x407660
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424148
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [0x42f8d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
call fcn.00407200
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.0040d210
cmp eax, 1
jne 0x407763
cmp dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x10]
jne 0x4076b9
mov ecx, 0x425478
cmp dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x24]
jne 0x4076c7
mov eax, 0x425478
push ecx
push eax
call fcn.00407330
add esp, 8
test eax, eax
je 0x407763
call fcn.00407530
mov esi, eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4076ef
lea ecx, [eax - 1]
mov eax, dword [ebp - 0x24]
jmp 0x4076f6
xor ecx, ecx
mov eax, 0x425478
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add ecx, 1
push ecx
push eax
push 1
push 0
push str.Name
push esi
call edi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40771c
lea ecx, [eax - 1]
mov eax, dword [ebp - 0x10]
jmp 0x407723
xor ecx, ecx
mov eax, 0x425478
add ecx, 1
push ecx
push eax
push 1
push 0
push str.Serial
push esi
call edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x24]
jne 0x407749
mov ecx, 0x425478
mov edx, 0x430ce0
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x407750
call fcn.00407310
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.00407250
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407ab0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
call fcn.00407530
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.ExpDate
push esi
mov dword [ebp - 4], 8
call edi
test eax, eax
je 0x407b12
mov dword [0x430db8], 1
call fcn.00407830
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.ExpDate
push esi
mov dword [ebp - 4], 8
call edi
cmp dword [ebp - 4], 8
jne 0x407bab
lea eax, [ebp - 0x10]
push eax
push str.iopjfrp_kiss_ee
call fcn.00411550
add esp, 8
cmp dword [ebp - 0x10], 1
je 0x407bab
push 0
call fcn.0041492e
add esp, 4
cmp eax, dword [ebp - 0xc]
jb 0x407bab
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jbe 0x407b5d
mov edx, eax
sub edx, ecx
cmp edx, 0x1e13380
ja 0x407b5b
mov dword [0x430db4], ecx
cmp eax, ecx
jae 0x407bab
mov edx, ecx
sub edx, eax
cmp edx, 0x278d00
ja 0x407bab
mov dword [0x430db0], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push str.iopjfrp_kiss_ee
mov dword [0x430db4], ecx
call fcn.004114d0
add esp, 8
push 8
lea ecx, [ebp - 0x10]
push ecx
push 3
push 0
push str.ExpDate
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x42f8d8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.00407530
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x124]
push edx
push 0
push str.Name
push esi
mov dword [ebp - 0x120], 0xc8
mov byte [ebp - 0x11c], 0
call edi
xor eax, eax
jmp 0x407c20
mov cl, byte [ebp + eax - 0x11c]
mov byte [eax + 0x430ce0], cl
add eax, 1
test cl, cl
jne 0x407c20
lea eax, [ebp - 0x120]
push eax
mov byte [ebp - 0x54], cl
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x124]
push edx
push 0
push str.Serial
push esi
mov dword [ebp - 0x120], 0x50
call edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x11c], 0
pop edi
pop esi
jne 0x407c91
cmp byte [ebp - 0x54], 0
jne 0x407c91
call fcn.00407ab0
test eax, eax
je 0x407cad
call fcn.00407320
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414407
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00407330
add esp, 8
test eax, eax
je 0x407cad
call fcn.00407310
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414407
mov esp, ebp
pop ebp
ret
Function at 0x409320
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424308
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x42f8d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x10]
push 0x425478
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [esi + 0x6c]
test eax, eax
jl 0x409382
cmp eax, 3
jge 0x409382
shl eax, 5
mov ecx, dword [eax + esi + 0x9c]
mov edx, dword [ecx + 4]
lea eax, [eax + esi + 0x9c]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [ebp + 8]
cmp ebx, 2
ja 0x40950c
shl ebx, 5
add ebx, esi
lea eax, [ebx + 0xa0]
push eax
lea ecx, [ebp - 0x20]
call fcn.004075d0
mov edi, dword [ebx + 0xb8]
cmp edi, 0xffffffff
mov dword [ebp - 4], 0
je 0x40945f
jmp 0x4093c0
push 0x42608c
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [edi + 5]
shl ecx, 5
add ecx, esi
call fcn.0040d8a0
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040d610
mov ecx, dword [eax + 4]
test ecx, ecx
mov byte [ebp - 4], 2
je 0x409406
mov edx, dword [eax + 0x10]
add ecx, 0xffffffff
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.0040d380
jmp 0x409410
push 0
lea ecx, [ebp - 0x20]
call fcn.004011f0
mov dword [ebp - 0x34], vtable.CArraySimpleObj_char__char_.0
push 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00401160
mov dword [ebp - 0x34], vtable.CArrayObjBase_char__char_.0
mov dword [ebp - 0x48], vtable.CArraySimpleObj_char__char_.0
push 0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00401160
shl edi, 5
mov edi, dword [edi + esi + 0xb8]
cmp edi, 0xffffffff
mov byte [ebp - 4], 0
mov dword [ebp - 0x48], vtable.CArrayObjBase_char__char_.0
jne 0x4093c0
cmp dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x10]
jne 0x40946d
mov eax, 0x425478
push eax
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [esi + 0x60]
mov edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x5c]
push 1
sub edx, eax
push edx
mov edx, dword [esi + 0x64]
sub edx, ecx
push edx
push eax
mov eax, dword [ebx + 0x9c]
push ecx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [ebx + 0x9c]
mov eax, dword [edx + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 0x9c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0xb4]
mov ecx, dword [esi + 4]
push eax
push 9
push 0x110b
push 0x44c
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.004013d0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a2f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424410
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x42f8d8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov edx, dword [ebx + 4]
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x158]
push ecx
push 0x2003
push 0xffff
push edx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x160], 4
call sub.WS2_32.dll_getsockopt
cmp eax, 0xffffffff
jne 0x40a37b
call sub.WS2_32.dll_WSAGetLastError
movzx eax, ax
push 0x42a31c
lea ecx, [ebp - 0x164]
shl eax, 0x10
push ecx
mov dword [ebp - 0x164], eax
call fcn.00414dee
cmp dword [ebp - 0x158], 0x127
jae 0x40a3a8
push str.SO_MAX_MSG_SIZE_is_too_small
lea ecx, [ebp - 0x17c]
call fcn.00401440
push 0x42a350
lea edx, [ebp - 0x17c]
push edx
call fcn.00414dee
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
call edx
push 0x7f000001
mov word [ebp - 0x14c], 2
call sub.WS2_32.dll_htonl
push 0
mov dword [ebp - 0x148], eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x14a], ax
lea eax, [ebp - 0x14c]
push eax
mov ecx, ebx
call fcn.004118a0
mov dword [ebp - 0x15c], eax
call fcn.0040acc0
push 4
lea ecx, [ebp - 0x15c]
push ecx
push 4
push 0
mov esi, eax
push str.Port
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
push 0
push 0x127
lea ecx, [ebp - 0x13c]
push ecx
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.004119f0
cmp eax, 8
mov dword [ebp - 4], 0xffffffff
jbe 0x40a412
cmp dword [ebp - 0x13c], 0x6a
jne 0x40a412
cmp eax, dword [ebp - 0x138]
jne 0x40a412
lea ecx, [ebp - 0x13c]
push ecx
call fcn.0040a630
add esp, 4
test eax, eax
je 0x40a412
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
mov edi, dword [ebp - 0x138]
call fcn.0040a2c0
mov esi, eax
test esi, esi
je 0x40a412
mov ecx, dword [ebp - 0x138]
push ecx
lea edx, [ebp - 0x13c]
push edx
push esi
call fcn.00414490
push 0
call fcn.0041492e
add esp, 0x10
push 0x430dbc
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov ecx, 0x42f4c8
call fcn.0040c1e0
push 0x430dbc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax]
push 0
push 0
push 0x402
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40a412
Function at 0x40ad40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x426988
push str.SoftwareProxy_LabsProxyCapRules
push reloc.WS2_32.dll_accept
call fcn.00411b80
add esp, 0xc
test eax, eax
jne 0x40ad65
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
call fcn.0040c160
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0x426988
push esi
mov dword [ebp - 4], 4
call edi
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x40adca
call fcn.0040c1a0
mov esi, eax
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x426988
push esi
mov dword [ebp - 4], 4
call edi
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40add3
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 0
jne 0x40addf
cmp dword [ebp - 0xc], 0
je 0x40adca
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b4f0
Capabilities:
Create directory
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42456b
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x42f8d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0x1a
call fcn.004109b0
add esp, 0xc
test eax, eax
jne 0x40b554
test esi, esi
je 0x40b54d
push str.Special_folder_Application_Data_couldnt_be_located.
mov ecx, esi
call fcn.004012d0
xor eax, eax
jmp 0x40b688
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x128]
call fcn.00401440
lea edx, [ebp - 0x128]
push edx
mov dword [ebp - 4], 0
call fcn.0040e190
mov eax, dword [ebp - 0x128]
mov edx, dword [eax + 0x10]
add esp, 4
push 8
push str.ProxyCap
lea ecx, [ebp - 0x128]
call edx
cmp dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x118]
jne 0x40b5a8
mov eax, 0x425478
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x128]
mov edx, dword [eax + 0x10]
push 9
push str.user.prs
lea ecx, [ebp - 0x128]
call edx
cmp dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x118]
jne 0x40b5dd
mov eax, 0x425478
push esi
push edi
push eax
call fcn.0040b1b0
add esp, 0xc
test eax, eax
jne 0x40b605
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0xffffffff
call fcn.004013d0
xor eax, eax
jmp 0x40b688
call fcn.0040ad00
mov esi, eax
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x40b621
lea ecx, [eax - 1]
mov eax, dword [ebp - 0x118]
jmp 0x40b628
xor ecx, ecx
mov eax, 0x425478
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add ecx, 1
push ecx
push eax
push 1
push 0
push 0x4269dc
push esi
call edi
push 0
call fcn.0041492e
add esp, 4
push 8
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x130]
push eax
push 3
push 0
push str.modified
push esi
mov dword [ebp - 0x12c], edx
call edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0xffffffff
call fcn.004013d0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414407
mov esp, ebp
pop ebp
ret
Function at 0x40bc70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42462b
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x42f8d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x118], eax
call fcn.0040ad00
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x114]
push edx
xor edi, edi
push edi
push edi
mov esi, eax
push 0x4269dc
push esi
mov dword [ebp - 0x120], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov dword [ebp - 0x11c], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x11c], edi
je 0x40bd67
mov eax, 8
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], edi
mov dword [ebp - method.CArrayPtr_struct_TUNNELING_RULE_.virtual_0], vtable.CArrayPtr_struct_TUNNELING_RULE_.0
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], edi
mov dword [ebp - method.CArrayPtr_struct_TUNNELING_RULE_.virtual_0], vtable.CSortableArrayPtr_struct_PROXY_SERVER_EX__unsigned_long_int_.0
mov dword [ebp - 0x124], edi
lea eax, [ebp - 0x14c]
push eax
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.0040aea0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 4], 0xffffffff
call fcn.00405910
mov eax, 1
jmp 0x40bd7e
mov ecx, dword [ebp - 0x118]
push ecx
lea edx, [ebp - 0x114]
push ebx
push edx
call fcn.0040b710
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414407
mov esp, ebp
pop ebp
ret