joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5700
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b9ed6
push eax
mov dword fs:[0], esp
sub esp, 0x108
xor eax, eax
push ebp
push esi
mov esi, ecx
lea ebp, [esi + 0x620]
mov ecx, ebp
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x618]
test eax, eax
je 0x4a574e
push str.CheckGameFriend
call fcn.004a6980
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x4a584e
push edi
lea edx, [esp + 0x14]
push 0x100
push edx
call fcn.004a4b40
add esp, 8
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x124]
lea ecx, [esp + 0x10]
push eax
push 0x4d3978
push ecx
mov dword [esp + 0x128], 0
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x124]
mov edx, dword [eax]
push ecx
push 4
push 0x16
push eax
call dword [edx + 0x14]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
push 0x4ce990
push eax
mov byte [esp + 0x128], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
push str..._tmpRelation.txt
call fcn.004ac100
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ecx
push 0
push str.GameFriend
push edx
call edi
mov ecx, dword [esp + 0x10]
mov dword [ebp], eax
mov eax, dword [esp + 0xc]
push eax
push 0
push str.GameEnemy
push ecx
call edi
mov edx, dword [esp + 0xc]
mov dword [esi + 0x628], eax
push edx
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x11c], 0
call fcn.004ac05e
lea ecx, [esp + 0x10]
mov dword [esp + 0x11c], 0xffffffff
call fcn.004ac05e
pop edi
mov ecx, dword [esp + 0x110]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x114
ret 4
Function at 0x4a9580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ba138
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [esi + 0x18]
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
mov dword [esp + 0x2c], 0
call fcn.004aa510
mov ecx, dword [ebx + 4]
mov dword [esp + 0xc], eax
cmp eax, ecx
je 0x4a95db
mov edx, dword [esp + 0x30]
mov edi, dword [eax + 0xc]
cmp edx, edi
jb 0x4a95db
lea eax, [esp + 0xc]
jmp 0x4a95e3
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x14]
mov eax, dword [eax]
mov ecx, dword [esi + 0x1c]
cmp eax, ecx
jne 0x4a963c
push 0x18
call sub.MFC42.DLL_operatornew
mov edx, eax
add esp, 4
test edx, edx
je 0x4a960b
mov ecx, 6
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, edx
jmp 0x4a960d
xor edi, edi
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x14]
mov dword [edi + 0x14], eax
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xc]
mov dword [esp + 0x14], ecx
push edx
push eax
mov ecx, ebx
mov dword [esp + 0x20], 0
call fcn.004a9f00
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x10], edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x4ad545
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4ba378
call fcn.004b2c78
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
lea ecx, [ebp + 8]
push ebx
push ebx
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [ebp - 0x18]
mov esi, eax
call sub.MFC42.DLL_CString::CString_3
cmp esi, ebx
mov byte [ebp - 4], 1
jne 0x4ad583
or esi, 0xffffffff
jmp 0x4ad60f
lea eax, [esi + 2]
push edi
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
push eax
push esi
push ebx
push ebx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4d3fc4
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [ebp - 0x14]
push 0x64
xor edx, edx
pop ebx
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov esi, eax
mov edi, ecx
and eax, 0xffff
push dword [ebp - 0x10]
shr edi, 0x10
mov dword [ebp - 0x2c], eax
mov eax, edi
div ebx
and ecx, 0xffff
shr esi, 0x10
mov dword [ebp - 0x20], ecx
mov ebx, eax
imul eax, eax, 0x64
sub edi, eax
call sub.MFC42.DLL_operatordelete
imul esi, esi, 0x64
add esi, dword [ebp - 0x2c]
pop ecx
lea eax, [esi + esi*4]
lea esi, [ebx + eax*2]
imul esi, esi, 0x64
add esi, edi
pop edi
imul esi, esi, 0x64
add esi, dword [ebp - 0x20]
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004ac05e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004ac05e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4af7bb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4af817
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp + 0x14]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x4b04fa
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x103
push dword [ebp + 8]
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
xor edx, edx
test eax, eax
jle 0x4b0560
cmp byte [ebp + edx - 0x104], 0x2f
lea ecx, [ebp + edx - 0x104]
jne 0x4b055b
mov byte [ecx], 0x5c
inc edx
cmp edx, eax
jl 0x4b0547
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea esi, [ebp - 0x104]
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
pop ecx
test eax, eax
pop ecx
je 0x4b05c2
mov bl, byte [eax + 1]
lea esi, [eax + 1]
test bl, bl
je 0x4b05d0
and byte [esi], 0
lea eax, [ebp - 0x104]
push eax
push 0x4dabf0
call edi
pop ecx
test eax, eax
pop ecx
je 0x4b05be
lea eax, [ebp - 0x104]
push eax
push 0x4dabec
call edi
pop ecx
test eax, eax
pop ecx
je 0x4b05be
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
mov byte [esi], bl
jmp 0x4b056c
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b10c0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x51d3b0]
sub esp, 0x208
cmp dword [eax + 0x1c], 0x2710
ja 0x4b113a
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x51d3a4]
pop edi
test eax, eax
jne 0x4b10fa
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
push str._s....configDynamicInfo.ini
lea ecx, [esp + 8]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [0x51d3b0]
add esp, 0x10
lea edx, [esp]
mov ecx, dword [eax + 0x1c]
push edx
push ecx
push str.LastQQUin
push str.Public
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [0x51d3b0]
mov dword [edx + 0x1c], eax
add esp, 0x208
ret
Function at 0x4b1860
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x94
xor eax, eax
mov edx, dword [esp + 0x98]
mov dword [esp + 9], eax
push ebx
mov dword [esp + 0x11], eax
mov ebx, ecx
mov ecx, dword [esp + 0xa8]
mov word [esp + 0x15], ax
mov byte [esp + 0x17], al
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], ecx
test eax, eax
mov dword [esp + 0x14], edx
je 0x4b19a6
mov eax, dword [str.EPIPEMAGQQ]
mov ecx, dword [0x4dad1c]
mov dx, word [0x4dad20]
mov dword [esp + 0x18], eax
mov al, byte [0x4dad22]
push ebp
push esi
push edi
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2e], al
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0x2f]
mov word [esp + 0x2c], dx
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 0x24]
lea esi, [ebx + 0x24]
stosb byte es:[edi], al
mov edi, dword [esp + 0xac]
mov ecx, esi
push edi
call dword [edx]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x10]
mov ebp, eax
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0xb4]
lea edx, [esp + 0x28]
push ebp
push edx
push edi
push ecx
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [ebx + 0x10]
lea eax, [esp + 0x14]
push esi
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 8]
push eax
lea ecx, [esp + 0x20]
push 0xc
push ecx
push edx
call edi
test eax, eax
jne 0x4b197e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xc
push eax
mov ecx, ebx
call fcn.004b19e0
cmp eax, 1
jne 0x4b199a
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
lea eax, [esp + 0x14]
push esi
push eax
push ecx
push ebp
push edx
call edi
test eax, eax
jne 0x4b1987
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.004b19e0
jmp 0x4b199a
cmp dword [esp + 0x14], 0xc
je 0x4b1953
jmp 0x4b1993
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, eax
je 0x4b199a
mov ecx, ebx
call fcn.004b1a30
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x10

