joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c060
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push esi
lea esi, [ecx + 0x10]
mov ecx, dword [esi]
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [esp + 0x18], 0
je 0x40c0a5
mov edx, dword [esi]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, esi
call fcn.00401800
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [esp + 8]
lea eax, [ecx + 0x15e]
jmp 0x40c0af
mov ecx, dword [esp + 8]
lea eax, [ecx + 0x87]
mov edx, dword [esp + 0xc]
push 2
mov dword [esp + 0x14], eax
sub eax, ecx
push eax
mov eax, dword [esp + 0xc]
sub edx, eax
push edx
push ecx
push eax
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
add esp, 0x10
ret 4

Function at 0x40c0e0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
push 0
push eax
mov dword [esi + 0x44], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, esi
call fcn.0040c060
pop esi
ret
Function at 0x40c430
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bb9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x4e5a68]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor edx, edx
mov dword [esp + 8], edx
xor eax, eax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov word [esp + 0x1a], ax
mov eax, dword [ecx + 0x30]
test eax, eax
mov dword [esp + 0x54], edx
mov word [esp + 0xc], dx
je 0x40c5ae
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
test eax, eax
mov edx, dword [esp + 8]
jl 0x40c5ae
test edx, edx
je 0x40c5ae
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x40c50e
push eax
lea ecx, [esp + 0x20]
call fcn.00402980
mov ecx, dword [esp + 0x68]
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 1
call fcn.00402980
mov edx, dword [esp + 0x64]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 2
call fcn.00402980
mov edx, dword [esp + 0x60]
lea eax, [esp + 0xc]
push eax
push 3
lea ecx, [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 0
call fcn.00401480
push 0x402970
push 3
push 0x10
lea eax, [esp + 0x28]
push eax
call fcn.004325ec
jmp 0x40c562
mov eax, dword [esp + 0x68]
test eax, eax
je 0x40c531
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0xc]
push ecx
push eax
mov eax, dword [esp + 0x68]
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.004033c0
jmp 0x40c562
mov eax, dword [esp + 0x64]
test eax, eax
je 0x40c54f
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.004013e0
jmp 0x40c562
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x10]
call fcn.00401310
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], edx
mov edx, dword [esp + 0x18]
mov dword [esi + 4], eax
mov eax, dword [esp + 8]
test eax, eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esp + 0x54], 0xffffffff
je 0x40c5e1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x50
ret 0x14
test edx, edx
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esp + 0x54], 0xffffffff
je 0x40c5e1
mov eax, dword [edx]
mov ecx, dword [eax + 8]
push edx
call ecx
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x50
ret 0x14
Function at 0x40cd10
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
xor eax, eax
cmp ebp, eax
mov byte [0x4f0358], al
jle 0x40ce77
push ebx
push esi
mov esi, 2
push edi
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x18]
mov cl, byte [edx + esi - 2]
lea edi, [esi - 1]
cmp edi, ebp
jl 0x40cd44
xor dl, dl
jmp 0x40cd48
mov dl, byte [esi + edx - 1]
cmp esi, ebp
jl 0x40cd53
mov byte [esp + 0x1c], 0
jmp 0x40cd62
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov bl, byte [esi + ebx]
mov byte [esp + 0x1c], bl
cmp esi, ebp
movzx ecx, cl
movzx edx, dl
jge 0x40cdc5
mov edi, ecx
shr edi, 2
mov bl, byte [edi + 0x4e48f0]
and ecx, 3
mov edi, edx
shr edi, 4
shl ecx, 4
movzx ecx, byte [edi + ecx + 0x4e48f0]
mov byte [eax + 0x4f0358], bl
add eax, 1
mov byte [eax + 0x4f0358], cl
movzx ecx, byte [esp + 0x1c]
mov edi, ecx
shr edi, 6
and edx, 0xf
mov dl, byte [edi + edx*4 + 0x4e48f0]
add eax, 1
and ecx, 0x3f
movzx ecx, byte [ecx + 0x4e48f0]
mov byte [eax + 0x4f0358], dl
jmp 0x40ce4f
cmp edi, ebp
mov edi, ecx
jge 0x40ce1c
shr edi, 2
mov bl, byte [edi + 0x4e48f0]
and ecx, 3
mov byte [eax + 0x4f0358], bl
mov edi, edx
shl ecx, 4
shr edi, 4
mov cl, byte [edi + ecx + 0x4e48f0]
mov byte [eax + 0x4f0359], cl
movzx ecx, byte [esp + 0x1c]
add eax, 1
shr ecx, 6
and edx, 0xf
mov dl, byte [ecx + edx*4 + 0x4e48f0]
add eax, 1
mov byte [eax + 0x4f0358], dl
add eax, 1
mov byte [eax + 0x4f0358], 0x3d
jmp 0x40ce58
and ecx, 3
shr edi, 2
mov bl, byte [edi + 0x4e48f0]
mov byte [eax + 0x4f0358], bl
shl ecx, 4
shr edx, 4
mov cl, byte [edx + ecx + 0x4e48f0]
add eax, 1
mov byte [eax + 0x4f0358], cl
add eax, 1
mov cl, 0x3d
mov byte [eax + 0x4f0358], cl
add eax, 1
mov byte [eax + 0x4f0358], cl
add esi, 3
lea edx, [esi - 2]
add eax, 1
cmp edx, ebp
mov dword [esp + 0x10], esi
jl 0x40cd31
pop edi
pop esi
mov byte [eax + 0x4f0358], 0
pop ebx
mov eax, 0x4f0358
pop ebp
pop ecx
ret

