joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401820
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x4a8420]
push 0x483d78
mov dword [esp + 0x108], eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40184d
push eax
push 0x483d78
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push esi
lea eax, [esp + 8]
push edi
push eax
call fcn.0043b78b
lea ecx, [esp + 0x10]
push ecx
call fcn.0043b60b
mov esi, eax
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edi, 1
push edi
push edx
inc eax
push eax
add ecx, 0x76c
push ecx
lea edx, [esp + 0x28]
push str.Log_AgentLog__02d__02d__02d__d.txt
push edx
call fcn.0043b5b3
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x20
lea eax, [esp + 0x10]
push eax
call ebx
test eax, eax
je 0x4018d8
inc edi
cmp edi, 0x64
jg 0x401909
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
push edi
push ecx
inc edx
push edx
add eax, 0x76c
push eax
lea ecx, [esp + 0x20]
push str.Log_AgentLog__02d__02d__02d__d.txt
push ecx
call fcn.0043b5b3
add esp, 0x18
lea edx, [esp + 0x10]
push edx
call ebx
test eax, eax
jne 0x4018a2
mov edx, dword [esp + 0x118]
lea eax, [esp + 0x10]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4018e7
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x104]
call fcn.0043b1ae
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
pop edi
pop esi
xor al, al
pop ebx
call fcn.0043b1ae
add esp, 0x108
ret

Function at 0x402190
Capabilities:
Check mutex on windows

Disassembly:
cmp byte [esp + 4], 1
push esi
mov esi, ecx
jne 0x40220d
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push edi
lea ebx, [esi + 4]
push ebx
push 1
xor edi, edi
push edi
call ebp
mov dword [esi + 0x104], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4021fb
mov eax, dword [esi + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x64
cmp edi, 0x493e0
jge 0x402204
push ebx
push 1
push 0
call ebp
mov dword [esi + 0x104], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4021c1
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
ret 4
pop edi
pop ebp
pop ebx
xor al, al
pop esi
ret 4
lea ecx, [esi + 4]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x104], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
pop esi
ret 4
Function at 0x402195
Capabilities:
Check mutex on windows

Disassembly:
cmp byte [esp + 4], 1
push esi
mov esi, ecx
jne 0x40220d
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push edi
lea ebx, [esi + 4]
push ebx
push 1
xor edi, edi
push edi
call ebp
mov dword [esi + 0x104], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4021fb
mov eax, dword [esi + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x64
cmp edi, 0x493e0
jge 0x402204
push ebx
push 1
push 0
call ebp
mov dword [esi + 0x104], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4021c1
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
ret 4
pop edi
pop ebp
pop ebx
xor al, al
pop esi
ret 4
lea ecx, [esi + 4]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x104], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
pop esi
ret 4

Function at 0x403e80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403e99
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x403ead
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403ece
cmp esi, eax
jae 0x403ea7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403ec0
cmp esi, eax
jae 0x403ea7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40b4e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47c37b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esi], 0x4850d4
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
push edi
lea edi, [esi + 0x1c]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x2c], bl
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
call fcn.0040a390
mov eax, dword [esp + 0x20]
mov dword [esi + 0x18], eax
mov ecx, dword [eax + 0x210]
cmp ecx, ebx
je 0x40b556
mov ebx, dword [eax + 0x214]
sub ebx, ecx
sar ebx, 2
push ebx
mov ecx, edi
call fcn.0040ae80
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xc], eax
pop edi
mov dword [esi + 8], edx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x40bda0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x104
mov eax, dword [0x4a8420]
mov ecx, dword [esp + 0x108]
mov dword [esp + 0x100], eax
lea eax, [esp + 0x10c]
push eax
push ecx
lea edx, [esp + 8]
push edx
call fcn.0043b81a
lea eax, [esp + 0xc]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bdd6
sub eax, edx
dec eax
js 0x40be08
mov cl, byte [esp + eax]
cmp cl, 0xa
lea eax, [esp + eax]
jne 0x40be08
push edi
lea edi, [esp + 4]
mov byte [eax], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40bdf6
mov ax, word [0x4848a4]
mov word [edi], ax
pop edi
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x100]
call fcn.0043b1ae
add esp, 0x104
ret

Function at 0x40da40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47c756
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [esi], 0x4852f0
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [esp + 8], esi
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
call fcn.00422790
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
push 0x4068
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov byte [esi + 0x3c], bl
mov dword [esi + 0xbc], ebx
mov byte [esi + 0xc4], 1
mov byte [esi + 0xc5], bl
call fcn.004509e6
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x18], 1
je 0x40daeb
mov edx, dword [esp + 0x20]
push edi
lea edi, [edx + 4]
push edi
mov edi, dword [edx + 0x30]
mov edx, dword [edx + 0x2c]
push edi
push edx
xor ecx, ecx
push ebx
push ecx
mov ecx, eax
call fcn.004266c0
mov dword [esi + 0xc], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xc], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4266c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4803bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esi], 0x485628
push edi
xor edi, edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
lea ebx, [esi + 0x4024]
mov ecx, ebx
mov dword [esp + 0xc], esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
call fcn.00405cc0
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
lea ebx, [esi + 0x4030]
mov ecx, ebx
mov dword [esp + 0x18], edi
call fcn.00405cc0
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
mov bl, 1
lea ecx, [esi + 0x4040]
mov byte [esp + 0x18], bl
call fcn.0040bcb0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x403c], edi
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edx
mov dword [esi + 0x4020], edi
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x10]
mov byte [esi + 0x4064], bl
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x426d90
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x4a8420]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
xor eax, eax
mov edx, ecx
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x20]
push ebx
push ebp
mov dword [ecx + 4], eax
push esi
mov esi, dword [edx]
lea eax, [ecx + 8]
mov dword [eax], esi
mov edx, dword [edx + 4]
push edi
mov dword [eax + 4], edx
lea esi, [esp + 0x10]
lea edi, [esp + 0x11]
lea ebp, [esp + 0x12]
lea edx, [esp + 0x13]
sub esi, ecx
sub edi, ecx
sub ebp, ecx
mov byte [esp + 0x10], 0x57
mov byte [esp + 0x11], 2
mov byte [esp + 0x12], 0x5b
mov byte [esp + 0x13], 4
mov byte [esp + 0x14], 0x34
mov byte [esp + 0x15], 6
mov byte [esp + 0x16], 1
mov byte [esp + 0x17], 8
mov byte [esp + 0x18], 0x37
mov byte [esp + 0x19], 0xa
mov byte [esp + 0x1a], 0x12
mov byte [esp + 0x1b], 0x69
mov byte [esp + 0x1c], 0x41
mov byte [esp + 0x1d], 0x38
mov byte [esp + 0x1e], 0xf
mov byte [esp + 0x1f], 0x78
mov eax, ecx
sub edx, ecx
mov dword [esp + 0x28], 4
mov bl, byte [esi + eax]
xor byte [eax], bl
mov bl, byte [edi + eax]
xor byte [eax + 1], bl
mov bl, byte [eax + ebp]
xor byte [eax + 2], bl
mov bl, byte [edx + eax]
xor byte [eax + 3], bl
mov ebx, dword [esp + 0x28]
add eax, 4
dec ebx
mov dword [esp + 0x28], ebx
jne 0x426e52
pop edi
mov al, 5
pop esi
mov byte [ecx + 0x10], 0x37
mov byte [ecx + 0x17], 0x53
mov byte [ecx + 0x11], 4
mov byte [ecx + 0x12], 0x5d
mov byte [ecx + 0x13], 0x2e
mov byte [ecx + 0x14], 0x43
mov byte [ecx + 0x15], 0x3a
mov byte [ecx + 0x1b], 0xc9
mov byte [ecx + 0x16], 0x49
mov byte [ecx + 0x18], 0x50
mov byte [ecx + 0x19], al
mov byte [ecx + 0x1a], 0x13
mov byte [ecx + 0x1c], 0x28
mov byte [ecx + 0x1d], 0xa4
mov byte [ecx + 0x1e], 0x4d
mov byte [ecx + 0x1f], al
mov ecx, dword [esp + 0x18]
pop ebp
pop ebx
call fcn.0043b1ae
add esp, 0x14
ret
Function at 0x426ee0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 8
push esi
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x426f23
mov eax, dword [0x4aa160]
test eax, eax
je 0x426f1b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.RealCPNet__WSASocket_sdSocket_:__d_n
call dword [0x4aa160]
add esp, 8
or eax, 0xffffffff
pop esi
add esp, 8
ret
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push esi
mov dword [esp + 0x20], 1
call edi
cmp eax, 0xffffffff
jne 0x426f6b
mov eax, dword [0x4aa160]
test eax, eax
je 0x426fb0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.RealCPNet__setsockopt_TCP_NODELAY_:__d_n
call dword [0x4aa160]
add esp, 8
pop edi
mov eax, esi
pop esi
add esp, 8
ret
push 4
lea ecx, [esp + 0xc]
push ecx
push 0x80
push 0xffff
push esi
mov word [esp + 0x1c], 1
mov word [esp + 0x1e], 0
call edi
cmp eax, 0xffffffff
jne 0x426fb0
mov eax, dword [0x4aa160]
test eax, eax
je 0x426fb0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.RealCPNet__setsockopt_SO_LINGER_:__d_n
call dword [0x4aa160]
add esp, 8
pop edi
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x426fc0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
mov eax, dword [0x4a8420]
push esi
mov dword [esp + 0x14], eax
mov esi, ecx
call fcn.00426ee0
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
je 0x4270a7
mov cl, byte [esp + 0x1c]
test cl, cl
je 0x42700e
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push 0xffff
push eax
mov dword [esp + 0x30], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4270a7
xor edx, edx
mov dx, word [esi]
mov word [esp + 4], 2
push edx
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0xa], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esi + 0x14]
mov dword [esp + 8], eax
push 0x10
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x427078
mov eax, dword [0x4aa160]
test eax, eax
je 0x4270a7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.RealCPNet__bind:__d_n
call dword [0x4aa160]
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
call fcn.0043b1ae
add esp, 0x14
ret 4
mov edx, dword [esi + 0x14]
push 0x10
push edx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4270b9
mov eax, dword [0x4aa160]
test eax, eax
je 0x4270a7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.RealCPNet__listen:__d_n
call dword [0x4aa160]
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
call fcn.0043b1ae
add esp, 0x14
ret 4
mov ecx, dword [esp + 0x14]
mov eax, 1
pop esi
call fcn.0043b1ae
add esp, 0x14
ret 4
Function at 0x427320
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xc
push esi
push 0x28
call fcn.004509e6
xor edx, edx
add esp, 4
cmp eax, edx
je 0x427361
xor ecx, ecx
lea esi, [eax + 4]
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
mov dword [eax + 0x18], 5
mov dword [eax], 0x485750
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], edx
mov esi, eax
jmp 0x427363
xor esi, esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x24], eax
push edx
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x10], eax
lea eax, [esi + 4]
push eax
push edx
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4273c3
push edi
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x3e5
je 0x4273b9
call edi
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
pop edi
mov al, 1
pop esi
add esp, 0xc
ret 0xc
mov al, 1
pop esi
add esp, 0xc
ret 0xc
Function at 0x427640
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x74]
push esi
mov dword [esp + 0x1c], ebp
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edi + 0x68]
call fcn.00427520
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 0x6c]
je 0x427679
mov ebx, dword [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
test ebx, ebx
mov dword [esp + 0x18], eax
je 0x4277f5
push 2
push ebp
call dword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
jne 0x4276ca
mov al, byte [esp + 0x1c]
test al, al
je 0x4276ca
mov eax, dword [0x4aa160]
test eax, eax
je 0x4276ca
call ebx
push eax
push str.shutdown___Error____d_Callback__n
call dword [0x4aa160]
add esp, 8
push 0x1c
call fcn.004509e6
add esp, 4
test eax, eax
je 0x4276fa
mov dword [eax], 0x48574c
xor edx, edx
lea ecx, [eax + 4]
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], edx
mov dword [eax + 0x18], 3
jmp 0x4276fc
xor eax, eax
cmp dword [edi + 0x14], ebp
jne 0x427787
test eax, eax
je 0x42770e
add eax, 4
jmp 0x427710
xor eax, eax
push 3
push 0
push eax
push 0
push 0
push 0
push ebp
call sub.MSWSOCK.dll_TransmitFile
test eax, eax
jne 0x42774b
call ebx
cmp eax, 0x3e5
je 0x42774b
mov cl, byte [esp + 0x1c]
test cl, cl
je 0x42774b
mov ecx, dword [0x4aa160]
test ecx, ecx
je 0x42774b
push eax
push str.TransmitFile_TF_DISCONNECT__TF_REUSE_SOCKET__Error____d_Callback__n
call ecx
add esp, 8
call esi
sub eax, dword [esp + 0x18]
cmp eax, 0x64
jbe 0x4277f5
mov cl, byte [esp + 0x1c]
test cl, cl
je 0x4277f5
mov ecx, dword [0x4aa160]
test ecx, ecx
je 0x4277f5
push eax
push str.Elapsed_Time_TF_REUSE_SOCKET____d_Callback__n
call ecx
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
je 0x427790
add eax, 4
jmp 0x427792
xor eax, eax
push 1
push 0
push eax
push 0
push 0
push 0
push ebp
call sub.MSWSOCK.dll_TransmitFile
test eax, eax
jne 0x4277cd
call ebx
cmp eax, 0x3e5
je 0x4277cd
mov cl, byte [esp + 0x1c]
test cl, cl
je 0x4277cd
mov ecx, dword [0x4aa160]
test ecx, ecx
je 0x4277cd
push eax
push str.TransmitFile_TF_DISCONNECT__Error____d_Callback__n
call ecx
add esp, 8
call esi
sub eax, dword [esp + 0x18]
cmp eax, 0x64
jbe 0x4277f5
mov cl, byte [esp + 0x1c]
test cl, cl
je 0x4277f5
mov ecx, dword [0x4aa160]
test ecx, ecx
je 0x4277f5
push eax
push str.Elapsed_Time___d_Callback__n
call ecx
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4279b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x74]
push ebp
xor edi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x68]
mov dword [esp + 0x28], ebx
call fcn.00427520
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x6c]
je 0x427a66
mov esi, dword [eax + 0x10]
cmp esi, edi
je 0x427a66
push 0x24
call fcn.004509e6
add esp, 4
cmp eax, edi
je 0x427a25
xor edx, edx
lea ecx, [eax + 4]
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], edx
mov dword [eax + 0x18], 4
mov dword [eax], 0x485754
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], edi
jmp 0x427a27
xor eax, eax
mov dword [eax + 0x20], 0x2000
lea ecx, [esi + 0x20]
mov dword [eax + 0x1c], ecx
push edi
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 0x20]
add eax, 4
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], edx
push 1
lea edx, [esp + 0x28]
push edx
push ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], edi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 0xffffffff
jne 0x427a83
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x427a83
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x4280d0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x74]
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x18]
lea ebp, [edi + 0x64]
push ebx
mov ecx, ebp
call fcn.00427600
test al, al
je 0x4281e4
mov eax, dword [edi + 0xc]
test eax, eax
mov esi, dword [ebx + 4]
je 0x42812e
mov ecx, dword [0x4aa160]
test ecx, ecx
je 0x42812e
mov eax, dword [esp + 0x1c]
test eax, eax
mov eax, str.TRUE
jne 0x428122
mov eax, str.FALSE
push eax
push esi
push str.CloseSession:_Socket__d__connection_closing__graceful_s__n
call ecx
add esp, 0xc
cmp esi, 0xffffffff
je 0x428176
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x428161
push 4
lea eax, [esp + 0x20]
push eax
push 0x80
push 0xffff
push esi
mov word [esp + 0x30], 1
mov word [esp + 0x32], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x18], 2
mov eax, dword [edi + 0xa4]
test eax, eax
je 0x428193
mov ecx, dword [edi + 0xa8]
push 0
push 0
push esi
push 3
push ecx
call eax
add esp, 0x14
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push edx
lea eax, [esp + 0x1c]
lea esi, [ebp + 4]
push eax
mov ecx, esi
mov dword [ebx + 0x1c], 0
call fcn.00427520
mov edi, dword [esp + 0x18]
cmp edi, dword [ebp + 8]
je 0x4281d5
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4281c8
mov edx, dword [ecx]
push 1
call dword [edx]
push edi
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00427a90
mov eax, dword [0x4aa168]
mov esi, dword [esp + 0x10]
inc eax
mov dword [0x4aa168], eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x428dc0
Capabilities:
Create thread
Get system information on windows
Initialize winsock library