Function at 0x4b1ad0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [0x51d404], ecx
mov ecx, esi
call fcn.004b1e10
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
push 0
push eax
push 0x4b1b20
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret 8
Function at 0x4b2180
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [edi + 4]
mov esi, eax
push ecx
call sub.WSOCK32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov edi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x4b21b6
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, edi
sub eax, 0x61c88647
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x4b21dd
push esi
call sub.WSOCK32.dll_htonl
mov esi, dword [esp + 0x2c]
push edi
mov dword [esi], eax
call sub.WSOCK32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4b2250
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [esi + 4]
mov edi, eax
push ecx
call sub.WSOCK32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov esi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x4b2286
mov ecx, dword [esp + 0x14]
mov eax, 0xe3779b90
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, edi
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x10]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add eax, 0x61c88647
sub edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x4b22b0
push edi
call sub.WSOCK32.dll_htonl
mov edi, dword [esp + 0x2c]
push esi
mov dword [edi], eax
call sub.WSOCK32.dll_htonl
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x53afe0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb9000]
push edi
jmp 0x53affa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x53b001
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53aff0
mov eax, 1
add ebx, ebx
jne 0x53b013
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x53b024
jne 0x53b043
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53b043
dec eax
add ebx, ebx
jne 0x53b030
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x53b008
add ebx, ebx
jne 0x53b03f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x53b095
xor ecx, ecx
sub eax, 3
jb 0x53b05b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53b0ca
sar eax, 1
mov ebp, eax
jmp 0x53b066
add ebx, ebx
jne 0x53b066
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53b034
inc ecx
add ebx, ebx
jne 0x53b074
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53b034
add ebx, ebx
jne 0x53b081
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x53b076
jne 0x53b092
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x53b076
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x53b0b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x53b0a6
jmp 0x53aff6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x53b0b4
add edi, ecx
jmp 0x53aff6
pop esi
mov edi, esi
mov ecx, 0x70e9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x53b0d2
cmp byte [edi], 0x28
jne 0x53b0d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x53b0d7
lea edi, [esi + 0x137000]
mov eax, dword [edi]
or eax, eax
je 0x53b14f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x141c50]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x141da4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x53b104
mov ecx, edi
jns 0x53b133
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x141da8]
or eax, eax
je 0x53b149
mov dword [ebx], eax
add ebx, 4
jmp 0x53b121
call dword [esi + 0x141db8]
mov ebp, dword [esi + 0x141dac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x53b183
sub esp, 0xffffff80
jmp 0x490a01
Function at 0x7ffe53c7
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword fs:[0x30]
cld
lea esp, [esp]
nop
and bh, 0xff
cld
and bh, 0xff
stc
and bh, 0xff
nop
and bh, 0xff
cld
add eax, 0
nop
lea esp, [esp]
stc
pushal
inc eax
popal
cld
and bh, 0xff
cld
lea esp, [esp]
cld
lea esp, [esp]
nop
add eax, 0
clc
and bh, 0xff
cld
and bh, 0xff
nop
push edx
cdq
pop edx
cld
lea esp, [esp]
cld
and bh, 0xff
nop
add eax, 0
cld
lea esp, [esp]
clc
pushal
inc eax
popal
cld
pushal
inc eax
popal
clc
call 0x7ffe5427
pop edx
xor dx, dx
nop
add edx, 0xd5e0
xor ecx, ecx
nop
lea esp, [esp]
stc
mov cl, 0x1e
push edx
cdq
pop edx
nop
xor byte [ecx + edx], 0xd0
loop 0x7ffe543f
add eax, 0
push dword fs:[0x24]
pop dword [edx + 0xa]
stc
mov cl, 0xff
add eax, 0
cld
cld
push edx
loop 0x7ffe545a
clc
add eax, 0
cld
cld
mov dword [edx + 0x11], 0xffffacbb
cld
add eax, 0
stc
cld
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x1b], ecx
cld
push edx
cdq
pop edx
mov dword [edx + 0x100], ecx
stc
add eax, 0
nop
cld
clc
cld
mov dword [eax + 0x2c], esp
stc
push es
pop ds
cld
push 0
push edx
cdq
pop edx
nop
cld
nop
nop
push 0
stc
lea esp, [esp]
pushal
inc eax
popal
push 0
stc
clc
cld
push 0
cld
pushal
inc eax
popal
push edx
cdq
pop edx
push 0x30
lea esp, [esp]
stc
push es
pop ds
cld
push 0x20
lea esp, [esp]
push es
pop ds
clc
push 0
nop
pushal
inc eax
popal
cld
push es
pop ds
stc
push 0
stc
add edx, 0xffff7f39
cld
add eax, 0
cld
and bh, 0xff
push edx
stc
lea esp, [esp]
nop
push edx
clc
cld
push 0
push edx
cdq
pop edx
cld
add eax, 0
clc
call dword [edx + 0x820a]
clc
cld
add esp, 0x3f8
cld
xor eax, eax
nop
push edx
cdq
pop edx
stc
and al, 0xff
nop
inc eax
push edx
cdq
pop edx
stc
clc
cld
ret 0xc
Function at 0x4012bc
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp esi, 1
jl 0x4012cd
cmp esi, 9
jle 0x4012d8
push str.Invalid_compression_level
call fcn.004052b4
pop ecx
mov edi, 0x10000
xor ebx, ebx
push edi
push ebx
push 0x44bad0
mov dword [0x42f108], esi
call fcn.00425010
mov eax, esi
add esp, 0xc
shl eax, 3
cmp esi, 1
movzx ecx, word [eax + 0x42c07a]
mov dword [0x42f0f4], ecx
movzx ecx, word [eax + 0x42c078]
mov dword [0x42f10c], ecx
movzx ecx, word [eax + 0x42c07c]
movzx eax, word [eax + 0x42c07e]
mov dword [0x42f100], ecx
mov dword [0x42f104], eax
jne 0x40133a
mov eax, dword [esp + 0x14]
or byte [eax], 4
jmp 0x401346
cmp esi, 9
jne 0x401346
mov eax, dword [esp + 0x14]
or byte [eax], 2
push edi
push 0x45bad0
mov dword [0x42f0f0], ebx
mov dword [0x42f114], ebx
call dword [0x42f0e8]
pop ecx
cmp eax, ebx
pop ecx
mov dword [0x42f118], eax
je 0x4013ba
cmp eax, 0xffffffff
je 0x4013ba
mov esi, 0x106
mov dword [0x42f0fc], ebx
cmp eax, esi
jae 0x401392
cmp dword [0x42f0fc], ebx
jne 0x401392
call fcn.0040150b
cmp dword [0x42f118], esi
jb 0x40137d
xor eax, eax
xor ecx, ecx
movzx edx, byte [ecx + 0x45bad0]
and eax, 0x3ff
and edx, 0x7fff
shl eax, 5
xor eax, edx
inc ecx
cmp ecx, 2
jb 0x401396
mov dword [0x42f0f8], eax
jmp 0x4013ca
mov dword [0x42f0fc], 1
mov dword [0x42f118], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4015e9
Capabilities:
Encode data using xor