Function at 0x40d130
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x4e5a68]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push 0x104
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push str.drvins.exe
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 1
push 0
push esi
lea eax, [esp + 0x10]
push eax
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.0043236c
add esp, 0x108
ret
Function at 0x40d400
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 0xc]
push esi
xor esi, esi
test ecx, ecx
jne 0x40d410
mov ecx, str.SoftwarePdaNetAndroid
push 0
xor edx, edx
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
cmp eax, 2
setne dl
push 0
sub edx, 1
and edx, 0x100
or edx, 0x20006
push edx
push 0
push 0
push 0
push ecx
xor ecx, ecx
test eax, eax
setne cl
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40d458
xor eax, eax
pop esi
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40d47c
mov esi, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret

Function at 0x40d740
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x4e5a68]
xor eax, esp
mov dword [esp + 0x104], eax
cmp dword [esp + 0x10c], 0
push esi
mov esi, ecx
jne 0x40d79c
call fcn.0040d2c0
test eax, eax
je 0x40d823
mov eax, dword [esi + 0xa4]
push 0
push 2
push 0x8834
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043236c
add esp, 0x108
ret 4
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x40d7df
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40d7df
mov ecx, dword [esi + 0xa4]
push 0
push 1
push 0x8834
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043236c
add esp, 0x108
ret 4
push 0x104
lea edx, [esp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 1
push 0
push 0x4c061c
lea eax, [esp + 0x10]
push eax
push 0
call fcn.0040be60
add esp, 4
xor ecx, ecx
cmp eax, 6
setl cl
sub ecx, 1
and ecx, str.runas
push ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.0043236c
add esp, 0x108
ret 4

Function at 0x40eee0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 0x64
push eax
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [esi + 0xec], 0
je 0x40ef58
mov eax, dword [esi + 0xe4]
test eax, eax
je 0x40ef58
cmp dword [eax + 8], 0
jne 0x40ef58
mov ecx, esi
call fcn.0040e890
push 0x14
call fcn.004321b4
add esp, 4
test eax, eax
mov cl, 1
je 0x40ef3a
mov dword [eax + 8], 0
mov byte [eax + 0xc], cl
mov dword [eax], vtable.StateChangeThread.0
mov dword [eax + 0x10], 0xa
mov esi, eax
jmp 0x40ef3c
xor esi, esi
mov byte [esi + 0xc], cl
lea ecx, [esi + 4]
push ecx
push 0
push esi
push 0x401e40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
xor eax, eax
pop esi
ret 0x10
Function at 0x411920
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x411940
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x411956
push 0x80004005
call fcn.004011d0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi]
add eax, 1
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x411980
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x411998
push 0x80004005
call fcn.004011d0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4119a5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x4123d0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4e5a68]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x41243e
test ecx, ecx
je 0x412430
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x41244c
test ecx, ecx
je 0x4124f1
push ecx
jmp 0x4124eb
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
jne 0x4124be
jmp 0x412480
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.004123d0
mov edi, eax
test edi, edi
jne 0x41250d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
je 0x412480
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4124d5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4124f1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043236c
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41251c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4124f3
Function at 0x416480
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.00415864
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00415819
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.00415854
adc eax, 0x68cce4e4
add al, 1
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x416548
cmp dword [ebp - 0x398], 0
je 0x416712
cmp dword [ebp + 0xc], 1
je 0x416712
cmp dword [ebp + 0xc], 8
jne 0x4166da
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
Function at 0x41bd90
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x4c1218
push str.c:pdanetbt.log
mov ebx, eax
call fcn.004332ee
mov esi, eax
add esp, 8
test esi, esi
je 0x41bdcb
push esi
push ebx
push 1
push edi
call fcn.00434474
push esi
call fcn.00432edc
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x41ca80
Capabilities:
Read file on windows

