joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100447f7
Capabilities:
Compare security identifiers
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10044826
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10044824
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
jmp 0x10044833
push 0x263a
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esp, ebp
pop ebp
ret

Function at 0x1004630e
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10046328
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
jmp 0x10046373
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10046356
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 3
jge 0x10046373
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10008f1c
mov dword [eax], 0xf767
jmp 0x1004634b
mov esp, ebp
pop ebp
ret
Function at 0x100489d9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0x6afa
push 0x149d
push 1
lea eax, [ebp + 8]
push eax
call fcn.10048920
add esp, 0x14
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10048a13
xor eax, eax
jmp 0x10048b35
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10048a31
xor eax, eax
jmp 0x10048b35
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 0xe8d
push 0x355d
push 1
push 0x12e7
call fcn.10048689
add esp, 0x18
cmp dword [ebp - 0xc], 0
jne 0x10048a5e
xor eax, eax
jmp 0x10048b35
push 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x5e9b
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.100487c3
add esp, 0x1c
push 0
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.100443ae
add esp, 0x10
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x10048ab5
push dword [ebp - 0x14]
push 1
push dword [ebp - 4]
push 0x1ac0
call fcn.10044837
add esp, 0x10
push dword [ebp - 4]
call fcn.10048199
pop ecx
test eax, eax
jne 0x10048ac6
xor eax, eax
jmp 0x10048b35
push dword [ebp - 4]
push 0
push 0x16c3
call fcn.10046852
add esp, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10048b1d
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x10048af7
xor eax, eax
jmp 0x10048b35
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10048b10
xor eax, eax
jmp 0x10048b35
lea eax, [ebp - 4]
push eax
push 1
call fcn.100489a1
pop ecx
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10048b2e
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10048b32
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret

Function at 0x1004c560
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 5]
and ecx, 0xf
movzx edx, byte [0x10666b49]
or ecx, edx
mov byte [ebp - 1], cl
movzx ax, byte [ebp - 1]
movzx ecx, ax
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 4]
push ecx
push 0x10666bc8
call fcn.1004b7f0
add esp, 8
mov esp, ebp
pop ebp
ret 4
Function at 0x10056990
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1007a5c0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20], ax
xor ecx, ecx
mov word [ebp - 0x1e], cx
cmp dword [ebp + 8], 0xffffffff
jne 0x100569b4
jmp 0x10056a23
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x100569c8
jmp 0x10056a23
movsx ecx, word [ebp - 0x1c]
movsx edx, word [ebp - 0x1a]
imul ecx, edx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0x20
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
jne 0x100569f4
jmp 0x10056a23
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
movzx ecx, word [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x10056a15
jmp 0x10056a23
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call main
mov esp, ebp
pop ebp
ret
Function at 0x10070750
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1007a5c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10060cb4
mov dword [ebp - 0x14], eax
cmp dword [0x10667c68], esi
jne 0x10070843
push 0x800
push esi
push 0x1000795c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x100707d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10070923
push esi
push esi
push 0x1000795c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10070923
push 0x10007974
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10070923
push eax
call ebx
push 0x10007980
push edi
mov dword [0x10667c68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007990
push edi
mov dword [0x10667c6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100079a4
push edi
mov dword [0x10667c70], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10667c78], eax
test eax, eax
je 0x10070840
push 0x100079c0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10667c74], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10070868
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007085b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007087d
push 4
pop eax
jmp 0x10070925
cmp dword [ebp - 0x14], esi
je 0x1007087d
push dword [0x10667c68]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10070862
mov eax, dword [0x10667c74]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x100708db
cmp dword [0x10667c78], edi
je 0x100708db
push eax
call ebx
push dword [0x10667c78]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x100708db
test eax, eax
je 0x100708db
call ecx
test eax, eax
je 0x100708d0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x100708d0
test byte [ebp - 8], 1
jne 0x100708db
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007090b
mov eax, dword [0x10667c6c]
cmp eax, edi
je 0x10070908
push eax
call ebx
test eax, eax
je 0x10070908
call eax
mov esi, eax
test esi, esi
je 0x10070908
mov eax, dword [0x10667c70]
cmp eax, edi
je 0x10070908
push eax
call ebx
test eax, eax
je 0x10070908
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10667c68]
call ebx
test eax, eax
je 0x10070923
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10070925
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x4060cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4060ef
xor eax, eax
test eax, eax
je 0x406101
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406101
xor ecx, ecx
jmp 0x406104
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4061ae
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a0ad4], 0
push esi
jne 0x4061e5
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4061bf
mov dword [ecx*4 + 0x7a0ad0], eax
inc ecx
cmp ecx, 0x100
jl 0x4061ba
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406216
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a0ad0]
xor eax, esi
inc ecx
dec edx
jne 0x4061f8
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4029a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], edx
push esi
mov esi, ecx
push edi
test ebx, ebx
jne 0x4029c0
mov dword [esi], 1
jmp 0x402a8a
push 2
push 0
push 0
push ebx
call fcn.0041c1ae
push ebx
call fcn.0041bc57
add esp, 0x14
mov dword [ebp - 4], edx
mov edi, eax
push 0
push 0
push 0
push ebx
call fcn.0041c1ae
mov eax, dword [ebp - 4]
add esp, 0x10
test eax, eax
jg 0x402a00
jl 0x4029f6
test edi, edi
jae 0x402a00
mov eax, 2
jmp 0x402a88
xor ecx, ecx
cmp ecx, eax
jne 0x402a83
lea eax, [edi + 1]
push eax
mov dword [ebp - 4], eax
call fcn.0041c40e
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x402a23
mov dword [esi], 3
jmp 0x402a8a
push dword [ebp + 8]
push edi
push 1
push ebx
call fcn.0041be44
add esp, 0x10
cmp eax, edi
je 0x402a47
push ebx
call fcn.0041b68a
add esp, 4
mov dword [esi], 2
jmp 0x402a8a
push edi
mov edx, ebx
xor ecx, ecx
call fcn.00401880
add esp, 4
cmp eax, 1
jne 0x402a60
mov byte [edi + ebx], 0
mov edi, dword [ebp - 4]
push dword [ebp + 0x14]
sub esp, 8
push eax
mov eax, dword [ebp - 8]
mov edx, eax
push ecx
push edi
push ebx
push eax
mov ecx, esi
call fcn.004028a0
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 3
mov dword [esi], eax
pop edi
mov dword [esi + 4], 0
mov eax, esi
mov dword [esi + 8], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f93c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5c
mov eax, dword [0x443070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x64], esi
mov dword [esi + 0xc], 0
lea ecx, [esi + 0x30]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 0x68], esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
call fcn.00404970
lea ecx, [esi + 0x70]
mov dword [ebp - 4], 0
call fcn.00404970
mov byte [ebp - 4], 1
lea eax, [ebp - 0x60]
mov dword [esi], 0x41f00000
mov ecx, esi
mov dword [esi + 4], 0x42de0000
mov dword [esi + 8], 0x41a80000
push eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
call fcn.004045b0
push fcn.004011a0
push 4
push 0x10
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push eax
call fcn.00412d94
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00412858
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x404490
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f9a6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5c
mov eax, dword [0x443070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mulss xmm1, dword [0x43ce94]
push ecx
movss xmm0, dword [ebx + 8]
lea ecx, [ebp - 0x60]
movss dword [esp], xmm0
call fcn.00404a20
mov edx, eax
add esp, 4
mov ecx, dword [edx]
mov dword [esi + 0x30], ecx
mov ecx, dword [edx + 4]
mov dword [esi + 0x34], ecx
mov ecx, dword [edx + 8]
mov dword [esi + 0x38], ecx
mov ecx, dword [edx + 0xc]
mov dword [esi + 0x3c], ecx
mov eax, dword [edx + 0x10]
mov dword [esi + 0x40], eax
mov eax, dword [edx + 0x14]
mov dword [esi + 0x44], eax
mov eax, dword [edx + 0x18]
mov dword [esi + 0x48], eax
mov eax, dword [edx + 0x1c]
mov dword [esi + 0x4c], eax
mov eax, dword [edx + 0x20]
mov dword [esi + 0x50], eax
mov eax, dword [edx + 0x24]
mov dword [esi + 0x54], eax
mov eax, dword [edx + 0x28]
mov dword [esi + 0x58], eax
mov eax, dword [edx + 0x2c]
mov dword [esi + 0x5c], eax
mov eax, dword [edx + 0x30]
mov dword [esi + 0x60], eax
mov eax, dword [edx + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [edx + 0x38]
mov dword [esi + 0x68], eax
mov eax, dword [edx + 0x3c]
mov dword [esi + 0x6c], eax
push fcn.004011a0
push 4
push 0x10
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0
push eax
call fcn.00412d94
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00412858
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x4045b0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f9d6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x443070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
movss xmm0, dword [esi + 8]
mulss xmm0, dword [0x43ce94]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x80], 0
movss dword [ebp - 0x64], xmm0
cvtps2pd xmm0, xmm0
call fcn.0042e940
movss xmm1, dword [esi]
cvtsd2ss xmm0, xmm0
mulss xmm1, xmm0
movss xmm0, dword [ebp - 0x64]
cvtps2pd xmm0, xmm0
movss dword [ebp - 0x6c], xmm1
call fcn.0042e780
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esi]
movss dword [ebp - 0x64], xmm0
movss xmm0, dword [esi + 4]
mulss xmm0, dword [0x43ce94]
movss dword [ebp - 0x68], xmm0
cvtps2pd xmm0, xmm0
call fcn.0042e780
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [ebp - 0x64]
movss dword [ebp - 0x70], xmm0
movss xmm0, dword [ebp - 0x68]
cvtps2pd xmm0, xmm0
call fcn.0042e940
movss xmm2, dword [esi + 0x20]
lea eax, [esi + 0x18]
movss xmm1, dword [eax + 4]
lea ecx, [ebp - 0x7c]
addss xmm1, dword [ebp - 0x6c]
cvtsd2ss xmm0, xmm0
lea edx, [esi + 0xc]
mov dword [ebp - 0x7c], 0
push ecx
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x78], 0x3f800000
mov dword [ebp - 0x74], 0
mulss xmm0, dword [ebp - 0x64]
addss xmm2, xmm0
movss xmm0, dword [eax]
addss xmm0, dword [ebp - 0x70]
movss dword [edx + 4], xmm1
movss dword [edx + 8], xmm2
movss dword [edx], xmm0
call fcn.00404b00
mov ecx, eax
add esp, 8
add esi, 0x70
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ecx + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [ecx + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [ecx + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [ecx + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [ecx + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ecx + 0x3c]
mov dword [esi + 0x3c], eax
push fcn.004011a0
push 4
push 0x10
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0
push eax
call fcn.00412d94
push esi
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.004048e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00412858
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x4071c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x443070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
push edi
push str._nInitialising_Winsock...
mov byte [esi + 4], 0
call fcn.00407190
add esp, 4
lea eax, [ebp - 0x1ac]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x407217
call edi
push eax
push str.Failed._Error_Code_:__d_n
call fcn.00407190
add esp, 8
jmp 0x407224
push 0x43c5c0
call fcn.00407190
add esp, 4
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x407249
call edi
push eax
push str.Could_not_create_socket_:__d_n
call fcn.00407190
add esp, 8
jmp 0x407256
push str.Socket_created._n
call fcn.00407190
add esp, 4
cmp dword [ebp + 0x20], 0x10
mov eax, 2
mov word [ebp - 0x18], ax
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x18]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4072a6
call edi
push eax
push str.Connection_failed_:__d_n
call fcn.00407190
add esp, 8
jmp 0x4072b7
push str.Connection_is_established._n
call fcn.00407190
add esp, 4
mov byte [esi + 4], 1
mov bl, byte [esi + 4]
lea ecx, [ebp + 0xc]
call fcn.00403330
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412858
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4072e0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x443070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x38], ebx
push edi
mov dword [ebp - 0x3c], 0
cmp byte [esi + 4], 0
jne 0x40732c
push 0x1d
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
mov dword [ebx + 0x10], 0
push str.Connection_is_not_established
mov byte [ebx], 0
call fcn.004034b0
jmp 0x40743f
mov eax, 1
mov dword [ebp - 0x2c], 0x10000
push 0
mov word [ebp - 0x28], ax
mov dword [ebp - 0x26], eax
lea eax, [ebp - 0x2c]
push 0xb
push eax
push dword [esi]
mov byte [ebp - 0x22], 0
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xb
jae 0x40736c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Data_was_not_send:__d._n
call fcn.00407190
add esp, 8
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 0x30], 0
nop dword [eax]
lea eax, [ebp - 0x30]
push eax
push 0x4004667f
push dword [esi]
call edi
cmp dword [ebp - 0x30], 0xb
jb 0x407380
push 0
push 0xb
lea eax, [ebp - 0x2c]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebp - 0x26]
mov dword [ebp - 0x30], 0
lea eax, [ecx - 1]
test eax, eax
je 0x4073ce
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
push 0x4004667f
push dword [esi]
call edi
cmp dword [ebp - 0x30], ebx
jb 0x4073b6
mov ecx, dword [ebp - 0x26]
mov ebx, dword [ebp - 0x38]
lea eax, [ecx - 1]
push eax
call fcn.00412ee4
mov ecx, dword [ebp - 0x26]
add esp, 4
dec ecx
mov edi, eax
push 0
push ecx
push edi
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
cmp byte [edi], 0
jne 0x407407
xor ecx, ecx
jmp 0x407419
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407410
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x20]
call fcn.004034b0
push edi
call fcn.00412869
add esp, 4
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.004033a0
lea ecx, [ebp - 0x20]
call fcn.00403330
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412858
mov esp, ebp
pop ebp
ret 4