joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c70
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x402c30
push 0
push 0
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
pop esi
ret 0xc

Function at 0x402d40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x28
movzx eax, word [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [0x4626f8]
push 0xf0
push eax
mov ebp, 1
push esi
mov ebx, ecx
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x402e47
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402e47
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402e47
push edi
call dword [0x45e198]
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
jmp 0x402db0
mov ebp, dword [esp + 0x10]
jmp 0x402db0
mov ax, word [esi]
test ax, ax
je 0x402e3b
mov cx, word [esi + 2]
add esi, 2
mov ebp, dword [esi + 2]
add esi, 2
add esi, 4
cmp cx, 0x403
jne 0x402de5
mov edx, dword [ebx + 4]
push esi
push 0
movzx ecx, ax
push 0x143
push ecx
push edx
jmp 0x402e14
cmp cx, 0x1234
jne 0x402e23
lea ecx, [esp + 0x14]
push ecx
push 0
movzx edx, ax
mov eax, dword [ebx + 4]
push 0x401
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], esi
push eax
call edi
cmp eax, 0xffffffff
jne 0x402e23
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
add esi, ebp
test eax, eax
jne 0x402da1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x28
ret 4
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x403120
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x120]
push ecx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
pop esi
je 0x40314e
mov edx, dword [0x46236c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esp + 0x10]
push 1
mov dword [eax], 1
mov ecx, dword [0x4620a0]
push 0
push ecx
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
ret 0x10

Function at 0x403188
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 8], 0xf060
push esi
mov esi, ecx
jne 0x4031d2
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x120]
push ecx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4031b7
mov edx, dword [0x46236c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x4620a0]
push 1
push 0
push eax
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
pop esi
ret 0x10
mov ecx, dword [esp + 0x14]
mov dword [ecx], 0
xor eax, eax
pop esi
ret 0x10
Function at 0x40b140
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40b14b
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x40b243
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x44e568]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44e568]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44e568]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44e568]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44e568]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44e568]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44e568]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44e568]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x40b166
test edi, edi
je 0x40b262
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x44e568]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x40b247
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret

Function at 0x40b270
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x40b280
mov eax, dword [eax + 4]
jmp 0x40b283
add eax, 4
push edi
push 0
push 0
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b2ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push 0
push edi
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push 0x10000
mov dword [esp + 0x1c], ebp
call fcn.0043bf47
add esp, 4
test ebp, ebp
mov esi, eax
jbe 0x40b317
jmp 0x40b2e0
push 0
lea eax, [esp + 0x14]
push eax
push 0x10000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b32f
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebx]
push ebp
push esi
push ecx
call fcn.0040b140
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
sub eax, ebp
mov dword [esp + 0x18], eax
jne 0x40b2e0
push esi
call fcn.0043bf59
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
mov al, 1
pop edi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call fcn.0043bf59
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
xor al, al
pop edi
pop ecx
ret
Function at 0x40b350
Capabilities:
Hash data using crc32b

Disassembly:
push edi
xor eax, eax
mov ecx, 0x100
mov edi, 0x461c98
rep stosd dword es:[edi], eax
xor ecx, ecx
pop edi
mov eax, ecx
shl eax, 0x18
test eax, eax
jns 0x40b374
add eax, eax
xor eax, 0x4c11db7
jmp 0x40b376
shl eax, 1
test eax, eax
jns 0x40b383
add eax, eax
xor eax, 0x4c11db7
jmp 0x40b385
shl eax, 1
test eax, eax
jns 0x40b392
add eax, eax
xor eax, 0x4c11db7
jmp 0x40b394
shl eax, 1
test eax, eax
jns 0x40b3a1
add eax, eax
xor eax, 0x4c11db7
jmp 0x40b3a3
shl eax, 1
test eax, eax
jns 0x40b3b0
add eax, eax
xor eax, 0x4c11db7
jmp 0x40b3b2
shl eax, 1
test eax, eax
jns 0x40b3bf
add eax, eax
xor eax, 0x4c11db7
jmp 0x40b3c1
shl eax, 1
test eax, eax
jns 0x40b3ce
add eax, eax
xor eax, 0x4c11db7
jmp 0x40b3d0
shl eax, 1
test eax, eax
jns 0x40b3dd
add eax, eax
xor eax, 0x4c11db7
jmp 0x40b3df
shl eax, 1
mov dword [ecx*4 + 0x461c98], eax
inc ecx
cmp ecx, 0x100
jb 0x40b362
mov byte [0x461c90], 1
ret

