joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40294c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402978
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push ebx
push esi
push edi
push 0x3fff
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00403fbd
add esp, 0xc
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, 0x453e88
push esi
mov dword [ebp + 0x14], eax
call fcn.004279a0
push eax
push esi
push dword [ebp + 0x14]
push ebx
call fcn.00417829
add esp, 0x14
push dword [ebp + 0x14]
push ebx
push 3
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4029ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402a1f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x402af5
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], 3
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
test eax, eax
je 0x402a56
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x402af4
push edi
push dword [ebp - 4]
call fcn.0043be5a
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x453e88
push esi
call fcn.004279a0
push eax
push esi
push dword [ebp - 4]
push edi
call fcn.00417829
push dword [ebp - 4]
push edi
call fcn.004045f5
push edi
mov esi, eax
call fcn.0043be55
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edi, dword [ebp + 0x14]
push edi
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
call fcn.00428760
add esp, 0xc
cmp edi, dword [ebp - 4]
jbe 0x402ad3
mov edi, dword [ebp - 4]
push edi
push dword [ebp - 0x10]
push dword [ebp + 0x10]
call fcn.00427a30
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402bfb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
lea eax, [ebp + 0xc]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402c54
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x402cff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402d14
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x402d26
xor eax, eax
jmp 0x402d58
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x402d4a
cmp esi, eax
jae 0x402d22
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402d3c
cmp esi, eax
jae 0x402d22
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x4038b5
Capabilities:
Get common file path

Disassembly:
mov eax, 0x451124
call fcn.00428578
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x88], 0
jne 0x403950
push esi
push edi
call fcn.004375e4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov eax, 0x104
push eax
push eax
lea ecx, [ebp - 0x10]
call fcn.004011f6
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403072
push str.winhlp32.exe
lea ecx, [ebp - 0x10]
call fcn.00403712
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40393f
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x40393f
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x88], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [edi - 0x10]
call fcn.00401019
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403c81
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
xor ebx, ebx
push ebx
mov dword [ebp - 8], ecx
call fcn.00403c51
push dword [ebp + 0xc]
push ebx
push ebx
push dword [ebp + 8]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov dword [ebp - 4], eax
ja 0x403d76
mov ecx, dword [ebp - 8]
push edi
lea eax, [ebp - 0x210]
push eax
push str..htm
mov edi, 0x80000000
push edi
call fcn.00402bfb
test eax, eax
jne 0x403d75
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
lea eax, [ebp - 0x210]
push eax
call esi
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
push eax
push edi
call fcn.00402bfb
test eax, eax
jne 0x403d74
lea eax, [ebp - 0x210]
push str.__1_
push eax
call fcn.00428ac6
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x403d4b
lea eax, [ebp - 0x210]
push 0x4543e0
push eax
call fcn.00428ac6
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x403d4b
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax - 0x211]
jmp 0x403d4d
mov byte [edi], bl
push 0x4543dc
push edi
call esi
push dword [ebp + 8]
push edi
call esi
call dword [0x469a2c]
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], eax
pop esi
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 8

