joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407a90
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x104
push ebp
push esi
mov esi, dword [esp + 0x110]
mov ebp, ecx
test esi, esi
je 0x407aeb
mov al, byte [esp + 0x114]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test al, al
jne 0x407ac9
push 0x80
push esi
call edi
push esi
call ebx
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push esi
call fcn.00407b00
lea ecx, [esp + 0x10]
push 0x80
push ecx
call edi
lea edx, [esp + 0x10]
push edx
call ebx
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x104
ret 8

Function at 0x407b60
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x29c
push ebp
mov ebp, dword [esp + 0x2b4]
push edi
mov edi, ecx
test ebp, ebp
je 0x407cfc
mov eax, dword [esp + 0x2bc]
test eax, eax
je 0x407cfc
push ebx
mov ebx, dword [esp + 0x2b4]
push esi
lea eax, [esp + 0xa4]
push ebx
push eax
call fcn.00403800
add esp, 8
lea ecx, [esp + 0x1a8]
lea edx, [esp + 0xa4]
push ecx
push edx
mov ecx, edi
call fcn.00407b00
lea ecx, [esp + 0x1a8]
xor eax, eax
push ecx
lea edx, [esp + 0x14]
push 0xa
mov dword [esp + 0x19], eax
push edx
push 0x42d680
mov dword [esp + 0x25], eax
push 0x428d30
push 0x428d30
mov byte [esp + 0x28], 0
mov byte [esp + 0x31], al
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x407ca6
mov ecx, dword [esp + 0x2c4]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x407ca6
push 0x428d20
call fcn.00403b30
lea edx, [esp + 0x20]
lea eax, [esp + 0xa8]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 0xc
cmp eax, 0xffffffff
je 0x407c99
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x407c92
cmp eax, ebp
jge 0x407c72
push eax
lea ecx, [esp + 0x44]
push 0x428d1c
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x4c]
push edx
push 0x428d0c
call fcn.00403b30
add esp, 0x14
lea esi, [esp + 0x40]
jmp 0x407ca6
push 0x428cd0
call fcn.00403b30
add esp, 4
lea eax, [esp + 0xa4]
mov ecx, edi
push 0
push eax
call fcn.00407a90
jmp 0x407ca6
push 0x428ca4
jmp 0x407c9e
push 0x428c74
call fcn.00403b30
add esp, 4
mov ecx, dword [esp + 0x2bc]
mov edx, dword [esp + 0x2b4]
mov eax, dword [esp + 0x2b0]
push esi
push ecx
push ebx
push edx
push eax
mov ecx, edi
call fcn.00407d30
test esi, esi
pop esi
mov edi, eax
pop ebx
jne 0x407cef
mov edx, dword [esp + 0x2bc]
lea ecx, [esp + 0x1a0]
push ecx
push edx
push 0x428d30
push 0x428d30
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, edi
pop edi
pop ebp
add esp, 0x29c
ret 0x18
mov eax, dword [esp + 0x2b4]
mov ecx, dword [esp + 0x2b0]
mov edx, dword [esp + 0x2ac]
push 0
push eax
mov eax, dword [esp + 0x2b0]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00407d30
pop edi
pop ebp
add esp, 0x29c
ret 0x18
Function at 0x408047
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x423268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x260]
test eax, eax
jne 0x408075
mov al, byte [esi + 0x264]
test al, al
jne 0x408075
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
lea edi, [esi + 0x268]
test edi, edi
jne 0x4080a2
push 0x428e5c
call fcn.00403b30
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x4080cc
push 0x428e4c
call fcn.00403b30
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
mov eax, dword [edi + 0x208]
test eax, eax
jne 0x408113
push 0x428d78
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [edi + 0x208], eax
test eax, eax
jne 0x408113
push edi
push 0x428e28
call fcn.00403b30
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
mov eax, dword [edi + 0x208]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push eax
push ebp
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov ebx, eax
cmp ebx, ebp
pop ebp
je 0x40815e
push edi
push 0x428e00
call fcn.00403b30
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
mov edx, dword [esi + 0x474]
lea ecx, [esp + 0xc]
add edx, ebx
mov dword [esi + 0x474], edx
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x478]
mov dword [esp + 0x18], 0
test eax, eax
mov dword [esp + 0x24], eax
jle 0x4081e1
mov ecx, dword [esi + 0x474]
sub esp, 8
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
fidiv dword [esp + 0x2c]
fmul qword [0x424d90]
fstp qword [esp]
push ecx
push eax
lea eax, [esi + 0x36c]
lea ecx, [esp + 0x1c]
push eax
push 0x428dd0
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0x474]
mov edx, dword [esi + 0xe8]
add esp, 0x1c
push 0
push eax
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4081fb
mov eax, dword [esi + 0x474]
lea ecx, [esp + 0xc]
push eax
push edi
push 0x428db4
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov edx, dword [esp + 0xc]
push 2
push edx
mov ecx, esi
call fcn.004049f0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x409da0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x409dda
mov ax, word [esp]
cmp al, 1
jne 0x409dd4
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x409dd4
xor eax, eax
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret
Function at 0x411050
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
lea edx, [ecx + eax]
mov eax, 0x1505
cmp ecx, edx
jae 0x411077
push esi
mov esi, eax
shl esi, 5
add eax, esi
movsx esi, byte [ecx]
xor eax, esi
inc ecx
cmp ecx, edx
jb 0x411065
pop esi
ret

Function at 0x413b30
Capabilities:
Terminate thread

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
mov esi, dword [edi + 0x32c]
mov dword [esp + 0x10], eax
mov ebp, dword [eax + 0x9c]
test ebp, ebp
jne 0x413b5e
mov eax, dword [eax + 0x98]
test eax, eax
mov ebp, eax
jne 0x413b5e
mov ebp, 0x12c
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp + ebp*4]
mov ecx, dword [esi + 0x18]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x14]
mov ebp, eax
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x14], 0
push ecx
call ebx
test ebp, ebp
mov dword [esi + 0x18], 0
jne 0x413bcc
mov edx, dword [esi]
push 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x413c28
mov eax, dword [esi]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebp, [esi + 8]
mov byte [edi + 0x324], 1
mov dword [ebp], 0xffffffff
mov eax, dword [esi]
push eax
call ebx
mov eax, dword [esp + 0x18]
pop ebx
test eax, eax
je 0x413bf3
mov ecx, dword [edi + 0x320]
mov dword [eax], ecx
mov eax, dword [edi + 0x320]
xor esi, esi
test eax, eax
jne 0x413ca0
mov ebp, dword [ebp]
cmp ebp, 0x1b
jne 0x413c44
push ebp
mov esi, ebp
call fcn.00409fa0
mov edx, dword [esp + 0x14]
push eax
push 0x42acb0
push edx
call fcn.00414a30
add esp, 0x10
jmp 0x413ca0
mov ecx, dword [edi + 0x328]
push ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [esi]
lea ebp, [esi + 8]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x413bdd
cmp ebp, 0xffffffff
je 0x413c85
mov eax, dword [edi + 0x328]
cmp eax, 0x2afc
je 0x413c85
mov cl, byte [edi + 0x324]
test cl, cl
je 0x413c9b
push eax
push edi
call fcn.0040a250
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [edi + 0x30]
push eax
push 0x42ac90
push ecx
call fcn.00414a30
add esp, 0x18
mov esi, 6
jmp 0x413ca0
mov edx, dword [edi + 0x30]
mov eax, dword [esp + 0x10]
push edx
push 0x42ac70
push eax
call fcn.00414a30
add esp, 0xc
mov esi, 0x1c
lea ecx, [edi + 0x318]
push ecx
call fcn.00413ab0
mov eax, dword [edi + 0x320]
add esp, 4
test eax, eax
jne 0x413cc0
mov byte [edi + 0xdc], 1
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x413d20
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push esi
mov ebx, dword [edi]
mov dword [eax], 0
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x413d58
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push eax
call fcn.00413990
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret
mov ebp, dword [esp + 0x1c]
push 0
push ebp
push esi
push edi
call fcn.00413de0
add esp, 0x10
test al, al
je 0x413d7e
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], 1
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.0040a250
push eax
push esi
push 0x42acf4
push ebx
call fcn.004149c0
add esp, 0x18
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x413dcb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0040a250
push eax
push ebp
push esi
push 0x42accc
push ebx
call fcn.004149c0
add esp, 0x1c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push ebp
push eax
call fcn.00413a00
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x413de0
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
push ebp
push esi
push edi
push 1
push 0x1c
call dword [0x428f04]
mov esi, eax
add esp, 8
test esi, esi
jne 0x413e04
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor al, al
pop ebp
ret
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x318]
lea ebp, [edi + 0x318]
push eax
call fcn.0040ad90
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x428f00]
add esp, 8
mov dword [ebp], eax
test eax, eax
jne 0x413e47
push esi
call dword [0x428ef8]
add esp, 4
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor al, al
pop ebp
ret
mov edx, dword [esp + 0x18]
push 0
push 1
mov dword [edi + 0x31c], edx
mov byte [edi + 0x324], 0
mov dword [edi + 0x328], 0
mov dword [edi + 0x320], 0
mov dword [edi + 0x32c], esi
push 0
mov dword [esi + 0xc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi + 0x14], eax
je 0x413ea1
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0x18], eax
jne 0x413eb8
push ebp
call fcn.00413ab0
add esp, 4
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor al, al
pop ebp
ret
mov eax, dword [sym.imp.MSVCRT.dll__iob]
lea ecx, [esi + 4]
push ecx
push 0
push edi
push 0x413f20
add eax, 0x40
push 0
push 0
mov dword [esi + 0x10], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x413f00
call dword [sym.imp.MSVCRT.dll__errno]
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebp
call fcn.00413ab0
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
ret
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0xc], eax
pop edi
pop esi
mov al, 1
pop ebp
ret
Function at 0x414b80
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
xor eax, eax
cmp ecx, dword [esi + 0x9c]
sete al
mov dl, byte [eax + esi + 0xa8]
test dl, dl
je 0x414bb8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
push esi
call fcn.0040a8b0
add esp, 0x10
mov edi, eax
jmp 0x414c09
mov eax, dword [esi + 0x160]
test eax, eax
je 0x414bc7
or edi, 0xffffffff
jmp 0x414be1
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push eax
push edx
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x414c09
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x2733
jne 0x414bf1
xor edi, edi
jmp 0x414c09
push eax
push esi
call fcn.0040a250
push eax
mov eax, dword [esi]
push 0x42aeec
push eax
call fcn.00414a30
add esp, 0x14
mov ecx, dword [esp + 0x1c]
mov eax, edi
inc eax
neg eax
sbb eax, eax
mov dword [ecx], edi
and al, 0xc9
pop edi
add eax, 0x37
pop esi
ret

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

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [eax + 0x9c]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x20]
cmp edx, esi
sete cl
mov dword [edi], 0
mov bl, byte [ecx + eax + 0xa8]
test bl, bl
je 0x414d0e
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ecx
push eax
call fcn.0040a8b0
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x414d50
pop edi
pop esi
or eax, eax
pop ebx
ret
mov dword [edi], 0
mov ecx, dword [eax + 0x160]
test ecx, ecx
je 0x414d23
or esi, 0xffffffff
jmp 0x414d3d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414d50
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x2733
jne 0x414d50
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov dword [edi], esi
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x414e60
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x88]
test eax, eax
je 0x414e8a
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push esi
call eax
add esp, 0x14
pop esi
ret
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x414ec6
cmp eax, 2
jg 0x414ec6
mov ecx, dword [esi + 0x10]
mov edx, dword [eax*4 + 0x4251ac]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push ecx
push 1
push 2
push edx
call edi
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
push 1
push ecx
push edx
call edi
add esp, 0x20
pop edi
xor eax, eax
pop esi
ret
Function at 0x4189e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov esi, dword [ebp]
mov edi, dword [ebp + 0x9c]
call fcn.00414fa0
push edx
push eax
call fcn.00414fa0
push edx
push eax
call fcn.00415000
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
add esp, 0x10
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0x9c]
test eax, eax
jne 0x418a31
mov eax, dword [esi + 0x98]
test eax, eax
je 0x418a52
sub eax, edx
test eax, eax
jg 0x418a57
push 0x42b868
push esi
call fcn.00414a30
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, 0x3c
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
shl ecx, 3
push ecx
push 0xffffffffffffffff
push edi
call fcn.0041f460
add esp, 0xc
cmp eax, 0xffffffff
je 0x418ae4
test eax, eax
je 0x418add
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x30], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x10]
push ecx
push edx
push edi
call dword [sym.imp.WS2_32.dll_accept]
push edi
mov ebx, eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
jne 0x418ab7
push 0x42b844
jmp 0x418ae9
push 0x42b820
push esi
call fcn.004149c0
push 1
push ebx
mov dword [ebp + 0x9c], ebx
call fcn.0041f620
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x42b7f4
jmp 0x418ae9
push 0x42b7cc
push esi
call fcn.00414a30
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

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

