joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022bf
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [esi + 8]
mov dword [ebp - 4], ecx
cmp eax, ecx
jl 0x402418
cmp dword [ebp + 0xc], ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
je 0x4022f4
push ecx
push eax
push 0x150
push dword [esi + 0x14]
call edi
mov dword [ebp + 8], eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 0xc]
push dword [esi + 8]
neg eax
sbb eax, eax
and al, 0xbf
add eax, 0x189
push eax
push dword [esi + 0x14]
call edi
test byte [esi + 0xc], 3
je 0x4023fe
mov edi, dword [esi + 0x10]
push ebx
and edi, 1
je 0x40234a
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 0xe
call ebx
push eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xd
mov dword [ebp - 8], eax
call ebx
push eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0
je 0x40235a
mov ebx, dword [ebp + 8]
shr ebx, 0x10
dec ebx
dec ebx
jmp 0x402387
movzx eax, word [esi + 0x2c]
mov ebx, dword [esi + 0x2c]
lea eax, [eax*4 + 4]
shr ebx, 0x10
mov dword [ebp - 4], eax
sub ebx, 5
call fcn.0040f3a7
test eax, eax
je 0x402387
xor eax, eax
cmp ebx, 5
setne al
add eax, 0xf
mov ebx, eax
lea eax, [ebp - 0x34]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 4]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [esi + 0x1c]
push eax
push 2
mov eax, dword [eax]
push dword [esi + 0x20]
lea eax, [eax + ecx + 0x14]
push eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
neg edi
sbb edi, edi
mov eax, dword [esi + 0x1c]
and edi, 0x10
add eax, dword [ebp - 4]
shl ebx, 4
push edi
push ebx
push dword [0x41b2e8]
push 0x10
push 0x10
push dword [esi + 0x20]
push eax
push dword [esi + 0x18]
call fcn.0040f732
add esp, 0x20
test byte [esi + 0x10], 1
pop ebx
je 0x4023fe
push dword [ebp - 8]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0xc]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
test byte [esi + 0xc], 4
pop edi
jne 0x40240b
test byte [esi + 0x10], 0x10
je 0x402418
lea eax, [esi + 0x1c]
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawFocusRect]
pop esi
leave
ret
Function at 0x405de5
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [ebp - 0x28]
mov dword [ebp + 8], eax
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
call edi
cmp word [ebp + 0x1c], bx
jne 0x405e50
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jmp 0x405e9d
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
call esi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx ecx, byte [ebp + 0x14]
mov eax, ecx
push 0x64
cdq
pop esi
idiv esi
push esi
add word [ebp - 0x2c], ax
mov eax, ecx
cdq
pop ecx
idiv ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x38]
push eax
mov word [ebp - 0x2a], dx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409050
Capabilities:
Check os version
Get disk information

Disassembly:
push edi
push 0x1a
pop ecx
xor eax, eax
mov edi, 0x41adc0
rep stosd dword es:[edi], eax
call fcn.00408fb8
test eax, eax
pop edi
je 0x40906c
jmp fcn.004091fc
call fcn.00408fea
test eax, eax
je 0x409088
cmp dword [0x41ad08], 0
je 0x409083
jmp fcn.00409faa
jmp fcn.0040a046
jmp fcn.0040b8c4

Function at 0x409605
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4c], ebx
mov dword [esi], 0x4148f4
je 0x409668
push edi
push ebx
push ebx
push ebx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, esi
call fcn.004091c2
lea eax, [esp + 0xc]
push ebx
push eax
push 0x200
push dword [esi + 0x4c]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, esi
call fcn.004091d2
push dword [esi + 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 0x4c]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x409676
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], ebx
mov dword [esi], 0x414930
pop esi
pop ebx
pop ecx
ret
Function at 0x40ddd0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x40e7c2
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x41ae70
push 8
mov eax, edx
pop esi
test al, 1
je 0x40e7dc
shr eax, 1
xor eax, 0xedb88320
jmp 0x40e7de
shr eax, 1
dec esi
jne 0x40e7cf
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x41b270
jl 0x40e7ca
mov dword [0x41b274], 1
pop esi
ret

