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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40d029], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Marmimo
push str.Mimoclass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402e28
xor eax, eax
jmp 0x402e43
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4053f3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004042e5
and dword [ebp - 4], 0
cmp dword [0x40ea48], 0
mov ebx, eax
jne 0x4054a4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405555
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405555
push eax
call fcn.00404273
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40ea48], eax
call esi
push eax
call fcn.00404273
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40ea4c], eax
call esi
push eax
call fcn.00404273
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40ea50], eax
call esi
push eax
call fcn.00404273
pop ecx
mov dword [0x40ea58], eax
test eax, eax
je 0x4054a4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404273
pop ecx
mov dword [0x40ea54], eax
mov eax, dword [0x40ea54]
cmp eax, ebx
je 0x4054fc
cmp dword [0x40ea58], ebx
je 0x4054fc
push eax
call fcn.004042ee
push dword [0x40ea58]
mov esi, eax
call fcn.004042ee
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4054fc
test edi, edi
je 0x4054fc
call esi
test eax, eax
je 0x4054f3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4054f3
test byte [ebp - 0xc], 1
jne 0x4054fc
or dword [ebp + 0x10], 0x200000
jmp 0x405535
mov eax, dword [0x40ea4c]
cmp eax, ebx
je 0x405535
push eax
call fcn.004042ee
pop ecx
test eax, eax
je 0x405535
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405535
mov eax, dword [0x40ea50]
cmp eax, ebx
je 0x405535
push eax
call fcn.004042ee
pop ecx
test eax, eax
je 0x405535
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40ea48]
call fcn.004042ee
pop ecx
test eax, eax
je 0x405555
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405557
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40725e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40dac8]
jne 0x407268
repz ret
jmp fcn.00408985
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x414fb0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x41515a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 6
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd8
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x17
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x3b
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xf5
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x90
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xe4
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x8e
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x62
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xb
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x21
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x7b
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x47
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x8f
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x3c
add esp, 0x30
inc esi
cmp esi, edi
jb 0x414fd0
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x453329
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45333a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c7e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c7f3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c6c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c81b
push ebx
push esi
push edi
call fcn.00405713
add esp, 0xc
push 0
call fcn.00406262
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x406db9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x406dc8
pop dword [ebp - 0x50]
mov eax, 0x5cddcc20
add eax, 0xa362a1a8
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x4cbc5
push 0
mov eax, 0x8c252f57
add eax, 0x741f8365
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x1a387a12
add ecx, 0xe5c7c13e
xor esi, esi
add esi, eax
mov edi, 0x487e00
add edi, dword [ebp - 0x50]
mov ebx, 0x7beacbb9
sub dword [ebp - 0x28], ecx
mov edx, dword [edi]
add dword [ebp - 0x20], edx
xor edx, ebx
xor dword [ebp - 0x20], edi
mov dword [esi], edx
add dword [ebp - 0x1c], 0xcae57de3
add esi, 4
add edi, 0x1fb647fd
sub edi, 0x1fb647f9
loop 0x406e1d
add eax, 0x2947fa99
add eax, 0xd6b8e57a
mov ebx, eax
add eax, 0xd9cec256
add eax, 0x26313daf
mov ecx, 0xe0860bef
sub ecx, 0xe0460bef
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
sbb ebx, dword [ebx]
fadd dword [edx]
sbb ebx, dword [ebx]
sbb ebx, dword [ebx]
sbb ebx, dword [ebx]
sbb eax, dword [ebx]
sbb ebx, dword [ebx + 0x511b0504]
aad 7
sbb ebx, dword [ebx]
dec esp
sbb ebx, dword [ebx]
sbb edx, dword [edx + 0x9081b1b]
pop ss
xchg ecx, eax
notrack jmp 0x40173d
push ss
pop ss
dec ebp
sbb dword [edx], ebx
nop
nop
nop
nop
push 0xffffffffffffff90
sub al, 0x90
nop
nop
nop
nop
nop
nop
push ebp
push ecx
push ds
mov eax, dword [ebp + 8]
mov ecx, dword [0x9cc0c8]
push eax
loope 0x40170c
xchg esp, eax
push 0xe9d274
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
std
lodsb al, byte [esi]
add al, byte [ecx]
sub dword [esi + ebp - 0x7b], 0xffffffc0
je 0x401787
push eax
push 0x2c40d254
call dword [0x6eec28]
and ah, al
or byte [edx + 0x13], ch
push 0x13
call dword [sym.imp.MSVCRT.dll_exit]
nop
push ebp
mov ebp, esp
sub esp, 0x712300b8
mov eax, dword [0x410278]
test dword [ebx + 0x41404ca1], edx
add byte [esp + edx + 0x68], dh
inc eax
cmp al, 0x41
add byte [eax - 0x18], dl
jne 0x4017f0
add al, 0
mov bx, word [edi + 0x410274]
add bl, ch
invalid
mov dword [0x611808], eax
mov eax, dword [0x41e888]
push ebx
push esi
mov eax, dword [ecx + 0x64]
rol dword [eax - 0x32], 0x66
jbe 0x4017f1
sbb byte [ecx], al

Function at 0x404880
Capabilities:
Encode data using xor

Disassembly:
adc eax, sym.imp.MSVCRT.dll_malloc
mov edx, eax
add esp, 4
test edx, edx
jne 0x404898
mov eax, 0x26
pop esi
pop ebp
add al, 0
push edi
mov ecx, 0x1a
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
or al, 0x42
mov bh, 0x89
mov cl, 0x5f
pop esi
adc dl, al
test eax, 0x8b559000
in al, dx
mov eax, dword [ebp + 0x4f]
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_free]
imul esi, dword [eax - 0x73], 0xffffffbb
adc al, 0
add byte [eax], al
add eax, 0x74c0859b
adc al, bl
or byte [eax - 0x77], dl
push cs
fmul dword [eax]
push eax
mov dword [esi], ecx
call edi
mov eax, dword [esi]
xor edx, 4
test eax, eax
jne 0x4048cd
add esi, 4
dec ebx
jne 0x4048c7
mov esp, dword [edi - 0x28004d1f]
add esi, 0
pop edi
pop esi
pop ebx
pop ebp
ret 0xdc04
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x402b20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402b70
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x402b6a
shr eax, 8
cmp al, 2
jne 0x402b6a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.00550759
mov esp, ebp
pop ebp
ret
Function at 0x4062b0
Capabilities:
Hash data using sha224

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.00550bc0
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov dword [esi + 8], 0x3070dd17
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
mov eax, 1
pop esi
ret

Function at 0x406310
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.00550bc0
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
mov eax, 1
pop esi
ret

Function at 0x406750
Capabilities:
Hash data using sha256

Disassembly:
mov eax, 0x74
call fcn.00551a10
mov eax, dword [0x5ea6f0]
xor eax, esp
mov dword [esp + 0x70], eax
push esi
mov esi, dword [esp + 0x84]
push edi
mov edi, dword [esp + 0x80]
test esi, esi
jne 0x40677e
mov esi, 0x5ecc8c
push 0x70
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00550bc0
mov ecx, dword [esp + 0x90]
push ecx
lea edx, [esp + 0x18]
push edi
push edx
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
mov dword [esp + 0x8c], 0x20
call fcn.00406370
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00406470
lea ecx, [esp + 0x28]
push 0x70
push ecx
call fcn.004cd6d0
mov ecx, dword [esp + 0xa0]
add esp, 0x28
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00550759
add esp, 0x74
ret