Disassembly:
cmp dword [ecx + 0x6c], 0
push 0
je 0x41caa8
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
movzx edx, byte [ecx + 0x68]
push eax
mov eax, dword [ecx + 0x60]
push edx
push eax
call sub.WINUSB.DLL_WinUsb_ReadPipe
ret 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ecx + 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
ret 0xc

Function at 0x41cad0
Capabilities:
Write file on windows

Disassembly:
cmp dword [ecx + 0x6c], 0
je 0x41cb01
mov eax, dword [ecx + 0x60]
test eax, eax
jne 0x41cae2
xor eax, eax
ret 0xc
mov edx, dword [esp + 0xc]
movzx ecx, byte [ecx + 0x69]
push 0
push edx
mov edx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push edx
push ecx
push eax
call sub.WINUSB.DLL_WinUsb_WritePipe
ret 0xc
mov ecx, dword [ecx + 0x3c]
cmp ecx, 0xffffffff
je 0x41cadd
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0
push edx
mov edx, dword [esp + 0xc]
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 0xc

Function at 0x41cf10
Capabilities:
Connect socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x4e5a68]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x34], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
push 0x13ad
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x100007f
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esi + 0x34]
mov word [esp + 0xa], ax
push 0x10
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x41cf8c
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0043236c
add esp, 0x14
ret
mov edx, dword [esi + 0x34]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x34], ebx
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0043236c
add esp, 0x14
ret
Function at 0x41cfb0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x4e5a68]
xor eax, esp
mov dword [esp + 0x10], eax
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, ecx
cmp dword [esi + 0x34], 0
push edi
mov edi, dword [esp + 0x24]
jne 0x41d04f
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x34], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push 0x13ad
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0x100007f
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esi + 0x34]
mov word [esp + 0xe], ax
push 0x10
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x41d04f
mov edx, dword [esi + 0x34]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov dword [esi + 0x34], 0
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0043236c
add esp, 0x14
ret 0xc
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41d054
push 0
sub eax, edx
push eax
mov eax, dword [esi + 0x34]
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [esi + 0x34]
push 0
push 0x400
push ebp
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp byte [esp + 0x2c], 0
mov edi, eax
jne 0x41d099
mov edx, dword [esi + 0x34]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x34], 0
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043236c
add esp, 0x14
ret 0xc
Function at 0x41d670
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x28]
mov dword [edi + 4], ebx
cmp byte [0x4f1250], bl
mov esi, ecx
mov dword [esp + 0x28], ebx
je 0x41d6ef
mov eax, dword [edi]
mov ecx, dword [esi + 0x2c]
push ebx
push 0x1000
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
mov dword [esp + 0x28], eax
jg 0x41d6e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4f0c9c], ebx
je 0x41d6d6
cmp byte [0x4f0cec], bl
jne 0x41d6d6
push eax
push str.Socket_close_or_error
push str._s__code_d_
push 0x4f0cec
call fcn.00432b54
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x18
ret 4
mov dword [edi + 4], eax
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x18
ret 4
lea edx, [esp + 0x28]
push edx
push 0x18
lea eax, [esp + 0x14]
push eax
call fcn.0041ca80
test eax, eax
jne 0x41d738
cmp dword [0x4f0c9c], ebx
je 0x41d6d6
cmp byte [0x4f0cec], bl
jne 0x41d6d6
push 1
push str.USB_connection_dropped
push str._s__code_d_
push 0x4f0cec
call fcn.00432b54
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x18
ret 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x41d7fe
mov edx, dword [edi]
lea ecx, [esp + 0x28]
push ecx
push eax
push edx
mov ecx, esi
call fcn.0041ca80
test eax, eax
jne 0x41d7e2
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call ebx
push 2
push str.USB_connection_dropped
mov ecx, 0x4f0bb0
mov ebp, eax
call fcn.00415200
cmp dword [esi + 0x6c], 0
jne 0x41d7b8
cmp ebp, 0x1f
jne 0x41d7b8
mov ecx, esi
call fcn.0041d5a0
test al, al
je 0x41d7b8
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi]
lea eax, [esp + 0x2c]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0041ca80
test eax, eax
jne 0x41d7c4
call ebx
push eax
push str.Read_data_retry_failed_error
mov ecx, 0x4f0bb0
call fcn.00415200
pop ebp
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x18
ret 4
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x1c]
je 0x41d7d6
push eax
push str.Read_incorrect_length
jmp 0x41d7ae
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x18
ret 4
cmp dword [esp + 0xc], 0x45545257
jne 0x41d7fe
mov eax, dword [esp + 0x28]
mov dword [edi + 4], eax
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x18
ret 4
cmp dword [esp + 0xc], 0x45534c43
jne 0x41d6e4
cmp dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
jne 0x41d6d6
cmp dword [0x4f0c9c], ebx
je 0x41d6e4
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x18
ret 4
Function at 0x41e090
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x4bc7eb
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x4e5a68]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
mov eax, dword [0x4e5a68]
xor eax, esp
push eax
lea eax, [esp + 0x1d4]
mov dword fs:[0], eax
lea eax, [esp + 0x40]
push eax
push 0x101
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x41e0ee
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x41e1d6
mov ecx, dword [esp + 0x1e4]
xor ebx, ebx
push ebx
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push ebx
push ebx
push ebx
push ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0x258
mov dword [esp + 0x54], 0x190
mov dword [eax], ebx
mov eax, esp
mov dword [esp + 0x28], esp
lea edx, [esp + 0x48]
push ebx
mov ecx, edi
mov dword [eax], edx
call fcn.0041d9e0
mov eax, 0x4bed68
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea esi, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41e150
sub eax, esi
push eax
push 0x4bed68
lea ecx, [esp + 0x1c]
call fcn.00405200
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1c]
lea ecx, [edi + 0x40]
push eax
mov dword [esp + 0x1e8], ebx
call fcn.00405120
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x1dc], 0xffffffff
jb 0x41e1a0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00431ad1
add esp, 4
mov esi, dword [edi + 4]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.0041c950
push 0x4e52bc
mov ecx, edi
call fcn.0041dd50
test al, al
jne 0x41e1d4
push 0x4e52cc
mov ecx, edi
call fcn.0041dd50
mov al, 1
mov ecx, dword [esp + 0x1d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.0043236c
add esp, 0x1d0
ret 4