Function at 0x40e800
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x41b274]
test eax, eax
jne 0x40e80e
call fcn.0040e7c2
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov eax, edx
push ebx
shr eax, 3
push esi
push edi
lea esi, [eax*8]
sub edx, esi
test eax, eax
mov edi, edx
jbe 0x40e91c
mov esi, eax
mov eax, dword [esp + 0x10]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx]
and ebx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x41ae70]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, ebx
mov ebx, eax
add ecx, 8
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x41ae70]
xor edx, eax
xor eax, eax
mov al, byte [ecx - 6]
mov ebx, edx
and ebx, 0xff
xor eax, ebx
shr edx, 8
mov eax, dword [eax*4 + 0x41ae70]
xor eax, edx
xor edx, edx
mov dl, byte [ecx - 5]
mov ebx, eax
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x41ae70]
xor edx, eax
xor eax, eax
mov al, byte [ecx - 4]
mov ebx, edx
and ebx, 0xff
xor eax, ebx
shr edx, 8
mov eax, dword [eax*4 + 0x41ae70]
xor eax, edx
xor edx, edx
mov dl, byte [ecx - 3]
mov ebx, eax
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x41ae70]
xor edx, eax
xor eax, eax
mov al, byte [ecx - 2]
mov ebx, edx
and ebx, 0xff
xor eax, ebx
shr edx, 8
mov eax, dword [eax*4 + 0x41ae70]
xor eax, edx
xor edx, edx
mov dl, byte [ecx - 1]
mov ebx, eax
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x41ae70]
xor eax, edx
dec esi
jne 0x40e837
jmp 0x40e920
mov eax, dword [esp + 0x10]
test edi, edi
jbe 0x40e944
mov esi, edi
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
inc ecx
shr eax, 8
mov edx, dword [edx*4 + 0x41ae70]
xor eax, edx
dec esi
jne 0x40e926
pop edi
pop esi
pop ebx
ret
Function at 0x41055f
Capabilities:
Encode data using xor

