joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4103f4
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4188a0]
push esi
push 0xf0000000
xor esi, esi
push 0x18
push esi
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x42c]
push eax
mov dword [ebp - 0x434], 0x20
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x428], esi
mov byte [ebp - 0x24], 0xc5
mov byte [ebp - 0x23], 0xcb
mov byte [ebp - 0x22], 0x76
mov byte [ebp - 0x21], 0xc
mov byte [ebp - 0x20], 0xe
mov byte [ebp - 0x1f], 0x84
mov byte [ebp - 0x1e], 0x6f
mov byte [ebp - 0x1d], 0xb1
mov byte [ebp - 0x1c], 0x1f
mov byte [ebp - 0x1b], 0xa7
mov byte [ebp - 0x1a], 0xc3
mov byte [ebp - 0x19], 0x37
mov byte [ebp - 0x18], 0xab
mov byte [ebp - 0x17], 0xe9
mov byte [ebp - 0x16], 0x63
mov byte [ebp - 0x15], 0xf
mov byte [ebp - 0x14], 0x16
mov byte [ebp - 0x13], 0x64
mov byte [ebp - 0x12], 0xe3
mov byte [ebp - 0x11], 0x47
mov byte [ebp - 0x10], 7
mov byte [ebp - 0xf], 0x95
mov byte [ebp - 0xe], 0xb5
mov byte [ebp - 0xd], 0xb8
mov byte [ebp - 0xc], 0xc
mov byte [ebp - 0xb], 0xad
mov byte [ebp - 0xa], 0x71
mov byte [ebp - 9], 0xe7
mov byte [ebp - 8], 0x1c
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x41059b
push ebx
push edi
lea eax, [ebp - 0x428]
push eax
push esi
push esi
push 0x800c
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4104d7
xor edi, edi
jmp 0x41058a
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push esi
push 0x1d
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x428]
call edi
test eax, eax
jne 0x4104f7
xor edi, edi
jmp 0x41057e
push 0x40262c
push dword [ebp + 8]
mov dword [ebp - 0x430], esi
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x41055e
push ebx
push 0x400
lea eax, [ebp - 0x424]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, esi
jbe 0x410556
add dword [ebp - 0x430], eax
push esi
push eax
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x428]
call edi
test eax, eax
je 0x4105a8
cmp dword [ebp - 0x430], 0x3400
jb 0x410513
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push esi
lea eax, [ebp - 0x434]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor edi, edi
test eax, eax
je 0x41057e
inc edi
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.004140f5
leave
ret 8
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x410599
Function at 0x410e03
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x410e2f
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x410e2f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x410e31
xor eax, eax
ret 8

Function at 0x4134c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push edi
lea ebx, [ecx + eax + 0x18]
jbe 0x4135a2
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x41353d
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x41358d
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x4135ac
mov edx, dword [ebx - 4]
add edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebx - 8], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x41358d
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.004134a8
test eax, eax
je 0x4135ac
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx]
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x4135ac
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add eax, dword [ebp - 4]
mov esi, dword [ebx + 4]
add esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx - 8], eax
mov eax, dword [esi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add ebx, 0x28
cmp dword [ebp - 8], eax
jl 0x4134ed
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x4135a5
Function at 0x4140f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4188a0]
jne 0x4140fe
ret
jmp 0x414103
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4188a0]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x418a40]
test eax, eax
je 0x414127
call eax
cmp dword [0x418a44], 0
je 0x41416e
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x418a44]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.004140f5
add ebp, 0x2a8
leave
ret
Function at 0x401037
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
mov eax, dword [0x42e368]
push ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x42e36c]
push esi
mov esi, dword [edx + 4]
xor ebx, ebx
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.00401030
mov eax, dword [0x42e370]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42e374]
add edi, 0x23f
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
shl eax, 4
cmp dword [0x1a1ef24], 0xc
mov dword [ebp - 4], eax
jne 0x4010c2
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x438]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
add eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov eax, dword [0x1a1ef24]
cmp eax, 0xfa9
jne 0x4010de
mov dword [0x1a1ef20], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010f9
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov edx, dword [ebp + 8]
mov dword [0x1a1ee74], ebx
mov eax, dword [ebp - 0xc]
add eax, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a1ef1c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x14]
sub esi, eax
mov dword [ebp - 8], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add edi, 0x61c88647
dec dword [ebp - 0x20]
jne 0x40108b
mov eax, dword [ebp - 0xc]
pop edi
mov dword [edx + 4], esi
pop esi
mov dword [edx], eax
pop ebx
leave
ret 4
Function at 0x4057ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d788]
jne 0x4057c4
repz ret
jmp fcn.0040938f

Function at 0x408c7a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004058bc
and dword [ebp - 4], 0
cmp dword [0x4373bc], 0
mov ebx, eax
jne 0x408d2b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408ddc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408ddc
push eax
call fcn.0040584a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4373bc], eax
call esi
push eax
call fcn.0040584a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4373c0], eax
call esi
push eax
call fcn.0040584a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4373c4], eax
call esi
push eax
call fcn.0040584a
pop ecx
mov dword [0x4373cc], eax
test eax, eax
je 0x408d2b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040584a
pop ecx
mov dword [0x4373c8], eax
mov eax, dword [0x4373c8]
cmp eax, ebx
je 0x408d83
cmp dword [0x4373cc], ebx
je 0x408d83
push eax
call fcn.004058c5
push dword [0x4373cc]
mov esi, eax
call fcn.004058c5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408d83
test edi, edi
je 0x408d83
call esi
test eax, eax
je 0x408d7a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408d7a
test byte [ebp - 0xc], 1
jne 0x408d83
or dword [ebp + 0x10], 0x200000
jmp 0x408dbc
mov eax, dword [0x4373c0]
cmp eax, ebx
je 0x408dbc
push eax
call fcn.004058c5
pop ecx
test eax, eax
je 0x408dbc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408dbc
mov eax, dword [0x4373c4]
cmp eax, ebx
je 0x408dbc
push eax
call fcn.004058c5
pop ecx
test eax, eax
je 0x408dbc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4373bc]
call fcn.004058c5
pop ecx
test eax, eax
je 0x408ddc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408dde
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401037
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x4a7378]
mov dword [ebp - 0x30], eax
mov eax, dword [0x4a737c]
push edi
xor edi, edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], edi
call fcn.00401030
mov eax, dword [str.tM_t]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4a7384]
add ebx, 0x23f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
shl eax, 4
cmp dword [0x1aa11a4], 0xc
mov dword [ebp - 4], eax
jne 0x4010bc
push edi
lea eax, [ebp - 0x34]
push eax
push edi
lea eax, [ebp - 0x434]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x1aa11a4]
cmp eax, 0xfa9
jne 0x4010d8
mov dword [0x1aa11a0], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010ec
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x1aa10f4], edi
mov eax, dword [ebp - 0xc]
add eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1aa119c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x14]
sub esi, eax
mov dword [ebp - 8], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
cmp dword [0x1aa11a4], 0xb03
jne 0x401174
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push str.ruyenemilimusibubigukexem
push edi
push edi
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add ebx, 0x61c88647
dec dword [ebp - 0x20]
jne 0x40108b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax + 4], esi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret 4
Function at 0x4022d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48881b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4a5c78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004673bc
push 4
mov dword [ebp - 4], 0
call fcn.004688aa
mov edi, eax
add esp, 4
test edi, edi
je 0x402350
call fcn.00466f9d
mov dword [edi], eax
call fcn.00466d5c
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00466c91
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x402346
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00466cb9
jmp 0x402352
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409480
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489048
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4a5c78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.004688aa
add esp, 4
cmp eax, ebx
je 0x40957a
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x18]
push 8
mov dword [ebp - 4], ebx
mov dword [edi], ebx
call fcn.004688aa
add esp, 4
cmp eax, ebx
je 0x409556
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [esi + 0x40], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov byte [esi + 0x30], bl
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov dword [esi + 0x7c], 1
mov byte [esi + 0x80], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.00467b36
push 0x49f640
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.0046892a
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call fcn.00467b36
push 0x49f640
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.0046892a
int3
Function at 0x40e510
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4a5c78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x198], 0
push esi
push edi
mov edi, dword [ebx]
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x110], edi
jne 0x40e6ad
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push esi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x40e59a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.0042e3c0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0042a4b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468861
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x84]
push eax
push esi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x40e5ed
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.0042e3c0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0042a4b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468861
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x108]
add ebx, 0xc8
add edi, 0x9a
lea esi, [ebp - 0x104]
call fcn.0040e4d0
test eax, eax
jne 0x40e64a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x108]
mov esi, eax
push esi
push ecx
call fcn.0042e3c0
mov edx, dword [ebp - 0x110]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0042a4b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468861
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
lea ebx, [eax + 0xfc]
lea edi, [eax + 0xcc]
lea esi, [ebp - 0x84]
call fcn.0040e4d0
test eax, eax
jne 0x40e6a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x108]
push esi
push eax
call fcn.0042e3c0
mov ecx, dword [ebp - 0x110]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.0042a4b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468861
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x108]
mov edi, dword [ebx]
add edi, 0x86a4
lea esi, [ebx + 0x9a]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebx]
add edi, 0x86d8
lea esi, [ebx + 0xcc]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edx, dword [ebx]
mov eax, dword [ebx + 0xc8]
mov dword [edx + 0x86d4], eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 0xfc]
mov dword [ecx + 0x8708], edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468861
mov esp, ebp
pop ebp
ret
Function at 0x40e710
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x40e756
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0042e3c0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0042a430
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0042a430
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ecf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x520]
cmp eax, 0xffffffff
je 0x40ed4b
mov ecx, dword [ecx + 0x514]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x40ed4b
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
test ecx, ecx
je 0x40ed1d
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
push esi
mov esi, dword [eax + 0x12c]
jne 0x40ed40
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x40ed46
or eax, 0xffffffff
pop esi
pop ebp
ret
mov eax, esi
pop esi
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret
Function at 0x40f240
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov edx, dword [ebx + ecx*4 + 0x12c]
xor ecx, ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebx + 0x1b8], ecx
je 0x40f27b
mov dword [eax], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebx]
mov eax, dword [esi + 0x194]
push edi
mov edi, 0x493e0
cmp eax, ecx
jle 0x40f293
mov ecx, 1
mov edx, dword [esi + 0x198]
test edx, edx
jle 0x40f2a0
or ecx, 2
dec ecx
je 0x40f2b1
dec ecx
je 0x40f2ad
dec ecx
jne 0x40f2b3
cmp eax, edx
jl 0x40f2b1
mov edi, edx
jmp 0x40f2b3
mov edi, eax
call fcn.00431820
mov ecx, dword [esi + 0x4a4]
push ecx
mov ecx, dword [esi + 0x4a0]
push ecx
push edx
push eax
call fcn.00431850
add esp, 0x10
sub edi, eax
je 0x40f2d8
test edi, edi
jns 0x40f2f5
mov edx, dword [ebp + 8]
push str.Connection_time_out
push edx
call fcn.0042a4b0
add esp, 8
pop edi
pop esi
mov eax, 0x1c
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 8]
push ebx
xor eax, eax
call fcn.0040e020
add esp, 4
cmp eax, 1
je 0x40f34c
test eax, eax
jne 0x40f355
push edi
lea esi, [ebp - 4]
call fcn.0040e400
add esp, 4
test eax, eax
je 0x40f394
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push 2
mov dword [ebx + 0x1b8], 1
push ecx
mov dword [eax], 1
call fcn.00427ee0
push ebx
call fcn.00434630
mov edx, edi
push edx
push ebx
call fcn.0040e510
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x40f381
push edi
lea esi, [ebp - 4]
call fcn.0040e400
mov esi, dword [ebp - 4]
push esi
push ebx
call fcn.0042e3c0
push eax
mov eax, dword [ebp + 8]
push 0x48e2bc
push eax
call fcn.0042a430
add esp, 0x18
jmp 0x40f397
mov ecx, dword [ebp + 8]
push str.Connection_failed_n
push ecx
call fcn.0042a430
add esp, 8
jmp 0x40f3ab
mov esi, dword [ebp - 4]
test esi, esi
je 0x40f3ab
mov edx, dword [ebp + 8]
push esi
mov dword [edx + 0x855c], esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040ed50
mov esi, eax
add esp, 4
test esi, esi
je 0x40f3f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [ebp + 8]
push eax
push ebx
mov dword [edi + 0x855c], eax
call fcn.0042e3c0
mov ecx, dword [ebx + 0x94]
mov edx, dword [ebx + 0x7c]
push eax
push ecx
push edx
push str.Failed_connect_to__s:_ld___s
push edi
call fcn.0042a4b0
add esp, 0x1c
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret