joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405dd0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43e400
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
sub eax, esi
cdq
sub eax, edx
sar eax, 1
lea edi, [eax + esi - 1]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
lea ebx, [eax + esi - 2]
mov eax, dword [ecx + 0x3c]
xor ecx, ecx
mov eax, dword [eax + 0x5c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], vtable.CPen.0
push eax
push ecx
push ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x30]
call fcn.0043b9eb
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0043b4c2
push ebx
lea edx, [esp + 0x14]
push edi
push edx
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.0043b7b2
lea eax, [edi + 1]
push ebx
push eax
mov ecx, esi
call fcn.0043b7fe
lea ebp, [ebx + 1]
lea ecx, [edi - 1]
push ebp
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, esi
call fcn.0043b7b2
lea eax, [edi + 2]
push ebp
push eax
mov ecx, esi
call fcn.0043b7fe
add ebx, 2
lea ecx, [edi - 2]
push ebx
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, esi
call fcn.0043b7b2
add edi, 3
push ebx
push edi
mov ecx, esi
call fcn.0043b7fe
mov eax, dword [esp + 0x28]
mov ecx, esi
push eax
call fcn.0043b4c2
mov dword [esp + 0x2c], vtable.CGdiObject.0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 1
call fcn.0043ba42
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14
Function at 0x405ef0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43e420
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
sub eax, edi
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x38]
sar esi, 1
add esi, edi
mov edi, dword [esp + 0x30]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
lea ebx, [eax + edi - 1]
mov eax, dword [ecx + 0x3c]
xor ecx, ecx
mov eax, dword [eax + 0x84]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], vtable.CPen.0
push eax
push ecx
push ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x30]
call fcn.0043b9eb
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.0043b4c2
push ebx
lea edx, [esp + 0x14]
push esi
push edx
mov ecx, edi
mov dword [esp + 0x34], eax
call fcn.0043b7b2
lea eax, [esi + 1]
push ebx
push eax
mov ecx, edi
call fcn.0043b7fe
lea ebp, [ebx + 1]
lea ecx, [esi - 1]
push ebp
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, edi
call fcn.0043b7b2
lea eax, [esi + 2]
push ebp
push eax
mov ecx, edi
call fcn.0043b7fe
add ebx, 2
lea ecx, [esi - 2]
push ebx
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, edi
call fcn.0043b7b2
add esi, 3
push ebx
push esi
mov ecx, edi
call fcn.0043b7fe
mov eax, dword [esp + 0x28]
mov ecx, edi
push eax
call fcn.0043b4c2
mov dword [esp + 0x2c], vtable.CGdiObject.0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 1
call fcn.0043ba42
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14
Function at 0x406010
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43e440
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
sub eax, esi
cdq
sub eax, edx
sar eax, 1
lea edi, [eax + esi - 1]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
lea ebx, [eax + esi - 1]
mov eax, dword [ecx + 0x3c]
xor ecx, ecx
mov eax, dword [eax + 0x5c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], vtable.CPen.0
push eax
push ecx
push ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x30]
call fcn.0043b9eb
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0043b4c2
mov dword [esp + 0x28], eax
lea edx, [edi - 2]
push ebx
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, esi
call fcn.0043b7b2
lea ecx, [edi + 3]
push ebx
push ecx
mov ecx, esi
call fcn.0043b7fe
lea ebp, [ebx + 1]
lea edx, [edi - 1]
push ebp
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, esi
call fcn.0043b7b2
lea ecx, [edi + 2]
push ebp
push ecx
mov ecx, esi
call fcn.0043b7fe
add ebx, 2
lea edx, [esp + 0x10]
push ebx
push edi
push edx
mov ecx, esi
call fcn.0043b7b2
inc edi
push ebx
push edi
mov ecx, esi
call fcn.0043b7fe
mov eax, dword [esp + 0x28]
mov ecx, esi
push eax
call fcn.0043b4c2
mov dword [esp + 0x2c], vtable.CGdiObject.0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 1
call fcn.0043ba42
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14
Function at 0x406130
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43e460
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
sub eax, edi
mov ebx, dword [esp + 0x30]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x38]
sub eax, ebx
cdq
sar esi, 1
sub eax, edx
add esi, edi
mov edi, eax
mov eax, dword [ecx + 0x3c]
sar edi, 1
mov eax, dword [eax + 0x84]
xor ecx, ecx
add edi, ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], vtable.CPen.0
push eax
push ecx
push ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x30]
call fcn.0043b9eb
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.0043b4c2
mov dword [esp + 0x28], eax
lea edx, [esi - 2]
push edi
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, ebx
call fcn.0043b7b2
lea ecx, [esi + 3]
push edi
push ecx
mov ecx, ebx
call fcn.0043b7fe
lea ebp, [edi + 1]
lea edx, [esi - 1]
push ebp
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, ebx
call fcn.0043b7b2
lea ecx, [esi + 2]
push ebp
push ecx
mov ecx, ebx
call fcn.0043b7fe
add edi, 2
lea edx, [esp + 0x10]
push edi
push esi
push edx
mov ecx, ebx
call fcn.0043b7b2
inc esi
push edi
push esi
mov ecx, ebx
call fcn.0043b7fe
mov eax, dword [esp + 0x28]
mov ecx, ebx
push eax
call fcn.0043b4c2
mov dword [esp + 0x2c], vtable.CGdiObject.0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 1
call fcn.0043ba42
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14

