joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000fac0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x8c]
push ebx
push esi
mov esi, dword [eax]
push edi
add ecx, 8
mov dword [ebp - 4], 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx - 8]
add ecx, 0x10
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x100145a0]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x100147a0]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x100149a0]
and eax, 0x3f
xor edi, dword [eax*4 + 0x10014ba0]
mov eax, dword [ecx - 0x14]
xor edx, edi
xor eax, esi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x100146a0]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x100148a0]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x10014aa0]
and eax, 0x3f
xor edi, dword [eax*4 + 0x10014ca0]
xor edx, edi
mov eax, edx
ror eax, 4
xor eax, dword [ecx - 0x10]
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x100145a0]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x100147a0]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x100149a0]
and eax, 0x3f
xor edi, dword [eax*4 + 0x10014ba0]
mov eax, dword [ecx - 0xc]
xor esi, edi
xor eax, edx
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x100146a0]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x100148a0]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x10014aa0]
and eax, 0x3f
xor edi, dword [eax*4 + 0x10014ca0]
xor esi, edi
dec dword [ebp - 4]
jne 0x1000fae1
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov edx, dword [ebp + 0xc]
pop edi
mov dword [edx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10010263
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001a170]
jne 0x1001026d
repz ret
jmp fcn.10010806

Function at 0x10010e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10011000
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10010f24
cmp dword [ebp - 4], 0x50000000
jb 0x10010ea1
cmp dword [ebp - 4], 0x80000000
ja 0x10010ea1
mov dword [ebp - 4], 0x4fff0000
jmp 0x10010e7a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10010ec7
jmp 0x10010f24
cmp dword [ebp - 0x14], 0x10000
jne 0x10010f0a
cmp dword [ebp - 0x18], 0x10000
jb 0x10010f0a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10010efd
mov eax, dword [ebp - 8]
jmp 0x10010f26
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10010f1f
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10011000
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10010e7a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10010f30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10011030
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10010fec
cmp dword [ebp - 4], 0x50000000
jb 0x10010f6c
cmp dword [ebp - 4], 0x80000000
ja 0x10010f6c
mov dword [ebp - 4], 0x80010000
jmp 0x10010f45
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10010f92
jmp 0x10010fec
cmp dword [ebp - 0x14], 0x10000
jne 0x10010fd5
cmp dword [ebp - 0x18], 0x10000
jb 0x10010fd5
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10010fc8
mov eax, dword [ebp - 8]
jmp 0x10010fee
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10010fe7
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10011030
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10010f45
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100119b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1012ec9c]
mov dword [ebp - 4], eax
jmp 0x100119c9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100119e6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100119c0
mov esp, ebp
pop ebp
ret
Function at 0x10011e30
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1012ec88], eax
je 0x10011e4e
mov eax, 0x10dd
jmp 0x10011f2f
mov eax, dword [0x1012ec98]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10011ecc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10011eaa
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10011eaa
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.100114d0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10011e56
mov dword [0x1012ec98], 0
call fcn.100117f0
mov ecx, dword [0x1012ec94]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10011f19
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10011ee4
mov dword [0x1012ec94], 0
mov dword [0x1012ec88], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10012430
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1012ec8c], 0
je 0x10012449
mov eax, dword [0x1012ec8c]
jmp 0x100124e9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1001245b
xor eax, eax
jmp 0x100124e9
push 8
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100124b1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1001249a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1012ec8c], eax
mov dword [0x1012ec90], 0
mov eax, dword [ebp - 8]
jmp 0x100124e9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100124cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1001247b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1012ec94]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1012ec94], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x551b5563
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x81612c
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x693d347e
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x4304d8
mov ecx, 0x3ca0728d
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10002ae0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a142
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100b3400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Globalw3_8C5A8160_36E4_42F4_AE7B_2F65B3BBA385
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10002b80
push 0xd0
call fcn.1003b724
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x10002b70
push 0xd0
push 0
push esi
call fcn.10049460
add esp, 0xc
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.1000a840
mov ecx, eax
lea eax, [ecx + 0x84]
neg ecx
sbb ecx, ecx
and eax, ecx
jmp 0x10002b8b
xor ecx, ecx
lea eax, [ecx + 0x84]
neg ecx
sbb ecx, ecx
and eax, ecx
jmp 0x10002b8b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003bac5
mov esp, ebp
pop ebp
ret 8
Function at 0x10002d20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100b3400]
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
mov dword [ebp - 0x24], edi
test edi, edi
je 0x10002d5b
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push 0x38
mov dword [ebp - 4], 0
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
call fcn.1003b724
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10002dad
mov ecx, dword [ebp - 0x20]
lea eax, [esi + 0x10]
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_std::function_void____cdecl___void___.0
mov dword [eax], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8HttpServer__AEXXZPAV3__std__X__V_std__.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0x24], eax
jmp 0x10002daf
xor esi, esi
xorps xmm0, xmm0
lea eax, [esi + 0x10]
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10002dc8
lock inc dword [esi + 4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x28]
inc eax
mov byte [ebp - 4], 2
cmp ecx, eax
ja 0x10002dea
push 1
lea ecx, [edi + 0x20]
call fcn.10006140
mov ecx, dword [edi + 0x28]
lea eax, [ecx - 1]
and dword [edi + 0x2c], eax
mov ecx, dword [edi + 0x30]
add ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
dec eax
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x20], eax
cmp dword [ecx + eax], 0
jne 0x10002e27
push 0x28
call fcn.1003b724
mov ecx, dword [edi + 0x24]
add esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + ecx], eax
mov eax, edx
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax]
lea ecx, [esi + 0x10]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_bbfe00727ff07187b8314e6219de77d5___void___.0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0x24], eax
inc dword [edi + 0x30]
cmp dword [edi + 0x18], 0
jne 0x10002e66
lea eax, [edi + 0x1c]
push eax
push 0
push edi
push 0x100057b0
push 0
push 0
call fcn.100500da
add esp, 0x18
mov dword [edi + 0x18], eax
mov byte [ebp - 0x19], 1
jmp 0x10002e6a
mov byte [ebp - 0x19], 0
test esi, esi
je 0x10002e8f
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10002e8f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10002e8f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x19]
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.1003bac5
mov esp, ebp
pop ebp
ret 8
Function at 0x10008290
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a868
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x100b3400]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1003b724
mov edi, eax
add esp, 4
test edi, edi
je 0x10008333
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10016535
add esp, 4
mov dword [edi + 4], eax
jmp 0x10008335
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.10003290
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x10008395
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x10008395
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x100083b9
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x100083db
cmp byte [ebp + 0xc], 0
je 0x100083c8
push esi
call fcn.100169df
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x100083e7
mov esi, str.ios_base::badbit_set
jmp 0x100083f7
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.10008420
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.10003fb0
push 0x100a9f64
lea eax, [ebp - 0x30]
push eax
call fcn.1004966d
int3
Function at 0x10010290
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b362
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x100b3400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
mov dword [ebp - 0x228], esi
push 0
mov dword [ebp - 0x224], 0
push eax
mov dword [ebp - 0x220], 1
call fcn.10049460
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], 1
push eax
lea eax, [ebp - 0x220]
push eax
push str.softid
push str.SOFTWARELudashi
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1001036e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10010350
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.1000f360
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.1003bac5
mov esp, ebp
pop ebp
ret
Function at 0x10011550
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100b3400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov bl, byte [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 0xfffffffe
je 0x10011662
mov ecx, dword [esi + 0x8c]
test eax, eax
jg 0x1001159f
or ecx, 0x2000
pop edi
mov dword [esi + 0x8c], ecx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bac5
mov esp, ebp
pop ebp
ret
test ecx, 0x800
je 0x10011620
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_getsockname]
push 0x100929c0
push 0x1908
push str.d:jenkins.jenkinsworkspacelib_commonw3checkhelperw3checkhelper_src_third_partymongoose.cc
push 2
call fcn.10013e60
add esp, 0x10
test al, al
je 0x10011611
push dword [ebp + 0x10]
lea eax, [esi + 0x1c]
mov ecx, 0x100929cc
push eax
push 0x10014a10
test bl, bl
mov eax, 0x100929c8
cmove eax, ecx
push eax
lea eax, [esi + 8]
push eax
push 0x10014a10
push dword [esi + 0x34]
push str._n____lu__M__s__M__ld
call fcn.10013df0
add esp, 0x20
push dword [ebp + 0x10]
push edi
call fcn.10012cb0
mov eax, dword [ebp + 0x10]
add esp, 8
test bl, bl
je 0x10011647
add dword [esi + 0x40], eax
lea eax, [ebp + 0x10]
push eax
push 7
push esi
call fcn.10012b90
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bac5
mov esp, ebp
pop ebp
ret
push eax
lea eax, [esi + 0x48]
push 0
push eax
call fcn.10013a60
lea eax, [ebp + 0x10]
push eax
push 8
push esi
call fcn.10012b90
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003bac5
mov esp, ebp
pop ebp
ret
Function at 0x100126d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100b3400]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x40]
cmp eax, 0x300000
jb 0x1001270b
push str.max_recv_buf_size_reached
push esi
call fcn.10012bd0
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bac5
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x3c]
cmp ecx, eax
ja 0x10012746
lea eax, [ecx + 0x800]
push eax
lea eax, [esi + 0x38]
push eax
call fcn.10013ae0
add esp, 8
test eax, eax
jne 0x10012746
push 0x10092a80
push esi
call fcn.10012bd0
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bac5
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
add ecx, dword [esi + 0x40]
sub edx, dword [esi + 0x40]
mov eax, dword [esi + 0x8c]
mov dword [ebp - 0x1c], ecx
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
test al, 0x40
je 0x1001277e
test ecx, ecx
je 0x10012777
test edx, edx
je 0x10012777
or edi, 0xffffffff
jmp 0x1001282d
xor edi, edi
jmp 0x1001282d
test eax, 0x100
je 0x100127e0
mov eax, 2
mov dword [ebp - 8], 0x10
mov word [ebp - 0x18], ax
xorps xmm0, xmm0
mov ax, word [esi + 0x2c]
mov word [ebp - 0x16], ax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x10], xmm0
push eax
push 0
push edx
push ecx
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
test edi, edi
jle 0x100127f1
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x14]
setne cl
mov dword [esi + 0x1c], eax
mov byte [esi + 0x2f], cl
mov cx, word [ebp - 0x16]
mov word [esi + 0x2c], cx
jmp 0x100127ef
push 0
push edx
push ecx
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jns 0x10012825
call ebx
cmp eax, 0x2714
je 0x1001281e
call ebx
cmp eax, 0x2734
je 0x1001281e
call ebx
cmp eax, 0x2733
je 0x1001281e
call ebx
cmp eax, 0x2746
jne 0x10012825
mov edi, 0xfffffffd
jmp 0x1001282d
mov edi, 0xfffffffe
jmp 0x1001282d
or eax, 0xffffffff
test edi, edi
cmovle edi, eax
push str.read_conn
push 0x19b2
push str.d:jenkins.jenkinsworkspacelib_commonw3checkhelperw3checkhelper_src_third_partymongoose.cc
push 3
call fcn.10013e60
add esp, 0x10
test al, al
je 0x10012875
test edi, edi
jns 0x10012852
call ebx
jmp 0x10012854
xor eax, eax
push eax
push edi
push dword [esi + 0x3c]
push dword [esi + 0x40]
push dword [esi + 0x4c]
push dword [esi + 0x50]
push dword [esi + 0x30]
push dword [esi + 0x34]
push str._lu__ld_snd__ld__ld_rcv__ld__ld_n_ld_err_d
call fcn.10013df0
add esp, 0x24
push 1
push edi
push dword [ebp - 0x1c]
push esi
call fcn.10011550
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop ebx
pop esi
call fcn.1003bac5
mov esp, ebp
pop ebp
ret