joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c8b90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594f1d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5f0a00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], vtable.SOUI::IObject.0
mov dword [esi + 4], vtable.SOUI::ILayoutParam.0
mov dword [esi], vtable.SOUI::TObjRefImpl_struct_SOUI::ILayoutParam_.0
mov dword [esi + 4], vtable.SOUI::TObjRefImpl_struct_SOUI::ILayoutParam_.1.0
mov dword [esi + 8], 1
mov dword [esi], vtable.SOUI::SObjectImpl_class_SOUI::TObjRefImpl_struct_SOUI::ILayoutParam__.0
mov dword [esi + 4], vtable.SOUI::SObjectImpl_class_SOUI::TObjRefImpl_struct_SOUI::ILayoutParam__.1.0
push ecx
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], 0
mov dword [esp], 0
call fcn.00473cd0
push ecx
lea ecx, [esi + 0x24]
mov dword [esp], 0
call fcn.00473cd0
lea ecx, [esi + 0x1c]
mov dword [esi], vtable.SOUI::SGridLayoutParam.0
mov dword [esi + 4], vtable.SOUI::SGridLayoutParam.1.0
call fcn.004740b0
lea ecx, [esi + 0x24]
call fcn.004740b0
mov dword [esi + 0x10], 1
mov eax, esi
mov dword [esi + 0xc], 1
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c8d90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595204
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5f0a00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x34
call fcn.005523ef
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004c8b90
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
call edx
lea ecx, [edi + 0xc]
neg edi
sbb edi, edi
and edi, ecx
movups xmm0, xmmword [edi]
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [eax + 0x20], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c8e90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, 3
ja case.0x4c8e9d.2
jmp dword [ecx*4 + 0x4c8fa4]
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov dword [eax + 4], ecx
pop ebp
ret 8
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebp
ret 8
mov ecx, dword [0x5f95b8]
push esi
push edi
test ecx, ecx
je 0x4c8edd
call fcn.0044c610
mov esi, eax
jmp 0x4c8edf
xor esi, esi
push 0x2801
call fcn.0055ba77
push str.GetSpecifiedSize_can_only_be_applied_for_Horz_or_Vert
push 0xffffffffffffffff
mov edi, eax
push 0x2800
push edi
call fcn.0042d1a0
add esp, 0x14
mov byte [eax + edi], 0
test esi, esi
je 0x4c8f3f
mov eax, dword [esi]
mov ecx, esi
push 3
push 0
mov eax, dword [eax + 0x2c]
call eax
test al, al
je 0x4c8f3f
mov eax, dword [ebp + 4]
mov ecx, esi
mov edx, dword [esi]
push eax
push 0x59b528
push 0xbf
push str.F:XTrendPCdep_soui_srclayoutSGridLayout.cpp
push edi
push str.soui
push 3
push 0
call dword [edx + 0x34]
jmp 0x4c8f84
push 0x2801
call fcn.0055ba77
push 0x59b528
push edi
push 0xbf
push str.F:XTrendPCdep_soui_srclayoutSGridLayout.cpp
push str._s:_d___s__s__n
push 0xffffffffffffffff
mov esi, eax
push 0x2800
push esi
call fcn.0042d1a0
add esp, 0x24
mov byte [eax + esi], 0
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.0055ba5c
add esp, 4
push edi
call fcn.0055ba5c
mov ecx, dword [ebp + 8]
mov dword [esp], 0
call fcn.00473cd0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret 8
Function at 0x4d4f10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59578e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5f0a00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], vtable.SOUI::IObject.0
mov dword [esi + 8], vtable.SOUI::ITimelineHandler.0
mov dword [esi + 4], vtable.SOUI::ICaret.0
mov dword [esi + 8], vtable.SOUI::ICaret.1.0
mov dword [esi + 4], vtable.SOUI::SObjectImpl_struct_SOUI::ICaret_.0
mov dword [esi + 8], vtable.SOUI::SObjectImpl_struct_SOUI::ICaret_.1.0
mov dword [esi], vtable.SOUI::TObjRefImpl_class_SOUI::SObjectImpl_struct_SOUI::ICaret__.0
mov dword [esi + 4], vtable.SOUI::TObjRefImpl_class_SOUI::SObjectImpl_struct_SOUI::ICaret__.1.0
mov dword [esi + 8], vtable.SOUI::TObjRefImpl_class_SOUI::SObjectImpl_struct_SOUI::ICaret__.2.0
mov dword [esi + 0xc], 1
mov dword [esi], vtable.SOUI::SCaret.0
mov dword [esi + 4], vtable.SOUI::SCaret.1.0
mov dword [esi + 8], vtable.SOUI::SCaret.2.0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], 1
mov dword [esi + 0x24], 0
mov byte [esi + 0x28], 0xff
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0xffffff
mov eax, dword [0x5f0130]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 0x14
mov dword [esi + 0x3c], 0x14
mov dword [esi + 0x40], 0
mov eax, dword [ebp + 8]
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], 0
mov dword [esi + 0x30], 0xff000000
mov ecx, dword [0x5f95b8]
push 0x5a0000
mov byte [ebp - 4], 3
call fcn.0044bbe0
mov ecx, dword [esi + 0x40]
mov edi, eax
test ecx, ecx
je 0x4d5026
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, esi
mov dword [esi + 0x40], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4da1f0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595c47
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5f0a00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.004742a0
mov dword [edi + method.SOUI::SObjectFactory.virtual_4], vtable.SOUI::ISDropDownOwner.0
lea esi, [edi + 4]
push 0x64
mov dword [edi], vtable.SOUI::SComboBase.1.0
mov dword [esi], vtable.SOUI::SComboBase.2.0
mov dword [edi + 8], vtable.SOUI::SComboBase.3.0
mov dword [edi + method.SOUI::SComboBase.virtual_0], vtable.SOUI::SComboBase.0
mov dword [edi + 0x28c], 0
mov dword [edi + 0x290], 0
mov ecx, dword [0x5f95b8]
push 7
mov dword [ebp - 4], 0
call fcn.0044c430
push 1
push ecx
lea ecx, [edi + 0x29c]
mov dword [edi + 0x294], eax
mov byte [edi + 0x298], 1
mov dword [esp], 0x43480000
call fcn.00473cf0
push ecx
lea ecx, [edi + 0x2a4]
mov dword [esp], 0
call fcn.00473cd0
lea ecx, [edi + 0x2b8]
mov dword [edi + 0x2ac], 0
mov dword [edi + 0x2b0], 0xffffffff
mov dword [edi + 0x2b4], 0
call fcn.004411c0
mov dword [edi + 0x380], 1
mov dword [edi + 0x384], 0xffffff
mov eax, dword [0x5f0130]
mov dword [edi + 0x388], eax
push esi
lea ecx, [edi + 0x38c]
mov byte [ebp - 4], 2
call fcn.00474270
or dword [edi + 0x164], 0x20
lea ecx, [edi + 0x70]
push 0
mov byte [ebp - 4], 3
mov dword [edi + 0x384], 0xffcccccc
call fcn.0048b760
push 0x1000
lea ecx, [edi + 0x70]
call fcn.0048c260
push 0x5af038
push 0x4a38
lea ecx, [edi + 0x30]
call fcn.0048c7e0
push 0x5a6e5c
push 0x3e80
lea ecx, [edi + 0x30]
call fcn.0048c7e0
push 0x5af0b8
push 0x4a39
lea ecx, [edi + 0x30]
call fcn.0048c7e0
mov dword [edi + 0x39c], 0
mov eax, edi
mov dword [edi + 0x398], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4de870
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59610d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5f0a00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.SOUI::TObjRefImpl_struct_SOUI::IObjRef_.0
mov dword [edi + 4], 1
mov ebx, dword [ebp + 0xc]
mov dword [edi], vtable.SOUI::STileViewItemLocator.0
mov dword [edi + 8], 0x64
mov eax, dword [0x5f0130]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x4de91e
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4de8d2
sub esi, ecx
sar esi, 1
je 0x4de91e
lea eax, [esi*2 + 0xe]
push eax
call fcn.00440020
add esp, 4
test eax, eax
je 0x4de91e
mov dword [eax], 1
xor ecx, ecx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + esi*2 + 0xc], cx
lea ecx, [eax + 0xc]
lea eax, [esi + esi]
mov dword [ebp - 0x10], ecx
push eax
push ebx
push ecx
call fcn.005577f0
add esp, 0xc
mov ecx, dword [0x5f95b8]
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0xc]
mov byte [ebp - 4], 1
push eax
call fcn.0044c5f0
mov ecx, dword [ebp - 0x10]
or ebx, 0xffffffff
add ecx, 0xfffffff4
mov byte [ebp - 4], 2
cmp ecx, dword [0x5f012c]
je 0x4de95e
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4de95e
push ecx
call fcn.00408c50
add esp, 4
mov eax, dword [0x5f0130]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0
test eax, eax
je 0x4de9c4
mov esi, eax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4de976
sub esi, ecx
sar esi, 1
je 0x4de9c4
lea eax, [esi*2 + 0xe]
push eax
call fcn.00440020
add esp, 4
test eax, eax
je 0x4de9c4
mov dword [eax], 1
xor ecx, ecx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + esi*2 + 0xc], cx
lea ecx, [eax + 0xc]
lea eax, [esi + esi]
mov dword [ebp + 0xc], ecx
push eax
push dword [ebp + 8]
push ecx
call fcn.005577f0
add esp, 0xc
mov ecx, dword [0x5f95b8]
lea eax, [ebp + 0xc]
push eax
lea eax, [edi + 0x14]
mov byte [ebp - 4], 3
push eax
call fcn.0044c5f0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
mov byte [ebp - 4], 4
cmp eax, dword [0x5f012c]
je 0x4de9ff
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4de9ff
push eax
call fcn.00408c50
add esp, 4
push 0
push ecx
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 0
mov dword [esp], 0
call fcn.00473cf0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
mov eax, edi
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], 1
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4dfad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4dfb4f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4dfb4f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4dfb4f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4dfb4f
mov ecx, esi
call fcn.004df570
cmp dword [esi + 4], 0
jne 0x4dfb2c
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov ecx, esi
mov dword [esi], edi
call fcn.004dfbc0
test eax, eax
jne 0x4dfb51
pop edi
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi], 0xffffffff
pop esi
pop ebx
pop ebp
ret 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4dfbc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x4dfbe3
mov ecx, dword [edi + 0xc]
lea eax, [ecx - 0x16]
mov dword [edi + 8], eax
cmp eax, ecx
jb 0x4dfbf1
mov dword [edi + 8], ecx
jmp 0x4dfbf1
push 2
push 0
push 0xffffffffffffffea
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [edi + 4], 0
lea ebx, [edi + 0x20]
mov dword [ebp - 4], 0
je 0x4dfc34
mov edx, dword [edi + 0xc]
mov esi, 0x16
mov ecx, dword [edi + 8]
cmp ecx, edx
jae 0x4dfd48
lea eax, [ecx + 0x16]
cmp eax, edx
jbe 0x4dfc1f
mov esi, edx
sub esi, ecx
mov eax, dword [edi + 4]
push esi
add eax, ecx
push eax
push ebx
call fcn.005577f0
add esp, 0xc
add dword [edi + 8], esi
jmp 0x4dfc48
push 0
lea eax, [ebp - 4]
push eax
push 0x16
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, 0x16
jne 0x4dfd48
cmp dword [ebx], 0x6054b50
jne 0x4dfd48
push dword [edi + 0x2c]
call fcn.0055ba77
mov dword [edi + 0x3c], eax
mov ecx, 4
movzx eax, word [edi + 0x28]
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0055278b
add esp, 8
mov dword [edi + 0x38], eax
cmp dword [edi + 0x3c], 0
je 0x4dfd48
mov eax, 0xffffffea
sub eax, dword [edi + 0x2c]
cmp dword [edi + 4], 0
je 0x4dfcb0
mov ecx, dword [edi + 0xc]
add eax, ecx
mov dword [edi + 8], eax
cmp eax, ecx
jb 0x4dfcbd
mov dword [edi + 8], ecx
jmp 0x4dfcbd
push 2
push 0
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [edi + 0x2c]
mov ecx, edi
push dword [edi + 0x3c]
call fcn.004dfd60
cmp eax, dword [edi + 0x2c]
jne 0x4dfd48
mov esi, dword [edi + 0x3c]
xor ecx, ecx
xor eax, eax
mov dword [ebp - 8], ecx
cmp ax, word [edi + 0x28]
jae 0x4dfd38
nop
mov eax, dword [edi + 0x38]
mov dword [eax + ecx*4], esi
cmp dword [esi], 0x2014b50
jne 0x4dfd48
movzx ecx, word [esi + 0x1c]
lea eax, [esi + 0x2e]
xor edx, edx
mov ebx, ecx
mov dword [ebp - 0xc], edx
cmp dx, cx
jae 0x4dfd15
cmp byte [eax], 0x2f
jne 0x4dfd09
mov byte [eax], 0x5c
movzx ecx, word [esi + 0x1c]
inc edx
inc eax
mov ebx, ecx
cmp edx, ecx
jl 0x4dfd01
movzx eax, word [esi + 0x1e]
movzx ecx, word [esi + 0x20]
add ecx, eax
movzx eax, bx
add eax, esi
lea esi, [ecx + 0x2e]
mov ecx, dword [ebp - 8]
add esi, eax
inc ecx
movzx eax, word [edi + 0x28]
mov dword [ebp - 8], ecx
cmp ecx, eax
jl 0x4dfce0
mov byte [edi + 0x40], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.004df570
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dfd60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov dword [ebp - 4], 0
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4dfdbc
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4dfdb1
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
cmp ecx, edx
jae 0x4dfdb1
lea eax, [ecx + esi]
cmp eax, edx
jbe 0x4dfd93
mov esi, edx
sub esi, ecx
push esi
lea eax, [ecx + ebx]
push eax
push dword [ebp + 8]
call fcn.005577f0
add esp, 0xc
mov eax, esi
add dword [edi + 8], esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4e81c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59678c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5f0a00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x4e8216
lea ecx, [ebx + 0x50]
mov dword [ebx], 0x5b0ff8
call fcn.00433790
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
push 0
lea edi, [ebx + 4]
mov ecx, ebx
push edi
call fcn.004e8000
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 1
mov dword [ebp + 8], edi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + ebx - 4], eax
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.005523ef
mov esi, eax
push 1
mov byte [ebp - 4], 2
call fcn.005553c4
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0043a1d0
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, ebx
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d8b0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5f0a00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.005523ef
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.005553c4
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0043a1d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f0670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59740d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5f0a00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0xc], 0
call fcn.005523ef
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.005553c4
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov esi, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.00433440
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov edx, dword [esi]
mov ecx, esi
mov bl, al
mov dword [ebp - 4], 0xffffffff
call dword [edx + 8]
test eax, eax
je 0x4f075b
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], bl
jne 0x4f0777
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
and eax, 0x13
or eax, 4
mov dword [edi + 0xc], eax
and ecx, eax
jne 0x4f079a
cmp byte [ebp + 0xc], 0
je 0x4f0786
push edi
call fcn.005558cd
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4f07a6
mov esi, str.ios_base::badbit_set
jmp 0x4f07b6
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0043c040
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00434310
push 0x5e2cbc
lea eax, [ebp - 0x28]
push eax
call fcn.005585b4
int3
Function at 0x502190
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x50221c
push esi
call fcn.00518b50
add esp, 4
test al, al
jne 0x50221c
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x5021b3
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00519b40
add esp, 0xc
test eax, eax
je 0x5021e7
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00519b40
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x5021e9
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x502215
mov al, byte [esi]
push eax
call fcn.005001d0
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x5021f7
pop edi
movzx eax, bl
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x502bb0
Capabilities:
Convert ip address from string

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
je 0x502bdc
cmp byte [eax], 0
je 0x502bdc
lea ecx, [esp + 8]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x502bd6
mov eax, 0x2b
ret
mov eax, dword [esp + 8]
jmp 0x502be2
xor eax, eax
mov dword [esp + 8], eax
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov eax, dword [esp + 8]
push dword [eax + 0x9ac]
call fcn.00547490
add esp, 8
xor eax, eax
ret

