joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001ad30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
cmp dword [eax + 0x14], 0x10
jb 0x1001ad47
mov ecx, dword [eax]
mov dword [esp + 8], ecx
jmp 0x1001ad4b
mov dword [esp + 8], eax
mov edx, dword [eax + 0x10]
xor eax, eax
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x10174e8c]
push 0
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x14], edx
push 1
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1001ae00
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x1001ae00
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push ecx
push eax
push str.WSASend_failed:
push edx
call fcn.10002ad0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [0x10174e8c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [0x10174d84]
push ecx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ecx, dword [0x10174fd4]
push 0
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov esp, ebp
pop ebp
ret
Function at 0x1001b2e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x1005b034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
push 2
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x130]
push eax
push edi
mov dword [ebp - 0x134], edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1001b38c
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
nop
mov ecx, dword [ebp - 0x128]
push ecx
push 0
push 0x410
call edi
push 0x104
push 0x101758f8
push 0
push eax
call ebx
push esi
push 0x101758f8
call dword [sym.imp.MSVCR100.dll_strstr]
add esp, 8
test eax, eax
je 0x1001b36e
mov edx, dword [ebp - 0x128]
mov dword [0x10174c7c], edx
mov ecx, dword [ebp - 0x134]
lea eax, [ebp - 0x130]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1001b330
mov edi, dword [ebp - 0x134]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1003e6b0
mov esp, ebp
pop ebp
ret
Function at 0x1001b650
Capabilities:
Enumerate device drivers on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040866
mov eax, dword fs:[0]
push eax
mov eax, 0x1254
call fcn.1003f530
mov eax, dword [0x1005b034]
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
xor esi, esi
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], esi
mov byte [ebp - 0x23c], 0
lea eax, [ebp - 0x25c]
push eax
push 0x1000
lea ecx, [ebp - 0x1260]
push ecx
mov dword [ebp - 4], esi
call dword [sym.imp.PSAPI.DLL_EnumDeviceDrivers]
test eax, eax
je 0x1001b7c0
mov ebx, dword [ebp - 0x25c]
shr ebx, 2
cmp ebx, esi
jle 0x1001b7c0
mov edi, dword [sym.imp.PSAPI.DLL_GetDeviceDriverFileNameA]
jmp 0x1001b6e0
mov eax, dword [ebp + esi*4 - 0x1260]
push 0x104
lea edx, [ebp - 0x220]
push edx
push eax
call edi
test eax, eax
je 0x1001b7b5
push 0
lea ecx, [ebp - 0x118]
push ecx
push 0x104
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x1001b7b5
push 0xa
mov eax, str.__DRIVER_
lea ecx, [ebp - 0x23c]
call fcn.10008150
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001b740
sub eax, edx
push eax
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x23c]
call fcn.10008150
push 3
mov eax, 0x1004e708
lea ecx, [ebp - 0x23c]
call fcn.10008150
push 7
mov eax, 0x1004f0fc
lea ecx, [ebp - 0x23c]
call fcn.10008150
push 3
mov eax, 0x1004e708
lea ecx, [ebp - 0x23c]
call fcn.10008150
push 7
mov eax, 0x1004f0fc
lea ecx, [ebp - 0x23c]
call fcn.10008150
push 1
mov eax, 0x1004d950
lea ecx, [ebp - 0x23c]
call fcn.10008150
inc esi
cmp esi, ebx
jl 0x1001b6e0
xor esi, esi
mov eax, dword [ebp - 0x23c]
mov ebx, 0x10
cmp dword [ebp - 0x228], ebx
jae 0x1001b7d9
lea eax, [ebp - 0x23c]
mov ecx, eax
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], 0xf
mov byte [ebp - 0x258], 0
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1001b7f5
sub ecx, esi
mov edi, ecx
lea esi, [ebp - 0x258]
call fcn.10002d20
mov eax, esi
mov byte [ebp - 4], 1
call fcn.1001ad30
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp - 0x244], ebx
jb 0x1001b830
mov eax, dword [ebp - 0x258]
push eax
call esi
add esp, 4
cmp dword [ebp - 0x228], ebx
jb 0x1001b844
mov ecx, dword [ebp - 0x23c]
push ecx
call esi
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.1003e6b0
mov esp, ebp
pop ebp
ret
Function at 0x10021ef0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100414c8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1005b034]
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
xor ebx, ebx
lea edi, [ebx + 0x18]
mov eax, str.ataISf8BGjRKl0AC26bOw
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10002d20
mov eax, esi
push eax
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 4], ebx
call fcn.10002580
add esp, 8
mov esi, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], esi
jb 0x10021f67
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], esi
jae 0x10021f7f
lea eax, [ebp - 0x48]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
call fcn.10002420
add esp, 4
mov edi, eax
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.10003280
mov esi, 0x10
cmp dword [ebp - 0x50], esi
jb 0x10021fbf
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x34], esi
jb 0x10021fd1
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
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.1003e6b0
mov esp, ebp
pop ebp
ret
Function at 0x10022f40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100439c8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1005b034]
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
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [ebx + 0x18]
mov eax, str.iNeSXj596_c6rb8hJwQRew
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10002d20
mov eax, esi
push eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 1
call fcn.10002580
add esp, 8
mov edi, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], edi
jb 0x10022fbb
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x34], edi
jae 0x10022fd4
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x38]
push ecx
push eax
lea edx, [ebp + 8]
push edx
call fcn.10007540
cmp eax, 0xffffffff
je 0x100230b5
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x10022ff6
lea eax, [ebp + 8]
push 0x5b
push eax
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x1002300f
lea eax, [ebp + 8]
push 0x5d
push eax
call dword [sym.imp.MSVCR100.dll_strrchr]
add esp, 8
test ebx, ebx
je 0x100230b5
test eax, eax
je 0x100230b5
sub eax, ebx
lea esi, [eax - 1]
lea eax, [esi + 1]
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
push esi
inc ebx
push ebx
push eax
mov dword [0x101774d4], eax
call dword [sym.imp.MSVCR100.dll_strncpy]
mov ecx, dword [0x101774d4]
mov byte [ecx + esi], 0
mov edx, dword [0x101774d4]
add esp, 0xc
push edx
push 0x1004fbc0
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
lea eax, [ebp + 8]
push eax
or eax, 0xffffffff
xor ebx, ebx
mov ecx, 0x10173140
call fcn.100031a0
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
push ebx
push 0x1001ce10
push ebx
push ebx
call esi
cmp byte [0x1005e29b], bl
je 0x100230b5
cmp byte [0x1005e29a], bl
je 0x100230b5
push ebx
push ebx
push ebx
push 0x1001df40
push ebx
push ebx
call esi
mov byte [0x1005e29a], bl
cmp dword [ebp - 0x34], edi
jb 0x100230c7
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp dword [ebp + 0x1c], edi
jb 0x100230eb
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
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.1003e6b0
mov esp, ebp
pop ebp
ret
Function at 0x10023110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100439c8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1005b034]
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
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [ebx + 0x18]
mov eax, str.8DjRv4FsBEHQABbtj5E7Zg
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10002d20
mov eax, esi
push eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 1
call fcn.10002580
add esp, 8
mov byte [ebp - 4], 3
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jb 0x1002318d
mov edx, dword [ebp - 0x2c]
push edx
call edi
add esp, 4
push 6
push str.TEXT1:
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10007540
cmp eax, 0xffffffff
jne 0x100231d9
push 6
push str.POTRO:
lea ecx, [ebp + 8]
push ecx
call fcn.10007540
cmp eax, 0xffffffff
jne 0x100231d9
push 6
push str.CALCA:
lea edx, [ebp + 8]
push edx
call fcn.10007540
cmp eax, 0xffffffff
je 0x100231fc
lea eax, [ebp + 8]
push eax
or eax, 0xffffffff
xor ebx, ebx
mov ecx, 0x10173124
call fcn.100031a0
push ebx
push ebx
push ebx
push 0x1001c920
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp - 0x34], esi
jb 0x1002320a
mov ecx, dword [ebp - 0x48]
push ecx
call edi
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp + 0x1c], esi
jb 0x10023225
mov edx, dword [ebp + 8]
push edx
call edi
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.1003e6b0
mov esp, ebp
pop ebp
ret
Function at 0x100236d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043940
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1005b034]
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
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [ebx + 0x18]
mov eax, str.Tvlw6LcKw4IrjBoyoaFiww
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10002d20
mov eax, esi
push eax
lea ecx, [ebp - 0x64]
push ecx
mov byte [ebp - 4], 1
call fcn.10002580
add esp, 8
mov esi, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], esi
jb 0x1002374b
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x64]
mov edi, 0xf
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x50], esi
jae 0x10023764
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0x54]
push ecx
push eax
lea edx, [ebp + 8]
push edx
call fcn.10007540
cmp eax, 0xffffffff
je 0x10023836
call fcn.100154c0
call fcn.10011cc0
mov dword [ebp - 0x34], edi
mov edi, 0x18
mov eax, str.gY9ioE8iS7L1amY8qYfrQ
lea esi, [ebp - 0x48]
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.10002d20
mov eax, esi
push eax
lea ecx, [ebp - 0x80]
push ecx
mov byte [ebp - 4], 4
call fcn.10002580
add esp, 8
mov esi, 0x10
mov byte [ebp - 4], 6
cmp dword [ebp - 0x34], esi
jb 0x100237ce
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x6c], esi
jae 0x100237e6
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.MSVCR100.dll_remove]
lea eax, [ebp - 0x2c]
add esp, 4
push eax
lea ecx, [ebp - 0x80]
call fcn.10002420
add esp, 4
mov edi, eax
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.10003280
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jb 0x10023824
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x6c], esi
jb 0x10023836
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x50], esi
jb 0x10023848
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp + 0x1c], esi
jb 0x10023867
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
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.1003e6b0
mov esp, ebp
pop ebp
ret
Function at 0x100246d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100421b2
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x1005b034]
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
push 0x11
push str.kalaOkQ3aak51Za
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10007540
cmp eax, 0xffffffff
je 0x10024824
lea ecx, [ebp - 0x78]
push ecx
mov esi, 0x1004fd6c
call fcn.10025e00
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], bl
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x40], bl
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
mov esi, edx
cmp ecx, 0x10
jae 0x10024853
lea esi, [ebp + 8]
mov eax, esi
add eax, dword [ebp + 0x18]
cmp ecx, 0x10
mov ecx, edx
jae 0x10024775
lea ecx, [ebp + 8]
push esi
lea edx, [ebp - 0x78]
push edx
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.10026c90
add esp, 0x10
test al, al
je 0x10024807
mov ecx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x64]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
lea eax, [ebp - 0x3c]
jbe 0x100247ae
lea eax, [esi + 0xc]
lea ecx, [ebp - 0x30]
call fcn.10025f40
lea ecx, [ebp - 0x30]
push ecx
or eax, 0xffffffff
xor ebx, ebx
mov ecx, 0x10173258
mov byte [ebp - 4], 3
call fcn.100031a0
cmp dword [ebp - 0x1c], 0x10
jb 0x100247e0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 0
push 0
push 0
push 0x100246a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10009890
xor ebx, ebx
mov eax, dword [ebp - 0x64]
cmp eax, ebx
je 0x10024818
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], bl
call fcn.10025ea0
cmp dword [ebp + 0x1c], 0x10
jb 0x10024837
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
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 - 0x14]
xor ecx, ebp
call fcn.1003e6b0
mov esp, ebp
pop ebp
ret
mov eax, edx
jmp 0x10024768
Function at 0x10024e00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push esi
mov esi, dword [0x10174e8c]
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
sub ecx, eax
mov dword [ebp - 8], eax
push 1
lea eax, [ebp - 0xc]
push eax
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x10024e7b
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push eax
push str.Send_failed:
push edx
call fcn.10002ad0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov ecx, dword [ebp - 4]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
push ecx
push str.Bytes_sent:
push edx
call fcn.10002ad0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10029130
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push edi
lea ecx, [esi + 0x9c4]
mov edi, 0xe3
lea esp, [esp]
mov eax, dword [ecx + 4]
xor eax, dword [ecx]
and eax, 0x7fffffff
xor eax, dword [ecx]
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [ecx + 0x634]
shr eax, 1
xor edx, eax
mov dword [ecx - 0x9c0], edx
add ecx, 4
dec edi
jne 0x10029140
lea ecx, [esi + 0xd50]
mov edi, 0x18c
nop
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
and eax, 0x7fffffff
xor eax, dword [ecx]
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [ecx - 0xd4c]
shr eax, 1
xor edx, eax
mov dword [ecx - 0x9c0], edx
add ecx, 4
dec edi
jne 0x10029180
mov eax, dword [esi + 0x1380]
xor eax, dword [esi + 4]
and eax, 0x7fffffff
xor eax, dword [esi + 0x1380]
mov ecx, eax
and cl, 1
movzx edx, cl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [esi + 0x634]
shr eax, 1
xor edx, eax
mov dword [esi + 0x9c0], edx
mov dword [esi], edi
pop edi
ret

