joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a3a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov eax, edx
xor eax, dword [ebp + 0x10]
shr ecx, 5
inc ecx
cmp edx, ecx
jb 0x45a3db
push esi
push edi
mov esi, dword [ebp + 8]
movzx esi, byte [esi + edx - 1]
mov edi, eax
shl edi, 5
add esi, edi
mov edi, eax
shr edi, 2
add esi, edi
sub edx, ecx
xor eax, esi
cmp edx, ecx
jae 0x45a3bb
pop edi
pop esi
pop ebp
ret

Function at 0x45e540
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
mov esi, 0x200
call fcn.004521e6
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00452085
push dword [ebp + 0xc]
push esi
push 1
push eax
call fcn.0046998c
add esp, 0x20
jmp 0x45e5a2
cmp esi, 0x3fffffff
ja 0x45e586
add esi, esi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00452085
push dword [ebp + 0xc]
push esi
push 1
push eax
call fcn.0046998c
add esp, 0x18
add dword [ebp - 0x208], eax
cmp eax, esi
jae 0x45e57c
lea eax, [ebp - 0x210]
push eax
call fcn.0045214e
pop ecx
pop esi
leave
ret

Function at 0x45e5bc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call fcn.004521e6
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.00452085
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 1
push eax
call fcn.0046998c
mov esi, eax
add dword [ebp - 0x208], esi
lea eax, [ebp - 0x210]
push eax
call fcn.0045214e
xor eax, eax
add esp, 0x24
cmp eax, esi
sbb eax, eax
neg eax
pop esi
leave
ret

Function at 0x45e8ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, eax
call fcn.00453194
pop ecx
mov esi, eax
sub esi, ebx
push 1
pop edi
je 0x45e93e
push ebx
push dword [ebp + 8]
dec esi
call fcn.00453323
pop ecx
pop ecx
cmp eax, 3
jne 0x45e907
test edi, edi
je 0x45e933
push 0
push ebx
push dword [ebp + 8]
call fcn.0045350c
fstp qword [esp + 4]
mov dword [esp], str._.14g
push dword [ebp + 0xc]
call fcn.00466fcd
add esp, 0x10
test eax, eax
jle 0x45e933
xor edi, edi
inc edi
jmp 0x45e935
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call fcn.00452d08
add esp, 0xc
test edi, edi
je 0x45e933
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp - 4]
inc edi
push edi
push eax
call fcn.004686ff
add esp, 0x10
cmp eax, dword [ebp - 4]
je 0x45e935
xor edi, edi
inc ebx
test esi, esi
jne 0x45e8c8
test edi, edi
je 0x45e943
xor eax, eax
inc eax
jmp 0x45e952
push 0
push 0
push dword [ebp + 8]
call fcn.00451eaf
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a2b0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4032b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4024a0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.004061b0
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00406164
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x41a465
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x41a386
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00406278
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x41a465
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x40534c
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.00406210
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x41a465
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x41a403
mov dword [ebp - 0x8c], 0
jmp 0x41a40f
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x41a446
mov dword [ebp - 0x90], 0
jmp 0x41a452
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x41a354
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405e10
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x41a48d
jmp 0x41a48c
ret
Function at 0xcf9058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xcf91a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xcf907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcf906a
add dl, dl
jne 0xcf9089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcf90dc
xor eax, eax
add dl, dl
jne 0xcf9096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcf917d
add dl, dl
jne 0xcf90a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcf90b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcf90bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcf90c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xcf90d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xcf9075
mov eax, 1
add dl, dl
jne 0xcf90ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcf90f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcf90e1
sub eax, ebx
mov ebx, 1
jne 0xcf9128
mov ecx, 1
add dl, dl
jne 0xcf910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcf9119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcf9105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcf9075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xcf913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcf914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcf9136
cmp eax, 0x7d00
jae 0xcf916d
cmp eax, 0x500
jb 0xcf9168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcf9075
cmp eax, 0x7f
ja 0xcf9170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcf9075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xcf919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xcf9075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10013c4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
mov dword [ebp - 4], esi
je 0x1001422
cmp dword [ebp + 0xc], esi
je 0x1001422
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp + 0x14]
mov word [edi], si
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001422
push ebx
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
pop ebx
jne 0x1001422
mov eax, edi
jmp 0x1001424
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1001a45
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001258
call fcn.01001c48
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1001a82
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a82
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001a9a
cmp eax, 0x20b
je 0x1001a87
mov dword [ebp - 0x1c], ebx
jmp 0x1001aae
cmp dword [ecx + 0x84], 0xe
jbe 0x1001a82
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1001aa8
cmp dword [ecx + 0x74], 0xe
jbe 0x1001a82
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1003078], 0xffffffff
or dword [0x100307c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1003070]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100306c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1003080], eax
call fcn.01001c3e
cmp dword [0x1003050], ebx
jne 0x1001b09
push fcn.01001c3e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001c27
push 0x1003010
push 0x100300c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1003068]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1003064]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1003008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1001b9f
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1001b73
cmp al, 0x22
jne 0x1001b65
cmp byte [esi], 0x22
jne 0x1001b7c
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1001b86
cmp al, 0x20
jbe 0x1001b78
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1001baa
movzx eax, word [ebp - 0x50]
jmp 0x1001bad
cmp byte [esi], 0x20
jbe 0x1001b7c
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001b9f
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1001bca
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1001bff
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01001c83
ret
Function at 0x40280f
Capabilities:
Check for time delay via queryperformancecounter
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 8], eax
push 0
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [0x409040]
add eax, 7
mov dword [0x40903c], eax
and dword [ebp - 0x14], 0
jmp 0x40285e
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
add eax, 0x28
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
jge 0x4029e7
push 0x410770
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov eax, dword [0x409040]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x409040], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x402965
mov eax, dword [0x409040]
add eax, 7
mov dword [0x40903c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [0x409040]
imul eax, dword [0x409040]
sub eax, 3
mov dword [0x40903c], eax
cmp dword [ebp - 4], 0
jle 0x402953
mov eax, dword [0x40903c]
imul eax, dword [0x409040]
mov ecx, dword [0x409040]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x40903c], eax
push 4
push 0x1000
push dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x409040]
shl eax, 1
mov dword [0x40903c], eax
push 0
push 0
push 0
call fcn.004035ec
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov eax, dword [0x409040]
add eax, 7
mov dword [0x40903c], eax
mov eax, dword [0x40903c]
imul eax, eax, 0x63
mov dword [0x40903c], eax
push dword [ebp - 4]
push 0
push dword [ebp - 0xc]
call fcn.0040362a
add esp, 0xc
mov eax, dword [0x409040]
add eax, 7
mov dword [0x40903c], eax
jmp 0x40284e
mov eax, dword [0x409040]
imul eax, dword [0x409040]
sub eax, 3
mov dword [0x40903c], eax
push 4
push 0x1000
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x40903c]
sub eax, 4
mov dword [0x409040], eax
mov eax, dword [0x409040]
shl eax, 3
mov dword [0x409040], eax
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
push dword [ebp - 0xc]
call fcn.004035ec
add esp, 0xc
push 0x410770
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
jmp 0x40284e
push 0
push 0
push 0
call fcn.0040362a
add esp, 0xc
leave
ret
Function at 0x4059bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40fba0
cmp edx, dword [eax]
je 0x4059df
add eax, 8
inc ecx
cmp eax, 0x40fc30
jl 0x4059d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40fba0]
jne 0x405b0d
mov eax, dword [0x41f1f0]
cmp eax, 1
je 0x405ae7
test eax, eax
jne 0x405a10
cmp dword [0x40faec], 1
je 0x405ae7
cmp edx, 0xfc
je 0x405b0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405a47
lea eax, [ebp - 0x1a4]
push 0x408420
push eax
call fcn.004067c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405e80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405a8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405e80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40841c
push edi
call fcn.00406940
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x408400
push eax
call fcn.004067c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004067d0
lea eax, [ebp - 0xa0]
push 0x4083fc
push eax
call fcn.004067d0
push dword [esi + 0x40fba4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004067d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4083d4
push eax
call fcn.004068b0
add esp, 0x2c
pop edi
jmp 0x405b0d
lea eax, [ebp + 8]
lea esi, [esi + 0x40fba4]
push 0
push eax
push dword [esi]
call fcn.00405e80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop esi
leave
ret
Function at 0x404310
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x4043f0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4043f0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x404364
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x40436b
mov esi, edi
xor esi, 1
and edi, 1
lea edi, [esi + edi*2]
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
mov ecx, esi
cmp edi, ebp
jb 0x404340
jmp 0x40436d
mov esi, 0x1505
jmp 0x40436d
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x20]
lea edi, [ebx - 1]
mov edx, ebx
sub edx, 1
mov dword [esp + 8], edx
jb 0x4043f0
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404394
inc edi
dec ebx
je 0x4043ee
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x4043ee
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x404390
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040c600
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x404390
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040c620
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x404390
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x4043f0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
xor eax, eax
cmp dword [esp + 0x18], 0
je 0x404b67
cmp dword [esp + 0x1c], 0
jle 0x404b0e
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [edx + eax]
mov dword [esp], ecx
jmp 0x4049a8
cmp esi, 0xc0
jne 0x404b65
and ebx, 0x1ff800
cmp ebx, 0xd800
mov ecx, dword [esp]
je 0x404b65
add edx, ebp
cmp edx, ecx
jae 0x404b0e
movzx ebx, byte [edx]
cmp ebx, 0xf4
ja 0x404b65
mov eax, ebx
and al, 0xfe
cmp al, 0xc0
je 0x404b65
mov eax, ebx
and eax, 0xffffffc0
cmp eax, 0x80
je 0x404b65
mov ebp, 1
test bl, bl
jns 0x40499e
mov esi, ebx
and esi, 0xffffffe0
cmp esi, 0xc0
jne 0x404a17
movzx edi, byte [edx + 1]
mov eax, edi
xor eax, 0xffffff3f
mov ecx, edi
or ecx, 0xc0
and ecx, eax
cmp ecx, 0x80
jne 0x404b65
and ebx, 0x1f
shl ebx, 6
mov ebp, 2
jmp 0x404a60
mov eax, ebx
and eax, 0xfffffff0
cmp eax, 0xe0
jne 0x404a64
movzx eax, byte [edx + 1]
mov ecx, eax
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x404b65
movzx edi, byte [edx + 2]
mov ecx, edi
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x404b65
and ebx, 0xf
shl ebx, 0xc
and eax, 0x3f
shl eax, 6
or ebx, eax
mov ebp, 3
xor ecx, ecx
jmp 0x404ad1
mov eax, ebx
and eax, 0xfffffff8
cmp eax, 0xf0
jne 0x404b65
movzx ecx, byte [edx + 1]
mov eax, ecx
and eax, 0xffffffc0
cmp eax, 0x80
jne 0x404b65
movzx eax, byte [edx + 2]
mov edi, eax
and edi, 0xffffffc0
cmp edi, 0x80
jne 0x404b65
movzx edi, byte [edx + 3]
mov ebp, edi
and ebp, 0xffffffc0
cmp ebp, 0x80
jne 0x404b65
and ebx, 7
shl ebx, 0xc
and ecx, 0x3f
shl ecx, 6
or ecx, ebx
and eax, 0x3f
or eax, ecx
shl eax, 6
mov cl, 1
mov ebp, 4
mov ebx, eax
and edi, 0x3f
or edi, ebx
cmp edi, 0x80
jb 0x404b65
cmp edi, 0x7ff
jbe 0x40497d
cmp edi, 0xffff
ja 0x404b00
test cl, cl
je 0x404989
jmp 0x404b65
cmp edi, 0x10ffff
jbe 0x404989
jmp 0x404b65
mov edi, dword [esp + 0x1c]
lea eax, [edi + 1]
push eax
call dword [0x450008]
add esp, 4
test eax, eax
je 0x404b65
mov esi, eax
mov byte [eax + edi], 0
push edi
push dword [esp + 0x1c]
push eax
call fcn.0040c520
add esp, 0xc
push 0x10
call dword [0x450008]
add esp, 4
test eax, eax
je 0x404b5b
mov dword [eax], 0
mov dword [eax + 4], 2
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
jmp 0x404b67
push esi
call dword [0x450004]
add esp, 4
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404b70
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x404c8c
mov edi, dword [esp + 0x28]
test edi, edi
je 0x404c8c
cmp dword [esp + 0x2c], 0
je 0x404c8c
push edi
call fcn.0040c600
add esp, 4
test eax, eax
je 0x404be4
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [edi + ebp]
test edx, edx
je 0x404beb
mov esi, ebp
xor esi, 1
and ebp, 1
lea ebp, [esi + ebp*2]
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
mov ecx, ebx
cmp ebp, eax
jb 0x404bc0
jmp 0x404bed
mov ebx, 0x1505
jmp 0x404bed
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x20]
lea edi, [esi - 1]
mov edx, esi
sub edx, 1
mov dword [esp + 8], edx
jae 0x404c94
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x404c51
call fcn.004058f0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x404c8c
push ecx
call fcn.0040c600
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x20]
lea edi, [esi - 1]
mov eax, esi
sub eax, 1
mov dword [esp + 8], eax
jae 0x404d10
mov ebp, 0xffffffff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 0x28]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + ebp*4], edx
mov eax, dword [ecx + 0x10]
mov esi, dword [esp + 0x2c]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebp
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebx
inc dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [esi], eax
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404cb8
inc edi
dec esi
je 0x404c06
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404c0b
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x404cb0
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.0040c600
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404cb0
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.0040c620
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404cb0
mov eax, 0xffffffff
jmp 0x404c8c
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404d28
inc edi
dec esi
je 0x404c4c
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404c51
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x404d20
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.0040c600
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404d20
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.0040c620
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404d20
jmp 0x404c51