joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b880
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x620330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
lea eax, [ebp + 8]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404720
lea ecx, [ebp - 0x1c]
call fcn.0043b130
mov eax, dword [ebp - 0x18]
add esp, 0x18
mov ebx, dword [ebp - 0x1c]
xor edi, edi
sub eax, ebx
sar eax, 2
mov dword [ebp - 0x20], eax
test eax, eax
je 0x43b945
lea esp, [esp]
push dword [ebx + edi*4]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x20]
jb 0x43b920
test ebx, ebx
je 0x43b952
push ebx
call fcn.00446271
add esp, 4
cmp dword [ebp + 0x1c], 0x10
jb 0x43b963
push dword [ebp + 8]
call fcn.00446271
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056bc07
mov esp, ebp
pop ebp
ret

Function at 0x43b980
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a73e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x620330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.0043b6d0
mov ebx, dword [ebp - 0x18]
xor edi, edi
mov eax, dword [ebp - 0x1c]
sub ebx, eax
sar ebx, 2
test ebx, ebx
je 0x43ba17
nop
push dword [eax + edi*4]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
inc edi
cmp edi, ebx
jb 0x43b9f0
test eax, eax
je 0x43ba24
push eax
call fcn.00446271
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056bc07
mov esp, ebp
pop ebp
ret
Function at 0x43ba40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab178
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x620330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
lea eax, [ebp + 8]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404720
call fcn.00424f80
add esp, 0x18
test al, al
je 0x43bc1a
cmp dword [ebp + 0x1c], 0x10
lea esi, [ebp + 8]
cmovae esi, dword [ebp + 8]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43bab8
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
sub ecx, edx
push 0
push 0
lea eax, [ecx + 1]
push eax
push esi
push 0
push 0
call edi
mov edx, eax
mov eax, esi
lea ebx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43bae0
push edx
sub eax, ebx
lea ecx, [ebp - 0x218]
push ecx
inc eax
push eax
push esi
push 0
push 0
call edi
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404720
lea ecx, [ebp - 0x438]
call fcn.00426340
add esp, 0x18
lea esi, [ebp - 0x438]
cmp dword [ebp - 0x424], 0x10
cmovae esi, dword [ebp - 0x438]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43bb44
push 0
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
push esi
push 0
push 0
call edi
mov edx, eax
mov eax, esi
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43bb63
push edx
sub eax, ebx
lea ecx, [ebp - 0x420]
push ecx
inc eax
push eax
push esi
push 0
push 0
call edi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x474], 0x3c
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x474]
push eax
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x458], 5
mov dword [ebp - 0x454], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 0x424], 0x10
jb 0x43bbff
push dword [ebp - 0x438]
call fcn.00446271
add esp, 4
mov dword [ebp - 0x424], 0xf
mov dword [ebp - 0x428], 0
mov byte [ebp - 0x438], 0
cmp dword [ebp + 0x1c], 0x10
jb 0x43bc2b
push dword [ebp + 8]
call fcn.00446271
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056bc07
mov esp, ebp
pop ebp
ret
Function at 0x43bed0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab1f8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x620330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x6218e8], 0x10
mov ecx, 0x6218d4
push 0
cmovae ecx, dword [0x6218d4]
mov edx, 0x5f426d
mov dword [ebp - 0x5c], 0
call fcn.00405e40
add esp, 4
test eax, eax
jne 0x43bf33
cmp dword [0x6218e4], eax
setne al
test eax, eax
sete al
test al, al
sete al
test al, al
je 0x43bf65
push 0xffffffffffffffff
push 0
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push 0x6218d4
mov byte [esi], 0
call fcn.00404720
jmp 0x43c0ba
cmp dword [0x630224], 1
jne 0x43bfec
xorps xmm0, xmm0
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x58]
movlpd qword [ebp - 0x68], xmm0
call fcn.0043c2d0
mov edx, 0x5f426d
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.004115c0
test al, al
je 0x43bfd4
mov edx, 0x5f7fc4
lea ecx, [ebp - 0x58]
call fcn.004115c0
test al, al
je 0x43bfd4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
mov ecx, 0x6218d4
push eax
call fcn.00404720
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.00404450
lea ecx, [ebp - 0x58]
call fcn.004044c0
jmp 0x43c0ba
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x44], 0x10
jb 0x43bfec
push dword [ebp - 0x58]
call fcn.00446271
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.0043ab00
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov edx, 0x5f426d
push 0
cmovae ecx, dword [ebp - 0x28]
call fcn.00405e40
add esp, 4
test eax, eax
jne 0x43c021
cmp dword [ebp - 0x18], eax
setne al
test eax, eax
sete al
test al, al
jne 0x43c043
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43c043
test al, 0x10
jne 0x43c052
push 2
push 0x5f7fc8
lea ecx, [ebp - 0x28]
call fcn.00404b60
push 0x5f6a1c
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.004098c0
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
mov ecx, 0x6218d4
call fcn.00404720
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00404450
cmp dword [ebp - 0x2c], 0x10
jb 0x43c097
push dword [ebp - 0x40]
call fcn.00446271
add esp, 4
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x43c0ba
push dword [ebp - 0x28]
call fcn.00446271
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056bc07
mov esp, ebp
pop ebp
ret
Function at 0x43c0e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab22b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x620330]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1d0], edx
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1bc]
push 0
push 0x5f426d
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x1a8], 0xf
mov dword [ebp - 0x1ac], 0
mov byte [ebp - 0x1bc], 0
call fcn.00404b60
push esi
push 1
lea ecx, [ebp - 0x1bc]
mov dword [ebp - 4], 0
call fcn.00423bc0
push 2
push 0x5f7fcc
lea ecx, [ebp - 0x1bc]
call fcn.00404630
cmp dword [ebp - 0x1a8], 0x10
lea esi, [ebp - 0x1bc]
cmovae esi, dword [ebp - 0x1bc]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43c190
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
sub eax, edx
push 0
push 0
inc eax
push eax
push esi
push 0
push 0
call edi
mov edx, eax
mov eax, esi
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43c1b3
push edx
sub eax, ebx
lea ecx, [ebp - 0x1a4]
push ecx
inc eax
push eax
push esi
push 0
push 0
call edi
cmp dword [ebp - 0x1a8], 0x10
lea ecx, [ebp - 0x1cc]
push ecx
lea ecx, [ebp - 0x1c4]
push ecx
lea ecx, [ebp - 0x1c0]
push ecx
lea ecx, [ebp - 0x1c8]
lea eax, [ebp - 0x1bc]
cmovae eax, dword [ebp - 0x1bc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov edi, dword [ebp - 0x1c0]
mov ebx, eax
mov eax, dword [ebp - 0x1d4]
mov esi, dword [ebp - 0x1c8]
push 0
push edi
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x1d0]
mov dword [eax + 4], 0
push dword [eax + 4]
mov dword [eax], esi
push esi
call fcn.00572ab0
mov ecx, dword [ebp - 0x1d0]
push edx
push eax
push 0
push dword [ebp - 0x1cc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.00572ab0
mov ecx, dword [ebp - 0x1d0]
push 0
push edi
mov dword [ecx], eax
mov eax, dword [ebp - 0x1d4]
mov dword [ecx + 4], edx
mov dword [eax], esi
mov esi, eax
mov dword [esi + 4], 0
push dword [esi + 4]
push dword [esi]
call fcn.00572ab0
push edx
push eax
push 0
push dword [ebp - 0x1c4]
call fcn.00572ab0
cmp dword [ebp - 0x1a8], 0x10
mov dword [esi], eax
mov dword [esi + 4], edx
jb 0x43c2ae
push dword [ebp - 0x1bc]
call fcn.00446271
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056bc07
mov esp, ebp
pop ebp
ret
Function at 0x43f960
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x620330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x18]
mov esi, ecx
mov dword [ebp - 0x218], eax
test edi, edi
je 0x43fa82
lea eax, [ebp - 0x210]
push eax
push 0x5f09bc
push 1
push 0
push 0x5f0cac
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x43fa82
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x5f0d0c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x43fa76
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
test esi, esi
jne 0x43f9ed
push dword [0x62cc1c]
jmp 0x43f9ee
push esi
push eax
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x218]
test edx, edx
je 0x43fa09
mov eax, dword [ebp - 0x210]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x210]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, dword [ebp - 0x21c]
test edx, edx
je 0x43fa30
mov eax, dword [ebp - 0x210]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test ebx, ebx
je 0x43fa4f
push ebx
push edi
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call fcn.0056ebd8
add esp, 0x10
jmp 0x43fadb
push 0x5c
test esi, esi
je 0x43fa58
push esi
jmp 0x43fa5e
push dword [0x62cc1c]
call fcn.0056e964
add esp, 8
test eax, eax
jne 0x43fa95
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056bc07
mov esp, ebp
pop ebp
ret
push eax
push edi
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call fcn.0056ebd8
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43fab4
sub ecx, edx
mov eax, 0x6b
sar ecx, 1
mov dword [ebp + ecx*2 - 0x212], 0x6e006c
mov word [ebp + ecx*2 - 0x20e], ax
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x214]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
setns al
xor ecx, ebp
pop esi
pop ebx
call fcn.0056bc07
mov esp, ebp
pop ebp
ret
Function at 0x43fe40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x620330]
xor eax, esp
mov dword [esp + 0x230], eax
push esi
mov esi, ecx
mov dword [esp + 8], 0
xor ecx, ecx
jmp 0x43fe70
movzx eax, word [ecx + 0x5f80bc]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x26], ax
test ax, ax
jne 0x43fe70
lea eax, [esp + 0xc]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x43fecb
push 0
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push 0x5f426d
mov byte [esi], 0
call fcn.00404b60
mov eax, esi
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0056bc07
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x43fef4
xor ecx, ecx
movzx eax, word [ecx + 0x5f80bc]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x26], ax
test ax, ax
jne 0x43fee0
push dword [esp + 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x10]
call fcn.004208e0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00404450
cmp dword [esp + 0x24], 0x10
jb 0x43ff2a
push dword [esp + 0x10]
call fcn.00446271
add esp, 4
mov ecx, dword [esp + 0x234]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0056bc07
mov esp, ebp
pop ebp
ret

