joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450faf
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
cmp esi, 1
je 0x450fdf
cmp esi, 2
je 0x450fdf
cmp esi, 4
je 0x450fdf
cmp esi, 8
je 0x450fdf
cmp esi, 0x18
je 0x450fdf
cmp esi, 0x20
je 0x450fdf
xor eax, eax
jmp 0x4511a9
mov ecx, dword [0x6106dc]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x4511a5
mov edx, dword [esp + 0x28]
mov eax, dword [edi*4 + 0x611534]
cmp dword [eax], edx
je 0x451012
inc edi
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x450ff9
jmp 0x4511a5
cmp dword [esp + 0x38], 0x20
jne 0x45117c
mov eax, dword [eax + 8]
test eax, eax
je 0x451052
cmp esi, 0x20
je 0x45102e
cmp esi, 0xffffffff
jne 0x451052
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x4511a3
mov eax, dword [esp + 0x2c]
inc eax
imul ebp, eax, 3
and ebp, 0xfffffffc
mov eax, ebp
mov dword [esp + 0x14], ebp
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x60aa40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4511a5
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x451147
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov esi, edx
test eax, eax
jle 0x451127
mov ebp, ecx
mov edi, eax
mov ecx, 0xff
movzx eax, byte [esi + 2]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 2], al
movzx eax, byte [esi + 1]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [esi]
lea esi, [esi + 4]
sub eax, ecx
movzx ecx, byte [esi - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp], al
lea ebp, [ebp + 3]
dec edi
jne 0x4510b8
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebp
dec dword [esp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x4510a5
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x611534]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x20]
push dword [esp + 0x44]
push ebp
push ebx
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x60aa40]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4511a5
cmp dword [esp + 0x38], 0x18
jne 0x4511a5
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov ebx, eax
pop edi
mov eax, ebx
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 0x28
Function at 0x4547db
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x610720]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x45483c
push esi
push dword [0x61071c]
push 8
push dword [0x60aa40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x610720]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x610718]
jmp 0x45482c
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x45482a
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x45481a
push edi
push 0x454779
call fcn.0054006e
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x454846
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x45485c
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x61071c]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x454893
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x60aa40]
mov dword [0x610720], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x610720]
call ebx
mov eax, dword [0x61071c]
mov edi, eax
add eax, esi
push eax
push dword [0x610720]
mov dword [0x61071c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x60aa40]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x610720]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x4548d3
test ebx, ebx
je 0x4548f4
push 0x14
push 0x610718
call fcn.00455148
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x4548f4
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4552e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x605620]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x455326
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x6115b8]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x455347
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x6115b8]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00455ca0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x455370
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x605620]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x455470
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x605620]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret

Function at 0x455720
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x605620]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x455744
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x455794
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x6115b8]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x4557dc
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x4557dc
cmp dword [ebp - 8], 0x100000
jge 0x4557b0
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x6115b8]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x455800
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x605620]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x455c20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x605620]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x455c5e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x455c5e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x455c60
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x455cf0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x605620]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x456080
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x605620]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x460af0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x460b10
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x460b10
mov eax, dword [eax + 0x44]
test eax, eax
je 0x460b10
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x472da0
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [edi + 4], 0
call fcn.00474ec0
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.00474e90
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x472de7
push edi
call fcn.00474ed0
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], esi
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 8
mov dword [esi], fcn.00472a30
mov dword [esi + 4], fcn.004728c0
mov dword [esi + 8], fcn.00472990
mov dword [esi + 0xc], fcn.00472810
mov dword [esi + 0x10], 0x473100
mov dword [esi + 0x14], 0x473090
mov dword [esi + 0x18], 0x472ef0
mov dword [esi + 0x1c], 0x4726c0
mov dword [esi + 0x20], 0x472570
mov dword [esi + 0x24], 0x472ca0
mov dword [esi + 0x28], 0x473170
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x472eca
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0x78
push ecx
lea ecx, [esp + 0xc]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x472eca
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x472eb9
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x472ec1
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x4a5220
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
movzx edx, byte [esi + 9]
mov ebx, dword [esi + 0x38]
mov eax, dword [esi + 0x34]
movzx ecx, byte [edx + ebx + 5]
mov ebp, dword [eax + 0x28]
movzx eax, byte [edx + ebx + 6]
movzx edi, byte [edx + ebx + 7]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x10], ebp
movzx eax, byte [esi + 0xa]
dec ecx
and ecx, 0xffff
add eax, edx
inc ecx
add ebp, 0xfffffffc
mov dword [esp + 0x14], ecx
movzx ecx, word [esi + 0x18]
movzx esi, byte [edx + ebx + 1]
shl esi, 8
lea eax, [eax + ecx*2]
add eax, 8
mov dword [esp + 0x18], eax
movzx eax, byte [edx + ebx + 2]
or esi, eax
mov eax, dword [esp + 0x14]
add edi, eax
test esi, esi
jle 0x4a5319
cmp esi, eax
jge 0x4a52a3
push 0x5787dc
push 0x10a25
jmp 0x4a5349
cmp esi, ebp
jg 0x4a52de
jmp 0x4a52b0
movzx eax, byte [esi + ebx]
movzx ecx, byte [ebx + esi + 1]
movzx edx, byte [ebx + esi + 2]
shl eax, 8
or eax, ecx
shl edx, 8
movzx ecx, byte [ebx + esi + 3]
or edx, ecx
lea ecx, [esi + 3]
add ecx, edx
add edi, edx
cmp eax, ecx
jbe 0x4a52ea
mov esi, eax
cmp eax, ebp
jle 0x4a52b0
push 0x5787dc
push 0x10a2a
jmp 0x4a5349
test eax, eax
je 0x4a52fa
push 0x5787dc
push 0x10a34
jmp 0x4a5349
mov ecx, dword [esp + 0x10]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x4a531d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
mov dword [esp + 4], 0x10a38
jmp fcn.004e7f40
mov ecx, dword [esp + 0x10]
cmp edi, ecx
jg 0x4a533f
mov eax, dword [esp + 0x18]
cmp edi, eax
jl 0x4a533f
mov ecx, dword [esp + 0x20]
sub edi, eax
movzx eax, di
pop edi
pop esi
pop ebp
mov dword [ecx + 0x14], eax
xor eax, eax
pop ebx
add esp, 0xc
ret
push 0x5787dc
push 0x10a44
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0049bde0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4d90b0
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
push dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov byte [edi + 0x10], 1
push ebx
push ebx
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push edi
call fcn.00500ac0
add esp, 0x1c
cmp dword [esp + 0x14], 0
jne 0x4d90f8
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push edi
call fcn.00500ac0
add esp, 0x14
pop edi
pop ebx
ret
Function at 0x4e9460
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
mov dword [esp + 0x10], 0
cmp word [esi + 0xcc], 0
mov ebp, dword [esi]
jle 0x4e949a
push str.parameters_are_not_allowed_in_views
push esi
call fcn.004ebb90
mov edi, dword [esp + 0x6c]
add esp, 8
jmp 0x4e95ce
push dword [esp + 0x6c]
mov edi, dword [esp + 0x60]
push 0
push 1
push dword [esp + 0x74]
push edi
push dword [esp + 0x6c]
push esi
call fcn.0050db90
mov ebx, dword [esi + 0xec]
add esp, 0x1c
test ebx, ebx
je 0x4e95c6
cmp dword [esi + 0x24], 0
jne 0x4e95c6
or dword [ebx + 0x1c], 0x200
lea eax, [esp + 0x10]
push eax
push edi
push dword [esp + 0x60]
push esi
call fcn.0050f160
add esp, 0x10
push dword [esp + 0x10]
push str.view
push dword [ebx + 0x3c]
push ebp
call fcn.0050a0c0
add esp, 8
push eax
lea eax, [esp + 0x24]
push esi
push eax
call fcn.004f25d0
mov edi, dword [esp + 0x78]
lea eax, [esp + 0x30]
push edi
push eax
call fcn.00521300
add esp, 0x1c
test eax, eax
jne 0x4e95ca
or dword [edi + 4], 0x200000
cmp byte [esi + 0xd0], 2
jb 0x4e953c
mov dword [ebx + 0x2c], edi
xor edi, edi
jmp 0x4e954b
push 1
push edi
push ebp
call fcn.0050c940
add esp, 0xc
mov dword [ebx + 0x2c], eax
push 1
push dword [esp + 0x64]
push ebp
call fcn.004f0840
add esp, 0xc
mov dword [ebx + 0x10], eax
mov byte [ebx + 0x2b], 2
cmp byte [ebp + 0x57], 0
jne 0x4e95ca
mov ecx, dword [esi + 0xc4]
cmp byte [ecx], 0x3b
je 0x4e9578
add ecx, dword [esi + 0xc8]
mov eax, dword [esp + 0x54]
mov edx, dword [eax]
sub ecx, edx
movzx eax, byte [edx + ecx - 1]
test byte [eax + 0x56b0f0], 1
je 0x4e959f
mov edi, edi
movzx eax, byte [edx + ecx - 2]
dec ecx
test byte [eax + 0x56b0f0], 1
jne 0x4e9590
lea eax, [edx - 1]
mov dword [esp + 0x14], 1
add eax, ecx
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0
push eax
push 0
push esi
call fcn.004eb260
add esp, 0x14
jmp 0x4e95ca
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
test edi, edi
je 0x4e95de
push 1
push edi
push ebp
call fcn.004a7e40
add esp, 0xc
cmp byte [esi + 0xd0], 2
jb 0x4e95f1
push ebx
push esi
call fcn.005084c0
add esp, 8
test ebx, ebx
je 0x4e95ff
push ebx
push ebp
call fcn.004b0f30
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x4ec910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push ebx
mov bh, byte [esp + 0x40]
mov edx, dword [ecx + 8]
mov bl, bh
and bl, 1
mov dword [esp + 4], edx
neg bl
push ebp
sbb bl, bl
push esi
mov esi, dword [eax]
add bl, 0x50
cmp byte [ecx + 0x17], 0
mov dword [esp + 0x3c], esi
jne 0x4ec944
and bh, 0xfd
add eax, 8
xor ebp, ebp
mov dword [esp + 0x10], eax
test esi, esi
jle 0x4ecac9
mov esi, dword [esp + 0x40]
mov byte [esp + 0x48], bh
and byte [esp + 0x48], 4
push edi
cmp byte [esp + 0x4c], 0
mov edi, dword [eax]
je 0x4ec9a4
movzx eax, word [eax + 0x10]
test eax, eax
jle 0x4ec9a4
test bh, 8
je 0x4ec989
mov eax, dword [esp + 0x40]
dec ebp
dec esi
dec eax
mov dword [esp + 0x40], eax
jmp 0x4ecaaa
mov ecx, dword [esp + 0x48]
dec ecx
push esi
add eax, ecx
push eax
movzx eax, bl
push eax
push edx
call fcn.00512d40
add esp, 0x10
jmp 0x4eca9e
test bh, 2
je 0x4ec9f9
mov dword [esp + 0x20], fcn.004b11e0
mov eax, 2
mov word [esp + 0x30], ax
mov dword [esp + 0x24], 0x50ce20
mov dword [esp + 0x34], 0
test edi, edi
je 0x4ec9e9
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00532c40
mov ecx, dword [esp + 0x44]
add esp, 8
cmp word [esp + 0x30], 0
je 0x4ec9f9
push esi
push edi
push ecx
call fcn.004eddd0
add esp, 0xc
jmp 0x4eca9e
push esi
push edi
push ecx
call fcn.004edf60
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x4eca9e
cmp bl, 0x4f
jne 0x4eca4d
push 0xffffffffffffffff
push dword [esp + 0x14]
call fcn.0051b0a0
mov ecx, eax
add esp, 8
cmp byte [ecx], bl
jne 0x4eca4d
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0xc]
inc eax
add eax, edx
cmp eax, edi
jne 0x4eca4d
mov eax, dword [ecx + 8]
inc eax
add eax, edx
cmp eax, esi
jne 0x4eca4d
cmp word [ecx + 2], 0
jne 0x4eca4d
lea eax, [edx + 1]
mov dword [ecx + 0xc], eax
jmp 0x4eca9e
mov edx, dword [esp + 0x10]
movzx eax, bl
mov dword [esp + 0x18], eax
mov ecx, dword [edx + 0x74]
cmp dword [edx + 0x78], ecx
jg 0x4eca70
push 0
push esi
push edi
push eax
push edx
call fcn.004c7840
add esp, 0x14
jmp 0x4eca9e
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x70]
mov edx, dword [esp + 0x18]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], edx
mov byte [eax + ecx*4 + 1], dl
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
add dword [esp + 0x14], 0x14
inc ebp
inc esi
cmp ebp, eax
mov eax, dword [esp + 0x14]
jl 0x4ec963
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x4f1be0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebp
push esi
xor esi, esi
xor ebp, ebp
cmp dword [eax + 0x14], esi
jle 0x4f1c9d
mov edx, dword [esp + 0x1c]
push ebx
push edi
lea esp, [esp]
mov edi, esi
cmp esi, 2
jge 0x4f1c0a
xor edi, 1
mov eax, dword [eax + 0x10]
mov ecx, edi
add ecx, ecx
mov ebx, dword [eax + ecx*8 + 0xc]
mov dword [esp + 0x10], ebx
test edx, edx
je 0x4f1c64
mov eax, dword [eax + ecx*8]
mov ebx, edx
sub ebx, eax
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x4f1c36
test edx, edx
je 0x4f1c64
inc eax
jmp 0x4f1c24
movzx ecx, byte [ecx + 0x56afc0]
movzx edx, byte [edx + 0x56afc0]
sub edx, ecx
jne 0x4f1c4b
inc eax
jmp 0x4f1c24
test edi, edi
jne 0x4f1c81
push dword [esp + 0x24]
push str.main
call fcn.0050e440
add esp, 8
test eax, eax
jne 0x4f1c81
mov eax, dword [esp + 0x10]
push 0
push dword [esp + 0x24]
add eax, 0x18
push eax
call fcn.004b2240
add esp, 0xc
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x4f1c93
mov eax, dword [esp + 0x1c]
inc esi
mov edx, dword [esp + 0x24]
cmp esi, dword [eax + 0x14]
jl 0x4f1c00
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x4f32b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
mov ebp, dword [esi]
mov eax, dword [ebp + 0x20]
and eax, 0x4000
or eax, 0
je 0x4f346d
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x2b], 0
jne 0x4f346d
push ebx
push edi
mov edi, dword [esi + 8]
xor ebx, ebx
test edi, edi
jne 0x4f3300
cmp dword [esi + 0x74], ebx
jne 0x4f32f1
test byte [ebp + 0x50], 8
jne 0x4f32f1
mov byte [esi + 0x17], 1
push esi
call fcn.005137c0
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
push 0
push dword [eax]
add ecx, 0x38
push ecx
call fcn.004b2240
add esp, 0xc
cmp dword [eax + 8], ebx
jne 0x4f3394
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x30]
test ecx, ecx
je 0x4f346b
cmp byte [ecx + 0x18], bl
jne 0x4f3345
mov eax, dword [ebp + 0x20]
and eax, 0x80000
or eax, 0
jne 0x4f3345
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x4f3327
pop edi
pop ebx
pop esi
pop ebp
ret
dec dword [esi + 0x38]
mov ecx, dword [edi + 0x74]
mov ebx, dword [esi + 0x38]
cmp dword [edi + 0x78], ecx
jg 0x4f3365
push 0
push ebx
push 1
push 0x30
push edi
call fcn.004c7840
add esp, 0x14
jmp 0x4f3394
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x30
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0
push 0
push 0
push 0
push dword [esp + 0x28]
mov byte [esi + 0x97], 1
push ebp
call fcn.0050d6b0
add esp, 0xc
push eax
push esi
call fcn.004e9ec0
mov byte [esi + 0x97], 0
add esp, 0x14
mov eax, dword [ebp + 0x20]
and eax, 0x80000
or eax, 0
jne 0x4f3441
mov eax, dword [edi + 0x74]
add eax, 2
push eax
push 0
push 0x30
push edi
call fcn.00512d40
mov ebp, dword [esi + 8]
add esp, 0x10
test ebp, ebp
jne 0x4f3405
cmp dword [esi + 0x74], ebp
jne 0x4f33fa
mov eax, dword [esi]
test byte [eax + 0x50], 8
jne 0x4f33fa
mov byte [esi + 0x17], 1
push esi
call fcn.005137c0
add esp, 4
mov ebp, eax
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x4f340e
mov eax, esi
push 0xffffffffffffffff
push 0
push 0
push 2
push 0x313
push 0x46
push ebp
mov byte [eax + 0x15], 1
call fcn.00512e00
mov eax, dword [ebp + 0x74]
add esp, 0x1c
test eax, eax
jle 0x4f3441
lea ecx, [eax + eax*4]
mov edx, 4
mov eax, dword [ebp + 0x70]
mov word [eax + ecx*4 - 0x12], dx
test ebx, ebx
je 0x4f346b
mov ecx, dword [edi + 0xc]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4f3462
push ebx
push edi
push ecx
call fcn.004d98e0
add esp, 0xc
pop edi
pop ebx
pop esi
pop ebp
ret
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x74]
mov dword [ecx + ebx*4], eax
pop edi
pop ebx
pop esi
pop ebp
ret