joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4408c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4709c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00469955
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00440260
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00469883
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00466147
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00466147
push 1
push 0
push 0
mov ecx, esi
call fcn.004660ef
push 1
push 0
push 1
mov ecx, esi
call fcn.004660ef
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004699c7
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x440a40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4709e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00469955
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00440260
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00469883
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x440b04
cmp dword [esp + 0x40], 1
jne 0x440b02
cmp ecx, eax
jge 0x440b04
mov eax, ecx
cmp eax, 0xc8
jge 0x440b10
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004408c0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004699c7
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x441290
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470a53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00464565
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00469bfd
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046b119
test eax, eax
je 0x4413ac
mov ecx, dword [esp + 0x3c]
call fcn.00469c2a
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x441370
push edi
mov ecx, esi
call fcn.00467292
mov ecx, esi
call fcn.00441510
cmp dword [esp + 0x38], 1
jne 0x4413a5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004673cd
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x443dd0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x443e03
push esi
call fcn.00446ec0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x443dfc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x443e89
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x443e72
mov eax, dword [esi + 8]
test eax, eax
je 0x443e27
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x443e6e
cmp eax, 2
je 0x443e72
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x443e1a
cmp eax, 3
je 0x443e4d
cmp eax, 1
jne 0x443e1a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x443e1a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x443e1a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00443eb0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x443e98
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00443eb0
add esp, 4
pop esi
ret

Function at 0x46535a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x465392
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00463411
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004633e9
jmp 0x46539e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x466a4f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x466a91
call fcn.0046c509
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x466a91
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x466a88
xor eax, eax
jmp 0x466a99
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00466a9f
pop edi
pop esi
pop ebx
ret 4

Function at 0x46ca39
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46ca67
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46ca85
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046c99f
jmp 0x46ca85
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46ca85
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046c99f
test edi, edi
mov eax, edi
jne 0x46ca6f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1002b42a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
push edi
cmp eax, dword [ebp + 0x14]
jne 0x1002b448
mov esi, dword [ebp + 8]
mov dl, cl
jmp 0x1002b44b
mov dl, byte [ebp + 0x17]
mov edi, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x14]
je 0x1002b457
mov esi, edi
mov dl, 1
cmp dword [ebp + 0x14], ecx
jle 0x1002b46a
mov al, byte [ecx + edi]
xor al, byte [esi]
or dl, al
inc esi
inc ecx
cmp ecx, dword [ebp + 0x14]
jl 0x1002b45c
xor eax, eax
test dl, dl
pop edi
sete al
pop esi
pop ebp
ret
Function at 0x10035562
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
je 0x100355a0
push esi
mov esi, dword [ebp + 0xc]
shr esi, 2
test esi, esi
je 0x1003559f
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov edx, ecx
shr edx, 8
mov eax, ecx
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
mov dword [edi], edx
lea edi, [edi + 4]
dec esi
jne 0x1003557a
pop edi
pop esi
pop ebp
ret
Function at 0x10036fde
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x70], 1
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], 0x20
pop ebp
ret

Function at 0x10037037
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x70], 1
mov dword [eax + 8], 0xc1059ed8
mov dword [eax + 0xc], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0xf70e5939
mov dword [eax + 0x18], 0xffc00b31
mov dword [eax + 0x1c], 0x68581511
mov dword [eax + 0x20], 0x64f98fa7
mov dword [eax + 0x24], 0xbefa4fa4
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], 0x1c
pop ebp
ret
Function at 0x1003d292
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0xd0], 1
mov dword [eax + 8], 0xf3bcc908
mov dword [eax + 0xc], 0x6a09e667
mov dword [eax + 0x10], 0x84caa73b
mov dword [eax + 0x14], 0xbb67ae85
mov dword [eax + 0x18], 0xfe94f82b
mov dword [eax + 0x1c], 0x3c6ef372
mov dword [eax + 0x20], 0x5f1d36f1
mov dword [eax + 0x24], 0xa54ff53a
mov dword [eax + 0x28], 0xade682d1
mov dword [eax + 0x2c], 0x510e527f
mov dword [eax + 0x30], 0x2b3e6c1f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0xfb41bd6b
mov dword [eax + 0x3c], 0x1f83d9ab
mov dword [eax + 0x40], 0x137e2179
mov dword [eax + 0x44], 0x5be0cd19
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd4], ecx
mov dword [eax + 0xd8], 0x40
pop ebp
ret

Function at 0x1003d32c
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0xd0], 1
mov dword [eax + 8], 0xc1059ed8
mov dword [eax + 0xc], 0xcbbb9d5d
mov dword [eax + 0x10], 0x367cd507
mov dword [eax + 0x14], 0x629a292a
mov dword [eax + 0x18], 0x3070dd17
mov dword [eax + 0x1c], 0x9159015a
mov dword [eax + 0x20], 0xf70e5939
mov dword [eax + 0x24], 0x152fecd8
mov dword [eax + 0x28], 0xffc00b31
mov dword [eax + 0x2c], 0x67332667
mov dword [eax + 0x30], 0x68581511
mov dword [eax + 0x34], 0x8eb44a87
mov dword [eax + 0x38], 0x64f98fa7
mov dword [eax + 0x3c], 0xdb0c2e0d
mov dword [eax + 0x40], 0xbefa4fa4
mov dword [eax + 0x44], 0x47b5481d
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd4], ecx
mov dword [eax + 0xd8], 0x30
pop ebp
ret

Function at 0x1003da44
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
je 0x1003da82
push esi
mov esi, dword [ebp + 0xc]
shr esi, 2
test esi, esi
je 0x1003da81
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov edx, ecx
shr edx, 8
mov eax, ecx
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
mov dword [edi], edx
lea edi, [edi + 4]
dec esi
jne 0x1003da5c
pop edi
pop esi
pop ebp
ret
Function at 0x1003ff8c
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
xor edi, edi
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
movsd xmm0, qword [esi + 0x20]
mov ecx, eax
comisd xmm0, xmmword [0x10286698]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], ecx
jbe 0x1004009b
test ecx, ecx
jns 0x100400a3
call ebx
cmp eax, 0x2733
jne 0x10040098
movsd xmm1, qword [esi + 0x20]
xor ecx, ecx
cvttsd2si eax, xmm1
inc ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x214], ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0xc], eax
push ecx
push edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
mulsd xmm1, qword [0x102893c0]
cvttsd2si eax, xmm1
mov dword [ebp - 8], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x210], eax
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x10040050
mov ecx, 0x2733
inc edi
jmp 0x100400a3
jle 0x1004009b
lea eax, [ebp - 0x110]
push eax
push dword [esi + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10040069
mov ecx, edi
jmp 0x100400a3
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp + 8]
push eax
push 0x1007
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x100400b1
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp + 8]
test ecx, ecx
jns 0x100400a3
call ebx
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call ebx
mov ecx, eax
mov dword [ebp + 8], ecx
jmp 0x1004009b
Function at 0x1004031f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
or edi, 0xffffffff
movsd xmm0, qword [esi + 0x20]
comisd xmm0, xmmword [0x10286698]
movsd qword [ebp - 8], xmm0
seta bl
test ebx, ebx
je 0x10040353
call sym.extension.dll__PyTime_FloatTime
fadd qword [esi + 0x20]
jmp 0x10040356
fld qword [ebp - 0x10]
fstp qword [ebp - 0x10]
call fcn.101ba41b
and dword [eax], 0
call sym.extension.dll_PyEval_SaveThread
movsd xmm0, qword [ebp - 8]
push ecx
push ecx
movsd qword [esp], xmm0
push 0
push esi
mov dword [ebp + 8], eax
call fcn.1003f49f
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004039b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
push dword [ebp + 8]
call sym.extension.dll_PyEval_RestoreThread
cmp dword [ebp - 4], 1
pop ecx
je 0x100403ef
test ebx, ebx
je 0x100403e2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x100403c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100403e2
call sym.extension.dll__PyTime_FloatTime
fsubr qword [ebp - 0x10]
fstp qword [ebp - 8]
movsd xmm0, qword [ebp - 8]
movsd qword [ebp - 8], xmm0
jmp 0x10040359
test edi, edi
jns 0x100403eb
call dword [esi + 0x18]
jmp 0x10040401
mov eax, edi
jmp 0x10040404
push str.timed_out
push dword [0x10422ba8]
call sym.extension.dll_PyErr_SetString
pop ecx
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004054a
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 4]
sub esp, 0x98
and dword [eax], 0
push ebx
push esi
mov esi, dword [ebp + 8]
or ebx, 0xffffffff
push edi
push ecx
push esi
mov edi, ebx
call fcn.1003faa4
pop ecx
pop ecx
test eax, eax
jne 0x1004057b
mov eax, ebx
jmp 0x10040691
movsd xmm0, qword [esi + 0x20]
xor ebx, ebx
comisd xmm0, xmmword [0x10286698]
movsd qword [ebp - 0xc], xmm0
seta bl
test ebx, ebx
je 0x100405a0
call sym.extension.dll__PyTime_FloatTime
fadd qword [esi + 0x20]
jmp 0x100405a3
fld qword [ebp - 0x14]
fstp qword [ebp - 0x14]
call fcn.101ba41b
and dword [eax], 0
call sym.extension.dll_PyEval_SaveThread
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.101b9cb0
movsd xmm0, qword [ebp - 0xc]
pop ecx
movsd qword [esp], xmm0
push 0
push esi
call fcn.1003f49f
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x10040603
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
push dword [ebp - 0x18]
call sym.extension.dll_PyEval_RestoreThread
cmp dword [ebp - 8], 1
pop ecx
je 0x1004067c
test ebx, ebx
je 0x1004064a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10040630
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1004064a
call sym.extension.dll__PyTime_FloatTime
fsubr qword [ebp - 0x14]
fstp qword [ebp - 0xc]
movsd xmm0, qword [ebp - 0xc]
movsd qword [ebp - 0xc], xmm0
jmp 0x100405a6
test edi, edi
jns 0x10040653
call dword [esi + 0x18]
jmp 0x1004068e
push dword [esi + 0x14]
lea eax, [ebp - 0x98]
push dword [ebp - 4]
push eax
push dword [esi + 8]
call fcn.1003f842
mov ecx, dword [ebp + 0x18]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
push 0xffffffffffffffff
pop eax
cmove edi, eax
mov eax, edi
jmp 0x10040691
push str.timed_out
push dword [0x10422ba8]
call sym.extension.dll_PyErr_SetString
pop ecx
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10041c15
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
lea eax, [ebp - 0x1f4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, eax
sub ecx, 0
je 0x10041c89
sub ecx, 0x2726
je 0x10041c73
sub ecx, 0x45
je 0x10041c6c
dec ecx
je 0x10041c73
push eax
push str.WSAStartup_failed:_error_code__d
lea eax, [ebp - 0x64]
push 0x64
push eax
call sym.extension.dll_PyOS_snprintf
lea eax, [ebp - 0x64]
push eax
push dword [sym.extension.dll_PyExc_ImportError]
call sym.extension.dll_PyErr_SetString
add esp, 0x18
jmp 0x10041c85
push str.WSAStartup_failed:_network_not_ready
jmp 0x10041c78
push str.WSAStartup_failed:_requested_version_not_supported
push dword [sym.extension.dll_PyExc_ImportError]
call sym.extension.dll_PyErr_SetString
pop ecx
pop ecx
xor eax, eax
jmp 0x10041c97
push 0x10041c0f
call sym.extension.dll_Py_AtExit
xor eax, eax
pop ecx
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x10042a1a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x10422b8c], 0
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x100425e0
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x10042859
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.100425a2
jne 0x10042b7c
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10042b72
push ebx
push esi
push edi
lea eax, [ebp - 0x22c]
mov ebx, 0x10c
push eax
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.101c279c
push str.ws2_32
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.101c27f1
add esp, 0x18
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, eax
xor edi, edi
test esi, esi
je 0x10042ad9
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10042ad5
push esi
call ebx
mov esi, edi
test esi, esi
jne 0x10042b33
lea eax, [ebp - 0x22c]
mov esi, 0x10c
push eax
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.101c279c
push str.wship6
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.101c27f1
add esp, 0x18
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x10042b6f
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10042b2f
push esi
call ebx
mov esi, edi
test esi, esi
je 0x10042b6f
mov ebx, edi
push dword [ebp + ebx*8 - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + ebx*8 - 0x14], eax
test eax, eax
je 0x10042b50
inc ebx
cmp ebx, 3
jl 0x10042b35
jmp 0x10042b59
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, edi
test esi, esi
je 0x10042b6f
mov eax, dword [ebp + edi - 0x14]
mov dword [edi + 0x1032ef6c], eax
add edi, 8
cmp edi, 0x18
jl 0x10042b5d
pop edi
pop esi
pop ebx
mov dword [0x10422b8c], 1
mov eax, dword [ebp + 8]
movzx eax, ax
mov eax, dword [eax*8 + 0x1032ef6c]
mov esp, ebp
pop ebp
ret 4
Function at 0x10042d31
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
and dword [eax], 0
push edi
push dword [ebp + 8]
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x10042daf
cmp word [esi + 8], 2
jne 0x10042d91
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x10042d91
mov edi, dword [esi + 0xc]
jmp 0x10042d8b
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10042c89
mov ecx, eax
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
test ecx, ecx
je 0x10042daa
lea eax, [ecx + 0x1c]
add edi, 4
mov dword [ebp + 0x1c], eax
mov eax, dword [edi]
test eax, eax
jne 0x10042d67
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.101c2854
add esp, 0x10
xor eax, eax
jmp 0x10042dc7
push 8
pop eax
jmp 0x10042dc7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x10042dc5
dec eax
je 0x10042dd5
dec eax
je 0x10042dce
dec eax
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
mov eax, 0x2afb
jmp 0x10042dc7
mov eax, 0x2afa
jmp 0x10042dc7