Function at 0x4053e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push 1
mov esi, ecx
call fcn.0043878f
cmp dword [esi + 0x58c], 1
jne 0x4054b6
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov edi, 0x190
push 0
push 0
push 0x144
push dword [esi + 0x3c8]
call ebx
dec edi
jne 0x40540d
mov al, byte [esi + 0x387]
test al, 1
je 0x40546a
xor edi, edi
lea eax, [edi + 0x200000c8]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00406186
pop ecx
pop ecx
lea eax, [ebp - 0x100]
push eax
push edi
push 0x14a
push dword [esi + 0x3c8]
call ebx
inc edi
cmp edi, 0x190
jb 0x40542d
mov eax, dword [esi + 0x70]
sub eax, 0xc8
jmp 0x4054a8
test al, 2
je 0x4054b4
xor edi, edi
lea eax, [edi + 0x10000001]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00406186
pop ecx
pop ecx
lea eax, [ebp - 0x100]
push eax
push edi
push 0x14a
push dword [esi + 0x3c8]
call ebx
inc edi
cmp edi, 0xd
jb 0x405470
mov eax, dword [esi + 0x70]
sub eax, 0x10000001
lea ecx, [esi + 0x3ac]
push eax
call fcn.004050e5
pop edi
pop ebx
pop esi
leave
ret
Function at 0x405c5c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
inc edi
push edi
xor ebx, ebx
push ebx
push ebx
push 6
push edi
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, eax
cmp ecx, 0xffffffff
mov dword [esi + 0x28], ecx
je 0x405cf5
cmp dword [esi + 4], ebx
je 0x405cb5
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ebx, 0x3e8
div ebx
push 4
mov word [ebp - 4], di
inc eax
mov word [ebp - 2], ax
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp dword [ebp + 8], 0
je 0x405cfa
mov eax, dword [ebp + 0x14]
push dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov word [ebp - 0x18], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x28]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x405cfa
push dword [esi + 0x28]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0x28], 0xffffffff
push 3
pop eax
jmp 0x405d11
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [esi + 0x28]
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x405d65
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x28]
cmp eax, 0xffffffff
jne 0x405d79
push 3
pop eax
jmp 0x405de5
push esi
push edi
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
xor esi, esi
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
test edi, edi
jbe 0x405dc6
mov ecx, edi
mov eax, 0x1000
sub ecx, esi
cmp ecx, eax
jae 0x405da8
mov eax, ecx
push dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [ebx + 0x28]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x405dea
add esi, eax
cmp esi, edi
jb 0x405d99
xor esi, esi
lea eax, [ebp - 4]
push eax
push 0x8004667e
push dword [ebx + 0x28]
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [ebp + 0xc]
push 3
mov dword [eax], esi
pop esi
jmp 0x405dc8
Function at 0x405df4
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 0x28], 0xffffffff
jne 0x405e0b
push 3
pop eax
jmp 0x405f48
mov eax, dword [esi]
push ebx
push edi
push 0x64
pop ecx
xor edx, edx
div ecx
and dword [esi + 0x3c], 0
and dword [ebp - 8], 0
mov edi, 0x1002
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], eax
call fcn.0043be5a
push edi
mov ebx, eax
push 0
push ebx
call fcn.00428760
add esp, 0x10
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x4004667f
push dword [esi + 0x28]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [ebp - 8], 0
je 0x405f0f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add eax, ecx
cmp eax, 0x1000
mov dword [ebp - 0x10], 0x64
jbe 0x405e97
push edi
push 0
push ebx
call fcn.00428760
and dword [ebp - 0xc], 0
add esp, 0xc
cmp dword [ebp - 8], 0x1000
jbe 0x405e97
mov dword [ebp - 8], 0x1000
xor eax, eax
cmp dword [ebp - 8], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
jbe 0x405f0f
push 2
push 1
lea eax, [ebp - 1]
push eax
push dword [esi + 0x28]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x1c], 0
jge 0x405ed6
test eax, eax
je 0x405ed6
cmp eax, 0x2745
je 0x405ed6
cmp eax, 0x2746
jne 0x405f4b
cmp byte [ebp - 1], 0xa
jne 0x405ee3
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0xc]
push 0
push 1
add eax, ebx
push eax
push dword [esi + 0x28]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x405f4b
add dword [ebp - 0xc], eax
cmp dword [ebp - 0x18], 0
jne 0x405f50
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jb 0x405ea4
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x24]
dec dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x405f30
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405f9e
cmp dword [ebp - 0x10], 0
jne 0x405e41
xor esi, esi
inc esi
push ebx
call fcn.0043be55
mov eax, esi
pop ecx
pop edi
pop ebx
pop esi
leave
ret
push 3
pop esi
jmp 0x405f3d
mov eax, dword [esi + 0x38]
test eax, eax
je 0x405f5e
push eax
call fcn.0043be55
pop ecx
cmp byte [ebx], 0
je 0x405f8e
push ebx
call fcn.004279a0
mov byte [eax + ebx - 1], 0
cmp byte [ebx], 0
pop ecx
je 0x405f8e
push ebx
call fcn.004279a0
cmp byte [eax + ebx - 1], 0xd
pop ecx
jne 0x405f8e
push ebx
call fcn.004279a0
pop ecx
mov byte [eax + ebx - 1], 0
push ebx
call fcn.004279a0
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], ebx
xor eax, eax
jmp 0x405f45
mov esi, 0x200
jmp 0x405f3d
Function at 0x406738
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x406892
cmp dword [ebp + 0xc], ebx
je 0x406892
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
push 0x64
xor edx, edx
pop ecx
xor esi, esi
div ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov edi, eax
mov dword [ebp - 0x10], edi
jmp 0x40685d
lea eax, [ebp - 4]
push eax
push 0x4004667f
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x406892
mov ecx, dword [ebp - 4]
cmp ecx, ebx
je 0x4067ee
lea eax, [ecx + esi]
cmp eax, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
jbe 0x4067af
mov ecx, dword [ebp - 0xc]
sub ecx, esi
mov dword [ebp - 4], ecx
cmp ecx, ebx
je 0x4067db
push dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ecx
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40686a
mov ecx, dword [ebp - 4]
add esi, eax
sub ecx, eax
mov dword [ebp - 4], ecx
jne 0x4067b3
cmp esi, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
je 0x406887
mov edi, dword [ebp - 0x10]
jmp 0x40683d
cmp dword [ebp - 8], ebx
jne 0x406883
mov eax, dword [ebp + 8]
mov dword [ebp - 0x118], eax
xor eax, eax
inc eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
lea eax, [ebp - 0x11c]
push eax
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40683d
mov dword [ebp - 8], 1
push 0x64
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
dec edi
cmp dword [ebp + 0x1c], 0xffffffff
je 0x40685d
push ebx
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40688b
cmp edi, ebx
jne 0x40677b
xor eax, eax
inc eax
jmp 0x406895
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2745
mov ecx, dword [ebp + 0x10]
mov dword [ecx], esi
je 0x406883
cmp eax, 0x2746
jne 0x406892
push 2
jmp 0x406894
xor eax, eax
jmp 0x406895
mov eax, 0x200
jmp 0x406895
push 3
pop eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
cmp ebx, esi
push edi
je 0x4068fd
cmp dword [ebp + 0xc], esi
je 0x4068fd
mov edi, dword [ebx]
push dword [ebp + 0x14]
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4068dc
add esi, eax
cmp esi, edi
je 0x4068d6
test eax, eax
jne 0x4068b0
mov dword [ebx], esi
xor eax, eax
jmp 0x406900
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
mov dword [ebx], esi
je 0x4068f9
cmp eax, 0x2745
je 0x4068f9
cmp eax, 0x274c
jne 0x4068fd
push 2
jmp 0x4068ff
push 3
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x406905
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x406970
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x406924
xor eax, eax
mov dword [ebp + 8], eax
test eax, eax
jne 0x406968
push esi
mov esi, dword [sym.imp.WS2_32.dll_gethostbyname]
push edi
call esi
test eax, eax
push 4
jne 0x406956
push str.www.
push edi
call fcn.004285a0
add esp, 0xc
test eax, eax
jne 0x406967
add edi, 4
push edi
call esi
test eax, eax
je 0x406967
push 4
mov eax, dword [eax + 0xc]
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.00427a30
add esp, 0xc
pop esi
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x406972
xor eax, eax
pop edi
pop ebp
ret

Function at 0x406b2f
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
je 0x406b6a
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00428760
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
mov dword [ebp - 4], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x406b6f
xor ax, ax
jmp 0x406b78
push dword [ebp - 0x12]
call dword [sym.imp.WS2_32.dll_ntohs]
pop esi
leave
ret
Function at 0x40b0ec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x370
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x180], edi
jne 0x40b114
cmp dword [esi + 0x138], edi
jne 0x40b114
cmp dword [ebp + 0x10], edi
je 0x40b2d7
push ebx
push edi
push 0x8000000
push 2
push edi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 0x10], ebx
jne 0x40b15b
cmp dword [ebp + 0x14], edi
jne 0x40b2d6
push 0x30
push str.Proxy_Checker_Pro_v7
push str.File_opening_error
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40b2d6
mov dword [esi + 0x180], edi
add esi, 0x134
mov ecx, esi
mov dword [ebp + 0xc], esi
call fcn.0040a615
test eax, eax
jne 0x40b17b
push ebx
jmp 0x40b2d0
push edi
lea eax, [ebp + 8]
push eax
push 4
push 0x4562c0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
call ebx
mov ecx, esi
mov dword [ebp + 0x14], edi
call fcn.0040a615
test eax, eax
jbe 0x40b2cd
lea eax, [ebp - 0x370]
push eax
push dword [ebp + 0x14]
mov ecx, esi
call fcn.0040aae6
mov al, byte [ebp - 0x59]
test al, al
js 0x40b1c3
cmp dword [ebp + 0x18], edi
jne 0x40b2b7
mov ecx, dword [ebp - 0x370]
and al, 0x1f
mov byte [ebp - 0x1e], al
mov al, byte [ebp - 0x58]
or al, byte [ebp - 0x5a]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x1d], al
mov eax, dword [ebp - 0x36c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x364]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x44]
lea esi, [ebp - 0x56]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25a]
push eax
call fcn.004279a0
mov word [ebp - 0xa], ax
mov ax, word [ebp - 0x35c]
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x15a]
push eax
call fcn.004279a0
mov word [ebp - 8], ax
mov ax, word [ebp - 0x368]
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x35a]
push eax
call fcn.004279a0
add esp, 0xc
mov word [ebp - 0xc], ax
xor esi, esi
push esi
lea eax, [ebp + 8]
push eax
push 0x34
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x10]
call ebx
cmp word [ebp - 0xc], si
je 0x40b27c
push esi
lea eax, [ebp + 8]
push eax
movzx eax, word [ebp - 0xc]
push eax
lea eax, [ebp - 0x35a]
push eax
push dword [ebp + 0x10]
call ebx
cmp word [ebp - 0xa], si
je 0x40b298
push esi
lea eax, [ebp + 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
lea eax, [ebp - 0x25a]
push eax
push dword [ebp + 0x10]
call ebx
cmp word [ebp - 8], si
je 0x40b2b5
push 0
lea eax, [ebp + 8]
push eax
movzx eax, word [ebp - 8]
push eax
lea eax, [ebp - 0x15a]
push eax
push dword [ebp + 0x10]
call ebx
xor edi, edi
mov esi, dword [ebp + 0xc]
inc dword [ebp + 0x14]
mov ecx, esi
call fcn.0040a615
cmp dword [ebp + 0x14], eax
jb 0x40b1a2
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
leave
ret 0x14
Function at 0x40b3fa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push esi
push 0
push 0x8000000
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x40b443
push 0x30
push str.Proxy_Checker_Pro_v7
push str.File_opening_error
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40b521
add esi, 0x134
push edi
mov ecx, esi
call fcn.0040a615
xor edi, edi
test eax, eax
mov dword [ebp + 8], eax
jbe 0x40b517
lea eax, [ebp - 0x440]
push eax
push edi
mov ecx, esi
call fcn.0040aae6
cmp dword [ebp - 0x43c], 0
je 0x40b50d
cmp byte [ebp - 0x12a], 3
jne 0x40b50d
push dword [ebp - 0x43c]
lea eax, [ebp - 0x104]
push eax
call fcn.00406be1
movzx eax, word [ebp - 0x438]
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x104]
push str.:_d_
push eax
call fcn.004279a0
pop ecx
lea eax, [ebp + eax - 0x104]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test byte [ebp - 0x129], 1
lea eax, [ebp - 0x104]
je 0x40b4dc
push str.Socks4_r_n
jmp 0x40b4e1
push str.Socks5_r_n
push eax
call fcn.00428670
pop ecx
pop ecx
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004279a0
pop ecx
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
cmp edi, dword [ebp + 8]
jb 0x40b45e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret 8