Function at 0x100291f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
add eax, 0x638
mov edx, 0x68
push edi
lea ecx, [ecx]
mov esi, dword [eax - 0x630]
mov ecx, dword [eax - 0x634]
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, dword [eax - 0x634]
mov ebx, ecx
and bl, 1
movzx edi, bl
neg edi
sbb edi, edi
shr ecx, 1
and edi, 0x9908b0df
xor edi, ecx
xor edi, dword [eax]
mov dword [eax + 0x38c], edi
mov edi, dword [eax - 0x62c]
mov ecx, edi
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, esi
mov ebx, ecx
and bl, 1
movzx esi, bl
neg esi
sbb esi, esi
shr ecx, 1
and esi, 0x9908b0df
xor esi, dword [eax + 4]
xor esi, ecx
mov dword [eax + 0x390], esi
mov esi, dword [eax - 0x628]
mov ecx, esi
xor ecx, edi
and ecx, 0x7fffffff
xor ecx, edi
mov ebx, ecx
and bl, 1
movzx edi, bl
neg edi
sbb edi, edi
shr ecx, 1
and edi, 0x9908b0df
xor edi, dword [eax + 8]
xor edi, ecx
mov dword [eax + 0x394], edi
mov edi, dword [eax - 0x624]
mov ecx, edi
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, esi
mov ebx, ecx
and bl, 1
movzx esi, bl
neg esi
sbb esi, esi
shr ecx, 1
and esi, 0x9908b0df
xor esi, dword [eax + 0xc]
xor esi, ecx
mov dword [eax + 0x398], esi
mov esi, dword [eax - 0x620]
mov ecx, esi
xor ecx, edi
and ecx, 0x7fffffff
xor ecx, edi
mov ebx, ecx
and bl, 1
movzx edi, bl
neg edi
sbb edi, edi
and edi, 0x9908b0df
xor edi, dword [eax + 0x10]
shr ecx, 1
xor edi, ecx
mov ecx, dword [eax - 0x61c]
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, esi
mov ebx, ecx
mov dword [eax + 0x39c], edi
and bl, 1
movzx esi, bl
neg esi
sbb esi, esi
and esi, 0x9908b0df
xor esi, dword [eax + 0x14]
shr ecx, 1
xor esi, ecx
mov dword [eax + 0x3a0], esi
add eax, 0x18
dec edx
jne 0x10029200
pop edi
pop esi
pop ebx
ret