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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413398
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x41c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
push 0
push 0
mov eax, dword [eax + 4]
mov dword [ecx + eax], 0x4170c0
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ecx - 4], eax
mov eax, dword [ecx]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov ebx, dword [eax + 4]
add ebx, ecx
mov ecx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
call fcn.004020a0
push 8
call fcn.0040fe16
add esp, 4
mov esi, eax
push 1
mov dword [ebp - 4], 2
call fcn.0040f4b4
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov ebx, dword [esi + 4]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4151f8]
mov ecx, ebx
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 3
push eax
call fcn.00404fc0
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x4151f8]
mov ecx, edi
call esi
movzx eax, ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4151f8]
mov ecx, ebx
call esi
mov edi, eax
test edi, edi
je 0x40488e
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x4151f8]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp dword [ecx + 0x38], 0
mov word [ecx + 0x40], ax
jne 0x4048ac
mov eax, dword [ecx + 0xc]
push 0
or eax, 4
push eax
call fcn.004020a0
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x10]
lea edx, [esi + 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 4]
mov dword [edx + eax], 0x4170cc
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], 0x4170c8
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + esi - 4], eax
mov eax, esi
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
Function at 0x404d50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4133c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x41c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], 0x41712c
call fcn.0040fe16
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040f4b4
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 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
Function at 0x405ed0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4135d5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x41c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 0xc]
xor edx, edx
push eax
push ecx
push dword [ebp + 8]
xor ecx, ecx
call fcn.004059d0
add esp, 8
lea ecx, [ebp - 0x1c]
lea esi, [eax + 1]
push esi
call fcn.00406180
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x1c]
mov edx, esi
push eax
push ecx
push dword [ebp + 8]
mov ecx, edi
call fcn.004059d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x10], 0x41d084
xor esi, esi
mov eax, 1
mov ebx, 0x41d084
xchg dword [ebx], eax
test eax, eax
setne al
test al, al
je 0x405f7f
nop dword [eax + eax]
mov eax, esi
inc esi
and eax, 0x3ff
jne 0x405f6f
call sub.KERNEL32.dll_SwitchToThread
mov eax, 1
xchg dword [ebx], eax
test eax, eax
setne al
test al, al
jne 0x405f60
mov byte [ebp - 4], 1
mov eax, dword fs:[0x2c]
mov ebx, dword [eax]
mov esi, dword [ebx + 4]
test esi, esi
jne 0x405fc1
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 0xc
push eax
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
jmp 0x405fcf
push edi
mov ecx, esi
call dword [0x4151f8]
call esi
add esp, 4
cmp dword [0x41d07c], 0
je 0x406011
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov esi, dword [0x41d080]
add esp, 4
cmp esi, eax
jne 0x405ff6
cmp dword [ebx + 4], 0
je 0x406011
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004059a0
push esi
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 0x10
nop
mov dword [0x41d084], 0
test edi, edi
je 0x406052
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x406048
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406048
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.0040fe08
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c520
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
mov eax, esi
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x40c53c
mov eax, dword [esi]
xor ecx, ecx
push ecx
push ecx
push edi
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
je 0x40c578
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004100c8
add esp, 4
push ebx
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x40c5a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x40c5a0
test eax, eax
jle 0x40c591
movzx eax, ax
or eax, 0x80070000
push eax
push edi
push str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.00406070
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c5b0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.00404930
push ebx
call fcn.004100c3
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7fd9595e
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x46111461
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401340
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x40a018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_sprintf]
push edi
push esi
lea eax, [ebp - 0x108]
push str._s.
push eax
call ebx
add esp, 0xc
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
lea eax, [ebp - 0x21c]
push eax
push esi
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call ebx
add esp, 0x10
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401383
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040598c
mov esp, ebp
pop ebp
ret
Function at 0x404580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4064b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40a018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x404712
cmp byte [ebx + 0x49], 0
je 0x404712
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x404706
lea esi, [ebp - 0x2c]
call fcn.004041d0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4045f3
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x40462b
dec eax
je 0x40462f
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x40470d
call fcn.00403390
xor al, al
jmp 0x404714
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40463f
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40466d
cmp edi, 0x10
jae 0x40464e
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x4046fe
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x40470a
test esi, esi
jne 0x4045e7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40472f
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40472f
cmp edi, esi
jae 0x4046e7
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.004049a0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4045e7
mov ecx, eax
cmp edi, 0x10
jae 0x4046c3
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4046de
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4045e1
test esi, esi
jne 0x4046b9
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x4046f6
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4045e1
lea esi, [ebp - 0x2c]
call fcn.00403390
xor al, al
jmp 0x404714
lea esi, [ebp - 0x2c]
call fcn.00403390
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040598c
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x405830
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406568
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x40a018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x405893
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea esi, [ebp - 0x7c]
call fcn.004055f0
mov ecx, esi
call fcn.004056a0
mov ecx, edi
mov ebx, esi
call fcn.00405780
cmp dword [ebp + 0x1c], 0x10
jb 0x4058c2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040598c
mov esp, ebp
pop ebp
ret