Disassembly:
push ecx
and dword [esp], 0
cmp dword [0x42f108], 3
push edi
push 2
pop edi
jg 0x401606
call fcn.0040186b
jmp 0x401868
cmp dword [0x42f118], 0
je 0x401840
mov ecx, dword [0x42f0f0]
push ebx
push ebp
push esi
mov esi, 0x7fff
mov ebp, 0x3ff
movzx eax, byte [ecx + 0x45bad2]
mov edx, dword [0x42f0f8]
and eax, esi
and edx, ebp
mov ebx, ecx
shl edx, 5
xor eax, edx
and ebx, esi
movzx edx, word [eax*2 + 0x44bad0]
mov dword [0x42f0f8], eax
lea eax, [eax*2 + 0x44bad0]
mov word [ebx*2 + 0x43bad0], dx
mov ebx, dword [0x42f110]
mov word [eax], cx
mov eax, edi
push 2
mov dword [0x42f0ec], eax
test edx, edx
pop edi
je 0x4016b7
cmp eax, dword [0x42f0f4]
jae 0x4016b7
mov eax, ecx
sub eax, edx
cmp eax, 0x7efa
ja 0x4016b7
push edx
call fcn.004013ce
mov edi, eax
mov eax, dword [0x42f118]
cmp edi, eax
pop ecx
jbe 0x40169a
mov edi, eax
mov ecx, dword [0x42f0f0]
cmp edi, 3
jne 0x4016b7
mov eax, ecx
sub eax, dword [0x42f110]
cmp eax, 0x1000
jbe 0x4016b7
push 2
pop edi
mov eax, dword [0x42f0ec]
cmp eax, 3
jb 0x401781
cmp edi, eax
ja 0x401781
sub ecx, ebx
add eax, 0xfffffffd
dec ecx
push eax
push ecx
call fcn.00403af8
pop ecx
pop ecx
push 1
pop ecx
sub ecx, dword [0x42f0ec]
add dword [0x42f118], ecx
sub dword [0x42f0ec], 2
mov ecx, dword [0x42f0f0]
movzx edx, byte [ecx + 0x45bad3]
mov edi, dword [0x42f0f8]
inc ecx
and edi, ebp
and edx, esi
shl edi, 5
xor edx, edi
mov edi, ecx
mov dword [0x42f0f8], edx
and edi, esi
mov bx, word [edx*2 + 0x44bad0]
dec dword [0x42f0ec]
lea edx, [edx*2 + 0x44bad0]
mov word [edi*2 + 0x43bad0], bx
mov word [edx], cx
jne 0x4016f8
and dword [esp + 0x10], 0
push 2
inc ecx
pop edi
test eax, eax
mov dword [0x42f0f0], ecx
je 0x4017ef
mov eax, dword [0x42f114]
test eax, eax
jl 0x401763
lea edx, [eax + 0x45bad0]
jmp 0x401765
xor edx, edx
sub ecx, eax
push 0
push ecx
push edx
call fcn.004032ff
mov ecx, dword [0x42f0f0]
add esp, 0xc
mov dword [0x42f114], ecx
jmp 0x4017ef
cmp dword [esp + 0x10], 0
je 0x4017da
movzx eax, byte [ecx + 0x45bacf]
push eax
push 0
call fcn.00403af8
pop ecx
test eax, eax
pop ecx
je 0x4017d2
mov eax, dword [0x42f114]
test eax, eax
jl 0x4017ae
lea ecx, [eax + 0x45bad0]
jmp 0x4017b0
xor ecx, ecx
mov edx, dword [0x42f0f0]
push 0
sub edx, eax
push edx
push ecx
call fcn.004032ff
mov ecx, dword [0x42f0f0]
add esp, 0xc
mov dword [0x42f114], ecx
jmp 0x4017e2
mov ecx, dword [0x42f0f0]
jmp 0x4017e2
mov dword [esp + 0x10], 1
inc ecx
dec dword [0x42f118]
mov dword [0x42f0f0], ecx
mov ebx, 0x106
cmp dword [0x42f118], ebx
jae 0x401818
cmp dword [0x42f0fc], 0
jne 0x401818
call fcn.0040150b
cmp dword [0x42f118], ebx
mov ecx, dword [0x42f0f0]
jb 0x4017fc
cmp dword [0x42f118], 0
jne 0x401626
cmp dword [esp + 0x10], 0
pop esi
pop ebp
pop ebx
je 0x401846
movzx eax, byte [ecx + 0x45bacf]
push eax
push 0
call fcn.00403af8
pop ecx
pop ecx
mov ecx, dword [0x42f0f0]
mov edx, dword [0x42f114]
test edx, edx
jl 0x401858
lea eax, [edx + 0x45bad0]
jmp 0x40185a
xor eax, eax
sub ecx, edx
push 1
push ecx
push eax
call fcn.004032ff
add esp, 0xc
pop edi
pop ecx
ret