Function at 0x40b400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
push esi
mov esi, ecx
jle 0x40b435
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [esi]
xor ecx, ecx
mov cl, byte [edi]
mov edx, eax
shr edx, 0x18
shl eax, 8
xor edx, ecx
and edx, 0xff
xor eax, dword [edx*4 + 0x461c98]
inc edi
dec ebp
mov dword [esi], eax
jne 0x40b411
pop edi
mov eax, dword [esi]
pop esi
pop ebp
ret 8
Function at 0x40b610
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1114
call fcn.0043c2b0
push ebx
xor eax, eax
push esi
mov dword [esp + 0xe], eax
mov esi, ecx
mov dword [esp + 0x12], eax
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1a], eax
xor ebx, ebx
push ecx
mov word [esp + 0x14], bx
mov word [esp + 0x22], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
mov byte [esp + 0x20], bl
mov ecx, 0x3f
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movzx edx, word [esp + 0x10]
xor eax, eax
mov byte [esp + 0x120], bl
mov ecx, 0x1ff
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x920], bl
mov ecx, 0x1ff
lea edi, [esp + 0x921]
rep stosd dword es:[edi], eax
movzx ecx, word [esp + 0x16]
stosw word es:[edi], ax
push edx
movzx edx, word [esp + 0x1c]
stosb byte es:[edi], al
movzx eax, word [esp + 0x16]
push eax
push ecx
push edx
lea eax, [esp + 0x30]
push str.UpdateDataupd_02d_02d_02d_04d.dat
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0x7fe
lea ecx, [esp + 0x124]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, ebx
jne 0x40b6de
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dl, byte [esp + eax + 0x120]
mov cl, 0x5c
cmp dl, cl
je 0x40b6fc
jmp 0x40b6f0
mov dl, byte [esp + eax + 0x11f]
dec eax
cmp dl, cl
jne 0x40b6f0
mov byte [esp + eax + 0x121], bl
xor eax, eax
jmp 0x40b710
mov cl, byte [esp + eax + 0x120]
mov byte [esp + eax + 0x920], cl
inc eax
cmp cl, bl
jne 0x40b710
lea edi, [esp + 0x920]
dec edi
jmp 0x40b730
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40b730
mov edx, dword [str.UpdateData]
mov eax, dword [0x44e9ac]
mov cx, word [0x44e9b0]
mov dword [edi], edx
mov dl, byte [0x44e9b2]
mov dword [edi + 4], eax
mov word [edi + 8], cx
push 0xff
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x128]
push ecx
mov byte [edi + 0xa], dl
call fcn.0043d0e6
add esp, 0xc
push ebx
lea edx, [esp + 0x924]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x20], 0x10
jb 0x40b799
mov eax, dword [esi + 0xc]
jmp 0x40b79c
lea eax, [esi + 0xc]
lea ecx, [esp + 0x120]
push ecx
push eax
call fcn.00437ae0
add esp, 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b7c0
Capabilities:
Get file size

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
push edi
je 0x40b7cf
cmp eax, 0xffffffff
jne 0x40b844
cmp dword [esi + 0x20], 0x10
jb 0x40b7da
mov eax, dword [esi + 0xc]
jmp 0x40b7dd
lea eax, [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40b807
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor al, al
pop esi
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x7a120
jbe 0x40b844
mov ecx, esi
call fcn.0040b610
test al, al
je 0x40b844
cmp dword [esi + 0x20], 0x10
jb 0x40b82d
mov eax, dword [esi + 0xc]
jmp 0x40b830
lea eax, [esi + 0xc]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push eax
call edi
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
cmp ecx, 0xffffffff
pop edi
setne al
pop esi
ret
Function at 0x40bcc0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44a3c0
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebp
push edi
mov edi, dword [esp + 0x58]
mov edx, dword [edi + 0x14]
cmp edx, 2
mov ebp, ecx
jbe 0x40be96
push esi
mov esi, dword [edi + 0x18]
cmp esi, 0x10
lea eax, [edi + 4]
jb 0x40bcfc
mov ecx, dword [eax]
jmp 0x40bcfe
mov ecx, eax
cmp byte [ecx + edx - 1], 0xd
push ebx
mov bl, 0xa
jne 0x40bd19
cmp esi, 0x10
jb 0x40bd11
mov ecx, dword [eax]
jmp 0x40bd13
mov ecx, eax
cmp byte [ecx + edx - 2], bl
je 0x40bd46
cmp esi, 0x10
jb 0x40bd22
mov ecx, dword [eax]
jmp 0x40bd24
mov ecx, eax
cmp byte [ecx + edx - 1], bl
jne 0x40bd38
cmp esi, 0x10
jb 0x40bd31
mov eax, dword [eax]
cmp byte [eax + edx - 2], 0xd
je 0x40bd46
push 2
push 0x44e9e8
mov ecx, edi
call fcn.0040bab0
xor ebx, ebx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x5c], ebx
call fcn.0043d4cf
lea ecx, [esp + 0x14]
push ecx
call fcn.0043d2c1
push eax
call fcn.0043d1b6
mov ecx, eax
add esp, 0xc
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40bd80
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00401ab0
mov edx, dword [esp + 0x2c]
dec edx
push edx
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
call fcn.0040bc30
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 1
call fcn.004019c0
mov eax, dword [esp + 0x4c]
mov esi, 0x10
cmp eax, esi
mov byte [esp + 0x58], bl
jb 0x40bdd9
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0043c389
add esp, 4
push 4
push 0x44e9e0
lea ecx, [esp + 0x20]
call fcn.0040bab0
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x24]
call fcn.0040b9c0
mov eax, dword [ebp + 4]
cmp eax, 1
jne 0x40be67
mov eax, dword [ebp]
cmp eax, ebx
je 0x40be0a
cmp eax, 0xffffffff
jne 0x40be33
mov ecx, ebp
call fcn.0040b7c0
test al, al
jne 0x40be33
lea ecx, [esp + 0x18]
call fcn.00401850
pop ebx
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 4
mov edx, dword [ebp]
push 2
push ebx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x30], esi
mov eax, dword [esp + 0x1c]
jae 0x40be4f
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x2c]
push ebx
lea ecx, [esp + 0x64]
push ecx
push edx
push eax
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40be81
cmp eax, 2
jne 0x40be81
cmp dword [esp + 0x30], esi
mov eax, dword [esp + 0x1c]
jae 0x40be7a
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esp + 0x30], esi
jb 0x40be94
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043c389
add esp, 4
pop ebx
pop esi
mov ecx, dword [esp + 0x48]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x4c
ret 4
Function at 0x40c380
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [eax + 0x10]
mov eax, dword [esp + 8]
test eax, eax
je 0x40c3c1
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 8]
test eax, eax
mov byte [esi + 0x60], 0
je 0x40c474
mov ecx, dword [esi + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0xa8]
push esi
push edx
call dword [esi + 8]
add esp, 8
pop esi
ret 0x10
push ebp
push edi
push 0x400
call fcn.0043bf47
mov ebp, eax
xor eax, eax
add esp, 4
mov ecx, 0x100
mov edi, ebp
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
push 0x40bf50
mov dword [esi + 0x84], esi
mov dword [esp + 0x1c], eax
mov edi, dword [esi + 0x68]
mov ecx, 0x100
rep stosd dword es:[edi], eax
lea eax, [esi + 0x74]
push eax
lea ecx, [esi + 0x2c]
push ecx
lea edx, [esi + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esi + 0x9c]
lea ecx, [esp + 0x2c]
push ecx
push 1
lea edx, [esi + 0x64]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp edi, 0xffffffff
mov dword [esi + 0xa0], eax
jne 0x40c469
cmp eax, 0x3e5
je 0x40c469
mov ecx, dword [esi + 0x10]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.CAsyncPing::SendCompletion._WSARecvFrom___to__s_failed_with_code__d_r_n
push 0x3ff
push ebp
call fcn.0043d58d
mov esi, dword [esi + 4]
add esp, 0x14
test esi, esi
je 0x40c469
push ebp
call esi
add esp, 4
push ebp
call fcn.0043bf59
add esp, 4
pop edi
pop ebp
pop esi
ret 0x10
Function at 0x40c5b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x400
mov esi, ecx
call fcn.0043bf47
mov ebp, eax
xor eax, eax
mov ecx, 0x100
mov edi, ebp
push 0xc
rep stosd dword es:[edi], eax
call fcn.0043bbef
mov edi, eax
xor ebx, ebx
mov word [edi + 2], bx
mov byte [edi + 1], bl
mov ax, word [esi + 0xa6]
mov word [edi + 6], ax
mov byte [edi], 8
mov cx, word [esi + 0xa4]
add esp, 8
mov word [edi + 4], cx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 8], eax
mov eax, edi
xor ecx, ecx
mov edx, 6
mov edi, edi
movzx ebx, word [eax]
add ecx, ebx
add eax, 2
dec edx
jne 0x40c610
mov eax, ecx
shr eax, 0x10
and ecx, 0xffff
add eax, ecx
mov edx, eax
shr edx, 0x10
add edx, eax
push fcn.0040c380
not edx
mov word [edi + 2], dx
mov ax, word [esi + 0xa6]
mov dword [esi + 0x70], edi
lea edi, [esi + 0x88]
push edi
push 0x10
lea ecx, [esi + 0xc]
push ecx
push 0
lea edx, [esp + 0x24]
push edx
mov word [esi + 0xe], ax
mov word [esi + 0x1e], ax
lea eax, [esi + 0x6c]
push 1
push eax
mov dword [eax], 0xc
mov eax, dword [esi + 0x9c]
push eax
mov dword [esi + 0x2c], 0x10
mov dword [esp + 0x34], 0
mov dword [esi + 0x98], esi
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x40c6ea
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x3e5
je 0x40c701
call edi
mov ecx, dword [esi + 0x10]
push eax
push ecx
mov dword [esi + 0xa0], eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.CAsyncPing::Ping._sendto___to__s_failed_with_code__d_r_n
push 0x3ff
push ebp
call fcn.0043d58d
mov esi, dword [esi + 4]
add esp, 0x14
test esi, esi
je 0x40c6d6
push ebp
call esi
add esp, 4
push ebp
call fcn.0043bf59
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 4
test eax, eax
jne 0x40c701
mov edx, dword [esp + 0x10]
push eax
push edi
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040c380
push ebp
call fcn.0043bf59
mov eax, dword [esi + 0x5c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x40c720
Capabilities:
Create raw socket
Set socket configuration

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
mov esi, ecx
call fcn.0043bf47
add esp, 4
push 1
xor ebx, ebx
push ebx
push ebx
push 1
mov ebp, eax
push 3
xor eax, eax
mov ecx, 0x100
mov edi, ebp
push 2
rep stosd dword es:[edi], eax
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 0x9c], eax
jne 0x40c796
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CAsyncPing::Ping._WSASocket___call_failed_with_code__d_r_n.
push 0x3ff
push ebp
mov dword [esi + 0xa0], eax
call fcn.0043d58d
mov eax, dword [esi + 4]
add esp, 0x10
cmp eax, ebx
je 0x40c78a
push ebp
call eax
add esp, 4
mov eax, dword [esi + 0x9c]
push eax
jmp 0x40c83b
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0x1006
push 0xffff
push eax
call edi
cmp eax, 0xffffffff
jne 0x40c7c3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CAsyncPing::Ping._setsockopt_...SOL_SOCKET__SO_RCVTIMEO...__call_failed_with_code__d_r_n.
jmp 0x40c813
mov ecx, dword [esi + 0x9c]
push 4
lea eax, [esp + 0x1c]
push eax
push 0x1005
push 0xffff
push ecx
call edi
cmp eax, 0xffffffff
jne 0x40c7f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CAsyncPing::Ping._setsockopt_...SOL_SOCKET__SO_SNDTIMEO...__call_failed_with_code__d_r_n.
jmp 0x40c813
mov ecx, dword [esi + 0x9c]
push 4
lea eax, [esi + 0x3c]
push eax
push 4
push ebx
push ecx
call edi
cmp eax, 0xffffffff
jne 0x40c85a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CAsyncPing::Ping._setsockopt_IP_TTL__failed:__d_r_n
push 0x3ff
push ebp
mov dword [esi + 0xa0], eax
call fcn.0043d58d
mov eax, dword [esi + 4]
add esp, 0x10
cmp eax, ebx
je 0x40c834
push ebp
call eax
add esp, 4
mov edx, dword [esi + 0x9c]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
push ebp
mov dword [esi + 0x9c], ebx
call fcn.0043bf59
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 0xc
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0x40c868
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x5c], eax
cmp dword [esi + 0x68], ebx
jne 0x40c892
push 0x400
mov dword [esi + 0x64], 0x400
call fcn.0043bf47
add esp, 4
mov dword [esi + 0x68], eax
mov edi, dword [esi + 0x68]
xor eax, eax
mov ecx, 0x100
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40c8af
mov dword [esi + 0x10], eax
mov word [esi + 0xc], 2
push ebx
mov ecx, esi
call fcn.0040c5b0
mov edi, eax
cmp edi, 0xffffffff
jne 0x40c8e3
mov eax, dword [esi + 0x9c]
push 2
push eax
mov byte [esi + 0x60], bl
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [esi + 0x9c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x9c], ebx
push ebp
call fcn.0043bf59
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x40d8f0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x38
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
mov esi, ecx
call edi
test eax, eax
je 0x40d943
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
mov edi, edi
lea ecx, [esp + 0x2c]
push ecx
call ebx
lea edx, [esp + 0x2c]
push edx
call ebp
push 1
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
call edi
test eax, eax
jne 0x40d920
pop ebp
pop ebx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40da1f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40da1f
mov eax, dword [esi + 4]
test eax, eax
mov edi, dword [esp + 0x44]
je 0x40d96d
cmp edi, 0xa
jne 0x40da1f
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40d983
mov ecx, eax
mov edx, dword [ecx]
call dword [edx + 4]
test al, al
jne 0x40da1f
push str.Sending_notification_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp edi, 8
mov dword [esp + 8], 0xffffffff
jne 0x40d9bf
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 0x14]
push 0
push eax
push 0x40e
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
add esp, 0x38
ret 0x10
cmp edi, 0xc
jne 0x40d9da
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
jmp 0x40da06
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0x10
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x14]
lea ecx, [esp + 8]
push ecx
push 0
push 0x4a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
add esp, 0x38
ret 0x10