joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9280
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x55239b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
mov eax, dword [0x57f7c4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
mov dword [esi + 0x20], edx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
lea edx, [esi + 0x34]
lea ecx, [edi + 0x34]
push edx
mov dword [esi + 0x30], eax
call fcn.004a95c0
xor ebx, ebx
push 0xffffffffffffffff
lea ecx, [esi + 0x4c]
mov dword [esp + 0x20], ebx
lea eax, [edi + 0x4c]
push ebx
mov ebp, 0xf
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00404640
push 0xffffffffffffffff
lea ecx, [esi + 0x68]
mov byte [esp + 0x20], 1
lea eax, [edi + 0x68]
push ebx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00404640
push 0xffffffffffffffff
lea ecx, [esi + 0x84]
mov byte [esp + 0x20], 2
lea eax, [edi + 0x84]
push ebx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00404640
push 0xffffffffffffffff
lea ecx, [esi + 0xa0]
mov byte [esp + 0x20], 3
lea eax, [edi + 0xa0]
push ebx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00404640
mov byte [esp + 0x1c], 4
mov eax, dword [edi + 0xbc]
mov dword [esi + 0xbc], eax
lea ecx, [edi + 0xc0]
lea edx, [esi + 0xc0]
push edx
call fcn.004a9450
lea eax, [esi + 0xd8]
lea ecx, [edi + 0xd8]
push eax
mov byte [esp + 0x20], 5
call fcn.004a9450
lea edx, [esi + 0xf0]
lea ecx, [edi + 0xf0]
push edx
mov byte [esp + 0x20], 6
call fcn.004a9450
mov eax, dword [edi + 0x108]
mov dword [esi + 0x108], eax
mov ecx, dword [edi + 0x10c]
mov dword [esi + 0x10c], ecx
mov edx, dword [edi + 0x110]
mov dword [esi + 0x110], edx
mov eax, dword [edi + 0x114]
mov dword [esi + 0x114], eax
mov cl, byte [edi + 0x118]
mov byte [esi + 0x118], cl
mov dl, byte [edi + 0x119]
mov byte [esi + 0x119], dl
mov al, byte [edi + 0x11a]
mov byte [esi + 0x11a], al
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x4bd3e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov ecx, dword [eax + 0x9c4]
cmp ecx, 0x270
jl 0x4bd4ae
push ebx
push esi
push edi
cmp ecx, 0x271
jne 0x4bd404
mov edi, dword [eax]
call fcn.004bd500
lea edi, [eax + 4]
mov edx, edi
mov esi, 0xe3
mov edi, edi
mov ecx, dword [edx + 4]
xor ecx, dword [edx]
add edx, 4
and ecx, 0x7fffffff
xor ecx, dword [edx - 4]
mov ebx, ecx
shr ecx, 1
and ebx, 1
xor ecx, dword [ebx*4 + 0x58334c]
xor ecx, dword [edx + 0x630]
sub esi, 1
mov dword [edx - 4], ecx
jne 0x4bd410
lea edx, [eax + 0x390]
mov esi, 0x18c
mov ecx, dword [edx + 4]
xor ecx, dword [edx]
add edx, 4
and ecx, 0x7fffffff
xor ecx, dword [edx - 4]
mov ebx, ecx
shr ecx, 1
and ebx, 1
xor ecx, dword [ebx*4 + 0x58334c]
xor ecx, dword [edx - 0x390]
sub esi, 1
mov dword [edx - 4], ecx
jne 0x4bd448
mov ecx, dword [eax + 0x9c0]
xor ecx, dword [edi]
pop edi
and ecx, 0x7fffffff
xor ecx, dword [eax + 0x9c0]
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x58334c]
xor edx, dword [eax + 0x634]
shr ecx, 1
mov dword [eax + 0x9c4], esi
xor edx, ecx
pop esi
mov dword [eax + 0x9c0], edx
pop ebx
mov edx, dword [eax + 0x9c4]
mov ecx, dword [eax + edx*4 + 4]
inc edx
mov dword [eax + 0x9c4], edx
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov edx, ecx
and edx, 0xff3a58ad
shl edx, 7
xor ecx, edx
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
xor edx, edx
div dword [esp + 4]
mov eax, edx
ret 4