Disassembly:
sub esp, 0x1bc
mov eax, dword [0x4a8420]
push esi
mov dword [esp + 0x1bc], eax
push edi
lea eax, [esp + 0xc]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x20]
xor edi, edi
push edi
push edi
push 1
lea edx, [ecx + ecx]
push edi
mov dword [esi + 0x18], edx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x5c], eax
jne 0x428e35
cmp dword [0x4aa160], edi
je 0x428e1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RealCPNet__CreateEvent_CleanupEvent__failed:__d_n
call dword [0x4aa160]
add esp, 8
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x1b8]
call fcn.0043b1ae
add esp, 0x1bc
ret 8
lea eax, [esp + 0x30]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, edi
je 0x428e81
mov ecx, dword [0x4aa160]
cmp ecx, edi
je 0x428e5e
push eax
push str.RealCPNet__WSAStartup_failed:__d_n
call ecx
add esp, 8
mov ecx, dword [esi + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x1b8]
call fcn.0043b1ae
add esp, 0x1bc
ret 8
lea edx, [esi + 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esp + 0x1c8]
cmp eax, edi
je 0x428e9c
mov word [esi], ax
mov eax, dword [esi + 0x5c]
push eax
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
push edi
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, edi
mov dword [esi + 0x10], eax
jne 0x428ef8
cmp dword [0x4aa160], edi
je 0x428e1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RealCPNet__CreateIoCompletionPort_failed_to_create_I_O_completion_port:__d_n
call dword [0x4aa160]
add esp, 8
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x1b8]
call fcn.0043b1ae
add esp, 0x1bc
ret 8
cmp dword [esi + 0x18], edi
push ebx
push ebp
jbe 0x428f2c
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
lea ebx, [esi + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
push 0x428780
push 0
push 0
call ebp
test eax, eax
je 0x428f66
mov dword [ebx], eax
mov eax, dword [esi + 0x18]
inc edi
add ebx, 4
cmp edi, eax
jb 0x428f08
mov edx, dword [esp + 0x1d4]
push edx
mov ecx, esi
call fcn.00426fc0
test eax, eax
je 0x428f84
push 1
mov ecx, esi
call fcn.00428650
test eax, eax
setne al
mov ecx, dword [esp + 0x1c8]
pop ebp
pop ebx
pop edi
pop esi
call fcn.0043b1ae
add esp, 0x1bc
ret 8
mov eax, dword [0x4aa160]
test eax, eax
je 0x428f84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RealCPNet__CreateThread_failed_to_create_worker_thread:__d_n
call dword [0x4aa160]
add esp, 8
xor al, al
jmp 0x428f4d