joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x78834c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [edi + 0x114]
cmp eax, 4
ja case.default.0x404e81
jmp dword [eax*4 + 0x404f58]
push edi
mov dword [esi], 1
call fcn.0041d830
add esp, 4
pop edi
mov dword [esi + 4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
push edi
mov dword [esi], 2
call fcn.0041d830
add esp, 4
pop edi
mov dword [esi + 4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push edi
mov dword [ebp - 0x18], 0x10
call fcn.0041d830
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne case.default.0x404e81
xor edx, edx
cmp word [ebp - 0x14], 1
push edi
sete dl
inc edx
mov dword [esi], edx
call fcn.0041d830
add esp, 4
pop edi
mov dword [esi + 4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
mov dword [esi], 3
mov eax, dword [edi + 0x1a0]
pop edi
mov dword [esi + 8], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
mov dword [esi], 4
mov ecx, dword [edi + 0x1a8]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
Function at 0x408fc0
Capabilities:
Get common file path

Disassembly:
push esi
push str.GetSystemWindowsDirectoryA
push str.kernel32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push edi
test eax, eax
je 0x408fe4
call eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
cmp esi, 8
jbe 0x40900e
lea eax, [esi + edi - 8]
push str.System32
push eax
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40900e
sub esi, 8
mov byte [esi + edi], al
mov eax, esi
pop esi
ret

Function at 0x409060
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x78834c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push 0x1c
push esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], 0
call fcn.00414890
mov ebx, eax
add esp, 8
xor eax, eax
test ebx, ebx
je 0x40919e
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
push edi
mov dword [ebx + 0x18], eax
mov eax, 0x200
lea edi, [ebp - 0x204]
call fcn.00408fc0
test eax, eax
je 0x4090da
mov eax, edi
push eax
mov edi, ebx
call fcn.00408f50
add esp, 4
mov dword [ebp - 0x208], eax
push 0x200
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40910d
lea edx, [ebp - 0x204]
push edx
mov edi, ebx
call fcn.00408f50
mov esi, dword [ebp - 0x20c]
add esp, 4
add dword [ebp - 0x208], eax
push 0x4ba31c
mov edi, ebx
call fcn.00408f50
add dword [ebp - 0x208], eax
add esp, 4
mov eax, 0x200
lea esi, [ebp - 0x204]
call fcn.00409020
test eax, eax
je 0x40914d
mov eax, esi
mov esi, dword [ebp - 0x20c]
push eax
call fcn.00408f50
add esp, 4
add dword [ebp - 0x208], eax
push str.MYSQL_HOME
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
je 0x409176
mov esi, dword [ebp - 0x20c]
push eax
mov edi, ebx
call fcn.00408f50
add esp, 4
add dword [ebp - 0x208], eax
mov esi, dword [ebp - 0x20c]
push 0x4b8ae9
mov edi, ebx
call fcn.00408f50
add eax, dword [ebp - 0x208]
xor ecx, ecx
add esp, 4
test eax, eax
setg cl
pop edi
lea eax, [ecx - 1]
and eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
Function at 0x4091b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.MSVCR100.dll_getenv]
push str.MYSQL_TEST_LOGIN_FILE
call esi
add esp, 4
test eax, eax
je 0x4091df
push str.MYSQL_TEST_LOGIN_FILE
call esi
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push 0x4b8d94
push eax
push ecx
jmp 0x409202
push str.APPDATA
call esi
add esp, 4
test eax, eax
je 0x409215
push str.APPDATA
call esi
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push str._sMySQL.mylogin.cnf
push edx
push eax
call fcn.0040dc30
add esp, 0x14
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
pop esi
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40a800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa18
mov eax, dword [0x78834c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0c]
push eax
push 0x20019
push 0
push str.SOFTWAREMySQL
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a93d
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [ebp - 0xa14]
push ecx
lea edx, [ebp - 0x504]
push edx
lea eax, [ebp - 0xa18]
push eax
mov eax, dword [ebp - 0xa0c]
xor esi, esi
push esi
lea ecx, [ebp - 0xa10]
push ecx
lea edx, [ebp - 0x104]
push edx
push esi
push eax
mov dword [ebp - 0xa10], 0xff
mov dword [ebp - 0xa14], 0x3ff
call edi
cmp eax, 0x103
je 0x40a92e
inc esi
cmp eax, 0xea
je 0x40a8e0
test eax, eax
jne 0x40a92e
cmp dword [ebp - 0xa18], 1
jne 0x40a8e0
push eax
lea ecx, [ebp - 0x504]
push ecx
push 0x4b8a60
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0xa08]
push eax
call fcn.00414740
lea ecx, [ebp - 0xa08]
push ecx
call dword [sym.imp.MSVCR100.dll__strdup]
push eax
call dword [sym.imp.MSVCR100.dll__putenv]
add esp, 0x1c
lea edx, [ebp - 0xa14]
push edx
lea eax, [ebp - 0x504]
push eax
lea ecx, [ebp - 0xa18]
push ecx
mov ecx, dword [ebp - 0xa0c]
push 0
lea edx, [ebp - 0xa10]
push edx
lea eax, [ebp - 0x104]
push eax
push esi
push ecx
mov dword [ebp - 0xa10], 0xff
mov dword [ebp - 0xa14], 0x3ff
call edi
cmp eax, 0x103
jne 0x40a890
mov edx, dword [ebp - 0xa0c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ef6
mov esp, ebp
pop ebp
ret

Function at 0x40a950
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x40a730
call dword [sym.imp.MSVCR100.dll__set_invalid_parameter_handler]
add esp, 4
call dword [sym.imp.MSVCR100.dll__tzset]
call fcn.0040a740
jmp fcn.0040a800

Function at 0x40a970
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call esi
test eax, eax
je 0x40a9ee
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesWinsock2Parameters
push reloc.WS2_32.dll_bind
call esi
test eax, eax
je 0x40a9ee
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesWinsockParameters
push reloc.WS2_32.dll_bind
call esi
test eax, eax
je 0x40a9ee
push str.HAVE_TCPIP
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
je 0x40a9e7
cmp byte [0x812f3c], 0
je 0x40a9ee
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40aaf0
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x812f3d], 0
je 0x40aafc
xor al, al
ret
push esi
mov esi, dword [sym.imp.MSVCR100.dll_getenv]
push str.UMASK
mov byte [0x812f3d], 1
mov dword [0x4d8234], 0x1b0
mov dword [0x4d8238], 0x1c0
call esi
add esp, 4
test eax, eax
je 0x40ab3d
mov ecx, eax
call fcn.0040a610
or eax, 0x180
mov dword [0x4d8234], eax
push str.UMASK_DIR
call esi
add esp, 4
test eax, eax
je 0x40ab5c
mov ecx, eax
call fcn.0040a610
or eax, 0x1c0
mov dword [0x4d8238], eax
call fcn.00422960
call dword [sym.imp.MSVCR100.dll___iob_func]
mov dword [0x812f34], eax
mov dword [0x812f38], 0
mov dword [0x812f40], 0x812f34
call fcn.00422560
test al, al
je 0x40ab8d
mov al, 1
pop esi
ret
push str.HOME
call esi
add esp, 4
mov dword [0x812f54], eax
test eax, eax
je 0x40abb3
push eax
push 0x813160
call fcn.00415490
add esp, 8
mov dword [0x812f54], eax
call fcn.0040a950
call fcn.0040aa00
call fcn.00422a30
test al, al
setne al
pop esi
ret