Function at 0x406a50
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push 0
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xc]
push eax
mov dword [ecx + 8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret 8
Function at 0x40a340
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
push ecx
mov ecx, edi
mov dword [esi + 0x3c], eax
call fcn.0043966e
mov ebx, dword [eax + 0x1c]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0xc]
mov dword [esi + 0x108], edx
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call fcn.0043b833
push 0
push 0
lea edx, [esp + 0x14]
push edi
push edx
push 0x50000000
push str.ScrollText
push 0
mov ecx, esi
call fcn.004376bc
mov edi, eax
test edi, edi
je 0x40a402
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
sub eax, ecx
mov ecx, dword [esp + 0x18]
sub ecx, ebp
push 0x15
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
sub edx, eax
lea eax, [esp + 0x20]
push eax
lea ebp, [esi + 0x40]
push esi
add edx, 2
push ecx
push 0
mov ecx, ebp
mov dword [esp + 0x30], edx
call fcn.00405030
push 5
mov ecx, ebp
call fcn.004397d2
pop ebp
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40a416
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x20
ret 0x10
Function at 0x40f8a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43eb91
push eax
mov eax, 0x4e40
mov dword fs:[0], esp
call fcn.00427c30
push ebx
mov ebx, dword [esp + 0x4e54]
push ebp
push esi
push 0
mov esi, ecx
push ebx
call fcn.004282ba
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x40fa13
mov al, byte [0x44f120]
push edi
mov byte [esp + 0x30], al
mov ecx, 0x1387
xor eax, eax
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x30]
push 0x4e1f
push ecx
push ebp
stosb byte es:[edi], al
call fcn.0042807c
add esp, 0xc
cmp eax, 0x4e1f
pop edi
jne 0x40f972
lea edx, [esp + 0xc]
push 0x2341
push edx
mov ecx, 0x44f200
call fcn.00402690
mov eax, dword [eax + 4]
mov dword [esp + 0x4e54], 0
test eax, eax
jne 0x40f941
mov eax, 0x44167c
push 0x4e1f
push ebx
push eax
push esi
call fcn.0040f790
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 0x4e54], 0xffffffff
push 1
call fcn.00417e30
push ebp
call fcn.00427f9c
jmp 0x40fa67
test eax, eax
jbe 0x40f9ae
mov byte [esp + eax + 0x2c], 0
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.0040f4f0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.00411ce0
push ebp
call fcn.00427f9c
mov ecx, dword [esi + 0x4d8]
add esp, 4
xor eax, eax
test ecx, ecx
sete al
jmp 0x40fa6c
lea edx, [esp + 0xc]
push 0x2342
push edx
mov ecx, 0x44f200
call fcn.00402690
mov eax, dword [eax + 4]
mov dword [esp + 0x4e54], 1
test eax, eax
jne 0x40f9d9
mov eax, 0x44167c
push ebx
push eax
push esi
call fcn.0040f790
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x40fa0b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40fa02
dec al
push ebp
mov byte [ecx], al
call fcn.00427f9c
jmp 0x40fa67
push ecx
call fcn.00439dae
add esp, 4
push ebp
call fcn.00427f9c
jmp 0x40fa67
lea eax, [esp + 0x1c]
push 0x2343
push eax
mov ecx, 0x44f200
call fcn.00402690
mov eax, dword [eax + 4]
mov dword [esp + 0x4e54], 2
test eax, eax
jne 0x40fa3e
mov eax, 0x44167c
push ebx
push eax
push esi
call fcn.0040f790
mov eax, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
je 0x40fa6a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40fa61
dec al
mov byte [ecx], al
jmp 0x40fa6a
push ecx
call fcn.00439dae
add esp, 4
xor al, al
mov ecx, dword [esp + 0x4e4c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4e4c
ret 4
Function at 0x40fe60
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x44f50c]
test eax, eax
jne 0x40fe6e
mov eax, 0x44167c
push edi
push 0x44f120
push eax
mov eax, dword [esp + 0x10]
push eax
call fcn.00416df0
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x40fea3
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
dec eax
neg eax
sbb eax, eax
inc eax
ret 4
mov al, 1
ret 4

