joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407660
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4190a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 8]
call fcn.00416770
mov edx, dword [esp + 0x24]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0x804
call fcn.00406e90
mov esi, eax
test esi, esi
jne 0x4076d6
mov eax, dword [esp + 8]
test eax, eax
jne 0x4076bd
mov eax, 0x41eae8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffe6f
add esi, 0x191
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004167e0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4

Function at 0x407700
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4190d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x18]
call fcn.00416770
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0
call fcn.00416770
mov edx, dword [esp + 0x34]
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x38], 1
mov dword [esp + 0x14], 4
call fcn.00406e90
mov esi, eax
test esi, esi
jne 0x4077b9
mov edx, dword [esp + 0x38]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x14], 0x40001
call fcn.00406e90
mov esi, eax
test esi, esi
jne 0x4077b9
mov eax, dword [esp + 0xc]
test eax, eax
mov ecx, eax
jne 0x407792
mov ecx, 0x41eae8
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40779f
mov eax, 0x41eae8
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffe6d
add esi, 0x193
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.004167e0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004167e0
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 8

Function at 0x4078f0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x419108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 8]
call fcn.00416770
mov edx, dword [esp + 0x24]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0x40220
call fcn.00406e90
mov esi, eax
test esi, esi
jne 0x407968
mov eax, dword [esp + 8]
test eax, eax
jne 0x40794d
mov eax, 0x41eae8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffe6c
add esi, 0x194
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004167e0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x407990
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x419128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 8]
call fcn.00416770
mov edx, dword [esp + 0x24]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0x280
call fcn.00406e90
mov esi, eax
test esi, esi
jne 0x407a06
mov eax, dword [esp + 8]
test eax, eax
jne 0x4079ed
mov eax, 0x41eae8
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffe6b
add esi, 0x195
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004167e0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x4118b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4118ee
push 0xffffffffffffffff
push 0
push esi
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4118e7
inc word [esi + 8]
mov dword [esi + 4], edi
jmp 0x4118fc
cmp eax, 0x80
jne 0x4118f4
inc word [esi + 8]
jmp 0x4118fc
push 1
call dword [sym.imp.KERNEL32.dll_ExitThread]
cmp dword [ebx + 0x34], 0xffffffff
je 0x411973
mov eax, dword [esp + 0x118]
test eax, eax
je 0x411962
push 0
call dword [sym.imp.MSVCRT.dll_time]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
push eax
push str._r_n_r_n__________________________Session_closed_on__a__d__b__Y___H:_M:_S____________________________r_n
lea ecx, [esp + 0x24]
push 0x100
push ecx
call dword [sym.imp.MSVCRT.dll_strftime]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x10]
push 0
dec ecx
push edx
push ecx
mov ecx, dword [ebx + 0x34]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x34], 0xffffffff
dec word [esi + 8]
cmp word [esi + 8], 0
jne 0x41198e
mov eax, dword [esi]
mov dword [esi + 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebx
add esp, 0x108
ret 4
Function at 0x411d00
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x34]
cmp eax, 0xffffffff
je 0x411d20
mov edx, dword [esp + 8]
lea ecx, [esp + 8]
push 0
push ecx
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x414260
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x2c8], 1
je 0x41431c
mov edx, dword [esi + 0xc]
xor eax, eax
push edi
mov ecx, 0xb7
mov edi, esi
push eax
push eax
push eax
rep stosd dword es:[edi], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x2c8], 1
mov word [esi + 8], ax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push 0xffff
push 0
push 0
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0
push 1
push 0
push 0
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x24]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
pop edi
je 0x4142f8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x276c
jne 0x4142f8
push 0x10
push str.WinSock_2_required
push str.You_must_have_Winsock_2.0_or_higher_installed_on_this_computer_in_order_to_use_this_program
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call dword [sym.imp.MSVCRT.dll__endthread]
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 8]
test eax, eax
je 0x41431c
mov ecx, esi
call fcn.004145c0
xor eax, eax
pop esi
ret 4