Function at 0x40e450
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x78834c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x40e48f
lea eax, [ebp - 0xfc]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40e48f
lea edi, [ebp - 0xfc]
push esi
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40e4b2
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push ecx
and edx, 0xfffffbff
push edx
push esi
call fcn.0040e240
mov ebx, eax
add esp, 0xc
test ebx, ebx
jns 0x40e4fb
call fcn.00421fc0
mov edi, dword [eax]
push 0
push esi
call fcn.0040dc50
add esp, 8
call fcn.00421fc0
mov dword [eax], edi
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
push 0x813364
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00472ef6
mov esp, ebp
pop ebp
ret

Function at 0x40f2d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push str.USER
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
jne 0x40f2ea
mov eax, str.ODBC
push 0x30
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0041bd70
add esp, 0xc
pop ebp
ret
Function at 0x413550
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
xor edi, edi
cmp byte [0x8133d4], 0
jne 0x41361c
mov al, byte [0x812f3d]
mov byte [0x8133d4], 1
mov byte [0x8133d5], al
call fcn.0040aaf0
test al, al
je 0x413585
pop edi
mov eax, 1
pop esi
ret 0xc
call fcn.00413cf0
call fcn.0041fb00
test eax, eax
jne 0x41357b
mov esi, dword [sym.imp.MSVCR100.dll_getenv]
cmp dword [0x812af4], edi
jne 0x4135f0
push 0x4bb34c
push str.mysql
mov dword [0x812af4], 0xcea
call dword [sym.imp.WS2_32.dll_getservbyname]
test eax, eax
je 0x4135d3
movzx ecx, word [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov dword [0x812af4], edx
push str.MYSQL_TCP_PORT
call esi
add esp, 4
test eax, eax
je 0x4135f0
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov dword [0x812af4], eax
cmp dword [0x812af8], edi
jne 0x413624
push str.MYSQL_UNIX_PORT
mov dword [0x812af8], 0x4ba1d8
call esi
add esp, 4
test eax, eax
je 0x413624
mov dword [0x812af8], eax
mov eax, edi
pop edi
pop esi
ret 0xc
call fcn.00422370
movsx edi, al
mov eax, edi
pop edi
pop esi
ret 0xc

Function at 0x413d70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x413d81
mov esi, 1
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x413dda
push edi
call dword [sym.imp.MSVCR100.dll__errno]
mov edi, eax
call fcn.00421fc0
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov edi, eax
and edi, 8
je 0x413db9
mov edx, dword [fcn.004228d0]
mov dword [fcn.004228d0], edx
test al, 0x18
je 0x413dcd
push esi
push 0x464
push 5
call fcn.00419740
add esp, 0xc
test edi, edi
pop edi
je 0x413dec
push 1
call dword [sym.imp.MSVCR100.dll_exit]
test byte [ebp + 0xc], 0x20
je 0x413dec
push esi
push 0
push ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x419450
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x78834c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x150], esi
test eax, eax
je 0x41960c
push 2
push 0xb
push eax
push ecx
call fcn.00418e40
mov ebx, eax
add esp, 0x10
cmp ebx, 1
jne 0x41960c
test esi, esi
je 0x41960c
mov eax, esi
lea edx, [eax + 1]
jmp 0x4194b0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4194b0
sub eax, edx
lea edi, [eax + 4]
push edi
mov dword [ebp - 0x148], eax
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
push edi
mov esi, eax
push 0
push esi
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x150]
lea eax, [edi - 4]
push eax
push ecx
push esi
call dword [sym.imp.MSVCR100.dll_strncpy]
push 3
push 0x4bc1b8
push esi
call dword [sym.imp.MSVCR100.dll_strncat]
add esp, 0x28
lea edx, [ebp - 0x144]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp eax, 0xffffffff
jne 0x419530
push esi
call fcn.00417e90
add esp, 4
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x144], 0x10
jne 0x4195da
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419546
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 0x148]
lea eax, [ebx + eax + 3]
cmp eax, edi
jle 0x41957a
push esi
call fcn.00417e90
mov ecx, dword [ebp - 0x148]
lea edi, [ebx + ecx + 3]
push edi
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
add esp, 8
mov esi, eax
push edi
push 0
push esi
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x150]
mov edx, edi
sub edx, ebx
sub edx, 3
push edx
push eax
push esi
call dword [sym.imp.MSVCR100.dll_strncpy]
mov ebx, dword [sym.imp.MSVCR100.dll_strncat]
push 2
push 0x4ba1ec
push esi
call ebx
mov ecx, edi
sub ecx, dword [ebp - 0x148]
lea edx, [ebp - 0x118]
sub ecx, 3
push ecx
push edx
push esi
call ebx
mov eax, dword [ebp - 0x154]
push 2
push 0xb
push esi
push eax
call fcn.00418e40
mov ebx, eax
add esp, 0x40
cmp ebx, 1
jne 0x4195f6
mov edx, dword [ebp - 0x14c]
lea ecx, [ebp - 0x144]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x419530
push esi
call fcn.00417e90
mov eax, dword [ebp - 0x14c]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
Function at 0x41ae70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x78834c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x8153ec]
test eax, eax
jne 0x41aefe
mov ax, word [0x4bcf2c]
mov cl, byte [0x4bcf2e]
push 7
lea edx, [ebp - 0xe]
push edx
mov word [ebp - 0x10], ax
xor eax, eax
push 0x1004
push 0x800
mov byte [ebp - 0xe], cl
mov dword [ebp - 0xd], eax
mov word [ebp - 9], ax
mov byte [ebp - 7], al
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, str.cp932
lea eax, [ebp - 0x10]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41aee6
test dl, dl
je 0x41aee2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41aee6
add eax, 2
add ecx, 2
test dl, dl
jne 0x41aec6
xor eax, eax
jmp 0x41aeeb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, 0x5934d8
je 0x41aef9
mov eax, 0x4d8cc0
mov dword [0x8153ec], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ef6
mov esp, ebp
pop ebp
ret