Disassembly:
push 1
pop edx
cmp dword [ecx + 0x1c], edx
jle 0x41063a
push esi
push edi
lea eax, [ecx + 0x32]
movzx esi, byte [eax + 1]
movzx edi, byte [eax - 1]
mov esi, dword [esi*4 + 0x41a780]
xor esi, dword [edi*4 + 0x419f80]
movzx edi, byte [eax]
add eax, 0x10
xor esi, dword [edi*4 + 0x41a380]
movzx edi, byte [eax - 0x12]
xor esi, dword [edi*4 + 0x419b80]
mov dword [eax - 0x12], esi
movzx esi, byte [eax - 0xb]
movzx edi, byte [eax - 0xc]
mov esi, dword [esi*4 + 0x41a780]
xor esi, dword [edi*4 + 0x41a380]
movzx edi, byte [eax - 0xd]
xor esi, dword [edi*4 + 0x419f80]
movzx edi, byte [eax - 0xe]
xor esi, dword [edi*4 + 0x419b80]
mov dword [eax - 0xe], esi
movzx esi, byte [eax - 7]
movzx edi, byte [eax - 8]
mov esi, dword [esi*4 + 0x41a780]
xor esi, dword [edi*4 + 0x41a380]
movzx edi, byte [eax - 9]
xor esi, dword [edi*4 + 0x419f80]
movzx edi, byte [eax - 0xa]
xor esi, dword [edi*4 + 0x419b80]
mov dword [eax - 0xa], esi
movzx esi, byte [eax - 3]
movzx edi, byte [eax - 4]
mov esi, dword [esi*4 + 0x41a780]
xor esi, dword [edi*4 + 0x41a380]
movzx edi, byte [eax - 5]
xor esi, dword [edi*4 + 0x419f80]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x419b80]
inc edx
mov dword [eax - 6], esi
cmp edx, dword [ecx + 0x1c]
jl 0x410570
pop edi
pop esi
ret
Function at 0x4112a5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push esi
lea eax, [ebp - 0x108]
push edi
push eax
push 0xf6
call fcn.0040eeed
pop ecx
lea eax, [ebp - 0x108]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + eax - 0x108]
push eax
call esi
cmp dword [ebp + 0x14], 0
je 0x4112f5
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x14]
call esi
lea eax, [ebp - 0x190]
push 0x1001
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov edi, eax
cmp edi, 0xffffffff
jne 0x411319
xor eax, eax
jmp 0x41135f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
mov esi, eax
push edi
sub esi, dword [ebp + 0x10]
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll__lclose]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
test esi, esi
mov eax, ecx
je 0x41134e
test eax, eax
je 0x41134e
push 1
pop esi
jmp 0x41135d
lea eax, [ebp - 0x108]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x4113ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
call fcn.0040f37e
push 1
mov dword [ebp - 8], eax
xor esi, esi
pop eax
cmp dword [ebp - 8], esi
mov dword [ebp - 4], eax
je 0x4114f4
mov ebx, 0x8000
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
cmp edi, esi
jne 0x4113f0
xor eax, eax
jmp 0x4114f4
push str.DEFLATEDATA
push 0x41acf0
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
push 0x38
lea eax, [ebp - 0x48]
push esi
push eax
call sub.CRTDLL.dll_memset
push 0x38
push str.1.1.3
lea eax, [ebp - 0x48]
push 0xfffffffffffffff1
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.0040d340
mov eax, dword [ebp - 0xc]
push 4
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x44], 0x1bfb
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
call fcn.0040d441
lea eax, [ebp - 0x48]
push eax
call fcn.0040d302
add esp, 0x28
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 8], 2
jne 0x41148d
push esi
push 0x1bc0
push edi
push str.SFX1632S.DLL
call fcn.004112a5
add esp, 0x10
mov dword [ebp - 4], eax
push 1
pop ebx
cmp dword [ebp - 8], ebx
jne 0x4114d7
push esi
lea eax, [edi + 0x1bc0]
push 0x1cc0
push eax
push str.SFX16T95.DLL
call fcn.004112a5
add esp, 0x10
test eax, eax
je 0x4114d4
push esi
lea eax, [edi + 0x3880]
push 0x1600
push eax
push str.SFX32T95.DLL
call fcn.004112a5
add esp, 0x10
mov dword [ebp - 4], ebx
test eax, eax
jne 0x4114d7
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413986
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414ec8
push 0x413adc
push eax
mov eax, dword [0x41ad9c]
mov dword fs:[0], esp
mov ecx, dword [sym.imp.CRTDLL.dll__fmode_dll]
sub esp, 0x6c
mov dword [ecx], eax
mov edx, dword [0x41ad98]
mov eax, dword [sym.imp.CRTDLL.dll__commode_dll]
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [eax], edx
call fcn.00413ad2
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
push dword [0x41ad94]
push edx
push eax
lea ecx, [ebp - 0x30]
push ecx
call sub.CRTDLL.dll___GetMainArgs
add esp, 0x10
push 0x4142f0
push 0x4142ec
call sub.CRTDLL.dll__initterm
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.CRTDLL.dll__acmdln_dll]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x413a21
mov al, byte [ebp - 0x34]
inc esi
mov al, byte [esi]
test al, al
je 0x413a19
cmp al, 0x22
jne 0x413a0e
cmp byte [esi], 0x22
jne 0x413a2b
inc esi
jmp 0x413a2b
cmp al, 0x20
jbe 0x413a2b
inc esi
cmp byte [esi], 0x20
ja 0x413a25
cmp byte [esi], 0
je 0x413a3b
cmp byte [esi], 0x20
ja 0x413a3b
inc esi
cmp byte [esi], 0
jne 0x413a30
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x50], 1
mov eax, 0xa
je 0x413a5b
movzx eax, word [ebp - 0x4c]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call sub.CRTDLL.dll_exit
jmp 0x413a97
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401300
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi]
mov eax, dword [ecx + 0x40]
test al, 2
jne 0x40135b
test eax, 0x800
mov eax, dword [esi + 4]
je 0x401319
add eax, 0xc
push eax
push ecx
call fcn.00407220
mov eax, dword [esi]
add esp, 8
test dword [eax + 0x40], 0x800
jne 0x40135b
mov ecx, dword [esi + 4]
mov edx, dword [eax + 0x2c]
push 0
push 0x18
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x40135b
push 0x16c
push str..._srcClient.cpp
push 0x41d310
call fcn.00401b20
add esp, 0xc
pop esi
ret