Function at 0x4146d0
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4146f9
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4146f7
mov eax, dword [eax + 0xc]
pop esi
mov ecx, dword [eax]
mov eax, dword [ecx]
ret 4
xor eax, eax
pop esi
ret 4

Function at 0x414dc0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
xor eax, eax
mov ecx, 0xf
mov edi, esi
push eax
push eax
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
push eax
mov dword [esi + 0xc], 0xffffffff
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x14], eax
call edi
push 0
push 0
push 0
mov dword [esi + 0x18], eax
mov word [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
push 0
push 0x415260
mov dword [esi], eax
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
xor eax, eax
pop edi
pop esi
ret
Function at 0x414f30
Capabilities:
Create tcp socket

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, edi
je 0x414f68
push 0xffffffffffffffff
push 0
push esi
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x414f61
inc word [esi + 8]
mov dword [esi + 4], edi
jmp 0x414f76
cmp eax, 0x80
jne 0x414f6e
inc word [esi + 8]
jmp 0x414f76
push 1
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov ecx, esi
mov ebx, 0x4e26
xor edi, edi
call fcn.00414eb0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x414fc1
push eax
mov ecx, 0x41ed28
call fcn.004146d0
mov edi, eax
test edi, edi
jne 0x414fc1
dec word [esi + 8]
cmp word [esi + 8], ax
jne 0x414fb3
mov dword [esi + 4], eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret 0x18
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esi + 0x34], ecx
mov ecx, dword [esp + 0x30]
push 6
push 1
push 2
mov dword [esi + 0x24], edx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ecx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x41508f
mov edx, dword [esi + 0x14]
push 8
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x41508f
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0xc], eax
push ecx
mov dword [esp + 0x14], eax
mov word [esp + 0x10], 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xe], ax
mov eax, dword [esi + 0xc]
lea edx, [esp + 0xc]
push 0x10
push edx
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x415088
mov ecx, dword [esi + 0xc]
push bind
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x415094
dec word [esi + 8]
cmp word [esi + 8], 0
jne 0x41507d
mov edx, dword [esi]
mov dword [esi + 4], 0
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0x18
mov ebx, 0x4e2c
jmp 0x415094
mov ebx, 0x4e26
mov ecx, esi
call fcn.00414eb0
dec word [esi + 8]
cmp word [esi + 8], 0
jne 0x4150b6
mov eax, dword [esi]
mov dword [esi + 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x10
ret 0x18

Function at 0x415320
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
xor eax, eax
push edi
mov ecx, 0x12
mov edi, esi
push eax
push eax
rep stosd dword es:[edi], eax
push eax
mov dword [esi + 0xc], 0xffffffff
mov byte [esi + 0x46], al
mov word [esi + 8], ax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [esi], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x14], eax
call edi
push esi
push 0
push 0x416170
mov dword [esi + 0x10], eax
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov dword [esi + 0x18], eax
xor eax, eax
pop edi
pop esi
ret
Function at 0x415820
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, edi
je 0x415859
push 0xffffffffffffffff
push ebx
push esi
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, ebx
jne 0x415852
inc word [esi + 8]
mov dword [esi + 4], edi
jmp 0x415867
cmp eax, 0x80
jne 0x41585f
inc word [esi + 8]
jmp 0x415867
push 1
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov ecx, esi
call fcn.00415500
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0xc], eax
push ecx
mov dword [esp + 0x14], eax
mov word [esp + 0x10], 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x20]
mov ecx, 0x41ed28
push edx
mov word [esp + 0x12], ax
call fcn.004146d0
cmp eax, ebx
jne 0x4158ce
dec word [esi + 8]
cmp word [esi + 8], bx
jne 0x4158c0
mov eax, dword [esi]
mov dword [esi + 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret 0xc
mov cl, byte [esp + 0x28]
push 1
push ebx
push ebx
push 6
push 1
push 2
mov dword [esp + 0x28], eax
mov byte [esi + 0x45], bl
mov dword [esi + 0x24], ebx
mov byte [esi + 0x46], cl
mov dword [esi + 0x2c], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x415977
push ebx
mov ecx, esi
call fcn.00415760
test eax, eax
jne 0x415977
mov eax, dword [esi + 0xc]
lea edx, [esp + 0xc]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x415945
dec word [esi + 8]
cmp word [esi + 8], bx
mov byte [esi + 0x45], 2
jne 0x41593a
mov ecx, dword [esi]
mov dword [esi + 4], ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x415977
dec word [esi + 8]
cmp word [esi + 8], bx
mov byte [esi + 0x45], 2
jne 0x41596c
mov edx, dword [esi]
mov dword [esi + 4], ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
mov ecx, esi
mov byte [esi + 0x45], 3
call fcn.00415500
dec word [esi + 8]
cmp word [esi + 8], bx
jne 0x415998
mov eax, dword [esi]
mov dword [esi + 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, 2
pop ebx
add esp, 0x10
ret 0xc
Function at 0x415ad0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [esi + 4]
xor ebp, ebp
cmp eax, edi
je 0x415b07
push 0xffffffffffffffff
push ebp
push esi
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, ebp
jne 0x415b00
inc word [esi + 8]
mov dword [esi + 4], edi
jmp 0x415b15
cmp eax, 0x80
jne 0x415b0d
inc word [esi + 8]
jmp 0x415b15
push 1
call dword [sym.imp.KERNEL32.dll_ExitThread]
cmp dword [esi + 0x20], ebp
jne 0x415b3d
dec word [esi + 8]
cmp word [esi + 8], bp
jne 0x415c03
mov eax, dword [esi]
mov dword [esi + 4], ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp edi, ebp
je 0x415b52
cmp eax, ebp
jle 0x415b52
push ebp
push eax
push edi
jmp 0x415b80
mov edx, dword [esi + 0x30]
cmp edx, ebp
je 0x415bed
cmp eax, ebp
jne 0x415b78
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
sub eax, ecx
cmp eax, ebp
jle 0x415b78
push ebp
add ecx, edx
mov edx, dword [esi + 0xc]
push eax
push ecx
push edx
jmp 0x415b84
push ebp
push eax
mov eax, dword [esi + 0x24]
add eax, edx
push eax
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [esi + 0x20]
mov ebx, eax
dec ecx
cmp ebx, 0xffffffff
mov dword [esi + 0x20], ecx
jne 0x415bb7
dec word [esi + 8]
cmp word [esi + 8], bp
jne 0x415c03
mov edx, dword [esi]
mov dword [esi + 4], ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
cmp ebx, ebp
jne 0x415bbe
mov dword [esi + 0x20], ebp
mov edx, dword [esi + 0x24]
neg edi
sbb edi, edi
not edi
and edi, ebx
add edx, edi
dec word [esi + 8]
cmp word [esi + 8], bp
mov dword [esi + 0x24], edx
jne 0x415be4
mov eax, dword [esi]
mov dword [esi + 4], ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret 8
dec word [esi + 8]
cmp word [esi + 8], bp
jne 0x415c03
mov ecx, dword [esi]
mov dword [esi + 4], ebp
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x415dd0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xc
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, edi
je 0x415e07
push 0xffffffffffffffff
push 0
push esi
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x415e00
inc word [esi + 8]
mov dword [esi + 4], edi
jmp 0x415e15
cmp eax, 0x80
jne 0x415e0d
inc word [esi + 8]
jmp 0x415e15
push 1
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push edi
lea edx, [esp + 0x10]
mov dword [esp + 0x14], eax
push 0
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0xc]
push edx
lea eax, [esp + 0x1c]
push 1
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x415e94
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x415e94
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
je 0x415e6c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], 0xffffffff
dec word [esi + 8]
cmp word [esi + 8], 0
jne 0x415e87
mov edx, dword [esi]
mov dword [esi + 4], 0
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret 0xc
dec word [esi + 8]
cmp word [esi + 8], 0
jne 0x415eaf
mov eax, dword [esi]
mov dword [esi + 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x415f80
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [esi + 4]
or ebp, 0xffffffff
cmp eax, edi
je 0x415fbb
push ebp
push 0
push esi
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x415fb4
inc word [esi + 8]
mov dword [esi + 4], edi
jmp 0x415fc9
cmp eax, 0x80
jne 0x415fc1
inc word [esi + 8]
jmp 0x415fc9
push 1
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x1c], ebx
push edi
push edi
push edi
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [esp + 0x24]
push edi
push ecx
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], eax
push edi
push edx
lea eax, [esp + 0x2c]
push 1
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, ebp
jne 0x4160ea
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x416092
cmp eax, 0x2746
mov eax, dword [esp + 0x10]
je 0x41605e
cmp eax, ebp
je 0x416039
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebp
dec word [esi + 8]
cmp word [esi + 8], di
jne 0x41604f
mov edx, dword [esi]
mov dword [esi + 4], edi
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
mov eax, 0x4e24
pop ebx
add esp, 0x28
ret 8
cmp eax, ebp
je 0x41606d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebp
dec word [esi + 8]
cmp word [esi + 8], di
jne 0x416083
mov eax, dword [esi]
mov dword [esi + 4], edi
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
mov eax, 0x4e24
pop ebx
add esp, 0x28
ret 8
push edi
push ebp
lea ecx, [esp + 0x18]
push 1
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov edi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4160b8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebp
cmp edi, 0x102
jne 0x4160ff
dec word [esi + 8]
cmp word [esi + 8], 0
jne 0x4160db
mov edx, dword [esi]
mov dword [esi + 4], 0
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
mov eax, 0x4e24
pop ebx
add esp, 0x28
ret 8
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x416101
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebp
jmp 0x416101
xor edi, edi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esi + 0xc]
push edi
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
mov eax, dword [esp + 0x14]
cmp eax, ebx
dec word [esi + 8]
jae 0x416148
cmp word [esi + 8], di
jne 0x416139
mov ecx, dword [esi]
mov dword [esi + 4], edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
mov eax, 0x4e24
pop ebx
add esp, 0x28
ret 8
cmp word [esi + 8], di
jne 0x41615a
mov edx, dword [esi]
mov dword [esi + 4], edi
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret 8
Function at 0x4162a0
Capabilities:
Create thread

Disassembly:
mov al, byte [ecx + 0x46]
test al, al
jne 0x4162d2
mov eax, dword [ecx + 0x20]
inc eax
mov dword [ecx + 0x20], eax
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x4162d2
mov dl, byte [ecx + 0x44]
push ecx
test dl, 4
je 0x4162cd
push 0
push eax
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
xor eax, eax
ret
call eax
add esp, 4
xor eax, eax
ret

Function at 0x4162e8
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
push esi
mov esi, ecx
lea eax, [esp + 8]
push edi
mov ecx, dword [esi + 0xc]
push eax
push 0x4004667f
push ecx
mov dword [esp + 0x18], 0
xor edi, edi
call ebx
test eax, eax
jne 0x41633d
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41633d
cmp eax, edi
je 0x41633d
mov ecx, esi
call fcn.004162a0
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0xc]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
push edx
push 0x4004667f
push eax
call ebx
test eax, eax
je 0x41630a
mov ecx, esi
mov byte [esi + 0x45], 4
call fcn.00415500
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x416372
mov cl, byte [esi + 0x44]
push esi
test cl, 8
je 0x41636d
push 0
push eax
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
call eax
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 4

Function at 0x416380
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
movsx eax, byte [esi + 0x47]
dec eax
je 0x4163b6
dec eax
jne 0x4163a9
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4163a9
mov cl, byte [esi + 0x44]
push esi
test cl, 2
je 0x4163ad
push 0
push eax
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
xor eax, eax
pop esi
ret
call eax
add esp, 4
xor eax, eax
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4163e7
push 0xffffffffffffffff
push 0
push esi
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4163e0
inc word [esi + 8]
mov dword [esi + 4], edi
jmp 0x4163f5
cmp eax, 0x80
jne 0x4163ed
inc word [esi + 8]
jmp 0x4163f5
push 1
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov ecx, esi
call fcn.00415390
call dword [sym.imp.MSVCRT.dll__endthread]
pop edi
xor eax, eax
pop esi
ret