Function at 0x41d140
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x30
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x41d19e
push esi
push ecx
mov ecx, dword [0x4d8ec4]
push edx
mov edx, dword [ecx + 0x164]
push 0
push 1
push eax
lea eax, [ebp - 0x30]
push eax
call edx
add esp, 0x18
push edi
mov esi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
test esi, esi
je 0x41d196
mov ecx, dword [0x4d8ec4]
mov edx, dword [ecx + 0x168]
push 0
push esi
call edx
add esp, 8
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push edi
push ebx
push eax
call dword [sym.imp.WS2_32.dll_connect]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x41d3a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x30
push edi
mov edi, dword [ebp + 0x18]
test eax, eax
je 0x41d405
push esi
push ecx
mov ecx, dword [0x4d8ec4]
push edx
mov edx, dword [ecx + 0x164]
push 0
push 0xb
push eax
lea eax, [ebp - 0x30]
push eax
call edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
add esp, 0x18
push edi
push ebx
mov esi, eax
mov eax, dword [ebp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
test esi, esi
je 0x41d3fd
mov eax, dword [0x4d8ec4]
mov ecx, dword [eax + 0x168]
push 0
push esi
call ecx
add esp, 8
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push edi
push ebx
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41d920
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
mov eax, dword [0x78834c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ecx]
cmp edi, 0xffffffff
jne 0x41d954
or eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
cmp esi, ebx
jl 0x41d988
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x318], eax
imul eax, eax, 0x3e8
mov edx, esi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [ebp - 0x314], edx
mov eax, dword [ebp + 0xc]
mov edx, 1
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x30c], edi
mov dword [ebp - 0x310], edx
cmp eax, ebx
je 0x41d9c1
jle 0x41d9cd
cmp eax, 2
jg 0x41d9cd
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], edx
jmp 0x41d9cd
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x20c], edx
mov eax, edi
mov dword [ebp - 0x320], eax
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x41da04
mov edx, dword [0x4d8ec4]
push 0x344
push 0x4bd090
push ebx
push 0xe
push eax
mov eax, dword [edx + 0x164]
lea ecx, [ebp - 0x350]
push ecx
call eax
add esp, 0x18
mov ebx, eax
xor ecx, ecx
test esi, esi
sets cl
lea edx, [ebp - 0x318]
lea eax, [ebp - 0x310]
dec ecx
and ecx, edx
push ecx
push eax
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test ebx, ebx
je 0x41da4e
mov ecx, dword [0x4d8ec4]
mov edx, dword [ecx + 0x168]
push 0
push ebx
call edx
add esp, 8
pop ebx
test esi, esi
jne 0x41da70
push 0x274c
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
jg 0x41da84
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41da9b
jle 0x41dab0
cmp eax, 2
jg 0x41dab0
lea eax, [ebp - 0x108]
push eax
jmp 0x41daa2
lea ecx, [ebp - 0x20c]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
mov esi, eax
neg esi
sbb esi, esi
neg esi
lea edx, [ebp - 0x310]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
neg eax
or eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00472ef6
mov esp, ebp
pop ebp
ret

Function at 0x41dca0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, word [edx]
xor ecx, ecx
sub eax, 2
je 0x41dcba
sub eax, 0x15
jne 0x41dcbf
lea ecx, [eax + 0x1c]
jmp 0x41dcbf
mov ecx, 0x10
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_getnameinfo]
pop ebp
ret
Function at 0x41dd20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
lea esp, [esp]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov edi, dword [esi]
test eax, eax
je 0x41dd96
mov ecx, dword [0x4d8ec4]
mov edx, dword [ecx + 0x164]
push 0x72
push 0x4bd090
push 0
push 5
push eax
lea eax, [ebp - 0x30]
push eax
call edx
add esp, 0x18
push 0
mov esi, eax
mov eax, dword [ebp + 0xc]
push ebx
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test esi, esi
je 0x41dd91
mov edx, dword [0x4d8ec4]
mov eax, dword [edx + 0x168]
xor ecx, ecx
cmp edi, 0xffffffff
setle cl
dec ecx
and ecx, edi
push ecx
push esi
call eax
add esp, 8
mov esi, dword [ebp + 8]
jmp 0x41dda6
mov ecx, dword [ebp + 0xc]
push 0
push ebx
push ecx
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41ddd9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x41ddbf
cmp eax, 0x2733
jne 0x41ddd9
push 0
push esi
call fcn.0041dce0
add esp, 8
test eax, eax
je 0x41dd30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41eb00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x78834c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x41ebf1
cmp byte [ecx], 0
je 0x41ebf1
lea eax, [ebx + 8]
mov dword [ebp - 0x28], eax
mov eax, ecx
lea edx, [eax + 1]
push edi
mov edi, esi
mov dword [ebp - 0x20], edx
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41eb40
sub eax, dword [ebp - 0x20]
push eax
push ecx
lea eax, [ebp - 0x30]
push eax
call fcn.0041ea10
push 8
lea ecx, [ebp - 0x24]
push ebx
push ecx
call fcn.0041ea10
mov edx, dword [ebp - 0x20]
xor edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
xor eax, dword [ebp - 0x30]
push edx
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0041e9d0
mov eax, dword [ebp - 0x28]
add esp, 0x24
cmp ebx, eax
jae 0x41ebb2
sub eax, ebx
mov ebx, eax
lea edx, [ebp - 0x1c]
push edx
call fcn.00456840
fmul qword [0x4bd100]
push ecx
fstp qword [esp]
call sub.MSVCR100.dll_floor
fadd qword [0x4bd0f8]
add esp, 8
call fcn.004734a0
mov byte [esi], al
inc esi
dec ebx
jne 0x41eb86
lea eax, [ebp - 0x1c]
push eax
call fcn.00456840
fmul qword [0x4bd100]
push ecx
fstp qword [esp]
call sub.MSVCR100.dll_floor
add esp, 8
call fcn.004734a0
cmp edi, esi
je 0x41ebdd
xor byte [edi], al
inc edi
cmp edi, esi
jne 0x41ebd6
pop edi
mov byte [esi], 0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov byte [esi], 0
pop esi
xor ecx, ebp
pop ebx
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
Function at 0x41efb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [eax + ecx]
cmp eax, edi
jae 0x41efd4
mov ecx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
xor dl, byte [eax]
inc eax
mov byte [esi + eax - 1], dl
cmp eax, edi
jb 0x41efc5
pop esi
pop edi
pop ebp
ret