Disassembly:
push ecx
mov al, byte [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push 0
lea ecx, [esp + 0xc]
push 3
mov edx, dword [esi + 0x98]
push ecx
push edx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], al
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
push eax
push ebx
push 0x42c2c8
push ecx
call fcn.0041beb0
add esp, 0x10
pop esi
pop ebx
pop ecx
ret
Function at 0x41c8a0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x904
push ebx
push ebp
mov ebp, dword [esp + 0x910]
push esi
push edi
mov edi, dword [ebp + 0x164]
mov ebx, dword [ebp]
mov dword [esp + 0x10], ebx
mov eax, dword [edi + 0x1ab0]
mov esi, dword [edi + 0x1aac]
sub eax, esi
lea ecx, [edi + 0x18ac]
add eax, 2
push eax
push ecx
push 0x3c
push ebx
call fcn.0041cb10
mov eax, dword [edi + 0x1aac]
xor ecx, ecx
add esp, 0x10
mov cl, byte [eax]
inc eax
cmp ecx, 0x18
mov dword [edi + 0x1aac], eax
je 0x41ca83
cmp ecx, 0x23
je 0x41ca14
cmp ecx, 0x27
jne 0x41cafb
push 0
push ecx
push 0xfa
push 0xff
push 0x42c3e0
lea edx, [esp + 0x128]
push 0x800
push edx
call fcn.00413600
mov ebx, dword [edi + 0x18a8]
add esp, 0x1c
test ebx, ebx
mov esi, 4
je 0x41c9ac
mov edx, dword [ebx]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea edi, [ecx + esi]
cmp edi, 0x7fa
jae 0x41c9a5
lea eax, [esp + 0x14]
lea ecx, [esp + 0x94]
push eax
push ecx
push 0x42c3d0
push edx
call dword [sym.imp.MSVCRT.dll_sscanf]
lea edx, [esp + 0x24]
lea eax, [esp + 0xa4]
push edx
push 1
mov ecx, 0x800
push eax
push 0
sub ecx, esi
push 0x42c3c4
lea edx, [esp + esi + 0x138]
push ecx
push edx
call fcn.00413600
add esp, 0x2c
mov esi, edi
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x41c944
mov eax, 0x800
push 0xf0
push 0xff
sub eax, esi
push 0x42c3bc
lea ecx, [esp + esi + 0x120]
push eax
push ecx
call fcn.00413600
mov eax, dword [ebp + 0x98]
add esp, 0x14
add esi, 2
lea edx, [esp + 0x114]
push 0
push esi
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [esp + 0x10]
add esi, 0xfffffffe
lea ecx, [esp + 0x116]
push esi
push ecx
push 0x3e
push edx
call fcn.0041cb10
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x904
ret
lea edx, [edi + 0x1828]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
push 0xf0
push 0xff
push edx
push eax
not ecx
push 0x23
push 0xfa
dec ecx
push 0xff
push 0x42c3ac
lea eax, [esp + 0x134]
mov esi, ecx
push 0x800
push eax
add esi, 6
call fcn.00413600
mov edx, dword [ebp + 0x98]
add esp, 0x28
lea ecx, [esp + 0x114]
push 0
push esi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
add esi, 0xfffffffe
lea eax, [esp + 0x116]
push esi
push eax
jmp 0x41caf0
lea edx, [edi + 0x1808]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
push 0xf0
push 0xff
not ecx
push edx
push eax
dec ecx
push 0x18
push 0xfa
mov esi, ecx
push 0xff
push 0x42c3ac
lea ecx, [esp + 0x134]
push 0x800
push ecx
add esi, 6
call fcn.00413600
mov eax, dword [ebp + 0x98]
add esp, 0x28
lea edx, [esp + 0x114]
push 0
push esi
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
add esi, 0xfffffffe
lea ecx, [esp + 0x116]
push esi
push ecx
push 0x3e
push ebx
call fcn.0041cb10
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x904
ret
Function at 0x41f400
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
mov eax, dword [esp + 0x108]
push eax
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x41f431
lea ecx, [esp]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [esp]
test edx, edx
je 0x41f456
mov al, byte [esp]
test al, al
je 0x41f456
lea eax, [esp]
push eax
call dword [0x428f00]
add esp, 4
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret

Function at 0x41f460
Capabilities:
Get socket status

Disassembly:
sub esp, 0x314
mov ecx, dword [esp + 0x320]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
push ebx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 4], edx
mov ecx, 0x3e8
cdq
idiv ecx
mov ecx, dword [esp + 0x31c]
push ebp
push esi
push edi
xor esi, esi
or edi, 0xffffffff
mov dword [esp + 0x11c], esi
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
xor eax, eax
shl edx, 3
cmp ecx, 0xffffffff
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
je 0x41f4db
mov eax, 1
mov dword [esp + 0x120], ecx
mov dword [esp + 0x11c], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov edi, ecx
mov ebp, dword [esp + 0x32c]
mov dword [esp + 0x220], esi
cmp ebp, 0xffffffff
je 0x41f532
xor ecx, ecx
cmp eax, esi
mov dword [esp + 0x224], ebp
mov dword [esp + 0x220], 1
jbe 0x41f516
lea edx, [esp + 0x1c]
cmp dword [edx], ebp
je 0x41f516
inc ecx
add edx, 4
cmp ecx, eax
jb 0x41f50a
cmp ecx, eax
jne 0x41f52c
cmp eax, 0x40
jae 0x41f52c
mov dword [esp + ecx*4 + 0x1c], ebp
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp ebp, edi
jbe 0x41f532
mov edi, ebp
mov ebx, dword [sym.imp.WS2_32.dll_select]
inc edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x224]
push ecx
lea eax, [esp + 0x124]
push edx
push eax
push edi
call ebx
cmp eax, 0xffffffff
jne 0x41f573
call sub.KERNEL32.dll_GetLastError
cmp eax, 4
je 0x41f539
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x314
ret
cmp eax, esi
jge 0x41f585
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x314
ret
jne 0x41f594
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x314
ret
mov edi, dword [esp + 0x328]
cmp edi, 0xffffffff
je 0x41f5c9
lea ecx, [esp + 0x11c]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41f5b7
mov esi, 1
lea edx, [esp + 0x18]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41f5c9
or esi, 4
cmp ebp, 0xffffffff
je 0x41f5f5
lea eax, [esp + 0x220]
push eax
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41f5e3
or esi, 2
lea ecx, [esp + 0x18]
push ecx
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41f5f5
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret