joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, 0xc
mov ebp, esp
push edi
push esi
push ebx
mov esi, dword fs:[0x18]
sub esp, 0x2bc
mov dword [ebp - 0x29c], 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x29c]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.iphlpapi.dll_GetUdpTable]
sub esp, 0xc
mov edi, eax
test eax, eax
jne 0x401b30
mov eax, dword [ebx]
test eax, eax
je 0x401b04
lea esi, [ebp - 0x258]
lea esi, [esi]
mov eax, dword [ebx + edi*8 + 4]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_htonl]
sub esp, 4
movzx edx, al
mov dword [esp + 0x18], edx
movzx edx, ah
mov dword [esp + 0x14], edx
mov edx, eax
shr eax, 0x18
shr edx, 0x10
mov dword [esp + 0xc], eax
movzx edx, dl
mov dword [esp + 8], 0x40446c
mov dword [esp + 0x10], edx
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], esi
call dbg.swprintf
movzx eax, word [ebx + edi*8 + 8]
add edi, 1
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_htons]
sub esp, 4
movzx eax, ax
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x298]
mov dword [esp + 8], 0x404484
mov dword [esp + 4], 0x20
mov dword [esp], eax
call dbg.swprintf
lea eax, [ebp - 0x298]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x158]
mov dword [esp + 8], str._s:_s
mov dword [esp + 4], 0xa0
mov dword [esp], eax
call dbg.swprintf
lea eax, [ebp - 0x158]
mov dword [esp + 4], 0x404498
mov dword [esp + 8], eax
mov dword [esp], str.____6s___22s_:_n
call dbg.NETSTAT_wprintf
cmp edi, dword [ebx]
jb 0x401a30
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
cmp edi, 0x7a
jne 0x401b28
mov eax, dword [ebp - 0x29c]
jmp 0x4019d2
Function at 0x402500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x402558
cmp byte [esi + ebx - 1], 0xa
je 0x40252c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4070a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x402af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
mov edi, dword [0x4070b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x402cb0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x4070b4]
movzx eax, al
bt eax, esi
jae 0x402d10
mov ecx, dword [0x4070a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x402bb5
test byte [0x40301c], 8
jne 0x402c50
lea ebx, [ebp - 0xe0]
mov edi, ebx
test byte [0x40302c], 8
jne 0x402c00
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x402b84
cmp esi, 3
jbe 0x402bc0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4045a8]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x402b84
mov ecx, dword [0x4070b4]
test ecx, ecx
je 0x402cf0
mov dword [esp], 0x40302c
call dword [0x4070b4]
test al, 8
je 0x402b5b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x402b5b
mov ebx, dword [0x4070b4]
test ebx, ebx
je 0x402cd0
mov dword [esp], 0x40301c
call dword [0x4070b4]
test al, 8
je 0x402b46
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xe0]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x402b4e
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4070b4
call sym._load_func.part.0
jmp 0x402b0d
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4070b4
call sym._load_func.part.0
jmp 0x402c5a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4070b4
call sym._load_func.part.0
jmp 0x402c0e
mov eax, 0xffffffff
jmp 0x402bb5
Function at 0x402e70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x401460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40147b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4014b2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4014ae
jmp 0x4014a0
cmp esi, eax
jae 0x4014b2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4014a0
cmp esi, eax
jb 0x4014b9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x505abd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x575e34]
jne 0x505ac7
repz ret
jmp fcn.0050e56c
Function at 0x519c1d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x575e34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0050df60
and dword [ebp - 0x14], 0
cmp dword [0x57d730], 0
mov dword [ebp - 0x18], eax
jne 0x519cd0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x519d78
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x519d78
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x555150
push ebx
mov dword [0x57d730], eax
call edi
push eax
call esi
push 0x55513c
push ebx
mov dword [0x57d734], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x57d738], eax
call edi
push eax
call esi
mov dword [0x57d740], eax
test eax, eax
je 0x519cd0
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x57d73c], eax
mov eax, dword [0x57d73c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x519d29
cmp dword [0x57d740], ecx
je 0x519d29
push eax
call esi
push dword [0x57d740]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x519d29
test ebx, ebx
je 0x519d29
call edi
test eax, eax
je 0x519d20
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x519d20
test byte [ebp - 8], 1
jne 0x519d29
or dword [ebp + 0x10], 0x200000
jmp 0x519d5c
mov eax, dword [0x57d734]
cmp eax, dword [ebp - 0x18]
je 0x519d5c
push eax
call esi
test eax, eax
je 0x519d5c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x519d5c
mov eax, dword [0x57d738]
cmp eax, dword [ebp - 0x18]
je 0x519d5c
push eax
call esi
test eax, eax
je 0x519d5c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x57d730]
call esi
test eax, eax
je 0x519d78
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x519d7a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00505abd
leave
ret
Function at 0x401000
Capabilities:
Persist via ginadll registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x401032
mov eax, 1
jmp 0x40107b
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 1
push 0
push 0x40804c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401062
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40107b
push 0x408048
call fcn.00401299
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
jne 0x4010b8
xor eax, eax
jmp 0x4011bf
mov eax, dword [0x408030]
push eax
mov ecx, dword [0x408034]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4010df
xor eax, eax
jmp 0x4011bf
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4010fb
jmp 0x4011a5
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401113
jmp 0x4011a5
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
ja 0x40112c
jmp 0x4011a5
push 4
push 0x1000
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40114a
jmp 0x4011a5
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x4080a0
push 0x408090
call fcn.0040144a
add esp, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp - 8]
push eax
call fcn.00401320
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call fcn.004012ca
add esp, 4
push 0x40808c
call fcn.00401299
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x4011bc
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x405a12
pop dword [ebp - 8]
mov eax, 0x405a12
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xf5db66d1
add dword [ebp - 0x18], 0x5876de7a
mov dword [ebp - 0x14], 0xa856acd4
add dword [ebp - 0x14], 0x89dc9f71
mov dword [ebp - 0x10], 0x7bbe227e
add dword [ebp - 0x10], 0xd08e21b0
mov dword [ebp - 0xc], 0x9308485e
sub dword [ebp - 0xc], 0x9308485e
lea eax, [ebp - 0x18]
push eax
mov eax, 0xc39f79d1
add eax, 0x3ca10733
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xff9e0591
sub dword [ebp - 0x18], 0x8b2b9c3b
mov dword [ebp - 0x14], 0x43e76f32
add dword [ebp - 0x14], 0xfd84f243
mov dword [ebp - 0x10], 0x6865489c
add dword [ebp - 0x10], 0xfb0a23d0
mov dword [ebp - 0xc], 0x6090f77
sub dword [ebp - 0xc], 0x6090f77
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x51891c44
add eax, 0xaeb764bc
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x37694
push 0
call eax
mov ecx, 0x49b9
mov edi, eax
mov esi, 0x24238ec0
add esi, 0xdc235540
add esi, dword [ebp - 8]
mov ebx, 0x76a0e190
sub dword [ebp - 4], 0x889d55be
mov edx, dword [esi]
mov dword [ebp - 4], 0xd562c7c8
sub edx, ebx
sub dword [ebp - 4], eax
mov dword [edi], edx
xor dword [ebp - 4], 0x9688a6e8
add edi, 0xab59622c
sub edi, 0xab596228
add esi, 0xce0671cc
add esi, 0x31f98e38
loop 0x405b23
add eax, 0x193abed1
sub eax, 0x1939a51a
xor ebx, ebx
add ebx, eax
add eax, 0xa431b23a
sub eax, 0xa431b235
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x10001f81
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x10001fa4
xor eax, eax
jmp 0x100020cf
add dword [ebp + 8], 5
add edx, 0xfffffffc
add edx, eax
mov dword [ebp - 0xc], edx
push edi
lea edi, [ebx + eax]
cmp edi, edx
jae 0x10001fc8
invalid
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x10001fc5
inc edi
cmp edi, edx
jb 0x10001fb8
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x100020bd
cmp ecx, 2
jbe 0x10002051
xor esi, esi
movzx ecx, byte [edi + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x100020ab
movzx eax, byte [edi + 3]
mov edx, dword [ebp + 8]
shl ecx, 8
add edx, ebx
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
add ecx, edx
sub eax, edx
cmp dword [ebp + 0x10], 0
cmove ecx, eax
mov dword [ebp - 8], ecx
mov edx, ecx
test esi, esi
je 0x10002085
and esi, 6
mov eax, ecx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x10002083
mov eax, dword [ebp + 8]
mov edx, 0x100
shl edx, cl
add eax, ebx
dec edx
xor edx, dword [ebp - 8]
cmp dword [ebp + 0x10], 0
je 0x10002081
add edx, eax
jmp 0x10002083
shr esi, cl
test esi, esi
je 0x10001fe1
cmp esi, 4
ja 0x10002076
cmp esi, 3
je 0x10002076
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x10001fe1
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x10001fb1
sub edx, eax
xor esi, esi
mov eax, edx
mov byte [edi + 1], dl
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
push 5
mov byte [edi + 4], dl
mov edx, dword [ebp - 0xc]
pop eax
jmp 0x100020b3
or esi, 8
xor eax, eax
shr esi, 1
inc eax
add ebx, eax
mov eax, dword [ebp - 4]
jmp 0x10001fb1
xor eax, eax
shr esi, cl
cmp ecx, 2
pop edi
cmova esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc
Function at 0x10001fa6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x10001fa4
xor eax, eax
jmp 0x100020cf
add dword [ebp + 8], 5
add edx, 0xfffffffc
add edx, eax
mov dword [ebp - 0xc], edx
push edi
lea edi, [ebx + eax]
cmp edi, edx
jae 0x10001fc8
invalid
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x10001fc5
inc edi
cmp edi, edx
jb 0x10001fb8
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x100020bd
cmp ecx, 2
jbe 0x10002051
xor esi, esi
movzx ecx, byte [edi + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x100020ab
movzx eax, byte [edi + 3]
mov edx, dword [ebp + 8]
shl ecx, 8
add edx, ebx
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
add ecx, edx
sub eax, edx
cmp dword [ebp + 0x10], 0
cmove ecx, eax
mov dword [ebp - 8], ecx
mov edx, ecx
test esi, esi
je 0x10002085
and esi, 6
mov eax, ecx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x10002083
mov eax, dword [ebp + 8]
mov edx, 0x100
shl edx, cl
add eax, ebx
dec edx
xor edx, dword [ebp - 8]
cmp dword [ebp + 0x10], 0
je 0x10002081
add edx, eax
jmp 0x10002083
shr esi, cl
test esi, esi
je 0x10001fe1
cmp esi, 4
ja 0x10002076
cmp esi, 3
je 0x10002076
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x10001fe1
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x10001fb1
sub edx, eax
xor esi, esi
mov eax, edx
mov byte [edi + 1], dl
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
push 5
mov byte [edi + 4], dl
mov edx, dword [ebp - 0xc]
pop eax
jmp 0x100020b3
or esi, 8
xor eax, eax
shr esi, 1
inc eax
add ebx, eax
mov eax, dword [ebp - 4]
jmp 0x10001fb1
xor eax, eax
shr esi, cl
cmp ecx, 2
pop edi
cmova esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc

Function at 0x10003156
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or dword [ecx + 0x468], 0xffffffff
xor edx, edx
or dword [ecx + 0x46c], 0xffffffff
push esi
push edi
mov dword [ecx + 0x34], edx
lea esi, [ecx + 0x60]
mov word [ecx + 0x1e], dx
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x30], 0x20
mov byte [ecx + 0x1d], 1
mov dword [ecx + 0x48], 4
push 8
mov ecx, edx
pop edi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub edi, 1
jne 0x1000318c
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 0x100
jb 0x10003187
Function at 0x100039c4
Capabilities:
Encode data using xor

Disassembly:
add dword [edi], ecx
mov dh, 0x43
dec dword [edi]
mov dh, 0x53
add dword [ebx + 0x4d8b1875], ecx
or cl, al
loop 0x100039de
movzx eax, byte [ebx - 1]
movzx edx, byte [ebx + 1]
mov esi, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
shl edx, 8
xor edx, dword [esi + eax*4]
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor edx, eax
mov eax, edi
and edx, dword [ebp + 0xc]
add dword [ebx], esi
ror byte [ebx + 0xc5523c7], 1
sub eax, dword [ecx + edx*4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
add ecx, 4
mov eax, dword [ebp + 8]
mov dword [ebp + 0x10], ecx
mov dword [eax + edx*4], edi
inc edi
sub dword [ebp + 0x14], 1
jne 0x100039c5
pop ebx
pop edi
pop esi
pop ebp
ret 0x14

Function at 0x100087f3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, ecx
xor eax, eax
push ebx
push esi
mov dword [ebp - 4], edx
lea ecx, [edx + 0x11fc]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
push edi
mov esi, eax
mov edi, eax
movzx eax, word [edx + 0x1e1e]
and esi, 1
mov ecx, esi
shr edi, 1
neg ecx
and ecx, 0x7f0
xor ecx, eax
mov eax, dword [ebp - 4]
shr ecx, 4
mov ebx, dword [edx + ecx*4 + 0x748]
mov edx, edi
movzx ecx, word [eax + esi*2 + 0x1e20]
and edx, 1
mov eax, edx
shr ecx, 4
neg eax
shr edi, 1
shr eax, 4
and edi, 1
and eax, 0x7f
lea edx, [edx + esi*2]
xor ecx, eax
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
lea edx, [edx + 4]
add ebx, dword [eax + ecx*4 + 0x748]
movzx ecx, word [eax + edx*2 + 0x1e1c]
mov eax, edi
neg eax
shr ecx, 4
shr eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp - 4]
add ebx, dword [eax + ecx*4 + 0x748]
lea eax, [edi + edx*2]
mov edx, dword [ebp - 4]
movzx ecx, word [edx + eax*2 + 0x1e1c]
mov eax, ecx
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
mov eax, dword [edx + eax*4 + 0x748]
add eax, ebx
mov dword [esi - 0x20], eax
mov eax, dword [edx + ecx*4 + 0x748]
add eax, ebx
mov dword [esi], eax
add esi, 4
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
cmp eax, 8
jb 0x1000880f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100088db
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100652b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 2
pop edx
mov dword [ebp - 0x230], esi
and dword [esi + 0xc0], 0
mov dword [ebp - 0x21c], edx
movzx ebx, byte [esi + edx + 0x2c9c]
xor edi, edi
mov eax, ebx
mov dword [ebp - 0x208], edi
shr eax, 1
and ebx, 1
dec eax
mov dword [ebp - 0x214], edx
or ebx, 2
mov dword [ebp - 0x22c], eax
mov ecx, eax
shl ebx, cl
lea ecx, [ebx + 0x8e7]
add ebx, edx
lea ecx, [esi + ecx*4]
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x218], ecx
xor ecx, ecx
inc ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ecx, eax
shl dword [ebp - 0x210], cl
test eax, eax
je 0x100089d9
mov edi, dword [ebp - 0x230]
mov ebx, eax
mov eax, dword [ebp - 0x214]
mov esi, eax
mov edx, dword [ebp - 0x20c]
and esi, 1
shr eax, 1
add edx, edx
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x218]
movzx ecx, word [edx + eax]
mov eax, esi
neg eax
shr ecx, 4
shr eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp - 0x208]
add eax, dword [edi + ecx*4 + 0x748]
mov dword [ebp - 0x208], eax
lea eax, [edx + esi]
mov dword [ebp - 0x20c], eax
sub ebx, 1
jne 0x1000896e
mov ebx, dword [ebp - 0x228]
mov esi, edi
mov edx, dword [ebp - 0x21c]
mov edi, dword [ebp - 0x208]
jmp 0x100089df
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x218]
movzx ecx, word [ecx + eax*2]
mov eax, ecx
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
mov eax, dword [esi + eax*4 + 0x748]
mov ecx, dword [esi + ecx*4 + 0x748]
add eax, edi
mov dword [ebp + ebx*4 - 0x204], eax
add ecx, edi
mov eax, dword [ebp - 0x210]
add eax, ebx
inc edx
mov dword [ebp - 0x21c], edx
mov dword [ebp + eax*4 - 0x204], ecx
cmp edx, 0x40
jb 0x10008909
lea ebx, [ebp - 0x200]
invalid