joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5010b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc4000]
push edi
or ebp, 0xffffffff
jmp 0x5010d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5010d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5010c8
mov eax, 1
add ebx, ebx
jne 0x5010eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5010fc
jne 0x50111b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50111b
dec eax
add ebx, ebx
jne 0x501108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5010e0
add ebx, ebx
jne 0x501117
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x50116d
xor ecx, ecx
sub eax, 3
jb 0x501133
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5011a2
sar eax, 1
mov ebp, eax
jmp 0x50113e
add ebx, ebx
jne 0x50113e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50110c
inc ecx
add ebx, ebx
jne 0x50114c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50110c
add ebx, ebx
jne 0x501159
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50114e
jne 0x50116a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50114e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50118c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50117e
jmp 0x5010ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50118c
add edi, ecx
jmp 0x5010ce
pop esi
mov edi, esi
mov ecx, 0xbb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5011aa
cmp byte [edi], 3
jne 0x5011aa
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 0x5011af
lea edi, [esi + 0xff000]
mov eax, dword [edi]
or eax, eax
je 0x501227
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x101e88]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x101ec4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5011dc
mov ecx, edi
jns 0x50120b
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 + 0x101ec8]
or eax, eax
je 0x501221
mov dword [ebx], eax
add ebx, 4
jmp 0x5011f9
call dword [esi + 0x101ed8]
mov ebp, dword [esi + 0x101ecc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
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 0x50125b
sub esp, 0xffffff80
jmp 0x401f10
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10001000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8004
call fcn.1000b260
mov eax, dword [0x10012004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xfffe
call fcn.100010fe
mov ecx, dword [ebp + 0xc]
add esp, 4
mov esi, eax
cmp ecx, 3
ja case.default.0x10001033
jmp dword [ecx*4 + 0x100010e0]
push str..iscsiexe_org.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x10013304], eax
test eax, eax
jne 0x1000105f
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100010f0
mov esp, ebp
pop ebp
ret 0xc
push 0x7fff
push esi
push 0x65
push 0x10010c94
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001080
push 0
push 0
push 0x7fff
sub ecx, edx
lea eax, [ebp - 0x8004]
push eax
sar ecx, 1
push ecx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 5
lea eax, [ebp - 0x8004]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp case.default.0x10001033
push dword [0x10013304]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.100010f0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000b1f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000b21d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000b21d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000a5d7
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push 1
xor edi, edi
pop eax
cmp ebx, eax
jl 0x1000a588
cmp ebx, 8
jle 0x1000a58a
xor eax, eax
mov esi, dword [esp + 0x10]
push 0x10015d94
push eax
push esi
call fcn.1000910f
lea ecx, [esi + 0x6af68]
lea eax, [esi + 0x6af70]
add esp, 0xc
cmp dword [ecx], edi
mov dword [eax], edi
jne 0x1000a5bb
mov dword [eax], 1
mov dword [ecx], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af68]
push edi
push eax
mov dword [esi + 0x6af64], edi
call fcn.1000ccec
mov eax, ebx
add esp, 0xc
shl eax, 3
cmp ebx, 2
movzx ecx, word [eax + 0x1000fc2a]
mov dword [esi + 0x6af90], ecx
movzx ecx, word [eax + 0x1000fc28]
mov dword [esi + 0x6af94], ecx
movzx ecx, word [eax + 0x1000fc2c]
mov dword [esi + 0x6af98], ecx
movzx eax, word [eax + 0x1000fc2e]
mov dword [esi + 0x6af8c], eax
jg 0x1000a61d
mov eax, dword [esp + 0x18]
or byte [eax], 4
jmp 0x1000a629
cmp ebx, 8
jl 0x1000a629
mov eax, dword [esp + 0x18]
or byte [eax], 2
lea ebx, [esi + 0x1af68]
push 0x10000
push ebx
push esi
mov dword [esi + 0x6af7c], edi
mov dword [esi + 0x6af6c], edi
call dword [esi + 9]
add esp, 0xc
cmp eax, edi
mov dword [esi + 0x6af88], eax
je 0x1000a699
cmp eax, 0xffffffff
je 0x1000a699
cmp eax, 0x106
mov dword [esi + 0x6af84], edi
jae 0x1000a66b
push esi
call fcn.1000a870
pop ecx
mov dword [esi + 0x6af74], edi
movzx eax, byte [ebx + edi]
mov ecx, dword [esi + 0x6af74]
and eax, 0x7fff
and ecx, 0x3ff
shl ecx, 5
xor eax, ecx
inc edi
cmp edi, 2
mov dword [esi + 0x6af74], eax
jb 0x1000a671
jmp 0x1000a6a9
mov dword [esi + 0x6af84], 1
mov dword [esi + 0x6af88], edi
pop edi
pop esi
pop ebx
ret
Function at 0x1000aa74
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
xor ebp, ebp
xor edi, edi
mov eax, dword [esi + 0x6af88]
mov dword [esi + 0x6af78], 2
test eax, eax
je 0x1000abb5
push ebx
mov ebx, 0x7fff
cmp eax, 3
jb 0x1000aa13
mov ecx, dword [esi + 0x6af7c]
mov edx, dword [esi + 0x6af74]
and edx, 0x3ff
movzx eax, byte [ecx + esi + 0x1af6a]
and eax, ebx
shl edx, 5
xor eax, edx
and ecx, ebx
mov dword [esi + 0x6af74], eax
mov ebp, dword [esi + eax*4 + 0x4af68]
mov dword [esi + ecx*4 + 0x2af68], ebp
mov eax, dword [esi + 0x6af74]
mov ecx, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af68], ecx
test ebp, ebp
je 0x1000aa4f
mov eax, dword [esi + 0x6af7c]
sub eax, ebp
cmp eax, 0x7efa
ja 0x1000aa4f
mov ecx, dword [esi + 0x6af88]
lea eax, [esi + 0x6af98]
cmp dword [eax], ecx
jbe 0x1000aa38
mov dword [eax], ecx
push ebp
push esi
call fcn.1000a6ad
mov edi, eax
mov eax, dword [esi + 0x6af88]
pop ecx
cmp edi, eax
pop ecx
jbe 0x1000aa4f
mov edi, eax
cmp edi, 3
jb 0x1000ab2c
lea eax, [edi - 3]
push eax
mov eax, dword [esi + 0x6af7c]
sub eax, dword [esi + 0x6af80]
push eax
push esi
call fcn.10009ee1
sub dword [esi + 0x6af88], edi
add esp, 0xc
cmp edi, dword [esi + 0x6af90]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x6af88]
ja 0x1000aae5
cmp eax, 3
jb 0x1000aae5
dec edi
inc dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af7c]
mov edx, dword [esi + 0x6af74]
movzx eax, byte [esi + ecx + 0x1af6a]
and edx, 0x3ff
and eax, ebx
shl edx, 5
xor eax, edx
and ecx, ebx
mov dword [esi + 0x6af74], eax
dec edi
mov ebp, dword [esi + eax*4 + 0x4af68]
mov dword [esi + ecx*4 + 0x2af68], ebp
mov eax, dword [esi + 0x6af74]
mov ecx, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af68], ecx
jne 0x1000aa90
jmp 0x1000ab50
add dword [esi + 0x6af7c], edi
mov eax, dword [esi + 0x6af7c]
lea edx, [esi + 0x6af74]
push 0x10015df0
lea ecx, [eax + esi]
push 1
push esi
xor edi, edi
movzx eax, byte [ecx + 0x1af68]
mov dword [edx], eax
and eax, 0x3ff
movzx ecx, byte [ecx + 0x1af69]
and ecx, ebx
shl eax, 5
xor ecx, eax
mov dword [edx], ecx
call fcn.1000910f
add esp, 0xc
jmp 0x1000ab56
mov eax, dword [esi + 0x6af7c]
movzx eax, byte [eax + esi + 0x1af68]
push eax
push 0
push esi
call fcn.10009ee1
add esp, 0xc
dec dword [esi + 0x6af88]
mov dword [esp + 0x14], eax
inc dword [esi + 0x6af7c]
cmp dword [esp + 0x14], 0
je 0x1000ab93
mov eax, dword [esi + 0x6af6c]
test eax, eax
jl 0x1000ab70
lea ecx, [eax + esi + 0x1af68]
jmp 0x1000ab72
xor ecx, ecx
mov edx, dword [esi + 0x6af7c]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.10009cd9
mov eax, dword [esi + 0x6af7c]
add esp, 0x10
mov dword [esi + 0x6af6c], eax
cmp dword [esi + 0x6af88], 0x106
jae 0x1000aba6
push esi
call fcn.1000a870
pop ecx
mov eax, dword [esi + 0x6af88]
test eax, eax
jne 0x1000a9c4
pop ebx
mov eax, dword [esi + 0x6af6c]
test eax, eax
jl 0x1000abc8
lea ecx, [eax + esi + 0x1af68]
jmp 0x1000abca
xor ecx, ecx
mov edx, dword [esi + 0x6af7c]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.10009cd9
add esp, 0x10
pop edi
pop esi
pop ebp
ret
Function at 0x1000b70d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1000b71b
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x1000b7fc
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x1000fc78]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1000fc78]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1000fc78]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1000fc78]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1000fc78]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1000fc78]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1000fc78]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x1000fc78]
xor eax, esi
inc edx
dec edi
jne 0x1000b738
pop ebx
cmp dword [ebp + 0x10], 0
je 0x1000b81d
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x1000fc78]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x1000b802
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x1000b823
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [esp + 0x10]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x1000fc78]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov edi, esi
and edi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, edi
pop edi
shr esi, 8
mov eax, dword [eax*4 + 0x1000fc78]
xor eax, esi
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x4017a0
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 0x401890
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x401890
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x4017f4
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x4017fb
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
mov ecx, edi
and ecx, 1
xor edi, 1
lea edi, [edi + ecx*2]
mov ecx, esi
cmp edi, ebp
jb 0x4017d0
jmp 0x4017fd
mov esi, 0x1505
jmp 0x4017fd
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + 0x20]
mov ebx, edi
sub ebx, 1
jb 0x401890
and ebx, esi
mov eax, edi
not eax
and eax, 1
mov edx, edi
and edx, 0xfffffffe
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401834
inc ebx
dec edi
je 0x40188e
mov eax, ebx
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40188e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x401830
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.00408320
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401830
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.00408340
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x401830
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x401890
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401cf0
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 0x401dfe
mov esi, dword [esp + 0x28]
test esi, esi
je 0x401dfe
cmp dword [esp + 0x2c], 0
je 0x401dfe
push esi
call fcn.00408320
add esp, 4
test eax, eax
je 0x401d64
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x401d6b
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
mov ecx, edi
and ecx, 1
xor edi, 1
lea edi, [edi + ecx*2]
mov ecx, ebx
cmp edi, eax
jb 0x401d40
jmp 0x401d6d
mov ebx, 0x1505
jmp 0x401d6d
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
mov esi, edi
sub esi, 1
jae 0x401e06
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x401dc3
call fcn.00401f20
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x401dfe
push ecx
call fcn.00408320
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
mov esi, edi
sub esi, 1
jae 0x401e90
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 esi, ebx
mov eax, edi
not eax
and eax, 1
mov edx, edi
and edx, 0xfffffffe
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401e38
inc esi
dec edi
je 0x401d7f
mov ebp, esi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x401d84
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x401e30
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.00408320
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401e30
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.00408340
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401e30
mov eax, 0xffffffff
jmp 0x401dfe
and esi, ebx
mov eax, edi
not eax
and eax, 1
mov edx, edi
and edx, 0xfffffffe
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401eb8
inc esi
dec edi
je 0x401dbe
mov ebp, esi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x401dc3
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x401eb0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00408320
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401eb0
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.00408340
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401eb0
jmp 0x401dc3
Function at 0x402620
Capabilities:
Compute adler32 checksum
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4027d6
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x4027cf
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ebp, esi
sub ebp, eax
jmp 0x4026c0
mov ebp, dword [esp + 4]
mov eax, ebp
sub eax, dword [esp]
add ebx, eax
mov esi, dword [esp + 8]
mov eax, edi
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
mov eax, ecx
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
mov eax, ebp
xor eax, esi
not ebp
and ebp, esi
add ebp, ebp
mov esi, ebp
mov ebp, 0x15b0
sub esi, eax
je 0x4027cf
xor eax, eax
cmp ebp, 8
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
jb 0x402740
and ebp, 0x1ff8
mov dword [esp], ebp
xor edx, edx
nop
nop
nop
nop
nop
nop
mov eax, edx
movzx edx, byte [ebx + edx]
add edx, edi
add ecx, edx
movzx esi, byte [ebx + eax + 1]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 2]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 3]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 4]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 5]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 6]
add edx, esi
mov ebp, dword [esp + 4]
add ecx, edx
movzx edi, byte [ebx + eax + 7]
add edi, edx
add ecx, edi
lea edx, [eax + 8]
add eax, 0xf
cmp eax, ebp
jb 0x4026e0
add ebx, edx
mov eax, dword [esp]
mov esi, dword [esp + 8]
mov edx, eax
sub edx, ebp
jae 0x40267f
mov dword [esp + 0xc], edx
and ebp, 3
mov dword [esp], eax
je 0x40277f
neg ebp
xor eax, eax
mov edx, ebx
nop
nop
nop
nop
movzx esi, byte [edx]
inc edx
add edi, esi
add ecx, edi
dec eax
cmp ebp, eax
jne 0x402760
mov ebp, dword [esp]
sub ebp, eax
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402670
jmp 0x40278e
mov ebp, eax
mov edx, ebx
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402670
mov eax, dword [esp + 4]
sub eax, ebp
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx + ebp]
add esi, edi
add ecx, esi
movzx edi, byte [edx + ebp + 1]
add edi, esi
add ecx, edi
movzx esi, byte [edx + ebp + 2]
add esi, edi
add ecx, esi
movzx edi, byte [edx + ebp + 3]
add edi, esi
add ecx, edi
add ebp, 4
cmp eax, ebp
jne 0x4027a0
jmp 0x402670
shl ecx, 0x10
or ecx, edi
jmp 0x4027db
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4027f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x402851
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test edx, edx
je 0x402853
not eax
xor esi, esi
nop
nop
nop
nop
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0x43f80c]
mov eax, ebx
xor eax, 0x3ffffff0
mov ebp, ebx
or ebp, 0xf
and ebp, eax
mov eax, ebx
shr edi, 4
and ebx, edi
or edi, ebp
xor edi, ebx
shr eax, 4
xor eax, dword [edi*4 + 0x43f80c]
inc esi
cmp edx, esi
jne 0x402810
not eax
jmp 0x402853
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4088d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push edi
push esi
mov edx, dword [esp + 0xc]
mov dword [0x44818c], edx
mov eax, 1
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, edx
shr esi, 0x1e
mov edi, esi
and edi, edx
add esi, edx
add edi, edi
sub esi, edi
imul edx, esi, 0x6c078965
lea esi, [ecx + edx]
inc esi
mov dword [ecx*4 + 0x448190], esi
cmp ecx, 0x26e
je 0x408946
mov edi, esi
shr edi, 0x1e
and edi, esi
add edi, edi
add edx, eax
mov esi, edx
shr esi, 0x1e
add esi, edx
sub esi, edi
imul edx, esi, 0x6c078965
add edx, ecx
add edx, 2
mov dword [ecx*4 + 0x448194], edx
add eax, 2
add ecx, 2
jmp 0x4088f0
mov dword [0x448188], 0x270
pop esi
pop edi
ret

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