Function at 0x40a0c0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.00409aa0
mov edi, eax
add esp, 4
test edi, edi
jne 0x40a158
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004082c0
push 0x58ae74
push esi
push 0x58ae70
push ebx
push str.fopen_
push 5
call fcn.00408580
add esp, 0x2c
call fcn.005552d9
cmp dword [eax], 2
jne 0x40a13a
push 0xb2
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004082c0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xb4
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004082c0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x5e2338
call fcn.004050e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40a17a
push edi
call fcn.00551d87
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.00404a20
push edi
push 1
push 0x6a
push esi
call fcn.00404e10
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x40b190
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00551a10
mov eax, dword [0x5ea6f0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x40b1f5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x40b1f5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.00552e30
add eax, 0x40
push eax
call fcn.005560ca
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00550759
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.00556003
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40b288
call fcn.0040b050
test eax, eax
jle 0x40b288
push esi
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x40b272
push 0
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00550759
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00550759
add esp, 0x108
ret

Function at 0x40b2f0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
je 0x40b312
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
dec edi
jne 0x40b306
pop esi
movzx eax, cl
pop edi
ret
Function at 0x40f050
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00429dd0
Function at 0x41a2c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x41a2f3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x41a430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x1c0]
push edi
xor edi, edi
test ecx, ecx
je 0x41a456
mov edx, dword [esi + 0x14c]
push edx
mov edx, dword [ebp + 8]
push ebx
push edx
push eax
push esi
call ecx
add esp, 0x14
pop edi
pop ebp
ret
test eax, eax
js 0x41a48d
cmp eax, 2
jg 0x41a48d
mov ecx, dword [esi + 0x148]
push ecx
push 1
lea edx, [eax + eax*2 + 0x58c220]
push 2
push edx
call fcn.00552abe
mov eax, dword [esi + 0x148]
mov ecx, dword [ebp + 8]
push eax
push 1
push ebx
push ecx
call fcn.00552abe
add esp, 0x20
mov eax, edi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebx + 0x348]
mov ecx, dword [ebx + eax*4 + 0x198]
push esi
lea esi, [eax + 0x1c]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x3c], 3
mov dword [ebp - 4], ecx
je 0x41aa9e
cmp dword [ebx + eax*4 + 0x1b0], 0x41a790
jne 0x41aa9e
cmp dword [esi], 0
je 0x41aa34
test edi, edi
je 0x41aa9e
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
call fcn.0040d7a0
add esp, 0x14
cmp eax, 0xffffffff
je 0x41aa9e
test al, 1
je 0x41aa9e
cmp dword [esi], 0
jne 0x41aa7b
mov eax, dword [ebx]
mov eax, dword [eax + 0x364]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x5e205c]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x41aa9b
mov ecx, dword [esi]
add ecx, dword [esi + 8]
mov edx, dword [ebp - 4]
push 0
push edi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x41aa9e
add dword [esi + 8], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41aab0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + eax*4 + 0x198]
push edi
call fcn.0041a9f0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push 0
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x41ab31
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x41ab06
mov dword [edi], 0x51
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push eax
push ebx
call fcn.004293b0
mov edx, dword [ebx]
push eax
push str.Send_failure:__s
push edx
call fcn.0041a600
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x474c], ecx
add esp, 0x14
mov dword [edi], 0x37
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41ca00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x548], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x41ca53
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0041a580
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x54c]
push edx
mov dword [ebp - 0x10], 1
call fcn.0042e670
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x550]
push eax
call fcn.0042e670
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x98000004
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x41cac5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0041a580
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
Function at 0x41d160
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x94], 2
mov ebx, dword [esi]
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
je 0x41d349
cmp dword [esi + 0x2a8], 0
push edi
jne 0x41d33f
cmp dword [esi + 0x318], 0
jne 0x41d33f
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x41d204
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004293b0
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0041a600
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
push 0x80
lea edx, [ebp - 0x84]
push 0
push edx
mov dword [ebp - 0x10c], 0x80
call fcn.00550bc0
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x84]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x41d26d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004293b0
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0041a600
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0x10a]
lea ebx, [esi + 0x138]
lea esi, [ebp - 0x104]
mov dword [ebp - 0x114], edi
call fcn.0041d120
test eax, eax
jne 0x41d2ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x108]
mov esi, eax
push esi
push edx
call fcn.004293b0
push eax
mov eax, dword [ebp - 0x110]
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.0041a600
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
mov esi, dword [ebp - 0x114]
lea edi, [eax + 0x60]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [eax + 0x16c]
lea edi, [eax + 0x13c]
lea esi, [ebp - 0x84]
call fcn.0041d120
test eax, eax
jne 0x41d339
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x108]
mov esi, eax
push esi
push ecx
call fcn.004293b0
mov edx, dword [ebp - 0x110]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0041a600
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x108]
push esi
call fcn.0041d0a0
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00550759
mov esp, ebp
pop ebp
ret