Function at 0x40598c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a018]
jne 0x405996
repz ret
jmp fcn.00405da9
Function at 0x415a7e
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
mov ebx, ecx
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
mov dword [ecx], 0x762064
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x2c], eax
xor eax, eax
cmp esi, dword [ebp - 0x2c]
je 0x415b15
mov edi, dword [ebp + 0xc]
lea edx, [eax + 1]
cmp edx, 3
mov ecx, dword [edi]
mov cl, byte [ecx + esi]
mov byte [ebp + eax - 0x1f], cl
jne 0x415b10
mov al, byte [ebp - 0x1f]
xor edi, edi
mov dl, al
and eax, 3
shr dl, 2
mov byte [ebp - 0x1c], dl
mov dl, byte [ebp - 0x1e]
shl eax, 4
mov cl, dl
and edx, 0xf
shr cl, 4
add eax, ecx
mov byte [ebp - 0x1b], al
mov al, byte [ebp - 0x1d]
mov cl, al
and eax, 0x3f
shr cl, 6
lea edx, [ecx + edx*4]
mov byte [ebp - 0x1a], dl
mov byte [ebp - 0x19], al
movzx eax, byte [ebp + edi - 0x1c]
mov ecx, ebx
mov edx, dword [0x918190]
movsx eax, byte [edx + eax]
mov dword [esp], eax
call fcn.0069b660
inc edi
cmp edi, 4
push eax
jne 0x415aee
xor edx, edx
inc esi
mov eax, edx
jmp 0x415a9e
test eax, eax
mov esi, eax
je 0x415baa
cmp eax, 2
jg 0x415b2c
mov byte [ebp + eax - 0x1f], 0
inc eax
jmp 0x415b1f
mov al, byte [ebp - 0x1f]
xor edi, edi
mov dl, al
and eax, 3
shr dl, 2
mov byte [ebp - 0x1c], dl
mov dl, byte [ebp - 0x1e]
shl eax, 4
mov cl, dl
and edx, 0xf
shr cl, 4
add eax, ecx
mov byte [ebp - 0x1b], al
mov al, byte [ebp - 0x1d]
mov cl, al
and eax, 0x3f
shr cl, 6
lea edx, [ecx + edx*4]
mov byte [ebp - 0x1a], dl
mov byte [ebp - 0x19], al
movzx eax, byte [ebp + edi - 0x1c]
mov ecx, ebx
mov edx, dword [0x918190]
movsx eax, byte [edx + eax]
mov dword [esp], eax
call fcn.0069b660
inc edi
cmp esi, edi
push eax
jge 0x415b63
cmp esi, 3
je 0x415baa
mov dword [esp], 0x3d
mov ecx, ebx
call fcn.0069b660
inc esi
push eax
jmp 0x415b82
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4554bc
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [eax]
movzx eax, word [ecx + 0xc]
movzx edx, word [ecx + 0xe]
movzx ebx, word [ecx + 0x10]
sub eax, edx
add eax, ebx
test al, 7
mov dword [ebp - 0x34], eax
je 0x455536
lea eax, [ebp - 0x21]
lea ebx, [ebp - 0x1c]
mov dword [esp + 4], eax
mov ecx, ebx
mov dword [esp], str.bool_Protocol::xteaDecrypt_const_InputMessagePtr_
lea esi, [ebp - 0x20]
call fcn.0069b6e0
mov ecx, esi
push eax
push eax
lea eax, [ebp - 0x22]
mov dword [esp + 4], eax
mov dword [esp], str.invalid_encrypted_network_message
call fcn.0069b6e0
push eax
mov ecx, 0x91ae60
push eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], 3
call fcn.0041c496
jmp 0x455640
mov eax, dword [ebp - 0x34]
lea edi, [ecx + edx + 0x12]
shr ax, 2
movzx eax, ax
mov dword [ebp - 0x38], eax
xor eax, eax
cmp eax, dword [ebp - 0x38]
jge 0x4555d6
mov edx, dword [edi + eax*4]
mov dword [ebp - 0x2c], edx
mov edx, dword [edi + eax*4 + 4]
mov dword [ebp - 0x30], edx
mov edx, 0xc6ef3720
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov ebx, edx
shr ebx, 0xb
and ebx, 3
mov dword [ebp - 0x44], ecx
mov ecx, dword [eax + ebx*4 + 0xc]
mov ebx, dword [ebp - 0x2c]
add ecx, edx
add edx, 0x61c88647
mov esi, ebx
shr esi, 5
shl ebx, 4
xor esi, ebx
add esi, dword [ebp - 0x2c]
xor ecx, esi
sub dword [ebp - 0x30], ecx
mov esi, dword [ebp - 0x30]
mov ebx, esi
mov ecx, esi
shr ebx, 5
shl esi, 4
xor ebx, esi
mov esi, edx
and esi, 3
add ebx, ecx
mov ecx, dword [eax + esi*4 + 0xc]
mov eax, dword [ebp - 0x40]
add ecx, edx
xor ebx, ecx
mov ecx, dword [ebp - 0x44]
sub dword [ebp - 0x2c], ebx
test edx, edx
jne 0x455564
mov edx, dword [ebp - 0x2c]
mov dword [edi + eax*4], edx
mov edx, dword [ebp - 0x30]
mov dword [edi + eax*4 + 4], edx
add eax, 2
jmp 0x455549
call fcn.00454a54
movzx edx, word [ebp - 0x34]
add eax, 2
movzx eax, ax
sub eax, edx
test eax, eax
jg 0x4555f3
mov ecx, eax
neg ecx
cmp ecx, edx
jle 0x455655
lea eax, [ebp - 0x21]
lea ebx, [ebp - 0x1c]
mov dword [esp + 4], eax
mov ecx, ebx
mov dword [esp], str.bool_Protocol::xteaDecrypt_const_InputMessagePtr_
lea esi, [ebp - 0x20]
call fcn.0069b6e0
mov ecx, esi
push eax
push eax
lea eax, [ebp - 0x22]
mov dword [esp + 4], eax
mov dword [esp], str.invalid_decrypted_network_message
call fcn.0069b6e0
push edi
mov ecx, 0x91ae60
push edi
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], 3
call fcn.0041c496
sub esp, 0xc
mov ecx, esi
call fcn.0069bcc0
mov ecx, ebx
call fcn.0069bcc0
xor eax, eax
jmp 0x455684
mov edi, dword [ebp + 8]
mov edx, dword [edi]
add word [edx + 0x10], ax
mov al, 1
jmp 0x455684
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x455836
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov ecx, dword [esi]
call fcn.00454f9a
mov ecx, dword [esi]
mov bx, word [ecx + 0x10]
mov eax, ebx
and ax, 7
je 0x455878
mov edi, 8
sub edi, eax
movzx eax, di
add ebx, edi
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00455182
push eax
push eax
mov eax, dword [esi]
shr bx, 2
lea edi, [eax + 0x18]
movzx eax, bx
mov dword [ebp - 0x20], eax
xor eax, eax
cmp eax, dword [ebp - 0x20]
jge 0x455906
mov edx, dword [edi + eax*4 + 4]
mov ecx, dword [edi + eax*4]
mov dword [ebp - 0x1c], edx
xor edx, edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov ebx, edx
and ebx, 3
mov dword [ebp - 0x2c], edi
mov edi, dword [eax + ebx*4 + 0xc]
mov ebx, dword [ebp - 0x1c]
add edi, edx
sub edx, 0x61c88647
mov esi, ebx
shr esi, 5
shl ebx, 4
xor esi, ebx
add esi, dword [ebp - 0x1c]
xor edi, esi
add ecx, edi
mov ebx, ecx
mov esi, ecx
shl esi, 4
shr ebx, 5
xor ebx, esi
mov esi, edx
shr esi, 0xb
add ebx, ecx
and esi, 3
mov edi, dword [eax + esi*4 + 0xc]
mov eax, dword [ebp - 0x28]
add edi, edx
xor ebx, edi
mov edi, dword [ebp - 0x2c]
add dword [ebp - 0x1c], ebx
cmp edx, 0xc6ef3720
jne 0x45589a
mov edx, dword [ebp - 0x1c]
mov dword [edi + eax*4], ecx
mov dword [edi + eax*4 + 4], edx
add eax, 2
jmp 0x455889
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x45613e
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
mov ebx, 1
sub esp, 0x9ec
mov dword [esp], 0
call fcn.0062b620
mov ecx, 0x270
mov dword [ebp - 0x9dc], eax
mov eax, dword [ebp + ebx*4 - 0x9e0]
mov edx, eax
shr edx, 0x1e
xor edx, eax
mov eax, ebx
imul edi, edx, 0x6c078965
xor edx, edx
div ecx
add edx, edi
mov dword [ebp + ebx*4 - 0x9dc], edx
inc ebx
cmp ebx, 0x270
jne 0x456168
lea edx, [ebp - 0x9e4]
lea eax, [ebp - 0x9dc]
mov dword [ebp - 0x1c], 0x270
mov dword [ebp - 0x9e4], 0
mov dword [ebp - 0x9e0], 0xffffffff
call fcn.004560fa
lea edx, [ebp - 0x9e4]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x9dc]
call fcn.004560fa
lea edx, [ebp - 0x9e4]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x9dc]
call fcn.004560fa
lea edx, [ebp - 0x9e4]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x9dc]
call fcn.004560fa
mov dword [esi + 0x18], eax
add esp, 0x9ec
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4e6350
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4e63fb
mov eax, dword [ebx]
mov byte [eax + 0x16], 0
mov eax, dword [ebx]
mov byte [eax + 0x17], 0
mov eax, dword [ebx]
mov byte [eax + 0x18], 0
mov eax, dword [ebx]
mov byte [eax + 0x19], 0
mov ebp, dword [ebx + 4]
mov esi, dword [ebx]
test ebp, ebp
jle 0x4e6400
mov edx, esi
add ebp, esi
xor eax, eax
mov esi, esi
lea edi, [edi]
mov edi, eax
shl edi, 8
xor ecx, ecx
mov cl, byte [edx]
shr eax, 0x18
xor ecx, eax
mov eax, dword [ecx*4 + 0x7a21c0]
xor eax, edi
inc edx
cmp edx, ebp
jne 0x4e6390
mov edx, eax
shr edx, 0x18
mov ebp, dword [ebx + 0xc]
test ebp, ebp
jle 0x4e63e1
mov edx, dword [ebx + 8]
add ebp, edx
lea esi, [esi]
mov edi, eax
shl edi, 8
xor ecx, ecx
mov cl, byte [edx]
shr eax, 0x18
xor ecx, eax
mov eax, dword [ecx*4 + 0x7a21c0]
xor eax, edi
inc edx
cmp edx, ebp
jne 0x4e63c0
mov edx, eax
shr edx, 0x18
mov byte [esi + 0x16], al
mov esi, dword [ebx]
mov ecx, eax
shr ecx, 8
mov byte [esi + 0x17], cl
mov ecx, dword [ebx]
shr eax, 0x10
mov byte [ecx + 0x18], al
mov eax, dword [ebx]
mov byte [eax + 0x19], dl
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
xor eax, eax
jmp 0x4e63b1