Function at 0x4bd5b0
Capabilities:
Hash data using djb2

Disassembly:
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bd5b5
sub eax, edx
mov edx, eax
mov eax, 0x1505
mov ecx, 0
je 0x4bd5e6
push ebx
push edi
mov edi, edi
movsx edi, byte [ecx + esi]
mov ebx, eax
shl ebx, 5
add ebx, eax
add edi, ebx
inc ecx
mov eax, edi
cmp ecx, edx
jb 0x4bd5d0
pop edi
pop ebx
ret

Function at 0x4bd7f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5505f1
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x57f7c4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ebx
mov byte [esi + 0x14], bl
mov dword [esp + 0x14], ebx
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], ebx
mov byte [esi + 0x4c], bl
lea eax, [esi + 0x64]
push eax
mov byte [esp + 0x18], 2
call fcn.004a3110
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x4be830
Capabilities:
Hash data using djb2

Disassembly:
sub esp, 0x138
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push eax
push str.LocalVariableCount_:__d_n
xor ebx, ebx
push edi
mov esi, ecx
mov dword [esp + 0x1c], ebx
call fcn.0051b63c
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
mov dword [esi + 0x224], eax
mov dword [esp + 0x14], ebx
jle 0x4be920
add esi, 0x228
mov dword [esp + 0x1c], esi
fldz
lea ecx, [esp + 0x18]
push ecx
fstp dword [esp + 0x2c]
push str.Type_:__d_n
push edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
call fcn.0051b63c
add esp, 0xc
lea edx, [esp + 0xb8]
push edx
push str.Name_:__s_n
push edi
call fcn.0051b63c
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xc4]
add esp, 0xc
lea edx, [eax + 1]
jmp 0x4be8d0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4be8d0
sub eax, edx
mov ecx, 0x1505
mov edx, ebx
je 0x4be8fa
movsx esi, byte [esp + edx + 0xb8]
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add esi, ebp
inc edx
mov ecx, esi
cmp edx, eax
jb 0x4be8e2
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.004af010
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jl 0x4be882
push edi
call fcn.0051c23b
mov ecx, dword [esp + 0x140]
add esp, 4
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.0051a8be
add esp, 0x138
ret
Function at 0x4d6700
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x88
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str..DataSequenceItemCreate.ini
push 0
push str.COUNT
push str.SEQUENCE_GROUP_COUNT
call ebx
mov dword [0x109aaac], eax
test eax, eax
jg 0x4d6765
mov eax, dword [0x587970]
add eax, 0xe0
push str.CItemDrop::InitSequenceItemCreate_SequenceItemCreate_open_0
push eax
call fcn.004efdc0
add esp, 8
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0051a8be
add esp, 0x88
ret
cmp eax, 0xc
jle 0x4d678e
mov ecx, dword [0x587970]
add ecx, 0xe0
push str.CItemDrop::InitSequenceItemCreate_SequenceGroup_over
push ecx
call fcn.004efdc0
mov eax, 0xc
add esp, 8
mov dword [0x109aaac], eax
xor ecx, ecx
test eax, eax
jle 0x4d6849
push ebp
push esi
push edi
mov edi, 0x109a8a0
mov dword [esp + 0x10], edi
jmp 0x4d67aa
mov edi, dword [esp + 0x10]
lea ebp, [ecx + 1]
push ebp
lea edx, [esp + 0x18]
push str.SEQUENCE_GROUP__d
push edx
call fcn.0051a8cd
add esp, 0xc
push str..DataSequenceItemCreate.ini
push 0
push str.SEQUENCE
lea eax, [esp + 0x20]
push eax
call ebx
mov dword [edi - 4], eax
test eax, eax
je 0x4d6822
xor esi, esi
lea esp, [esp]
push esi
lea ecx, [esp + 0x58]
push str.GRADE__d
push ecx
call fcn.0051a8cd
add esp, 0xc
push str..DataSequenceItemCreate.ini
push 0
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x20]
push eax
call ebx
mov dword [edi], eax
inc esi
add edi, 4
cmp esi, 0xa
jl 0x4d67e0
add dword [esp + 0x10], 0x2c
mov ecx, ebp
cmp ecx, dword [0x109aaac]
jl 0x4d67a6
jmp 0x4d6846
mov ecx, dword [0x587970]
add ecx, 0xe0
push str.CItemDrop::InitSequenceItemCreate_dwSequence__0_error
push ecx
call fcn.004efdc0
add esp, 8
mov dword [0x109aaac], 0
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x88]
pop ebx
xor ecx, esp
call fcn.0051a8be
add esp, 0x88
ret
Function at 0x4dfdd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
add eax, 8
push esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
push edi
jmp 0x4dfdf0
mov esi, dword [esp + 0xc]
mov dword [esp + 0x10], 0
lea esp, [esp]
mov ecx, dword [ebx]
push 4
lea edi, [esi - 8]
push edi
push ecx
call fcn.0051ef73
mov ebp, dword [edi]
add esp, 0xc
test ebp, ebp
jle 0x4dfe4f
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051a8b3
add esp, 4
mov dword [esi - 4], eax
test eax, eax
je 0x4dfef7
lea ecx, [ebp + ebp]
push ecx
push 0
push eax
call fcn.0051d6f0
add esp, 0xc
mov dword [edi], ebp
mov edx, dword [edi]
mov eax, dword [esi - 4]
mov ecx, dword [ebx]
add edx, edx
push edx
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebx]
push 4
push esi
push edx
call fcn.0051ef73
mov edi, dword [esi]
add esp, 0x18
test edi, edi
jle 0x4dfea7
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051a8b3
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x4dfef7
lea ecx, [edi + edi]
push ecx
push 0
push eax
call fcn.0051d6f0
add esp, 0xc
mov dword [esi], edi
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [ebx]
add edx, edx
push edx
push eax
push ecx
call fcn.0051ef73
mov eax, dword [esp + 0x1c]
inc eax
add esp, 0xc
add esi, 0x10
cmp eax, 0x100
mov dword [esp + 0x10], eax
jl 0x4dfe00
mov eax, dword [esp + 0x14]
add dword [esp + 0xc], 0x1000
inc eax
cmp eax, 0x100
mov dword [esp + 0x14], eax
jl 0x4dfdf0
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0xc
ret
pop edi
pop esi
xor al, al
pop ebp
add esp, 0xc
ret
Function at 0x4e4180
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
mov eax, dword [esi + 0x104]
push edi
mov edi, ecx
mov edx, 0x10
test eax, eax
jle 0x4e421c
mov ecx, edx
sub ecx, eax
cmp ebp, ecx
jg 0x4e41ea
test ebp, ebp
je 0x4e41ce
lea ebx, [ebx]
mov eax, dword [esi + 0x104]
mov cl, byte [esi + eax + 0x108]
xor cl, byte [ebx]
dec ebp
mov byte [edi], cl
inc dword [esi + 0x104]
inc edi
inc ebx
test ebp, ebp
jne 0x4e41b0
cmp dword [esi + 0x104], edx
jl 0x4e4313
pop edi
pop ebp
mov dword [esi + 0x104], 0
pop ebx
ret 4
sub ebp, ecx
cmp eax, edx
jge 0x4e4212
mov eax, dword [esi + 0x104]
mov cl, byte [esi + eax + 0x108]
xor cl, byte [ebx]
inc edi
mov byte [edi - 1], cl
inc dword [esi + 0x104]
inc ebx
cmp dword [esi + 0x104], edx
jl 0x4e41f0
mov dword [esi + 0x104], 0
cmp ebp, edx
jl 0x4e42a6
mov eax, ebp
shr eax, 4
mov dword [esp + 0x10], eax
neg eax
shl eax, 4
add ebp, eax
lea eax, [esi + 0x108]
push esi
push eax
lea eax, [esi + 0xf4]
call fcn.004e3450
lea eax, [esi + 0xf4]
add esp, 8
add dword [eax], 1
jne 0x4e426a
add eax, 4
add dword [eax], 1
jne 0x4e426a
add eax, 4
add dword [eax], 1
jne 0x4e426a
add eax, 4
inc dword [eax]
mov edx, dword [ebx]
xor edx, dword [esi + 0x108]
add edi, 0x10
mov dword [edi - 0x10], edx
mov eax, dword [ebx + 4]
xor eax, dword [esi + 0x10c]
add ebx, 0x10
mov dword [edi - 0xc], eax
mov ecx, dword [ebx - 8]
xor ecx, dword [esi + 0x110]
mov dword [edi - 8], ecx
mov edx, dword [ebx - 4]
xor edx, dword [esi + 0x114]
sub dword [esp + 0x10], 1
mov dword [edi - 4], edx
jne 0x4e4234
test ebp, ebp
jle 0x4e4313
lea ecx, [esi + 0x108]
push esi
lea eax, [esi + 0xf4]
push ecx
call fcn.004e3450
lea eax, [esi + 0xf4]
mov ecx, 1
add esp, 8
add dword [eax], ecx
jne 0x4e42e2
add eax, 4
add dword [eax], ecx
jne 0x4e42e2
add eax, 4
add dword [eax], ecx
jne 0x4e42e2
add eax, 4
add dword [eax], ecx
cmp dword [esi + 0x104], ebp
jge 0x4e4313
lea ebx, [ebx]
mov edx, dword [esi + 0x104]
mov al, byte [esi + edx + 0x108]
xor al, byte [ebx]
add ebx, ecx
mov byte [edi], al
add dword [esi + 0x104], ecx
add edi, ecx
cmp dword [esi + 0x104], ebp
jl 0x4e42f0
pop edi
pop ebp
pop ebx
ret 4
Function at 0x4e7070
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x70
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x74]
push esi
push edi
mov edi, edx
xor edx, edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0x6a09e667
mov dword [esp + 0x14], 0xbb67ae85
mov dword [esp + 0x18], 0x3c6ef372
mov dword [esp + 0x1c], 0xa54ff53a
mov dword [esp + 0x20], 0x510e527f
mov dword [esp + 0x24], 0x9b05688c
mov dword [esp + 0x28], 0x1f83d9ab
mov dword [esp + 0x2c], 0x5be0cd19
cmp eax, edx
je 0x4e70e1
push ecx
lea esi, [esp + 0xc]
call fcn.004e6db0
add esp, 4
lea ecx, [esp + 8]
call fcn.004e6e40
mov ecx, dword [esp + 0x74]
pop edi
pop esi
xor ecx, esp
call fcn.0051a8be
add esp, 0x70
ret

Function at 0x4e7b70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov byte [esp], 0x30
mov byte [esp + 1], 0x31
mov byte [esp + 2], 0x32
mov byte [esp + 3], 0x33
mov byte [esp + 4], 0x34
mov byte [esp + 5], 0x35
mov byte [esp + 6], 0x36
mov byte [esp + 7], 0x37
mov byte [esp + 8], 0x38
mov byte [esp + 9], 0x39
mov byte [esp + 0xa], 0x41
mov byte [esp + 0xb], 0x42
mov byte [esp + 0xc], 0x43
mov byte [esp + 0xd], 0x44
mov byte [esp + 0xe], 0x45
mov byte [esp + 0xf], 0x46
mov al, byte [esp + eax]
xor ecx, esp
call fcn.0051a8be
add esp, 0x14
ret

Function at 0x4e9710
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
je 0x4e971d
xor al, al
pop esi
ret
push esi
push 0x200000
push 0x4e9200
call fcn.0051d0a0
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4e9719
mov al, 1
mov byte [esi + 8], al
pop esi
ret
Function at 0x4e9980
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push edi
mov edi, ecx
cmp byte [edi + 0x24], 0
je 0x4e998f
mov al, 1
pop edi
pop ecx
ret
push esi
push 1
push 0
push 0
push 6
push 1
push 2
lea esi, [edi + 0xc]
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4e99bf
mov ecx, dword [edi + 0x34]
push str.SAcceptor::StartAcception:m_ListenSocket.Create
call fcn.004ef170
pop esi
xor al, al
pop edi
pop ecx
ret
mov ecx, dword [esi]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x20], 1
call ebp
mov eax, dword [edi + 0x34]
test eax, eax
je 0x4e9a3f
mov edx, dword [esi]
push 4
add eax, 0x18
push eax
push 0x1002
push 0xffff
push edx
call ebp
mov eax, dword [edi + 0x34]
mov ecx, dword [esi]
push 4
add eax, 0x1c
push eax
push 0x1001
push 0xffff
push ecx
call ebp
mov edx, dword [edi + 0x34]
mov eax, dword [esi]
push 4
add edx, 0x24
push edx
push 0xffffff7f
push 0xffff
push eax
call ebp
mov ecx, dword [edi + 0x34]
mov edx, dword [esi]
push 4
add ecx, 0x20
push ecx
push 1
push 6
push edx
call ebp
mov eax, dword [edi + 0x20]
push eax
mov ecx, esi
call fcn.004e97a0
pop ebp
test al, al
jne 0x4e9a62
mov ecx, dword [edi + 0x34]
push str.SAcceptor::StartAcception:m_ListenSocket.Bind
call fcn.004ef170
pop esi
xor al, al
pop edi
pop ecx
ret
mov ecx, dword [esi]
push closesocket
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4e9a88
mov ecx, dword [edi + 0x34]
push str.SAcceptor::StartAcception__:m_ListenSocket.Listen
call fcn.004ef170
pop esi
xor al, al
pop edi
pop ecx
ret
mov edx, dword [edi + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
mov byte [edi + 0x24], 1
mov al, 1
pop edi
pop ecx
ret
Function at 0x4e9c51
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x18], 0
je 0x4e9c5f
mov al, 1
pop esi
pop ecx
ret
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4e9c8a
mov ecx, dword [esi + 0x24]
push str.SAcceptorEx::StartAcception:m_ListenSocket.Create
call fcn.004ef170
xor al, al
pop esi
pop ecx
ret
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0xffff
push eax
mov dword [esp + 0x1c], 1
call edi
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4e9d08
mov edx, dword [esi]
push 4
add eax, 0x18
push eax
push 0x1002
push 0xffff
push edx
call edi
mov eax, dword [esi + 0x24]
mov ecx, dword [esi]
push 4
add eax, 0x1c
push eax
push 0x1001
push 0xffff
push ecx
call edi
mov edx, dword [esi + 0x24]
mov eax, dword [esi]
push 4
add edx, 0x24
push edx
push 0xffffff7f
push 0xffff
push eax
call edi
mov ecx, dword [esi + 0x24]
mov edx, dword [esi]
push 4
add ecx, 0x20
push ecx
push 1
push 6
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
mov ecx, esi
call fcn.004e97a0
test al, al
jne 0x4e9d2a
mov ecx, dword [esi + 0x24]
push str.SAcceptorEx::StartAcception:m_ListenSocket.Bind
call fcn.004ef170
pop edi
xor al, al
pop esi
pop ecx
ret
mov ecx, dword [esi]
push closesocket
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4e9d50
mov ecx, dword [esi + 0x24]
push str.SAcceptorEx::StartAcception__:m_ListenSocket.Listen
call fcn.004ef170
pop edi
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esi]
mov ecx, dword [esi + 0x28]
push eax
push eax
call fcn.004f15f0
test al, al
je 0x4e9d4a
xor edi, edi
cmp dword [esi + 0x1c], edi
mov byte [esi + 0x18], 1
jle 0x4e9d83
jmp 0x4e9d70
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
push esi
push edx
call fcn.004f27e0
inc edi
cmp edi, dword [esi + 0x1c]
jl 0x4e9d70
pop edi
mov al, 1
pop esi
pop ecx
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x54d163
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x57f7c4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
push edi
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x30]
mov ecx, dword [eax + 4]
lea esi, [edi + 0x18]
push ecx
mov ecx, esi
call fcn.004eb230
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov eax, dword [esi + 0x18]
push edi
mov dword [eax + 8], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, esi
mov byte [esp + 0x18], 0
call fcn.004ec0f0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4ec950
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x14
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push ebx
push esi
push eax
mov esi, ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4ecaa9
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi + 0x68], eax
cmp eax, 0xffffffff
je 0x4ecaa9
mov ecx, dword [esi + 0xc8]
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
test ecx, ecx
je 0x4ec9ff
add ecx, 0x18
push ecx
push 0x1002
push 0xffff
push eax
call edi
mov eax, dword [esi + 0xc8]
mov ecx, dword [esi + 0x68]
push 4
add eax, 0x1c
push eax
push 0x1001
push 0xffff
push ecx
call edi
mov edx, dword [esi + 0xc8]
mov eax, dword [esi + 0x68]
push 4
add edx, 0x24
push edx
push 0xffffff7f
push 0xffff
push eax
call edi
mov ecx, dword [esi + 0xc8]
push 4
add ecx, 0x20
push ecx
jmp 0x4eca46
push 0x57f0a4
push 0x1002
push 0xffff
push eax
call edi
mov eax, dword [esi + 0x68]
push 4
push 0x57f0a8
push 0x1001
push 0xffff
push eax
call edi
mov ecx, dword [esi + 0x68]
push 4
push 0x5833c4
push 0xffffff7f
push 0xffff
push ecx
call edi
push 4
push 0x5833c0
mov edx, dword [esi + 0x68]
push 1
push 6
push edx
call edi
mov eax, 2
mov word [esp + 0xc], ax
movsx ecx, word [ebx + 0xa]
mov edx, dword [ebx + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0051d7c0
mov edx, dword [esp + 0x34]
add esp, 0xc
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x68]
mov word [esp + 0xe], ax
push 0x10
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
pop edi
test eax, eax
jge 0x4ecabe
mov edx, dword [esi + 0x68]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x68], 0xffffffff
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0051a8be
add esp, 0x14
ret 8
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0051a8be
add esp, 0x14
ret 8
Function at 0x4ecae0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x14
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, ecx
test ebx, ebx
je 0x4ecc1c
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi + 0x68], eax
cmp eax, 0xffffffff
je 0x4ecc1c
mov ecx, dword [esi + 0xc8]
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
test ecx, ecx
je 0x4ecb86
add ecx, 0x18
push ecx
push 0x1002
push 0xffff
push eax
call edi
mov eax, dword [esi + 0xc8]
mov ecx, dword [esi + 0x68]
push 4
add eax, 0x1c
push eax
push 0x1001
push 0xffff
push ecx
call edi
mov edx, dword [esi + 0xc8]
mov eax, dword [esi + 0x68]
push 4
add edx, 0x24
push edx
push 0xffffff7f
push 0xffff
push eax
call edi
mov ecx, dword [esi + 0xc8]
push 4
add ecx, 0x20
push ecx
jmp 0x4ecbcd
push 0x57f0a4
push 0x1002
push 0xffff
push eax
call edi
mov eax, dword [esi + 0x68]
push 4
push 0x57f0a8
push 0x1001
push 0xffff
push eax
call edi
mov ecx, dword [esi + 0x68]
push 4
push 0x5833c4
push 0xffffff7f
push 0xffff
push ecx
call edi
push 4
push 0x5833c0
mov edx, dword [esi + 0x68]
push 1
push 6
push edx
call edi
mov ecx, dword [esp + 0x28]
mov eax, 2
push ecx
mov word [esp + 0x10], ax
mov dword [esp + 0x14], ebx
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x10]
mov word [esp + 0x12], ax
mov eax, dword [esi + 0x68]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
pop edi
test eax, eax
jge 0x4ecc31
mov ecx, dword [esi + 0x68]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x68], 0xffffffff
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0051a8be
add esp, 0x14
ret 8
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0051a8be
add esp, 0x14
ret 8