Function at 0x502c00
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x48
mov eax, dword [0x5f0a00]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
push esi
mov esi, dword [esp + 0x50]
test eax, eax
je 0x502c48
cmp byte [eax], 0
je 0x502c48
lea ecx, [esp + 4]
push ecx
push eax
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x502c59
mov eax, 0x2b
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00551e44
add esp, 0x48
ret
push 0x41
lea eax, [esp + 8]
push 0
push eax
call fcn.00557d70
add esp, 0xc
lea eax, [esp + 4]
push eax
push dword [esi + 0x9ac]
call fcn.005474a0
mov ecx, dword [esp + 0x50]
add esp, 8
xor eax, eax
pop esi
xor ecx, esp
call fcn.00551e44
add esp, 0x48
ret
Function at 0x50f840
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5f0a00]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x114]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 4], eax
xor eax, eax
mov ecx, dword [ebx + 0xc]
push ebp
push esi
mov esi, 0x178
mov edx, dword [ecx + 0x154]
cmp dword [esp + 0x120], edx
push edi
sete al
lea eax, [eax*4 + 0x150]
mov ebp, dword [eax + ecx]
mov eax, 0x188
cmove esi, eax
mov eax, dword [ecx + 0x2a8]
add esi, ecx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x50f943
xor eax, eax
cmp dword [esp + 0x124], edx
sete al
lea eax, [eax*4 + 0x168]
cmp dword [eax + ecx], 0x50f500
jne 0x50f943
cmp dword [esi], 0
je 0x50f8de
test edi, edi
je 0x50f943
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.0051aed0
add esp, 0x14
cmp eax, 0xffffffff
je 0x50f943
test al, 1
je 0x50f943
mov ecx, dword [esi]
test ecx, ecx
jne 0x50f92c
mov eax, dword [ebx + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x5f0994]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x50f977
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x50f943
add dword [esi + 8], eax
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
jne 0x50f9b2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x50f988
xor edi, edi
lea eax, [edi + 0x51]
jmp 0x50f9b2
mov ecx, dword [esp + 0x10]
mov eax, 0x1b
mov dword [ecx], 0xffffffff
jmp 0x50f9b8
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00517f90
push eax
push str.Send_failure:__s
push ebx
call fcn.0050f2a0
add esp, 0x18
mov dword [ebx + 0x948], esi
mov eax, 0x37
mov ecx, dword [esp + 0x10]
mov dword [ecx], edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00551e44
add esp, 0x10c
ret