Function at 0x412820
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x43ee72
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push 0xdc
mov dword [esp + 0xc], ebx
call fcn.00439d85
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
mov dword [esp + 0x38], ebx
je 0x412883
lea eax, [esp + 0x10]
mov ecx, 0x44f200
push eax
call fcn.00416420
mov ebx, 1
mov dword [esp + 8], ebx
push eax
mov ecx, esi
mov byte [esp + 0x3c], bl
call fcn.0041d4f0
mov esi, eax
jmp 0x412885
xor esi, esi
test esi, esi
je 0x412895
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x412897
xor esi, esi
mov dword [esp + 8], esi
test bl, 1
mov dword [esp + 0x38], 4
je 0x4128b3
push 1
lea ecx, [esp + 0x14]
call fcn.00417e30
lea edx, [esp + 0x20]
mov ecx, 0x44f200
push edx
call fcn.004167e0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4128ce
mov eax, 0x44167c
push edi
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
lea ecx, [esp + 0x28]
call fcn.00417e30
test edi, edi
je 0x412925
lea eax, [esp + 0x24]
mov ecx, 0x44f200
push eax
call fcn.004167e0
mov ecx, dword [0x441678]
mov byte [esp + 0x3c], 5
push ecx
push 0
push eax
lea ecx, [esi + 0x98]
call fcn.00402e20
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 4
call fcn.00417e30
mov eax, dword [esi + 0xc0]
test eax, eax
jne 0x412934
mov eax, 0x44167c
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
mov eax, dword [esi + 0xd0]
test eax, eax
jne 0x41294c
mov eax, 0x44167c
push eax
call edi
test esi, esi
mov dword [esp + 0x3c], 0xffffffff
pop edi
je 0x412972
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x412972
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [esp + 0x30]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x412990
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call fcn.0043ceff
mov edi, dword [esp + 0x18]
mov eax, dword [eax + 8]
mov ecx, edi
push 0xa
and ecx, 0xffff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4129d6
mov edx, dword [esp + 0x1c]
push edx
push edi
push str.Error___Unable_to_locate_embedded_resource_file__d_____s
call fcn.00406da0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call fcn.0043ceff
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
call fcn.0043ceff
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, dword [esp + 0x1c]
push 0
push 0x8000000
push 2
push 0
push 1
push 0xc0000000
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412a3d
push ebp
push str.Error___Unable_to_create_file__s_for_resource_extraction
call fcn.00406da0
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x412a61
mov dword [esp + 0x10], 0xffffffff
cmp dword [esp + 0x10], edi
je 0x412a86
push ebp
push str.Error___Unable_to_write_file__s_for_resource_extraction
call fcn.00406da0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8
Function at 0x41a100
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x43f668
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
push edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, 1
mov dword [esp + 0x20], ebx
mov ecx, esi
mov dword [esp + 0x2c], 0
call fcn.0041a0e0
test al, al
je 0x41a14f
mov ecx, esi
call fcn.0041aa10
mov eax, dword [esi + 0x24]
mov byte [esi + 0x52], 1
sub eax, 0
je 0x41a164
dec eax
jne 0x41a173
push 0x11
push 2
jmp 0x41a168
push 6
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [esi + 0x20], eax
cmp dword [esi + 0x20], 0xffffffff
jne 0x41a1a1
call fcn.0041a0c0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, eax
push edi
call esi
dec ebx
jne 0x41a186
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov al, byte [0x451608]
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test al, al
je 0x41a1cf
push 0x4515e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x451610]
push 0x4515e8
inc ecx
mov dword [0x451610], ecx
call ebp
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x41a21f
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 4
push eax
push 0x80
push 0xffff
push ecx
mov word [esp + 0x24], 0
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x41a21f
call fcn.0041a0c0
mov esi, eax
push edi
call ebp
dec ebx
jne 0x41a204
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, dword [esi + 0x24]
mov eax, 1
cmp ecx, eax
jne 0x41a273
lea edx, [esp + 0x14]
push 4
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x20]
push edx
push 0x20
push 0xffff
push eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x41a26e
call fcn.0041a0c0
mov esi, eax
push edi
call ebp
dec ebx
jne 0x41a253
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov eax, 1
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x41a2b2
call fcn.0041a0c0
mov esi, eax
push edi
call ebp
dec ebx
jne 0x41a297
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push edi
call ebp
dec ebx
jne 0x41a2b9
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x41a2fa
Capabilities:
Connect socket

Disassembly:
push 0xffffffffffffffff
push 0x43f688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebx, [esi + 8]
push ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, 1
mov dword [esp + 0x14], ebp
mov eax, dword [esi + 0x24]
mov dword [esp + 0x20], 0
test eax, eax
jne 0x41a332
mov al, byte [esi + 0x51]
test al, al
je 0x41a332
mov ecx, esi
call fcn.0041a8c0
cmp dword [esi + 0x20], 0xffffffff
jne 0x41a358
mov ecx, esi
call fcn.0041a100
mov edi, eax
test edi, edi
je 0x41a358
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call esi
dec ebp
jne 0x41a34b
mov eax, edi
jmp 0x41a3da
mov edi, dword [esp + 0x28]
mov al, byte [edi]
lea edx, [edi + 4]
mov byte [esi + 0x28], al
mov ecx, dword [0x441678]
push ecx
push 0
push edx
lea ecx, [esi + 0x2c]
call fcn.00402e20
lea eax, [edi + 0x14]
lea ecx, [esi + 0x3c]
push 0x10
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov cl, byte [edi + 0x24]
mov byte [esi + 0x4c], cl
mov ecx, edi
mov byte [esi + 0x51], 1
call fcn.0041b480
mov edx, dword [esi + 0x20]
push eax
push edx
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x41a3cc
call fcn.0041a0c0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, eax
push ebx
call esi
dec ebp
jne 0x41a3c2
mov eax, edi
jmp 0x41a3da
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call esi
dec ebp
jne 0x41a3d2
xor eax, eax
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x41a520
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x41a5c3
lea esi, [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
mov ebp, 1
call fcn.0041a0e0
test al, al
jne 0x41a56e
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call edi
dec ebp
jne 0x41a55b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
mov eax, 0x10624dd3
mov ecx, 0x3e8
mul ebx
shr edx, 6
mov dword [esp + 0x10], edx
mov eax, ebx
xor edx, edx
push esi
div ecx
mov dword [esp + 0x1c], 1
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x20]
shl edx, 3
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0
push edx
push 0
push 0x40
call dword [sym.imp.WSOCK32.dll_select]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
Function at 0x41a5d0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x41a673
lea esi, [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
mov ebp, 1
call fcn.0041a0e0
test al, al
jne 0x41a61e
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call edi
dec ebp
jne 0x41a60b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
mov eax, 0x10624dd3
mov ecx, 0x3e8
mul ebx
shr edx, 6
mov dword [esp + 0x10], edx
mov eax, ebx
xor edx, edx
push esi
div ecx
mov dword [esp + 0x1c], 1
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x20]
shl edx, 3
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0
push 0
push edx
push 0x40
call dword [sym.imp.WSOCK32.dll_select]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4

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

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea esi, [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
mov ebx, 1
call fcn.0041a0e0
test al, al
jne 0x41a6b8
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call edi
dec ebx
jne 0x41a6a6
pop edi
pop esi
pop ebp
mov eax, 0x186ae
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x20]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
mov dword [esp + 0x14], eax
jge 0x41a706
mov eax, dword [edi + 0x58]
test eax, eax
jne 0x41a6ea
push 0
call fcn.00428b01
add esp, 4
mov dword [edi + 0x58], eax
call fcn.0041a0c0
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, eax
push esi
call edi
dec ebx
jne 0x41a6f7
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 0xc
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [edi + 0x58], 0
mov cl, byte [0x451608]
test cl, cl
je 0x41a754
push 0x4515e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x451618]
cdq
add ecx, eax
push 0x4515e8
mov dword [0x451618], ecx
mov ecx, dword [0x45161c]
adc ecx, edx
mov dword [0x45161c], ecx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x41a75e
mov dword [ecx], eax
cmp eax, dword [esp + 0x18]
jge 0x41a78e
cmp dword [edi + 0x24], 1
jne 0x41a77c
push esi
call ebp
dec ebx
jne 0x41a76a
pop edi
pop esi
pop ebp
mov eax, 0x186af
pop ebx
ret 0xc
push esi
call ebp
dec ebx
jne 0x41a77c
pop edi
pop esi
pop ebp
mov eax, 0x186a1
pop ebx
ret 0xc
push esi
call ebp
dec ebx
jne 0x41a78e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc