joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb02e
Capabilities:
Connect socket
Get socket status
Initialize winsock library
Send data
Send data on socket
Set socket configuration
Terminate process

Disassembly:
mov eax, 0x521c44
call fcn.004efe80
sub esp, 0x3b8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
cmp dword [esi + 0x2008], ebx
mov dword [ebp - 0x10], esp
je 0x4bb058
call fcn.004bb969
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 1
je 0x4bb251
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
cmp eax, 0xf
pop ecx
ja 0x4bb251
lea eax, [ebp - 0x3c4]
mov edi, 0x101
push eax
push edi
mov dword [ebp - 4], ebx
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x4bb204
cmp word [ebp - 0x3c4], di
jne 0x4bb1ff
push ebx
push 1
pop edi
push edi
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x2004], eax
jne 0x4bb0c2
call sub.WS2_32.dll_WSAGetLastError
jmp 0x4bb1ff
cmp dword [ebp + 0x10], ebx
je 0x4bb0eb
lea ecx, [ebp + 0x10]
push 4
push ecx
push 8
push 0xffff
push eax
mov dword [ebp + 0x10], edi
call sub.WS2_32.dll_setsockopt
test eax, eax
je 0x4bb0eb
call sub.WS2_32.dll_WSAGetLastError
jmp 0x4bb1f4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push 0x8004667e
push dword [esi + 0x2004]
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x4bb0e1
push dword [ebp + 8]
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4bb1f4
lea ecx, [esi + 0x12430]
call fcn.004e2e7e
cmp al, bl
jne 0x4bb145
push 0xd8
push str.D:CQ2ClientRelease_12.14.23DRoleNetwork_socket.h
push str.ERROR:_CGameSocket::ReceiveMsg___ClientSecurity_Init_failed_at__s___d
call fcn.004ebdbb
add esp, 0xc
jmp 0x4bb204
push ebx
lea eax, [ebp - 0x2c]
push 0x10
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x2c], 2
push dword [ebp + 0xc]
call sub.WS2_32.dll_htons
mov word [ebp - 0x2a], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push 0x10
push eax
push dword [esi + 0x2004]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4bb217
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4bb1f4
mov eax, dword [esi + 0x2004]
mov dword [ebp - 0x1c], 0x1e
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x234]
push eax
push ebx
push 0x40
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x130], edi
call sub.WS2_32.dll_select
cmp eax, ebx
je 0x4bb1f4
jl 0x4bb0e1
lea eax, [ebp - 0x130]
push eax
push dword [esi + 0x2004]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4bb217
push dword [esi + 0x2004]
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
mov dword [esi + 0x1200c], ebx
mov dword [esi + 0x12010], ebx
mov dword [esi + 0x2000], ebx
mov dword [esi + 0x2008], edi
lea eax, [esi + 0x12014]
add esi, 0x1221c
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov eax, edi
jmp 0x4bb206
push 5
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x4bb259
Capabilities:
Send data
Send data on socket
Terminate process