Disassembly:
push esi
mov eax, dword [0x448188]
cmp eax, 0x270
jne 0x4089bf
mov eax, 0xfffff640
mov edx, dword [0x44818c]
nop
nop
nop
nop
nop
nop
nop
nop
and edx, 0x80000000
mov esi, dword [eax + 0x448b50]
mov ecx, esi
and ecx, 0x7ffffffe
or ecx, edx
mov edx, esi
and esi, 1
neg esi
and esi, 0x9908b0df
xor esi, dword [eax + 0x449180]
shr ecx, 1
xor esi, ecx
mov dword [eax + 0x44950c], esi
add eax, 4
jne 0x408980
mov eax, 0x270
jmp 0x4089d5
cmp eax, 0x4e0
jb 0x4089d5
mov ecx, 0x448188
call fcn.00408c80
mov eax, dword [0x448188]
lea ecx, [eax + 1]
mov dword [0x448188], ecx
mov eax, dword [eax*4 + 0x44818c]
mov ecx, eax
shr ecx, 0xb
and ecx, dword [0x44950c]
xor ecx, eax
mov eax, ecx
shl eax, 7
and eax, 0x9d2c5680
xor eax, ecx
mov ecx, eax
shl ecx, 0xf
and ecx, 0xefc60000
mov edx, ecx
and edx, eax
add ecx, eax
add edx, edx
sub ecx, edx
shr ecx, 0x12
mov edx, ecx
and edx, eax
and eax, 0x7fff
or eax, ecx
xor eax, edx
pop esi
ret