Function at 0x401360
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
push eax
call fcn.00408e90
mov eax, dword [edi]
mov esi, dword [eax + 0x40]
and esi, 0x800
neg esi
sbb esi, esi
add eax, 0x78
neg esi
push eax
add esi, 1
call fcn.00408c60
add esp, 8
neg eax
sbb eax, eax
push 0
and eax, 0x15
add eax, 2
push esi
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [edi]
mov dword [ecx + 0x2c], eax
mov edx, dword [edi]
cmp dword [edx + 0x2c], 0xffffffff
jne 0x4013c4
push 0x18a
push str..._srcClient.cpp
push str.socket
call fcn.00401b20
add esp, 0xc
mov eax, dword [edi]
push eax
call fcn.00404070
mov ecx, dword [edi]
push ecx
call fcn.00408f10
mov eax, dword [edi]
add esp, 8
cmp dword [eax + 8], 0
je 0x40141e
mov esi, eax
lea edx, [esi + 0x100]
push edx
call fcn.00408c40
mov ecx, dword [esi + 0x2c]
add esp, 4
push eax
lea eax, [esi + 0x100]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40141e
push 0x194
push str..._srcClient.cpp
push str.bind
call fcn.00401b20
add esp, 0xc
mov esi, dword [edi]
mov edx, esi
add edx, 0x78
push edx
call fcn.00408c40
mov ecx, dword [esi + 0x2c]
add esp, 4
push eax
lea eax, [esi + 0x78]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401459
push 0x19a
push str..._srcClient.cpp
push str.connect
call fcn.00401b20
add esp, 0xc
mov eax, dword [edi]
lea edx, [eax + 0x180]
push edx
mov edx, dword [eax + 0x2c]
lea ecx, [eax + 0x100]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
mov edi, dword [edi]
mov edx, dword [edi + 0x2c]
lea eax, [edi + 0xf8]
push eax
lea ecx, [edi + 0x78]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_getpeername]
pop edi
pop esi
ret
Function at 0x401490
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_select]
push esi
push edi
mov esi, ecx
xor edi, edi
lea ebx, [ebx]
cmp edi, 0xa
jge 0x401561
mov eax, dword [esi]
mov ecx, dword [eax + 0x34]
mov edx, dword [esi + 4]
mov eax, dword [eax + 0x2c]
push 0
push ecx
push edx
push eax
add edi, 1
call ebx
mov eax, dword [esi]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x10]
push edx
push ecx
push ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x3d090
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 0x24]
push ecx
add edx, 1
push edx
call ebp
cmp eax, 0xffffffff
je 0x401511
test eax, eax
je 0x4014b0
jmp 0x401530
push 0x1bb
push str..._srcClient.cpp
push str.select
call fcn.00401b20
mov eax, dword [esi]
push eax
call fcn.004096f0
add esp, 0x10
mov eax, dword [esi]
mov ecx, dword [eax + 0x34]
mov edx, dword [esi + 4]
mov eax, dword [eax + 0x2c]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jge 0x401589
push 0x1c3
push str..._srcClient.cpp
push str.read
call fcn.00401b20
add esp, 0xc
mov eax, dword [esi]
mov ecx, dword [eax + 0x2c]
push edi
push ecx
push str.__3d__WARNING:_did_not_receive_ack_of_last_datagram_after__d_tries._n
call fcn.00409f74
add eax, 0x40
push eax
call fcn.00409e25
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
cmp eax, 0x34
jl 0x40157e
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 0xc
push ecx
push edx
call fcn.004053a0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x401c40
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x401c72
push eax
call fcn.0040a4b4
add esp, 4
test eax, eax
jne 0x401c72
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x30]
mov edx, dword [esp + 8]
push eax
push ecx
push 1
push edx
call fcn.0040a77f
add esp, 0x10
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x402fc0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
push eax
call fcn.00408f10
mov eax, dword [edi + 8]
mov esi, dword [eax + 0x40]
and esi, 0x800
neg esi
sbb esi, esi
add eax, 0x100
neg esi
push eax
add esi, 1
call fcn.00408c60
mov ecx, dword [edi + 8]
mov ebx, eax
neg ebx
sbb ebx, ebx
add ecx, 0x100
and ebx, 0x15
push ecx
add ebx, 2
call fcn.00408c70
add esp, 0xc
test eax, eax
je 0x403037
push 0x14
push 0
push 0
push 0
push esi
push ebx
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edx, dword [edi + 8]
mov dword [edx + 0x2c], eax
mov eax, dword [edi + 8]
cmp dword [eax + 0x2c], 0xffffffff
jne 0x403067
push 0x136
jmp 0x403055
push 0
push esi
push ebx
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [edi + 8]
mov dword [ecx + 0x2c], eax
mov edx, dword [edi + 8]
cmp dword [edx + 0x2c], 0xffffffff
jne 0x403067
push 0x13c
push str..._srcListener.cpp
push str.socket
call fcn.00401b20
add esp, 0xc
mov eax, dword [edi + 8]
push eax
call fcn.00404070
mov edx, dword [edi + 8]
add esp, 4
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
mov dword [esp + 0x18], 1
mov eax, dword [edx + 0x2c]
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [edi + 8]
add ecx, 0x100
push ecx
call fcn.00408c70
add esp, 4
test eax, eax
mov eax, dword [edi + 8]
je 0x4030e7
mov edx, dword [eax + 0x180]
push 4
push 0
push 0
push 0
push 0
push edx
mov edx, dword [eax + 0x2c]
lea ecx, [eax + 0x100]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAJoinLeaf]
cmp eax, 0xffffffff
jne 0x40311b
push 0x14b
push str..._srcListener.cpp
push str.WSAJoinLeaf__aka_bind_
jmp 0x403113
mov ecx, dword [eax + 0x180]
push ecx
lea edx, [eax + 0x100]
mov eax, dword [eax + 0x2c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40311b
push 0x150
push str..._srcListener.cpp
push str.bind
call fcn.00401b20
add esp, 0xc
mov edi, dword [edi + 8]
test dword [edi + 0x40], 0x800
jne 0x40314f
mov ecx, dword [edi + 0x2c]
push 5
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x40314f
push 0x156
push str..._srcListener.cpp
push str.listen
call fcn.00401b20
add esp, 0xc
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x403160
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
test dword [edi + 0x40], 0x800
lea ebx, [edi + 0xf8]
mov esi, ecx
mov dword [ebx], 0x80
mov dword [edi + 0x2c], 0xffffffff
lea ebp, [edi + 0x78]
je 0x403266
lea ecx, [ecx]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
lea ecx, [edi + 0xf8]
push ecx
mov ecx, dword [eax + 0x34]
mov eax, dword [eax + 0x2c]
push ebp
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x4031d4
push 0x1af
push str..._srcListener.cpp
push str.recvfrom
call fcn.00401b20
mov ecx, dword [esi + 8]
push ecx
call fcn.004096f0
add esp, 0x10
mov edx, dword [0x42551c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x425520]
push eax
push ebp
call fcn.00402e40
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
add esp, 8
push edx
mov ebx, eax
call dword [sym.imp.WS2_32.dll_ntohl]
test ebx, ebx
jne 0x403247
test eax, eax
jl 0x403247
mov ecx, dword [edi + 0xf8]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x2c]
push ecx
push ebp
push eax
mov dword [edi + 0x2c], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40324e
push 0x1ba
push str..._srcListener.cpp
push str.connect_UDP
call fcn.00401b20
mov edx, dword [esi + 8]
push edx
call fcn.004096f0
add esp, 0x10
jmp 0x40324e
mov dword [edi + 0x2c], 0xffffffff
mov eax, dword [0x42551c]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [edi + 0x2c], 0xffffffff
je 0x403190
jmp 0x403288
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x2c]
push ebx
push ebp
push edx
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
mov dword [edi + 0x2c], eax
jne 0x403282
call fcn.0040aa3d
cmp dword [edi + 0x2c], 0xffffffff
je 0x403266
mov ecx, dword [edi + 0x2c]
lea eax, [edi + 0x180]
push eax
mov dword [eax], 0x80
lea eax, [edi + 0x100]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
pop edi
pop esi
pop ebp
pop ebx
ret 4