Disassembly:
mov eax, 0x521c50
call fcn.004efe80
push ecx
mov eax, 0x2000
call fcn.004f0120
mov eax, dword [ebp + 8]
push ebx
push esi
xor edx, edx
push edi
cmp eax, edx
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], edx
je 0x4bb445
mov ebx, dword [ebp + 0xc]
cmp ebx, edx
jle 0x4bb445
mov ecx, 0x400
cmp ebx, ecx
jg 0x4bb445
cmp dword [esi + 0x2008], edx
je 0x4bb315
cmp dword [esi + 0x12428], 2
mov byte [ebp - 4], 1
jne 0x4bb2bf
cmp byte [esi + 0x12424], dl
je 0x4bb2bf
mov eax, ebx
jmp 0x4bb2c2
movzx eax, word [eax]
cmp eax, edx
jle 0x4bb426
cmp eax, ecx
jg 0x4bb426
cmp eax, ebx
je 0x4bb2e5
mov ecx, esi
call fcn.004bb969
push 5
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [esi + 0x2000]
mov edi, 0x2000
mov dword [ebp - 4], edx
lea ecx, [eax + ebx]
cmp ecx, edi
jle 0x4bb328
mov ecx, esi
call fcn.004bb877
mov eax, dword [esi + 0x2000]
lea ecx, [eax + ebx]
cmp ecx, edi
jle 0x4bb328
mov ecx, esi
call fcn.004bb969
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
push ebx
add eax, esi
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x12428]
add esp, 0xc
dec eax
je 0x4bb401
dec eax
jne 0x4bb418
cmp byte [esi + 0x12424], 0
jne 0x4bb418
and byte [ebp - 0x2010], 0
mov ecx, 0x7ff
xor eax, eax
lea edi, [ebp - 0x200f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x2010]
push ebx
push eax
lea edi, [esi + 0x12430]
push dword [ebp + 8]
mov ecx, edi
call fcn.004e3597
lea eax, [ebp - 0x2010]
push ebx
push eax
mov eax, dword [esi + 0x2000]
add eax, esi
push eax
call sub.MSVCRT.dll_memcpy
push 0x2000
lea eax, [ebp - 0x2010]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
call fcn.004e3713
mov dword [ebp + 8], eax
call fcn.004e3707
push dword [ebp + 8]
lea ecx, [ebp - 0x2010]
push ecx
push eax
mov ecx, edi
call fcn.004e3597
call fcn.004e3713
push eax
lea eax, [ebp - 0x2010]
push eax
mov eax, dword [esi + 0x2000]
add eax, ebx
add eax, esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
call fcn.004e3713
add dword [esi + 0x2000], eax
jmp 0x4bb418
mov eax, dword [esi + 0x2000]
push 1
add eax, esi
push ebx
push eax
lea ecx, [esi + 0x12014]
call fcn.004bba51
add dword [esi + 0x2000], ebx
push 1
pop eax
jmp 0x4bb317
mov ecx, esi
call fcn.004bb969
push 5
call dword [sym.imp.MSVCRT.dll_exit]
push 5
call dword [sym.imp.MSVCRT.dll_exit]
push 5
call dword [sym.imp.MSVCRT.dll_exit]
push 5
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x4bb877
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x521c68
call fcn.004efe80
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x2000]
mov dword [ebp - 0x10], esp
test eax, eax
jle 0x4bb8cd
push 0
push eax
push esi
push dword [esi + 0x2004]
call sub.WS2_32.dll_send
mov edi, eax
test edi, edi
jle 0x4bb8df
mov eax, dword [esi + 0x2000]
sub eax, edi
test eax, eax
jle 0x4bb8c7
push eax
lea eax, [edi + esi]
push eax
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0x2000], edi
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4bb8cd
mov ecx, esi
call fcn.004bb969
xor eax, eax
jmp 0x4bb8d0

Function at 0x4bb8fe
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x521c74
call fcn.004efe80
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x2008], 0
mov dword [ebp - 0x10], esp
je 0x4bb94b
push 2
lea eax, [ebp - 0x11]
push 1
push eax
push dword [esi + 0x2004]
call sub.WS2_32.dll_recv
test eax, eax
je 0x4bb944
jge 0x4bb964
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4bb964
mov ecx, esi
call fcn.004bb969
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
push 1
pop eax
jmp 0x4bb94d
Function at 0x4bbad5
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.004f0120
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x2008], 0
je 0x4bbc83
mov edx, dword [esi + 0x1200c]
mov ebx, 0x10000
cmp edx, ebx
jge 0x4bbc83
mov ecx, dword [esi + 0x12010]
lea eax, [ecx + edx]
cmp eax, ebx
jge 0x4bbb1f
mov edi, ebx
sub edi, ecx
sub edi, edx
mov dword [ebp - 8], edi
jmp 0x4bbb28
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 8], ecx
mov edi, ecx
cdq
mov ecx, ebx
push 0
idiv ecx
push edi
lea eax, [edx + esi + 0x200c]
push eax
mov dword [ebp - 0xc], eax
push dword [esi + 0x2004]
call sub.WS2_32.dll_recv
mov ecx, eax
test ecx, ecx
mov dword [ebp - 4], ecx
jle 0x4bbc8f
mov eax, dword [esi + 0x12428]
cmp eax, 1
jne 0x4bbb70
push eax
push ecx
push dword [ebp - 0xc]
lea ecx, [esi + 0x1221c]
call fcn.004bba51
jmp 0x4bbbc7
cmp eax, 2
jne 0x4bbbc7
cmp byte [esi + 0x12424], 0
jne 0x4bbbc7
and byte [ebp - 0x1000c], 0
mov ecx, 0x3fff
xor eax, eax
lea edi, [ebp - 0x1000b]
rep stosd dword es:[edi], eax
push dword [ebp - 4]
lea ecx, [esi + 0x12430]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1000c]
push eax
push dword [ebp - 0xc]
call fcn.004e35dd
push dword [ebp - 4]
lea eax, [ebp - 0x1000c]
push eax
push dword [ebp - 0xc]
call sub.MSVCRT.dll_memcpy
mov edi, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 4]
add dword [esi + 0x1200c], ecx
mov eax, dword [esi + 0x1200c]
cmp ecx, edi
jne 0x4bbc83
cmp eax, ebx
jge 0x4bbc83
mov ecx, ebx
push 0
sub ecx, eax
add eax, dword [esi + 0x12010]
push ecx
cdq
idiv ebx
lea ebx, [edx + esi + 0x200c]
push ebx
push dword [esi + 0x2004]
call sub.WS2_32.dll_recv
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
jle 0x4bbc8b
mov eax, dword [esi + 0x12428]
dec eax
je 0x4bbc6e
dec eax
jne 0x4bbc7d
cmp byte [esi + 0x12424], 0
jne 0x4bbc7d
and byte [ebp - 0x1000c], 0
mov ecx, 0x3fff
xor eax, eax
lea edi, [ebp - 0x1000b]
rep stosd dword es:[edi], eax
push dword [ebp - 4]
lea ecx, [esi + 0x12430]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1000c]
push eax
push ebx
call fcn.004e35dd
push dword [ebp - 4]
lea eax, [ebp - 0x1000c]
push eax
push ebx
call sub.MSVCRT.dll_memcpy
mov edi, dword [ebp - 4]
add esp, 0xc
jmp 0x4bbc7d
push 1
push edi
push ebx
lea ecx, [esi + 0x1221c]
call fcn.004bba51
add dword [esi + 0x1200c], edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
jne 0x4bbc91
jmp 0x4bbc9d
je 0x4bbc9d
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4bbc83
mov ecx, esi
call fcn.004bb969
xor eax, eax
jmp 0x4bbc86
Function at 0x4c5bd0
Capabilities:
Create directory

Disassembly:
mov eax, 0x522540
call fcn.004efe80
sub esp, 0xcc
mov eax, dword [0x5611f0]
push ebx
push esi
push edi
mov edx, ecx
push 0x1f
mov dword [ebp - 0x98], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
mov ecx, edx
push eax
call fcn.004c5b9a
mov eax, dword [eax]
and dword [ebp - 4], 0
lea ecx, [ebp - 0xd8]
push 0xa
push ecx
push eax
call fcn.00434ca9
pop ecx
push 0
push eax
call dword [sym.imp.MSVCRT.dll__i64toa]
add esp, 0x10
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.00407dc8
mov esi, dword [sym.imp.MSVCRT.dll__mkdir]
lea eax, [ebp - 0x98]
push eax
call esi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
pop ecx
mov ebx, 0x5716dc
lea eax, [ebp - 0x98]
push ebx
push str.LOG__s
push eax
call edi
lea eax, [ebp - 0x98]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0xd8]
push eax
push ebx
lea eax, [ebp - 0x98]
push str.LOG__s__s
push eax
call edi
lea eax, [ebp - 0x98]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0xd8]
push eax
push ebx
lea eax, [ebp - 0x98]
push str.LOG__s__s_CHAT
push eax
call edi
lea eax, [ebp - 0x98]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x98]
push str.LOG__s
push eax
call edi
lea eax, [ebp - 0x98]
push eax
call esi
add esp, 0x10
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4c6739
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x5225cc
call fcn.004efe80
sub esp, 0x384
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.004c5fb8
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.004c5b9a
mov eax, dword [eax]
lea ecx, [ebp - 0x7c]
push 0xa
xor ebx, ebx
push ecx
push eax
mov dword [ebp - 4], ebx
call fcn.00434ca9
pop ecx
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__i64toa]
add esp, 0x10
mov eax, dword [ebp - 0x24]
push 1
sub eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], ebx
pop edi
mov dword [ebp - 4], edi
je 0x4c679b
push eax
push dword [ebp - 0x2c]
call fcn.0040952f
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x7c]
push str.leavewordsystem.log
mov esi, 0x5716dc
push eax
push esi
lea eax, [ebp - 0x390]
push str.LOG_s_sCHAT_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x390]
push 0x55e5b4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x1c
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x4c6904
lea eax, [ebp - 0x3c]
push 0x56d134
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0xc
cmp eax, edi
mov dword [ebp - 0x18], eax
jg 0x4c6808
mov dword [ebp - 0x18], 2
push esi
call sub.MSVCRT.dll_strlen
pop ecx
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28c]
push 1
push 0x210
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4c68ed
xor ecx, ecx
mov ebx, dword [ebp - 0x18]
mov eax, ecx
cdq
dec ebx
lea edi, [ecx + 1]
idiv ebx
lea esi, [ebp + ecx - 0x27c]
mov eax, ecx
mov ecx, dword [ebp - 0x20]
dec ecx
mov ebx, edx
cdq
idiv ecx
mov cl, byte [ebp + ebx - 0x3c]
mov eax, 0x5baacfb
mov ebx, 0x100
add cl, byte [edx + 0x5716dc]
cdq
idiv edi
cdq
idiv ebx
add cl, dl
xor byte [esi], cl
mov ecx, edi
cmp ecx, 0x200
jl 0x4c6837
push 0x210
call sub.MFC42.DLL_operatornew
xor ebx, ebx
pop ecx
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x4c68a8
push str.D:CQ2ClientRelease_12.14.23DRoleChatLog.cpp
push 0x1e4
push 0x5611f4
call fcn.004ebdbb
add esp, 0xc
lea eax, [ebp - 0x28c]
mov byte [ebp - 0x27d], bl
push eax
mov byte [ebp - 0x7d], bl
push dword [ebp - 0x14]
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x27c]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x120]
call fcn.004c3d17
jmp 0x4c6812
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
push 0x421
call fcn.004a308a
add esp, 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4c8653
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x5227fa
call fcn.004efe80
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x34]
call fcn.004095fb
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [ebp - 4], ebx
call fcn.004095fb
or dword [esi + 0x18], 0xffffffff
or dword [esi + 0x30], 0xffffffff
mov edi, 0x56ab48
mov byte [ebp - 4], 1
push edi
mov dword [esi], 0x5350c0
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov byte [esi + 6], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x40]
call fcn.004092b0
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x34]
call fcn.004092b0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
mov eax, 0x5227fa
call fcn.004efe80
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x34]
call fcn.004095fb
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [ebp - 4], ebx
call fcn.004095fb
or dword [esi + 0x18], 0xffffffff
or dword [esi + 0x30], 0xffffffff
mov edi, 0x56ab48
mov byte [ebp - 4], 1
push edi
mov dword [esi], 0x5350c0
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov byte [esi + 6], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x40]
call fcn.004092b0
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x34]
call fcn.004092b0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4cbcef
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov edx, ecx
push ebx
push esi
push edi
lea eax, [edx + 4]
push 0x2b
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], eax
mov dword [eax], 0xb7e15163
pop esi
lea ecx, [eax + 4]
mov eax, dword [eax]
sub eax, 0x61c88647
dec esi
mov dword [ecx], eax
mov eax, ecx
jne 0x4cbd0c
mov eax, dword [ebp + 0xc]
shr eax, 5
je 0x4cbd2f
mov esi, dword [ebp + 8]
mov ecx, eax
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
dec eax
xor ebx, ebx
cmp eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jbe 0x4cbd3d
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
xor edi, edi
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], 0x84
jmp 0x4cbd51
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push 3
inc eax
mov dword [ebp - 0x14], eax
lea eax, [edx + eax*4]
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
add eax, edi
add eax, dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll__rotl
lea esi, [ebp + ebx*4 - 0x38]
mov dword [ebp + 0xc], eax
add edi, eax
mov eax, dword [esi]
push edi
add eax, edi
push eax
call sub.MSVCRT.dll__rotl
mov ecx, dword [ebp - 0x10]
mov edi, eax
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov dword [ecx], eax
mov eax, dword [ebp + 8]
sub eax, 0x2b
mov dword [esi], edi
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov eax, ebx
sub eax, dword [ebp - 4]
inc ebx
neg eax
sbb eax, eax
and ebx, eax
dec dword [ebp - 8]
jne 0x4cbd4e
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4d4144
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edi
push dword [esi + 8]
lea edi, [esi + 0xc]
push 1
push 4
push edi
call ebx
mov eax, dword [edi]
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
add esp, 0x14
mov dword [esi + 4], eax
test eax, eax
jne 0x4d4185
push str.D:CQ2ClientRelease_12.14.23DRoleMagicData.cpp
push 0x23
push 0x56192c
call fcn.004ebdbb
add esp, 0xc
push dword [esi + 8]
push dword [edi]
push 4
push dword [esi + 4]
call ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4d41b8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [eax + eax*4]
lea ebx, [esi + 0x10]
push edi
lea eax, [ecx + eax*2]
mov ecx, ebx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.004d44a6
cmp eax, dword [ebx]
je 0x4d4200
add eax, 0x14
push 0x630
push eax
push dword [ebp + 0x10]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x4d4293
mov edx, dword [esi + 4]
test edx, edx
je 0x4d4225
mov ecx, dword [esi + 0xc]
xor eax, eax
test ecx, ecx
jbe 0x4d4225
mov edi, dword [edx]
cmp edi, dword [ebp + 8]
je 0x4d4221
inc eax
add edx, 4
cmp eax, ecx
jb 0x4d4210
jmp 0x4d4225
test eax, eax
jge 0x4d4229
xor eax, eax
jmp 0x4d4296
imul eax, eax, 0x18c
add eax, ecx
push 0
lea eax, [eax*4 + 4]
push eax
push dword [esi + 8]
call dword [sym.imp.MSVCRT.dll_fseek]
push dword [esi + 8]
mov esi, dword [ebp + 0x10]
push 1
push 0x630
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push 0x20
lea eax, [esi + 0xd4]
push 0x7e
push eax
call fcn.004ec69d
mov eax, dword [ebp + 8]
add esp, 0x28
mov dword [ebp - 0x63c], eax
lea eax, [ebp - 0x63c]
mov ecx, 0x18c
lea edi, [ebp - 0x638]
push eax
lea eax, [ebp - 8]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebx
call fcn.004d4395
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4dd0ee
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x523bb0
call fcn.004efe80
sub esp, 0x1c
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4dd172
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4dd172
lea ecx, [ebp - 0x28]
call fcn.004095fb
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004095fb
and dword [ebp - 0x10], 0
push edi
mov dword [ebp - 4], 1
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004092b0
push esi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, esi
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.004092b0
lea eax, [ebp - 0x28]
push eax
push 0x4dd031
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004dd182
mov eax, esi
jmp 0x4dd174
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4e1526
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x10
push dword [ebp + 8]
mov ebx, ecx
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [ebx + 0x10], 0xb7e15163
lea eax, [ebx + 0x14]
push 0x19
pop ecx
mov edx, dword [eax - 4]
sub edx, 0x61c88647
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x4e154b
xor edi, edi
xor esi, esi
mov dword [ebp + 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], 0x4e
mov eax, dword [ebx + esi*4 + 0x10]
push 3
add eax, dword [ebp + 8]
add eax, dword [ebp - 4]
push eax
call fcn.004e164f
mov dword [ebx + esi*4 + 0x10], eax
mov ecx, eax
lea eax, [esi + 1]
push 0x1a
cdq
pop esi
mov dword [ebp - 4], ecx
idiv esi
mov eax, dword [ebp + 8]
mov esi, edx
lea edx, [eax + ecx]
push edx
mov edx, dword [ebx + edi*4]
add edx, eax
add edx, ecx
push edx
call fcn.004e164f
add esp, 0x10
mov dword [ebx + edi*4], eax
mov dword [ebp + 8], eax
lea eax, [edi + 1]
push 4
cdq
pop ecx
idiv ecx
dec dword [ebp - 8]
mov edi, edx
jne 0x4e156d
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4e15c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push esi
push 8
mov dword [ebp - 8], ecx
cdq
pop esi
idiv esi
shl eax, 3
test eax, eax
jle 0x4e164a
cdq
idiv esi
test eax, eax
jle 0x4e164a
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
jmp 0x4e15f4
mov ecx, dword [ebp - 8]
mov esi, dword [ebx]
mov edi, dword [ecx + 0x14]
add esi, dword [ecx + 0x10]
add edi, dword [ebx + 4]
add ecx, 0x1c
mov dword [ebp + 8], 0xc
mov dword [ebp + 0xc], ecx
mov eax, edi
push edi
xor eax, esi
push eax
call fcn.004e164f
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx - 4]
mov esi, eax
xor edi, esi
push esi
push edi
call fcn.004e164f
mov ecx, dword [ebp + 0xc]
add dword [ebp + 0xc], 8
add esp, 0x10
add eax, dword [ecx]
dec dword [ebp + 8]
mov edi, eax
jne 0x4e160c
mov dword [ebx], esi
mov dword [ebx + 4], edi
add ebx, 8
dec dword [ebp - 4]
jne 0x4e15f1
pop edi
pop ebx
pop esi
leave
ret 8