joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53725f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000c
call fcn.0059d8e0
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x2008], 0
je 0x537426
mov edx, dword [esi + 0x1200c]
mov ebx, 0x10000
cmp edx, ebx
jge 0x537426
mov ecx, dword [esi + 0x12010]
lea eax, [ecx + edx]
cmp eax, ebx
jge 0x5372a9
mov edi, ebx
sub edi, ecx
sub edi, edx
mov dword [ebp - 8], edi
jmp 0x5372b0
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 8], ecx
cdq
mov ecx, ebx
push 0
idiv ecx
push dword [ebp - 8]
lea edi, [edx + esi + 0x200c]
push edi
mov dword [ebp - 0xc], edi
push dword [esi + 0x2004]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
test ecx, ecx
mov dword [ebp - 4], ecx
jle 0x537444
mov eax, dword [esi + 0x12428]
cmp eax, 1
je 0x537348
cmp eax, 2
je 0x5372f7
jle 0x53735a
cmp eax, 4
jle 0x537348
jmp 0x53735a
cmp byte [esi + 0x12424], 0
jne 0x53735a
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.00588ae4
push dword [ebp - 4]
lea eax, [ebp - 0x1000c]
push eax
push dword [ebp - 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x537357
push 1
push ecx
push edi
lea ecx, [esi + 0x1221c]
call fcn.005371db
mov ecx, dword [ebp - 4]
add dword [esi + 0x1200c], ecx
cmp ecx, dword [ebp - 8]
mov eax, dword [esi + 0x1200c]
jne 0x537426
cmp eax, ebx
jge 0x537426
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 dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
jle 0x53742e
mov eax, dword [esi + 0x12428]
cmp eax, 1
je 0x537411
cmp eax, 2
je 0x5373c1
jle 0x537420
cmp eax, 4
jle 0x537411
jmp 0x537420
cmp byte [esi + 0x12424], 0
jne 0x537420
and byte [ebp - 0x2000c], 0
mov ecx, 0x3fff
xor eax, eax
lea edi, [ebp - 0x2000b]
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 - 0x2000c]
push eax
push ebx
call fcn.00588ae4
push dword [ebp - 4]
lea eax, [ebp - 0x2000c]
push eax
push ebx
call sub.MSVCRT.dll_memcpy
mov edi, dword [ebp - 4]
add esp, 0xc
jmp 0x537420
push 1
push edi
push ebx
lea ecx, [esi + 0x1221c]
call fcn.005371db
add dword [esi + 0x1200c], edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
je 0x537466
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x537426
push 0x33b
jmp 0x537458
je 0x537466
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x537426
push 0x350
push eax
push str.ERROR:_Recv_failed:__d_at__d
call fcn.005950cb
add esp, 0xc
mov ecx, esi
call fcn.005370f1
xor eax, eax
jmp 0x537429
Function at 0x53e7fd
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
mov eax, 0x604331
call fcn.0059d590
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ebx, [edi + 0xc]
mov ecx, ebx
call fcn.00402cc4
xor esi, esi
lea ecx, [edi + 0x18]
mov dword [ebp - 4], esi
call fcn.00402cc4
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 1
call fcn.00402cc4
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov esi, 0x68f370
push esi
mov byte [ebp - 4], 2
call sub.MSVCRT.dll_strlen
pop ecx
add eax, esi
push eax
push esi
mov ecx, ebx
call fcn.004029af
push esi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, esi
push eax
push esi
lea ecx, [edi + 0x18]
call fcn.004029af
push esi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, esi
push eax
push esi
lea ecx, [edi + 0x24]
call fcn.004029af
and dword [edi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x5436be
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
mov eax, 0x60494e
call fcn.0059d590
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0xc]
call fcn.00402cc4
xor ebx, ebx
lea ecx, [esi + 0x18]
mov dword [ebp - 4], ebx
call fcn.00402cc4
mov edi, 0x68f370
mov byte [ebp - 4], 1
push edi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0xc]
call fcn.004029af
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x18]
call fcn.004029af
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x40], ebx
mov byte [esi + 0x24], bl
mov byte [esi + 0x25], bl
mov byte [esi + 0x26], bl
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x38], bl
mov dword [esi + 0x44], ebx
mov byte [esi + 0x48], bl
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x5437ae
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x604963
call fcn.0059d590
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [edi]
lea ecx, [esi + 0xc]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
lea eax, [edi + 0xc]
push eax
call fcn.00402c6e
and dword [ebp - 4], 0
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x18]
call fcn.00402c6e
mov al, byte [edi + 0x24]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x24], al
mov al, byte [edi + 0x25]
mov byte [esi + 0x25], al
mov al, byte [edi + 0x26]
mov byte [esi + 0x26], al
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov al, byte [edi + 0x38]
mov byte [esi + 0x38], al
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
mov al, byte [edi + 0x48]
mov byte [esi + 0x48], al
mov al, byte [edi + 0x49]
mov byte [esi + 0x49], al
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x5453a8
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x604ca6
call fcn.0059d590
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x40]
call fcn.00402cc4
xor ebx, ebx
lea ecx, [esi + 0x4c]
mov dword [ebp - 4], ebx
call fcn.00402cc4
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 1
call fcn.00402cc4
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 2
call fcn.00402cc4
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 3
call fcn.00402cc4
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 4
call fcn.00402cc4
lea ecx, [esi + 0x88]
mov byte [ebp - 4], 5
call fcn.00402cc4
lea ecx, [esi + 0x94]
mov byte [ebp - 4], 6
call fcn.00402cc4
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 7
call fcn.00402cc4
lea ecx, [esi + 0xac]
mov byte [ebp - 4], 8
call fcn.00402cc4
lea ecx, [esi + 0xb8]
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xe]
push eax
call fcn.004e4295
lea eax, [ebp - 0xe]
lea ecx, [esi + 0xc4]
push eax
mov byte [ebp - 4], 0xc
call fcn.004dd659
mov edi, 0x68f370
lea ecx, [esi + 0xac]
push edi
mov byte [ebp - 4], 0xe
mov byte [esi + 0x34], bl
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov word [esi + 0x36], 2
mov dword [esi + 0x14], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
call fcn.004dd2ae
push edi
lea ecx, [esi + 0xa0]
call fcn.004dd2ae
or dword [esi + 0x10], 0xffffffff
push edi
lea ecx, [esi + 0x40]
call fcn.004dd2ae
push edi
lea ecx, [esi + 0x4c]
call fcn.004dd2ae
push edi
lea ecx, [esi + 0x58]
call fcn.004dd2ae
push edi
lea ecx, [esi + 0x64]
call fcn.004dd2ae
push edi
lea ecx, [esi + 0x88]
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call fcn.004dd2ae
push edi
lea ecx, [esi + 0x94]
call fcn.004dd2ae
lea ecx, [esi + 0xc4]
call fcn.00546dde
lea ecx, [esi + 0xb8]
call fcn.004e42e5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x545550
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x604cf8
call fcn.0059d590
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x6226f8
xor edi, edi
lea ecx, [esi + 0xc]
mov dword [ebp - 4], edi
call fcn.00546de9
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00546ec8
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.00546fa9
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov ecx, esi
mov byte [ebp - 4], 4
mov dword [esi], 0x6226f4
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.005456ef
mov ecx, esi
call fcn.005459e9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x54563e
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x604d80
call fcn.0059d590
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x6226f4
lea ebx, [esi + 0x18]
mov dword [ebp - 4], 4
mov ecx, ebx
call fcn.00459748
lea ecx, [esi + 0xc]
call fcn.00547177
lea edi, [esi + 0x24]
mov ecx, edi
call fcn.00547262
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.00460953
mov dword [ebp - 0x10], edi
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00547262
push 1
mov ecx, edi
push dword [edi]
mov byte [ebp - 4], 6
call fcn.00547609
mov dword [ebp - 0x10], ebx
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.00459748
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00459771
lea eax, [esi + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00547177
mov ecx, dword [ebp - 0x10]
and byte [ebp - 4], 0
call fcn.005471a0
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x6226f8
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x5456ef
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x604d9f
call fcn.0059d590
sub esp, 0x144
and byte [ebp - 0x50], 0
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x4f]
and byte [ebp - 0x150], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x14f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
and dword [ebp - 0x18], 0
stosb byte es:[edi], al
mov edi, str.ini_Questinfo.ini
mov esi, str.TaskType
push edi
push 0
push 0x6826d0
push esi
call ebx
push 1
mov dword [ebp - 0x1c], eax
pop eax
cmp dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
jl 0x545844
mov eax, dword [ebp - 0x14]
add eax, 0x18
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x28]
call fcn.00402cc4
push dword [ebp - 0x10]
and dword [ebp - 4], 0
lea eax, [ebp - 0x50]
push str.TypeId_d
push 0x1f
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
and byte [ebp - 0x31], 0
add esp, 0x10
lea eax, [ebp - 0x50]
push edi
push 0
push eax
push esi
call ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x50]
push str.TypeName_d
push 0x1f
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
and byte [ebp - 0x31], 0
lea eax, [ebp - 0x150]
push edi
push 0x100
push eax
lea eax, [ebp - 0x50]
push 0x68f370
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x150]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x150]
push eax
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x28]
call fcn.004029af
push edi
push 0
push str.TaskNameColor
push esi
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00546ef6
mov ecx, eax
call fcn.00545879
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.00402b84
or dword [ebp - 4], 0xffffffff
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jle 0x54576d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x547437
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x60519c
call fcn.0059d590
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [edi]
lea ecx, [esi + 0x40]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov al, byte [edi + 0x34]
mov byte [esi + 0x34], al
mov ax, word [edi + 0x36]
mov word [esi + 0x36], ax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
lea eax, [edi + 0x40]
push eax
call fcn.00402c6e
and dword [ebp - 4], 0
lea eax, [edi + 0x4c]
push eax
lea ecx, [esi + 0x4c]
call fcn.00402c6e
lea eax, [edi + 0x58]
lea ecx, [esi + 0x58]
push eax
mov byte [ebp - 4], 1
call fcn.00402c6e
lea eax, [edi + 0x64]
lea ecx, [esi + 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.00402c6e
lea eax, [edi + 0x70]
lea ecx, [esi + 0x70]
push eax
mov byte [ebp - 4], 3
call fcn.00402c6e
lea eax, [edi + 0x7c]
lea ecx, [esi + 0x7c]
push eax
mov byte [ebp - 4], 4
call fcn.00402c6e
lea eax, [edi + 0x88]
lea ecx, [esi + 0x88]
push eax
mov byte [ebp - 4], 5
call fcn.00402c6e
mov byte [ebp - 4], 6
lea eax, [edi + 0x94]
lea ecx, [esi + 0x94]
push eax
call fcn.00402c6e
lea eax, [edi + 0xa0]
lea ecx, [esi + 0xa0]
push eax
mov byte [ebp - 4], 7
call fcn.00402c6e
lea eax, [edi + 0xac]
lea ecx, [esi + 0xac]
push eax
mov byte [ebp - 4], 8
call fcn.00402c6e
lea eax, [edi + 0xb8]
lea ecx, [esi + 0xb8]
push eax
mov byte [ebp - 4], 9
call fcn.00547685
add edi, 0xc4
lea ecx, [esi + 0xc4]
push edi
mov byte [ebp - 4], 0xa
call fcn.005475a4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x55a14b
Capabilities:
Create directory

Disassembly:
mov eax, 0x60701c
call fcn.0059d590
sub esp, 0xcc
mov eax, dword [0x683744]
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.0055a10e
mov eax, dword [eax]
and dword [ebp - 4], 0
lea ecx, [ebp - 0xd8]
push 0xa
push ecx
push eax
call fcn.00559faf
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.00402b84
mov esi, dword [sym.imp.MSVCRT.dll__mkdir]
lea eax, [ebp - 0x98]
push eax
call esi
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
mov dword [esp], 0x691ed0
mov ebx, 0x80
push str.LOG__s
lea eax, [ebp - 0x98]
push ebx
push eax
call edi
and byte [ebp - 0x19], 0
lea eax, [ebp - 0x98]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0xd8]
push eax
push 0x691ed0
push str.LOG__s__s
lea eax, [ebp - 0x98]
push ebx
push eax
call edi
and byte [ebp - 0x19], 0
lea eax, [ebp - 0x98]
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0xd8]
push eax
push 0x691ed0
push str.LOG__s__s_CHAT
lea eax, [ebp - 0x98]
push ebx
push eax
call edi
and byte [ebp - 0x19], 0
lea eax, [ebp - 0x98]
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0xd8]
push eax
push str.LOG__s
lea eax, [ebp - 0x98]
push ebx
push eax
call edi
and byte [ebp - 0x19], 0
lea eax, [ebp - 0x98]
push eax
call esi
mov ecx, dword [ebp - 0xc]
add esp, 0x14
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x55b08e
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x607138
call fcn.0059d590
sub esp, 0x3dc
push ebx
push esi
mov dword [ebp - 0x18], ecx
call fcn.0055a797
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x34]
push eax
call fcn.0055a10e
mov eax, dword [eax]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x84]
push 0xa
push ecx
push eax
call fcn.00559faf
pop ecx
push 0
push eax
call dword [sym.imp.MSVCRT.dll__i64toa]
add esp, 0x10
mov eax, dword [ebp - 0x2c]
push 1
sub eax, dword [ebp - 0x34]
pop ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 0x34]
call fcn.00402ba8
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x84]
push str.leavewordsystem.log
mov esi, 0x691ed0
push eax
push esi
push str.LOG_s_sCHAT_s
lea eax, [ebp - 0x188]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
and byte [ebp - 0x85], 0
lea eax, [ebp - 0x188]
push 0x67eea4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x20
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x55b2c6
push edi
call fcn.0051bd44
mov eax, dword [eax + 0x10c]
mov edi, dword [sym.imp.MSVCRT.dll_strncpy]
push 0x10
push eax
lea eax, [ebp - 0x44]
push eax
call edi
and byte [ebp - 0x35], 0
lea eax, [ebp - 0x44]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x20], eax
jg 0x55b17b
mov dword [ebp - 0x20], 2
push esi
call sub.MSVCRT.dll_strlen
pop ecx
mov dword [ebp - 0x28], eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x3e8]
push 1
push 0x260
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x55b2ad
xor esi, esi
mov ecx, dword [ebp - 0x20]
lea eax, [esi + 1]
mov dword [ebp - 0x24], eax
mov eax, esi
cdq
dec ecx
idiv ecx
mov ecx, dword [ebp - 0x28]
mov eax, esi
dec ecx
lea esi, [ebp + esi - 0x388]
mov ebx, edx
cdq
idiv ecx
mov cl, byte [ebp + ebx - 0x44]
mov eax, 0x5baacfb
mov ebx, 0x100
add cl, byte [edx + 0x691ed0]
cdq
idiv dword [ebp - 0x24]
cdq
idiv ebx
mov ebx, 0x200
add cl, dl
xor byte [esi], cl
mov esi, dword [ebp - 0x24]
cmp esi, ebx
jl 0x55b1aa
push 0x260
call sub.MFC42.DLL_operatornew
pop ecx
mov esi, eax
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], esi
call fcn.0055cc71
push esi
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 4], 2
call fcn.00564a31
add esp, 0xc
cmp dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
jne 0x55b252
push 0x296
push str.E:CQ2ClientRelease_18.26.83DRoleChatLog.cpp
push str.pLine
push str.ASSERT
push 0x6765b8
call fcn.005950cb
add esp, 0x14
lea eax, [ebp - 0x3e8]
push 0x10
push eax
push dword [ebp - 0x14]
call edi
and byte [ebp - 0x3d9], 0
lea eax, [ebp - 0x388]
push ebx
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x60
push eax
call edi
add esp, 0x18
and byte [ebp - 0x189], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [eax + 0x224]
call fcn.0055c683
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x55b185
call fcn.004039fd
jmp 0x55b185
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_fclose]
push 0
push 0x421
call fcn.0050ef78
add esp, 0xc
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x55cd5d
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 0x55cd7a
mov eax, dword [ebp + 0xc]
shr eax, 5
je 0x55cd9d
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 0x55cdab
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
xor edi, edi
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], 0x84
jmp 0x55cdbf
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 0x55cdbc
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x55ddab
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x607364
call fcn.0059d590
sub esp, 0x108
and byte [ebp - 0x114], 0
push esi
push edi
mov esi, ecx
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 0x14], 0
push 0x100
stosb byte es:[edi], al
lea eax, [esi + 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x104]
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x14], eax
lea edx, [eax + 1]
test edx, edx
jle 0x55de3f
push ebx
mov al, cl
mov dl, 0x67
sub al, 0x29
mov edi, 0x100
imul cl
imul dl
mov bl, al
mov eax, ecx
cdq
idiv edi
mov eax, ecx
sar eax, 4
xor bl, byte [edx + esi]
mov dl, 0x66
imul dl
xor bl, al
mov eax, dword [ebp - 0x14]
xor byte [ebp + ecx - 0x114], bl
inc ecx
lea edx, [eax + 1]
cmp ecx, edx
jl 0x55de08
pop ebx
and byte [ebp + eax - 0x114], 0
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00402bfa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x55dfb0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov esi, ecx
test ebp, ebp
mov edi, 0x6765b8
jne 0x55dfe0
push 0x134
push str.E:CQ2ClientRelease_18.26.83DRoleEncryptData.cpp
push str.pszString
push str.ASSERT
push edi
call fcn.005950cb
add esp, 0x14
push ebp
call sub.MSVCRT.dll_strlen
mov ebx, 0x100
pop ecx
cmp eax, ebx
jb 0x55e00d
push 0x135
push str.E:CQ2ClientRelease_18.26.83DRoleEncryptData.cpp
push str.strlen_pszString____ESTRING_MAXLEN
push str.ASSERT
push edi
call fcn.005950cb
add esp, 0x14
test ebp, ebp
je 0x55e08a
push ebp
call sub.MSVCRT.dll_strlen
cmp eax, ebx
pop ecx
jae 0x55e08a
push ebp
call sub.MSVCRT.dll_strlen
lea edi, [esi + 0x108]
push ebx
push 0
push edi
mov dword [esi + 0x104], eax
call sub.MSVCRT.dll_memset
push ebx
push ebp
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [esi + 0x104]
and byte [esi + 0x207], 0
add esp, 0x1c
xor ecx, ecx
inc eax
test eax, eax
jle 0x55e08a
mov al, cl
mov dl, 0x67
sub al, 0x29
mov ebp, 0x100
imul cl
imul dl
mov bl, al
mov eax, ecx
cdq
idiv ebp
mov eax, ecx
sar eax, 4
xor bl, byte [edx + esi]
mov dl, 0x66
imul dl
xor bl, al
xor byte [edi + ecx], bl
mov eax, dword [esi + 0x104]
inc ecx
inc eax
cmp ecx, eax
jl 0x55e057
pop edi
pop esi
pop ebp
pop ebx
ret 4