Function at 0x440900
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp byte [ecx + 0x61], 0
jne 0x440915
cmp byte [ecx + 0x60], 0
je 0x440915
mov byte [ecx + 0x60], 0
jmp fcn.00440920
ret
Function at 0x4415e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa1e9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x620330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0
call fcn.0040b040
xor eax, eax
mov dword [ebp - 4], 0
cmp byte [esi + 0x4e], al
push 4
setne al
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 6
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0x5f426d
lea ecx, [edi + 4]
mov byte [edi], 1
call fcn.00404b60
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056bc07
mov esp, ebp
pop ebp
ret 4
Function at 0x445c00
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp byte [ecx + 0x2d], 0
jne 0x445c15
cmp byte [ecx + 0x2c], 0
je 0x445c15
mov byte [ecx + 0x2c], 0
jmp fcn.00445c20
ret
Function at 0x445c20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5abd26
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x620330]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x620330]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x2d], 0
jne 0x445e65
cmp byte [esi + 0x2c], 0
jne 0x445e65
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [esp + 0x4c], 0x10
mov word [esp + 0x52], ax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x54]
push eax
push 0
push dword [esi + 0x7c]
push dword [esi + 0x80]
push dword [esi + 0x28]
call dword [sym.imp.WS2_32.dll_recvfrom]
push dword [esp + 0x54]
mov edi, eax
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [esp + 0x52]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [esp + 0x14], eax
test edi, edi
js 0x445ceb
push eax
mov eax, dword [esi + 4]
push ebx
push edi
push dword [esi + 0x80]
push esi
call eax
add esp, 0x14
jmp 0x445e5b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2746
jne 0x445d9f
lea ecx, [esp + 0x60]
call fcn.00405ea0
mov dword [esp + 0xb8], 0
lea ecx, [esp + 0x34]
mov edx, edi
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], edi
mov byte [esp + 0x68], 0
call fcn.00405740
push eax
mov edx, str.recvfrom_error:
mov byte [esp + 0xbc], 1
lea ecx, [esp + 0x20]
call fcn.004059d0
add esp, 4
lea ecx, [esp + 0x6c]
push eax
call fcn.004097a0
lea ecx, [esp + 0x1c]
call fcn.004044c0
lea ecx, [esp + 0x34]
mov byte [esp + 0xb8], 0
call fcn.004044c0
cmp byte [esi + 0x2d], 0
jne 0x445d96
cmp dword [esi + 8], 0
je 0x445d96
push dword [esp + 0x14]
lea eax, [esp + 0x64]
push ebx
sub esp, 0x24
mov ecx, esp
push eax
call fcn.00406640
mov eax, dword [esi + 8]
push esi
call eax
add esp, 0x30
lea ecx, [esp + 0x60]
jmp 0x445e56
cmp edi, 0x2733
je 0x445e5b
lea ecx, [esp + 0x84]
call fcn.00405ea0
mov dword [esp + 0xb8], 2
lea ecx, [esp + 0x1c]
mov edx, edi
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], edi
mov byte [esp + 0x8c], 1
call fcn.00405740
push eax
mov edx, str.recvfrom_error:
mov byte [esp + 0xbc], 3
lea ecx, [esp + 0x38]
call fcn.004059d0
add esp, 4
lea ecx, [esp + 0x90]
push eax
call fcn.004097a0
lea ecx, [esp + 0x34]
call fcn.004044c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb8], 2
call fcn.004044c0
cmp byte [esi + 0x2d], 0
jne 0x445e4f
cmp dword [esi + 0xc], 0
je 0x445e4f
sub esp, 0x24
lea eax, [esp + 0xa8]
mov ecx, esp
push eax
call fcn.00406640
mov eax, dword [esi + 0xc]
push esi
call eax
add esp, 0x28
lea ecx, [esp + 0x84]
call fcn.00406610
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0056bc07
mov esp, ebp
pop ebp
ret
Function at 0x445e90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5abd70
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x620330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x2d], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x48], ebx
jne 0x446083
lea eax, [edi + 0x4c]
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x14]
mov eax, 2
mov word [ebp - 0x44], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0x10]
mov word [ebp - 0x42], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
push 0
push dword [ebp + 0xc]
push ebx
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x44607a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x445f72
xor esi, esi
jmp 0x445f30
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
lea eax, [ebp - 0x44]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x48]
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x44607a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x445f72
inc esi
cmp esi, 0xa
jl 0x445f30
jmp 0x44607a
push 0
push 0x5f426d
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00404b60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x7c]
mov edx, ebx
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x2c], 1
call fcn.00405740
push eax
mov edx, str.sendto_error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.004059d0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x44600e
cmp dword [ebp - 0x14], 0x10
jb 0x445ff3
push dword [ebp - 0x28]
call fcn.00446271
add esp, 4
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00404510
cmp dword [ebp - 0x50], 0x10
jb 0x44601f
push dword [ebp - 0x64]
call fcn.00446271
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x68], 0x10
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
jb 0x446046
push dword [ebp - 0x7c]
call fcn.00446271
add esp, 4
cmp byte [edi + 0x2d], 0
jne 0x446069
cmp dword [edi + 0xc], 0
je 0x446069
sub esp, 0x24
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00406640
mov eax, dword [edi + 0xc]
push edi
call eax
add esp, 0x28
cmp dword [ebp - 0x14], 0x10
jb 0x44607a
push dword [ebp - 0x28]
call fcn.00446271
add esp, 4
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056bc07
mov esp, ebp
pop ebp
ret 0x10